@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | { |
83 | 83 | $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1); |
84 | 84 | @trigger_error( |
85 | - "System::cleanVars() is deprecated, please use \\Xmf\\Request, " . |
|
85 | + "System::cleanVars() is deprecated, please use \\Xmf\\Request, ". |
|
86 | 86 | "accessed from {$trace[0]['file']} line {$trace[0]['line']},", |
87 | 87 | E_USER_DEPRECATED |
88 | 88 | ); |
@@ -130,11 +130,11 @@ discard block |
||
130 | 130 | return false; |
131 | 131 | } |
132 | 132 | $language = empty($language) ? $xoops->getConfig('language') : $language; |
133 | - $path = 'modules/' . $domain . '/language/'; |
|
134 | - if (XoopsLoad::fileExists($file = $xoops->path($path . $language . '/admin/' . $name . '.php'))) { |
|
133 | + $path = 'modules/'.$domain.'/language/'; |
|
134 | + if (XoopsLoad::fileExists($file = $xoops->path($path.$language.'/admin/'.$name.'.php'))) { |
|
135 | 135 | $ret = include_once $file; |
136 | 136 | } else { |
137 | - $ret = include_once $xoops->path($path . 'english/admin/' . $name . '.php'); |
|
137 | + $ret = include_once $xoops->path($path.'english/admin/'.$name.'.php'); |
|
138 | 138 | } |
139 | 139 | return $ret; |
140 | 140 | } |
@@ -147,16 +147,16 @@ discard block |
||
147 | 147 | public function adminVersion($version, $value = '') |
148 | 148 | { |
149 | 149 | static $tblVersion = array(); |
150 | - if (is_array($tblVersion) && array_key_exists($version . '.' . $value, $tblVersion)) { |
|
151 | - return $tblVersion[$version . '.' . $value]; |
|
150 | + if (is_array($tblVersion) && array_key_exists($version.'.'.$value, $tblVersion)) { |
|
151 | + return $tblVersion[$version.'.'.$value]; |
|
152 | 152 | } |
153 | 153 | $xoops = Xoops::getInstance(); |
154 | - $path = $xoops->path('modules/system/admin/' . $version . '/xoops_version.php'); |
|
154 | + $path = $xoops->path('modules/system/admin/'.$version.'/xoops_version.php'); |
|
155 | 155 | if (XoopsLoad::fileExists($path)) { |
156 | 156 | $modversion = array(); |
157 | 157 | include $path; |
158 | 158 | $retvalue = $modversion[$value]; |
159 | - $tblVersion[$version . '.' . $value] = $retvalue; |
|
159 | + $tblVersion[$version.'.'.$value] = $retvalue; |
|
160 | 160 | return $retvalue; |
161 | 161 | } |
162 | 162 | return ''; |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | */ |
183 | 183 | public function cleanCache($cache) |
184 | 184 | { |
185 | - $cachePath = \XoopsBaseConfig::get('var-path') . '/caches/'; |
|
185 | + $cachePath = \XoopsBaseConfig::get('var-path').'/caches/'; |
|
186 | 186 | $total_smarty_cache = 0; |
187 | 187 | $total_smarty_compile = 0; |
188 | 188 | $total_xoops_cache = 0; |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | for ($i = 0; $i < count($cache); ++$i) { |
191 | 191 | switch ($cache[$i]) { |
192 | 192 | case 1: |
193 | - $files = glob($cachePath . 'smarty_cache/*.*'); |
|
193 | + $files = glob($cachePath.'smarty_cache/*.*'); |
|
194 | 194 | $total_smarty_cache = 0; |
195 | 195 | foreach ($files as $filename) { |
196 | 196 | if (basename(strtolower($filename)) !== 'index.html') { |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | break; |
202 | 202 | |
203 | 203 | case 2: |
204 | - $files = glob($cachePath . 'smarty_compile/*.*'); |
|
204 | + $files = glob($cachePath.'smarty_compile/*.*'); |
|
205 | 205 | $total_smarty_compile = 0; |
206 | 206 | foreach ($files as $filename) { |
207 | 207 | if (basename(strtolower($filename)) !== 'index.html') { |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | // ask the cache to clear itself |
216 | 216 | $status = Xoops::getInstance()->cache()->delete('system'); |
217 | 217 | // this section captures legacy cache use only |
218 | - $files = glob($cachePath . 'xoops_cache/*.*'); |
|
218 | + $files = glob($cachePath.'xoops_cache/*.*'); |
|
219 | 219 | $total_xoops_cache = 0; |
220 | 220 | foreach ($files as $filename) { |
221 | 221 | if (basename(strtolower($filename)) != 'index.html') { |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | ++$total_xoops_cache; |
224 | 224 | } |
225 | 225 | } |
226 | - $total_xoops_cache = $status || ($total_xoops_cache>0); |
|
226 | + $total_xoops_cache = $status || ($total_xoops_cache > 0); |
|
227 | 227 | break; |
228 | 228 | } |
229 | 229 | } |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | */ |
25 | 25 | |
26 | 26 | // Include header |
27 | -include __DIR__ . '/header.php'; |
|
27 | +include __DIR__.'/header.php'; |
|
28 | 28 | |
29 | 29 | $xoops = Xoops::getInstance(); |
30 | 30 | |
@@ -42,24 +42,24 @@ discard block |
||
42 | 42 | if ($mid > 0) { |
43 | 43 | $module = $xoops->getModuleById($mid); |
44 | 44 | |
45 | - $system_breadcrumb->addLink($module->getVar('name'), 'help.php?mid=' . $module->getVar('mid', 's')); |
|
45 | + $system_breadcrumb->addLink($module->getVar('name'), 'help.php?mid='.$module->getVar('mid', 's')); |
|
46 | 46 | $system_breadcrumb->addLink(system_adminVersion($page, 'name')); |
47 | 47 | $system_breadcrumb->render(); |
48 | 48 | |
49 | 49 | if ($module->getVar('dirname', 'e') === 'system') { |
50 | 50 | |
51 | - $admin_dir = \XoopsBaseConfig::get('root-path') . '/modules/system/admin'; |
|
51 | + $admin_dir = \XoopsBaseConfig::get('root-path').'/modules/system/admin'; |
|
52 | 52 | $dirlist = XoopsLists::getDirListAsArray($admin_dir); |
53 | 53 | |
54 | 54 | foreach ($dirlist as $directory) { |
55 | - if (XoopsLoad::fileExists($file = $admin_dir . '/' . $directory . '/xoops_version.php')) { |
|
55 | + if (XoopsLoad::fileExists($file = $admin_dir.'/'.$directory.'/xoops_version.php')) { |
|
56 | 56 | |
57 | 57 | require $file; |
58 | 58 | unset($file); |
59 | 59 | |
60 | 60 | if ($modversion['help']) { |
61 | 61 | $help['name'] = system_adminVersion($directory, 'name'); |
62 | - $help['link'] = 'help.php?mid=' . $mid . '&' . system_adminVersion($directory, 'help'); |
|
62 | + $help['link'] = 'help.php?mid='.$mid.'&'.system_adminVersion($directory, 'help'); |
|
63 | 63 | |
64 | 64 | $xoops->tpl()->appendByRef('help', $help); |
65 | 65 | unset($help); |
@@ -72,12 +72,12 @@ discard block |
||
72 | 72 | $list_help = array(); |
73 | 73 | $listed_mods[0] = $module->toArray(); |
74 | 74 | $helplist = $module->getInfo('helpsection'); |
75 | - $j=0; |
|
75 | + $j = 0; |
|
76 | 76 | if (is_array($helplist)) { |
77 | 77 | foreach ($helplist as $helpitem) { |
78 | 78 | if (($helpitem['name'] != '') && ($helpitem['link'] != '')) { |
79 | 79 | $list_help[$j]['name'] = $helpitem['name']; |
80 | - $list_help[$j]['link'] = 'help.php?mid=' . $mid . '&' . $helpitem['link']; |
|
80 | + $list_help[$j]['link'] = 'help.php?mid='.$mid.'&'.$helpitem['link']; |
|
81 | 81 | ++$j; |
82 | 82 | } |
83 | 83 | } |
@@ -85,9 +85,9 @@ discard block |
||
85 | 85 | $xoopsTpl->assign('list_mods', $listed_mods); |
86 | 86 | } |
87 | 87 | unset ($helplist); |
88 | - if (( $module->getInfo('help') != '' ) && ($j == 0)) { |
|
88 | + if (($module->getInfo('help') != '') && ($j == 0)) { |
|
89 | 89 | $help['name'] = $module->getInfo('name'); |
90 | - $help['link'] = 'help.php?mid=' . $mid . '&' . $module->getInfo('help'); |
|
90 | + $help['link'] = 'help.php?mid='.$mid.'&'.$module->getInfo('help'); |
|
91 | 91 | $xoopsTpl->appendByRef('help', $help); |
92 | 92 | } |
93 | 93 | unset($help); |
@@ -100,22 +100,22 @@ discard block |
||
100 | 100 | |
101 | 101 | if ($page !== '') { |
102 | 102 | // Call template |
103 | - if ($helpfile = XoopsLoad::fileExists(\XoopsBaseConfig::get('root-path') . '/modules/' . $module->getVar('dirname', 'e') . '/locale/' . XoopsLocale::getLocale() . '/help/' . $page . '.tpl')) { |
|
104 | - $helpcontent = $xoops->tpl()->fetch(\XoopsBaseConfig::get('root-path') . '/modules/' . $module->getVar('dirname', 'e') . '/locale/' . XoopsLocale::getLocale() . '/help/' . $page . '.tpl'); |
|
105 | - } elseif ($helpfile = XoopsLoad::fileExists(\XoopsBaseConfig::get('root-path') . '/modules/' . $module->getVar('dirname', 'e') . '/locale/' . XoopsLocale::getLocale() . '/help/' . $page . '.html')) { |
|
106 | - $helpcontent = $xoops->tpl()->fetch(\XoopsBaseConfig::get('root-path') . '/modules/' . $module->getVar('dirname', 'e') . '/locale/' . XoopsLocale::getLocale() . '/help/' . $page . '.html'); |
|
107 | - } elseif (XoopsLoad::fileExists(\XoopsBaseConfig::get('root-path') . '/modules/' . $module->getVar('dirname', 'e') . '/language/' . $xoopsConfig['language'] . '/help/' . $page . '.tpl')) { |
|
108 | - $helpcontent = $xoops->tpl()->fetch(\XoopsBaseConfig::get('root-path') . '/modules/' . $module->getVar('dirname', 'e') . '/language/' . $xoopsConfig['language'] . '/help/' . $page . '.tpl'); |
|
109 | - } elseif (XoopsLoad::fileExists(\XoopsBaseConfig::get('root-path') . '/modules/' . $module->getVar('dirname', 'e') . '/language/' . $xoopsConfig['language'] . '/help/' . $page . '.html')) { |
|
110 | - $helpcontent = $xoops->tpl()->fetch(\XoopsBaseConfig::get('root-path') . '/modules/' . $module->getVar('dirname', 'e') . '/language/' . $xoopsConfig['language'] . '/help/' . $page . '.html'); |
|
111 | - } elseif ($helpfile = XoopsLoad::fileExists(\XoopsBaseConfig::get('root-path') . '/modules/' . $module->getVar('dirname', 'e') . '/locale/en_US/help/' . $page . '.tpl')) { |
|
112 | - $helpcontent = $xoops->tpl()->fetch(\XoopsBaseConfig::get('root-path') . '/modules/' . $module->getVar('dirname', 'e') . '/locale/en_US/help/' . $page . '.tpl'); |
|
113 | - } elseif ($helpfile = XoopsLoad::fileExists(\XoopsBaseConfig::get('root-path') . '/modules/' . $module->getVar('dirname', 'e') . '/locale/en_US/help/' . $page . '.html')) { |
|
114 | - $helpcontent = $xoops->tpl()->fetch(\XoopsBaseConfig::get('root-path') . '/modules/' . $module->getVar('dirname', 'e') . '/locale/en_US/help/' . $page . '.html'); |
|
115 | - } elseif (XoopsLoad::fileExists(\XoopsBaseConfig::get('root-path') . '/modules/' . $module->getVar('dirname', 'e') . '/language/english/help/' . $page . '.tpl')) { |
|
116 | - $helpcontent = $xoops->tpl()->fetch(\XoopsBaseConfig::get('root-path') . '/modules/' . $module->getVar('dirname', 'e') . '/language/english/help/' . $page . '.tpl'); |
|
117 | - } elseif (XoopsLoad::fileExists(\XoopsBaseConfig::get('root-path') . '/modules/' . $module->getVar('dirname', 'e') . '/language/english/help/' . $page . '.html')) { |
|
118 | - $helpcontent = $xoops->tpl()->fetch(\XoopsBaseConfig::get('root-path') . '/modules/' . $module->getVar('dirname', 'e') . '/language/english/help/' . $page . '.html'); |
|
103 | + if ($helpfile = XoopsLoad::fileExists(\XoopsBaseConfig::get('root-path').'/modules/'.$module->getVar('dirname', 'e').'/locale/'.XoopsLocale::getLocale().'/help/'.$page.'.tpl')) { |
|
104 | + $helpcontent = $xoops->tpl()->fetch(\XoopsBaseConfig::get('root-path').'/modules/'.$module->getVar('dirname', 'e').'/locale/'.XoopsLocale::getLocale().'/help/'.$page.'.tpl'); |
|
105 | + } elseif ($helpfile = XoopsLoad::fileExists(\XoopsBaseConfig::get('root-path').'/modules/'.$module->getVar('dirname', 'e').'/locale/'.XoopsLocale::getLocale().'/help/'.$page.'.html')) { |
|
106 | + $helpcontent = $xoops->tpl()->fetch(\XoopsBaseConfig::get('root-path').'/modules/'.$module->getVar('dirname', 'e').'/locale/'.XoopsLocale::getLocale().'/help/'.$page.'.html'); |
|
107 | + } elseif (XoopsLoad::fileExists(\XoopsBaseConfig::get('root-path').'/modules/'.$module->getVar('dirname', 'e').'/language/'.$xoopsConfig['language'].'/help/'.$page.'.tpl')) { |
|
108 | + $helpcontent = $xoops->tpl()->fetch(\XoopsBaseConfig::get('root-path').'/modules/'.$module->getVar('dirname', 'e').'/language/'.$xoopsConfig['language'].'/help/'.$page.'.tpl'); |
|
109 | + } elseif (XoopsLoad::fileExists(\XoopsBaseConfig::get('root-path').'/modules/'.$module->getVar('dirname', 'e').'/language/'.$xoopsConfig['language'].'/help/'.$page.'.html')) { |
|
110 | + $helpcontent = $xoops->tpl()->fetch(\XoopsBaseConfig::get('root-path').'/modules/'.$module->getVar('dirname', 'e').'/language/'.$xoopsConfig['language'].'/help/'.$page.'.html'); |
|
111 | + } elseif ($helpfile = XoopsLoad::fileExists(\XoopsBaseConfig::get('root-path').'/modules/'.$module->getVar('dirname', 'e').'/locale/en_US/help/'.$page.'.tpl')) { |
|
112 | + $helpcontent = $xoops->tpl()->fetch(\XoopsBaseConfig::get('root-path').'/modules/'.$module->getVar('dirname', 'e').'/locale/en_US/help/'.$page.'.tpl'); |
|
113 | + } elseif ($helpfile = XoopsLoad::fileExists(\XoopsBaseConfig::get('root-path').'/modules/'.$module->getVar('dirname', 'e').'/locale/en_US/help/'.$page.'.html')) { |
|
114 | + $helpcontent = $xoops->tpl()->fetch(\XoopsBaseConfig::get('root-path').'/modules/'.$module->getVar('dirname', 'e').'/locale/en_US/help/'.$page.'.html'); |
|
115 | + } elseif (XoopsLoad::fileExists(\XoopsBaseConfig::get('root-path').'/modules/'.$module->getVar('dirname', 'e').'/language/english/help/'.$page.'.tpl')) { |
|
116 | + $helpcontent = $xoops->tpl()->fetch(\XoopsBaseConfig::get('root-path').'/modules/'.$module->getVar('dirname', 'e').'/language/english/help/'.$page.'.tpl'); |
|
117 | + } elseif (XoopsLoad::fileExists(\XoopsBaseConfig::get('root-path').'/modules/'.$module->getVar('dirname', 'e').'/language/english/help/'.$page.'.html')) { |
|
118 | + $helpcontent = $xoops->tpl()->fetch(\XoopsBaseConfig::get('root-path').'/modules/'.$module->getVar('dirname', 'e').'/language/english/help/'.$page.'.html'); |
|
119 | 119 | } else { |
120 | 120 | $xoops->tpl()->assign('load_error', 1); |
121 | 121 | } |
@@ -126,23 +126,23 @@ discard block |
||
126 | 126 | $xoops->tpl()->assign('helpcontent', $helpcontent); |
127 | 127 | } else { |
128 | 128 | if ($helpfile = XoopsLoad::fileExists( |
129 | - \XoopsBaseConfig::get('root-path') . '/modules/' . $module->getVar('dirname', 'e') |
|
130 | - . '/locale/' . XoopsLocale::getLocale() . '/help/module_index.html' |
|
129 | + \XoopsBaseConfig::get('root-path').'/modules/'.$module->getVar('dirname', 'e') |
|
130 | + . '/locale/'.XoopsLocale::getLocale().'/help/module_index.html' |
|
131 | 131 | )) { |
132 | 132 | $helpcontent = $xoops->tpl()->fetch( |
133 | - \XoopsBaseConfig::get('root-path') . '/modules/' . $module->getVar('dirname', 'e') |
|
134 | - . '/locale/' . XoopsLocale::getLocale() . '/help/module_index.html' |
|
133 | + \XoopsBaseConfig::get('root-path').'/modules/'.$module->getVar('dirname', 'e') |
|
134 | + . '/locale/'.XoopsLocale::getLocale().'/help/module_index.html' |
|
135 | 135 | ); |
136 | 136 | } elseif (XoopsLoad::fileExists( |
137 | - \XoopsBaseConfig::get('root-path') . '/modules/' . $module->getVar('dirname', 'e') |
|
138 | - . '/language/' . $xoops->getConfig('language') . '/help/module_index.html' |
|
137 | + \XoopsBaseConfig::get('root-path').'/modules/'.$module->getVar('dirname', 'e') |
|
138 | + . '/language/'.$xoops->getConfig('language').'/help/module_index.html' |
|
139 | 139 | )) { |
140 | 140 | $helpcontent = $xoops->tpl()->fetch( |
141 | - \XoopsBaseConfig::get('root-path') . '/modules/' . $module->getVar('dirname', 'e') |
|
142 | - . '/language/' . $xoops->getConfig('language') . '/help/module_index.html' |
|
141 | + \XoopsBaseConfig::get('root-path').'/modules/'.$module->getVar('dirname', 'e') |
|
142 | + . '/language/'.$xoops->getConfig('language').'/help/module_index.html' |
|
143 | 143 | ); |
144 | 144 | } else { |
145 | - $helpcontent = '<p>' . $module->getInfo('description') . '</p>'; |
|
145 | + $helpcontent = '<p>'.$module->getInfo('description').'</p>'; |
|
146 | 146 | } |
147 | 147 | $xoops->tpl()->assign('helpcontent', $helpcontent); |
148 | 148 | } |
@@ -169,19 +169,19 @@ discard block |
||
169 | 169 | $listed_mods[$i]['description'] = $module->getInfo('description'); |
170 | 170 | |
171 | 171 | if ($module->getVar('dirname', 'e') === 'system') { |
172 | - $admin_dir = \XoopsBaseConfig::get('root-path') . '/modules/system/admin'; |
|
172 | + $admin_dir = \XoopsBaseConfig::get('root-path').'/modules/system/admin'; |
|
173 | 173 | $dirlist = XoopsLists::getDirListAsArray($admin_dir); |
174 | 174 | |
175 | 175 | foreach ($dirlist as $directory) { |
176 | - if (XoopsLoad::fileExists($file = $admin_dir . '/' . $directory . '/xoops_version.php')) { |
|
176 | + if (XoopsLoad::fileExists($file = $admin_dir.'/'.$directory.'/xoops_version.php')) { |
|
177 | 177 | |
178 | 178 | require $file; |
179 | 179 | unset($file); |
180 | 180 | |
181 | 181 | if ($modversion['help']) { |
182 | 182 | $list_help[$j]['name'] = system_adminVersion($directory, 'name'); |
183 | - $list_help[$j]['link'] = 'help.php?mid=' . $module->getVar('mid', 'e') |
|
184 | - . '&' . system_adminVersion($directory, 'help'); |
|
183 | + $list_help[$j]['link'] = 'help.php?mid='.$module->getVar('mid', 'e') |
|
184 | + . '&'.system_adminVersion($directory, 'help'); |
|
185 | 185 | } |
186 | 186 | unset($modversion); |
187 | 187 | ++$j; |
@@ -190,15 +190,15 @@ discard block |
||
190 | 190 | unset($dirlist); |
191 | 191 | } else { |
192 | 192 | $helplist = $module->getInfo('helpsection'); |
193 | - $k=0; |
|
193 | + $k = 0; |
|
194 | 194 | |
195 | 195 | // Only build the list if one has been defined. |
196 | 196 | if (is_array($helplist)) { |
197 | 197 | foreach ($helplist as $helpitem) { |
198 | 198 | if (($helpitem['name'] != '') && ($helpitem['link'] != '')) { |
199 | 199 | $list_help[$j]['name'] = $helpitem['name']; |
200 | - $list_help[$j]['link'] = 'help.php?mid=' . $module->getVar('mid', 'e') |
|
201 | - . '&' . $helpitem['link']; |
|
200 | + $list_help[$j]['link'] = 'help.php?mid='.$module->getVar('mid', 'e') |
|
201 | + . '&'.$helpitem['link']; |
|
202 | 202 | ++$j; |
203 | 203 | ++$k; |
204 | 204 | } |
@@ -207,10 +207,10 @@ discard block |
||
207 | 207 | unset($helplist); |
208 | 208 | |
209 | 209 | // If there is no help section ($k=0), and a lone help parameter has been defined. |
210 | - if (( $module->getInfo('help') != '' ) && ($k == 0)) { |
|
210 | + if (($module->getInfo('help') != '') && ($k == 0)) { |
|
211 | 211 | $list_help[$j]['name'] = $module->getInfo('name'); |
212 | - $list_help[$j]['link'] = 'help.php?mid=' . $module->getVar('mid', 'e') |
|
213 | - . '&' . $module->getInfo('help'); |
|
212 | + $list_help[$j]['link'] = 'help.php?mid='.$module->getVar('mid', 'e') |
|
213 | + . '&'.$module->getInfo('help'); |
|
214 | 214 | } |
215 | 215 | } |
216 | 216 | $listed_mods[$i]['help_page'] = $list_help; |
@@ -225,15 +225,15 @@ discard block |
||
225 | 225 | $xoops->tpl()->assign('list_mods', $listed_mods); |
226 | 226 | |
227 | 227 | if (XoopsLoad::fileExists( |
228 | - \XoopsBaseConfig::get('root-path') . '/modules/system/language/' |
|
229 | - . $xoops->getConfig('language') . '/help/help_center.html' |
|
228 | + \XoopsBaseConfig::get('root-path').'/modules/system/language/' |
|
229 | + . $xoops->getConfig('language').'/help/help_center.html' |
|
230 | 230 | )) { |
231 | 231 | $helpcontent = $xoops->tpl()->fetch( |
232 | - \XoopsBaseConfig::get('root-path') . '/modules/system/language/' . $xoops->getConfig('language') |
|
232 | + \XoopsBaseConfig::get('root-path').'/modules/system/language/'.$xoops->getConfig('language') |
|
233 | 233 | . '/help/help_center.html' |
234 | 234 | ); |
235 | 235 | } else { |
236 | - $helpcontent = '<div id="non-modhelp">' . SystemLocale::WELCOME_TO_XOOPS_HELP_CENTER . '</div>'; |
|
236 | + $helpcontent = '<div id="non-modhelp">'.SystemLocale::WELCOME_TO_XOOPS_HELP_CENTER.'</div>'; |
|
237 | 237 | } |
238 | 238 | |
239 | 239 | $xoops->tpl()->assign('helpcontent', $helpcontent); |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | */ |
24 | 24 | |
25 | 25 | // Include header |
26 | -include __DIR__ . '/header.php'; |
|
26 | +include __DIR__.'/header.php'; |
|
27 | 27 | |
28 | 28 | // Get main instance |
29 | 29 | $xoops = Xoops::getInstance(); |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | if ($system->checkRight()) { |
35 | 35 | if (isset($fct) && $fct != '') { |
36 | 36 | $fct = preg_replace("/[^a-z0-9_\-]/i", "", $fct); |
37 | - if (XoopsLoad::fileExists($file = $xoops->path('modules/' . $xoopsModule->getVar('dirname', 'n') . '/admin/' . $fct . '/xoops_version.php'))) { |
|
37 | + if (XoopsLoad::fileExists($file = $xoops->path('modules/'.$xoopsModule->getVar('dirname', 'n').'/admin/'.$fct.'/xoops_version.php'))) { |
|
38 | 38 | // Load language file |
39 | 39 | //system_loadLanguage($fct, $xoopsModule->getVar('dirname', 'n')); |
40 | 40 | // Include Configuration file |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | if ($category > 0) { |
51 | 51 | $group = $xoopsUser->getGroups(); |
52 | 52 | if (in_array(FixedGroups::ADMIN, $group) || false != $sysperm_handler->checkRight('system_admin', $category, $group, $xoopsModule->getVar('mid'))) { |
53 | - if (XoopsLoad::fileExists($file = $xoops->path('modules/' . $xoopsModule->getVar('dirname', 'n') . '/admin/' . $fct . '/main.php'))) { |
|
53 | + if (XoopsLoad::fileExists($file = $xoops->path('modules/'.$xoopsModule->getVar('dirname', 'n').'/admin/'.$fct.'/main.php'))) { |
|
54 | 54 | include_once $file; |
55 | 55 | unset($file); |
56 | 56 | } else { |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | $error = true; |
61 | 61 | } |
62 | 62 | } elseif ($fct === 'version') { |
63 | - if (XoopsLoad::fileExists($file = $xoops->path('modules/' . $xoopsModule->getVar('dirname', 'n') . '/admin/version/main.php'))) { |
|
63 | + if (XoopsLoad::fileExists($file = $xoops->path('modules/'.$xoopsModule->getVar('dirname', 'n').'/admin/version/main.php'))) { |
|
64 | 64 | include_once $file; |
65 | 65 | unset($file); |
66 | 66 | } else { |
@@ -84,11 +84,11 @@ discard block |
||
84 | 84 | $part = Request::getString('type', ''); |
85 | 85 | $config_handler = $xoops->getHandlerConfig(); |
86 | 86 | |
87 | - $criteria = new Criteria('conf_name', 'active_' . $part); |
|
87 | + $criteria = new Criteria('conf_name', 'active_'.$part); |
|
88 | 88 | $configs = $config_handler->getConfigs($criteria); |
89 | 89 | foreach ($configs as $conf) { |
90 | 90 | /* @var $conf XoopsConfigItem */ |
91 | - if ($conf->getVar('conf_name') == 'active_' . $part) { |
|
91 | + if ($conf->getVar('conf_name') == 'active_'.$part) { |
|
92 | 92 | $conf->setVar('conf_value', !$conf->getVar('conf_value')); |
93 | 93 | $config_handler->insertConfig($conf); |
94 | 94 | } |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | $xoops->theme()->addBaseScriptAssets('modules/system/js/admin.js'); |
105 | 105 | // Define Breadcrumb and tips |
106 | 106 | $admin_page = new \Xoops\Module\Admin(); |
107 | - $admin_page->addBreadcrumbLink(SystemLocale::CONTROL_PANEL, \XoopsBaseConfig::get('url') . '/admin.php', true); |
|
107 | + $admin_page->addBreadcrumbLink(SystemLocale::CONTROL_PANEL, \XoopsBaseConfig::get('url').'/admin.php', true); |
|
108 | 108 | $admin_page->addBreadcrumbLink(SystemLocale::SYSTEM_CONFIGURATION); |
109 | 109 | $admin_page->renderBreadcrumb(); |
110 | 110 | $admin_page->addTips(SystemLocale::TIPS_MAIN); |
@@ -118,16 +118,16 @@ discard block |
||
118 | 118 | $all_ok = true; |
119 | 119 | } |
120 | 120 | |
121 | - $admin_dir = \XoopsBaseConfig::get('root-path') . '/modules/system/admin'; |
|
121 | + $admin_dir = \XoopsBaseConfig::get('root-path').'/modules/system/admin'; |
|
122 | 122 | $dirlist = XoopsLists::getDirListAsArray($admin_dir); |
123 | 123 | $inactive_section = array('blocksadmin', 'groups', 'modulesadmin', 'preferences', 'tplsets', 'extensions', 'users', 'services'); |
124 | 124 | foreach ($dirlist as $directory) { |
125 | - if (XoopsLoad::fileExists($file = $admin_dir . '/' . $directory . '/xoops_version.php')) { |
|
125 | + if (XoopsLoad::fileExists($file = $admin_dir.'/'.$directory.'/xoops_version.php')) { |
|
126 | 126 | require $file; |
127 | 127 | unset($file); |
128 | 128 | |
129 | 129 | if ($modversion['hasAdmin']) { |
130 | - if ($xoops->getModuleConfig('active_' . $directory)) { |
|
130 | + if ($xoops->getModuleConfig('active_'.$directory)) { |
|
131 | 131 | $category = isset($modversion['category']) ? (int)($modversion['category']) : 0; |
132 | 132 | if (false != $all_ok || in_array($modversion['category'], $ok_syscats)) { |
133 | 133 | $menu['file'] = $directory; |