@@ -9,4 +9,4 @@ |
||
9 | 9 | // require $mydirpath.'/mytrustdirname.php' ; // set $mytrustdirname |
10 | 10 | $mytrustdirname = 'altsys'; |
11 | 11 | |
12 | -require XOOPS_TRUST_PATH . '/libs/' . $mytrustdirname . '/preload.php'; |
|
12 | +require XOOPS_TRUST_PATH.'/libs/'.$mytrustdirname.'/preload.php'; |
@@ -9,4 +9,4 @@ |
||
9 | 9 | // require $mydirpath.'/mytrustdirname.php' ; // set $mytrustdirname |
10 | 10 | $mytrustdirname = 'altsys'; |
11 | 11 | |
12 | -require XOOPS_TRUST_PATH . '/libs/' . $mytrustdirname . '/xoops_version.php'; |
|
12 | +require XOOPS_TRUST_PATH.'/libs/'.$mytrustdirname.'/xoops_version.php'; |
@@ -2,6 +2,6 @@ |
||
2 | 2 | |
3 | 3 | $xoopsOption['nocommon'] = 1; |
4 | 4 | define('_LEGACY_PREVENT_LOAD_CORE_', true); |
5 | -require_once \dirname(__DIR__, 2) . '/mainfile.php'; |
|
5 | +require_once \dirname(__DIR__, 2).'/mainfile.php'; |
|
6 | 6 | |
7 | -header('Location: ' . XOOPS_URL . '/user.php'); |
|
7 | +header('Location: '.XOOPS_URL.'/user.php'); |
@@ -5,19 +5,19 @@ |
||
5 | 5 | } |
6 | 6 | |
7 | 7 | // templates/ under the theme |
8 | -$tplsadmin_autoupdate_path = XOOPS_THEME_PATH . '/' . $xoopsConfig['theme_set'] . '/templates'; |
|
8 | +$tplsadmin_autoupdate_path = XOOPS_THEME_PATH.'/'.$xoopsConfig['theme_set'].'/templates'; |
|
9 | 9 | |
10 | -if ($handler = @opendir($tplsadmin_autoupdate_path . '/')) { |
|
10 | +if ($handler = @opendir($tplsadmin_autoupdate_path.'/')) { |
|
11 | 11 | while (false !== ($file = readdir($handler))) { |
12 | - $file_path = $tplsadmin_autoupdate_path . '/' . $file; |
|
12 | + $file_path = $tplsadmin_autoupdate_path.'/'.$file; |
|
13 | 13 | |
14 | 14 | if (is_file($file_path) && '.tpl' == mb_substr($file, -5)) { |
15 | 15 | $mtime = (int)(@filemtime($file_path)); |
16 | 16 | |
17 | - list($count) = $xoopsDB->fetchRow($xoopsDB->query('SELECT COUNT(*) FROM ' . $xoopsDB->prefix('tplfile') . " WHERE tpl_tplset='" . addslashes($xoopsConfig['template_set']) . "' AND tpl_file='" . addslashes($file) . "' AND tpl_lastmodified >= $mtime")); |
|
17 | + list($count) = $xoopsDB->fetchRow($xoopsDB->query('SELECT COUNT(*) FROM '.$xoopsDB->prefix('tplfile')." WHERE tpl_tplset='".addslashes($xoopsConfig['template_set'])."' AND tpl_file='".addslashes($file)."' AND tpl_lastmodified >= $mtime")); |
|
18 | 18 | |
19 | 19 | if ($count <= 0) { |
20 | - include_once XOOPS_TRUST_PATH . '/libs/altsys/include/tpls_functions.php'; |
|
20 | + include_once XOOPS_TRUST_PATH.'/libs/altsys/include/tpls_functions.php'; |
|
21 | 21 | |
22 | 22 | tplsadmin_import_data($xoopsConfig['template_set'], $file, implode('', file($file_path)), $mtime); |
23 | 23 | } |
@@ -14,21 +14,21 @@ discard block |
||
14 | 14 | foreach ($tplsadmin_autoupdate_dirnames as $dirname) { |
15 | 15 | $dirname = preg_replace('/[^a-zA-Z0-9_-]/', '', $dirname); |
16 | 16 | |
17 | - $tplsadmin_autoupdate_path = XOOPS_ROOT_PATH . '/modules/' . $dirname . '/templates'; |
|
17 | + $tplsadmin_autoupdate_path = XOOPS_ROOT_PATH.'/modules/'.$dirname.'/templates'; |
|
18 | 18 | |
19 | 19 | // modules |
20 | 20 | |
21 | - if ($handler = @opendir($tplsadmin_autoupdate_path . '/')) { |
|
21 | + if ($handler = @opendir($tplsadmin_autoupdate_path.'/')) { |
|
22 | 22 | while (false !== ($file = readdir($handler))) { |
23 | - $file_path = $tplsadmin_autoupdate_path . '/' . $file; |
|
23 | + $file_path = $tplsadmin_autoupdate_path.'/'.$file; |
|
24 | 24 | |
25 | 25 | if (is_file($file_path) && '.tpl' == mb_substr($file, -5)) { |
26 | 26 | $mtime = (int)(@filemtime($file_path)); |
27 | 27 | |
28 | - list($count) = $xoopsDB->fetchRow($xoopsDB->query('SELECT COUNT(*) FROM ' . $xoopsDB->prefix('tplfile') . " WHERE tpl_tplset='" . addslashes($xoopsConfig['template_set']) . "' AND tpl_file='" . addslashes($file) . "' AND tpl_lastmodified >= $mtime")); |
|
28 | + list($count) = $xoopsDB->fetchRow($xoopsDB->query('SELECT COUNT(*) FROM '.$xoopsDB->prefix('tplfile')." WHERE tpl_tplset='".addslashes($xoopsConfig['template_set'])."' AND tpl_file='".addslashes($file)."' AND tpl_lastmodified >= $mtime")); |
|
29 | 29 | |
30 | 30 | if ($count <= 0) { |
31 | - include_once XOOPS_TRUST_PATH . '/libs/altsys/include/tpls_functions.php'; |
|
31 | + include_once XOOPS_TRUST_PATH.'/libs/altsys/include/tpls_functions.php'; |
|
32 | 32 | |
33 | 33 | tplsadmin_import_data($xoopsConfig['template_set'], $file, implode('', file($file_path)), $mtime); |
34 | 34 | } |
@@ -38,17 +38,17 @@ discard block |
||
38 | 38 | |
39 | 39 | // blocks |
40 | 40 | |
41 | - if ($handler = @opendir($tplsadmin_autoupdate_path . '/blocks/')) { |
|
41 | + if ($handler = @opendir($tplsadmin_autoupdate_path.'/blocks/')) { |
|
42 | 42 | while (false !== ($file = readdir($handler))) { |
43 | - $file_path = $tplsadmin_autoupdate_path . '/blocks/' . $file; |
|
43 | + $file_path = $tplsadmin_autoupdate_path.'/blocks/'.$file; |
|
44 | 44 | |
45 | 45 | if (is_file($file_path) && '.tpl' == mb_substr($file, -5)) { |
46 | 46 | $mtime = (int)(@filemtime($file_path)); |
47 | 47 | |
48 | - list($count) = $xoopsDB->fetchRow($xoopsDB->query('SELECT COUNT(*) FROM ' . $xoopsDB->prefix('tplfile') . " WHERE tpl_tplset='" . addslashes($xoopsConfig['template_set']) . "' AND tpl_file='" . addslashes($file) . "' AND tpl_lastmodified >= $mtime")); |
|
48 | + list($count) = $xoopsDB->fetchRow($xoopsDB->query('SELECT COUNT(*) FROM '.$xoopsDB->prefix('tplfile')." WHERE tpl_tplset='".addslashes($xoopsConfig['template_set'])."' AND tpl_file='".addslashes($file)."' AND tpl_lastmodified >= $mtime")); |
|
49 | 49 | |
50 | 50 | if ($count <= 0) { |
51 | - include_once XOOPS_TRUST_PATH . '/libs/altsys/include/tpls_functions.php'; |
|
51 | + include_once XOOPS_TRUST_PATH.'/libs/altsys/include/tpls_functions.php'; |
|
52 | 52 | |
53 | 53 | tplsadmin_import_data($xoopsConfig['template_set'], $file, implode('', file($file_path)), $mtime); |
54 | 54 | } |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -require_once dirname(__DIR__) . '/include/altsys_functions.php'; |
|
3 | +require_once dirname(__DIR__).'/include/altsys_functions.php'; |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * @param $options |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | |
13 | 13 | $mydirname = empty($options[0]) ? 'altsys' : $options[0]; |
14 | 14 | |
15 | - $this_template = empty($options[1]) ? 'db:' . $mydirname . '_block_admin_menu.tpl' : trim($options[1]); |
|
15 | + $this_template = empty($options[1]) ? 'db:'.$mydirname.'_block_admin_menu.tpl' : trim($options[1]); |
|
16 | 16 | |
17 | 17 | if (preg_match('/[^0-9a-zA-Z_-]/', $mydirname)) { |
18 | 18 | die('Invalid mydirname'); |
@@ -56,12 +56,12 @@ discard block |
||
56 | 56 | |
57 | 57 | $admin_mids = $moduleperm_handler->getItemIds('module_admin', $xoopsUser->getGroups()); |
58 | 58 | |
59 | - $modules = $module_handler->getObjects(new Criteria('mid', '(' . implode(',', $admin_mids) . ')', 'IN'), true); |
|
59 | + $modules = $module_handler->getObjects(new Criteria('mid', '('.implode(',', $admin_mids).')', 'IN'), true); |
|
60 | 60 | |
61 | 61 | $block = [ |
62 | 62 | 'mydirname' => $mydirname, |
63 | - 'mod_url' => XOOPS_URL . '/modules/' . $mydirname, |
|
64 | - 'mod_imageurl' => XOOPS_URL . '/modules/' . $mydirname . '/' . $current_configs['images_dir'], |
|
63 | + 'mod_url' => XOOPS_URL.'/modules/'.$mydirname, |
|
64 | + 'mod_imageurl' => XOOPS_URL.'/modules/'.$mydirname.'/'.$current_configs['images_dir'], |
|
65 | 65 | 'mod_config' => $current_configs, |
66 | 66 | ]; |
67 | 67 | |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | |
81 | 81 | unset($adminmenu_use_altsys); |
82 | 82 | |
83 | - @include XOOPS_ROOT_PATH . '/modules/' . $dirname . '/' . @$modinfo['adminmenu']; |
|
83 | + @include XOOPS_ROOT_PATH.'/modules/'.$dirname.'/'.@$modinfo['adminmenu']; |
|
84 | 84 | |
85 | 85 | // from admin_menu.php etc. |
86 | 86 | |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | |
96 | 96 | $submenus4assign[] = [ |
97 | 97 | 'title' => htmlspecialchars($sub['title']), |
98 | - 'url' => XOOPS_URL . '/modules/' . $dirname . '/' . htmlspecialchars($link, ENT_QUOTES), |
|
98 | + 'url' => XOOPS_URL.'/modules/'.$dirname.'/'.htmlspecialchars($link, ENT_QUOTES), |
|
99 | 99 | ]; |
100 | 100 | } |
101 | 101 | |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | |
120 | 120 | $submenus4assign[] = [ |
121 | 121 | 'title' => htmlspecialchars($sub['title']), |
122 | - 'url' => 0 === strncmp($sub['link'], 'http', 4) ? htmlspecialchars($sub['link'], ENT_QUOTES) : XOOPS_URL . '/modules/' . $dirname . '/' . htmlspecialchars($sub['link'], ENT_QUOTES), |
|
122 | + 'url' => 0 === strncmp($sub['link'], 'http', 4) ? htmlspecialchars($sub['link'], ENT_QUOTES) : XOOPS_URL.'/modules/'.$dirname.'/'.htmlspecialchars($sub['link'], ENT_QUOTES), |
|
123 | 123 | ]; |
124 | 124 | } |
125 | 125 | } elseif (empty($adminmenu4altsys)) { |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | if (defined('XOOPS_CUBE_LEGACY') && !empty($modinfo['help'])) { |
138 | 138 | $submenus4assign[] = [ |
139 | 139 | 'title' => _HELP, |
140 | - 'url' => XOOPS_URL . '/modules/legacy/admin/index.php?action=Help&dirname=' . $dirname, |
|
140 | + 'url' => XOOPS_URL.'/modules/legacy/admin/index.php?action=Help&dirname='.$dirname, |
|
141 | 141 | ]; |
142 | 142 | } |
143 | 143 | } |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | $block['modules'][] = $module4assign; |
166 | 166 | } |
167 | 167 | |
168 | - require_once XOOPS_TRUST_PATH . '/libs/altsys/class/D3Tpl.class.php'; |
|
168 | + require_once XOOPS_TRUST_PATH.'/libs/altsys/class/D3Tpl.class.php'; |
|
169 | 169 | |
170 | 170 | $tpl = new D3Tpl(); |
171 | 171 | |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | { |
185 | 185 | $mydirname = empty($options[0]) ? 'd3forum' : $options[0]; |
186 | 186 | |
187 | - $this_template = empty($options[1]) ? 'db:' . $mydirname . '_block_admin_menu.tpl' : trim($options[1]); |
|
187 | + $this_template = empty($options[1]) ? 'db:'.$mydirname.'_block_admin_menu.tpl' : trim($options[1]); |
|
188 | 188 | |
189 | 189 | if (preg_match('/[^0-9a-zA-Z_-]/', $mydirname)) { |
190 | 190 | die('Invalid mydirname'); |
@@ -192,8 +192,8 @@ discard block |
||
192 | 192 | |
193 | 193 | $form = " |
194 | 194 | <input type='hidden' name='options[0]' value='$mydirname' /> |
195 | - <label for='this_template'>" . _MB_ALTSYS_THISTEMPLATE . "</label> : |
|
196 | - <input type='text' size='60' name='options[1]' id='this_template' value='" . htmlspecialchars($this_template, ENT_QUOTES) . "' /> |
|
195 | + <label for='this_template'>"._MB_ALTSYS_THISTEMPLATE."</label> : |
|
196 | + <input type='text' size='60' name='options[1]' id='this_template' value='" . htmlspecialchars($this_template, ENT_QUOTES)."' /> |
|
197 | 197 | <br /> |
198 | 198 | \n"; |
199 | 199 |
@@ -3,10 +3,10 @@ |
||
3 | 3 | if (defined('FOR_XOOPS_LANG_CHECKER')) { |
4 | 4 | $mydirname = 'd3forum'; |
5 | 5 | } |
6 | -$constpref = '_MB_' . mb_strtoupper($mydirname); |
|
6 | +$constpref = '_MB_'.mb_strtoupper($mydirname); |
|
7 | 7 | |
8 | -if (defined('FOR_XOOPS_LANG_CHECKER') || !defined($constpref . '_LOADED')) { |
|
9 | - define($constpref . '_LOADED', 1); |
|
8 | +if (defined('FOR_XOOPS_LANG_CHECKER') || !defined($constpref.'_LOADED')) { |
|
9 | + define($constpref.'_LOADED', 1); |
|
10 | 10 | |
11 | 11 | // definitions for displaying blocks |
12 | 12 | // Since altsys is a singleton moudle, this file has non-sense. |
@@ -3,10 +3,10 @@ |
||
3 | 3 | if (defined('FOR_XOOPS_LANG_CHECKER')) { |
4 | 4 | $mydirname = 'd3forum'; |
5 | 5 | } |
6 | -$constpref = '_MB_' . mb_strtoupper($mydirname); |
|
6 | +$constpref = '_MB_'.mb_strtoupper($mydirname); |
|
7 | 7 | |
8 | -if (defined('FOR_XOOPS_LANG_CHECKER') || !defined($constpref . '_LOADED')) { |
|
9 | - define($constpref . '_LOADED', 1); |
|
8 | +if (defined('FOR_XOOPS_LANG_CHECKER') || !defined($constpref.'_LOADED')) { |
|
9 | + define($constpref.'_LOADED', 1); |
|
10 | 10 | |
11 | 11 | // definitions for displaying blocks |
12 | 12 | // Since altsys is a singleton moudle, this file has non-sense. |
@@ -3,10 +3,10 @@ |
||
3 | 3 | if (defined('FOR_XOOPS_LANG_CHECKER')) { |
4 | 4 | $mydirname = 'd3forum'; |
5 | 5 | } |
6 | -$constpref = '_MB_' . mb_strtoupper($mydirname); |
|
6 | +$constpref = '_MB_'.mb_strtoupper($mydirname); |
|
7 | 7 | |
8 | -if (defined('FOR_XOOPS_LANG_CHECKER') || !defined($constpref . '_LOADED')) { |
|
9 | - define($constpref . '_LOADED', 1); |
|
8 | +if (defined('FOR_XOOPS_LANG_CHECKER') || !defined($constpref.'_LOADED')) { |
|
9 | + define($constpref.'_LOADED', 1); |
|
10 | 10 | |
11 | 11 | // definitions for displaying blocks |
12 | 12 | // Since altsys is a singleton moudle, this file has non-sense. |