35 $extension = self::getExtensionList();
36 foreach ($extension as $list) {
38 if ($list->getInfo(
'install')) {
39 if (!is_array($list->getInfo(
'extension_module'))) {
42 if (array_search($mod, $list->getInfo(
'extension_module')) !==
false) {
68 foreach ($this->modulesList as
$file) {
75 if (
$module->getInfo(
'extension')) {
76 if (in_array($file, $this->modulesDirnames)) {
77 $module->setInfo(
'install',
true);
79 $module->setInfo(
'mid', $extension->getVar(
'mid'));
85 if (round(
$module->getInfo(
'version'), 2) != $extension->getVar(
'version')) {
86 $module->setInfo(
'warning_update',
true);
89 if (is_object(
$xoops->user)) {
94 if ($sadmin && (
$module->getVar(
'hasnotification')
95 || is_array(
$module->getInfo(
'config'))
96 || is_array(
$module->getInfo(
'comments')))
100 \
XoopsBaseConfig::get(
'url') .
'/modules/system/admin.php?fct=preferences&op=showmod&mod='
105 $module->setInfo(
'install',
false);
107 $module->setInfo(
'version', round(
$module->getInfo(
'version'), 2));
155 foreach ($this->modulesList as
$file) {
159 if (!in_array($file, $this->modulesDirnames)) {
163 if (
$module->getInfo(
'extension')) {
165 $module->setInfo(
'version', round(
$module->getInfo(
'version'), 2));
static formatTimestamp($time, $format= 'l', $timeoffset=null)
if(!isset($xoops->paths[$path_type])) if($path_type== 'var') $file