@@ -17,12 +17,12 @@ discard block |
||
17 | 17 | |
18 | 18 | // This is a mimic file from header.php of 2.0.16-JP |
19 | 19 | |
20 | -require_once dirname(__DIR__) . '/class/AltsysBreadcrumbs.class.php'; |
|
21 | -include_once XOOPS_ROOT_PATH . '/class/xoopsblock.php'; |
|
20 | +require_once dirname(__DIR__).'/class/AltsysBreadcrumbs.class.php'; |
|
21 | +include_once XOOPS_ROOT_PATH.'/class/xoopsblock.php'; |
|
22 | 22 | |
23 | 23 | $xoopsOption['theme_use_smarty'] = 1; |
24 | 24 | // include Smarty template engine and initialize it |
25 | -require_once XOOPS_ROOT_PATH . '/class/template.php'; |
|
25 | +require_once XOOPS_ROOT_PATH.'/class/template.php'; |
|
26 | 26 | $xoopsTpl = new XoopsTpl(); |
27 | 27 | $xoopsTpl->xoops_setCaching(2); |
28 | 28 | if (3 == $xoopsConfig['debug_mode']) { |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | } |
31 | 31 | $xoopsTpl->assign([ |
32 | 32 | 'xoops_theme' => $xoopsConfig['theme_set'], |
33 | - 'xoops_imageurl' => XOOPS_THEME_URL . '/' . $xoopsConfig['theme_set'] . '/', |
|
33 | + 'xoops_imageurl' => XOOPS_THEME_URL.'/'.$xoopsConfig['theme_set'].'/', |
|
34 | 34 | 'xoops_themecss' => xoops_getcss($xoopsConfig['theme_set']), |
35 | 35 | 'xoops_requesturi' => htmlspecialchars($GLOBALS['xoopsRequestUri'], ENT_QUOTES), |
36 | 36 | 'xoops_sitename' => htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES), |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | foreach (array_keys($config) as $i) { |
45 | 45 | // prefix each tag with 'xoops_' |
46 | 46 | |
47 | - $xoopsTpl->assign('xoops_' . $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput()); |
|
47 | + $xoopsTpl->assign('xoops_'.$config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput()); |
|
48 | 48 | } |
49 | 49 | //unset($config); |
50 | 50 | // Weird, but need extra <script> tags for 2.0.x themes |
@@ -85,9 +85,9 @@ discard block |
||
85 | 85 | if ($breadcrumbsObj->hasPaths()) { |
86 | 86 | $xoops_breadcrumbs = $breadcrumbsObj->getXoopsBreadcrumbs(); |
87 | 87 | } else { |
88 | - $mod_url = XOOPS_URL . '/modules/' . $target_module->getVar('dirname'); |
|
88 | + $mod_url = XOOPS_URL.'/modules/'.$target_module->getVar('dirname'); |
|
89 | 89 | |
90 | - $mod_path = XOOPS_ROOT_PATH . '/modules/' . $target_module->getVar('dirname'); |
|
90 | + $mod_path = XOOPS_ROOT_PATH.'/modules/'.$target_module->getVar('dirname'); |
|
91 | 91 | |
92 | 92 | $modinfo = &$target_module->getInfo(); |
93 | 93 | |
@@ -95,14 +95,14 @@ discard block |
||
95 | 95 | |
96 | 96 | if (!empty($modinfo['hasMain'])) { |
97 | 97 | $xoops_breadcrumbs[] = [ |
98 | - 'url' => $mod_url . '/', |
|
98 | + 'url' => $mod_url.'/', |
|
99 | 99 | 'name' => sprintf(_MD_A_AINTHEME_FMT_PUBLICTOP, $target_module->getVar('name')), |
100 | 100 | ]; |
101 | 101 | } |
102 | 102 | |
103 | 103 | if (!empty($modinfo['adminindex'])) { |
104 | 104 | $xoops_breadcrumbs[] = [ |
105 | - 'url' => $mod_url . '/' . $modinfo['adminindex'], |
|
105 | + 'url' => $mod_url.'/'.$modinfo['adminindex'], |
|
106 | 106 | 'name' => sprintf(_MD_A_AINTHEME_FMT_ADMINTOP, $target_module->getVar('name')), |
107 | 107 | ]; |
108 | 108 | } |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | if (!empty($GLOBALS['altsysAdminPageTitle'])) { |
111 | 111 | $xoops_breadcrumbs[] = ['name' => htmlspecialchars($GLOBALS['altsysAdminPageTitle'], ENT_QUOTES)]; |
112 | 112 | } elseif (!empty($modinfo['adminmenu'])) { |
113 | - @include $mod_path . '/' . $modinfo['adminmenu']; |
|
113 | + @include $mod_path.'/'.$modinfo['adminmenu']; |
|
114 | 114 | |
115 | 115 | if (is_array(@$adminmenu)) { |
116 | 116 | foreach ($adminmenu as $eachmenu) { |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | |
131 | 131 | $xoops_breadcrumbs = [ |
132 | 132 | [ |
133 | - 'url' => XOOPS_URL . '/admin.php', |
|
133 | + 'url' => XOOPS_URL.'/admin.php', |
|
134 | 134 | 'name' => _CPHOME, |
135 | 135 | ], |
136 | 136 | ]; |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | |
142 | 142 | // get block_arr |
143 | 143 | $db = XoopsDatabaseFactory::getDatabaseConnection(); |
144 | -$sql = 'SELECT DISTINCT gperm_itemid FROM ' . $db->prefix('group_permission') . " WHERE gperm_name = 'block_read' AND gperm_modid = 1 AND gperm_groupid IN (" . implode(',', $xoopsUser->getGroups()) . ')'; |
|
144 | +$sql = 'SELECT DISTINCT gperm_itemid FROM '.$db->prefix('group_permission')." WHERE gperm_name = 'block_read' AND gperm_modid = 1 AND gperm_groupid IN (".implode(',', $xoopsUser->getGroups()).')'; |
|
145 | 145 | $result = $db->query($sql); |
146 | 146 | |
147 | 147 | $blockids = []; |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | global $block_arr, $i; // for piCal :-) |
153 | 153 | $block_arr = []; |
154 | 154 | if (!empty($blockids)) { |
155 | - $sql = 'SELECT b.* FROM ' . $db->prefix('newblocks') . ' b, ' . $db->prefix('block_module_link') . ' m WHERE m.block_id=b.bid AND b.isactive=1 AND b.visible=1 AND m.module_id=' . (int)$altsysModuleId . ' AND b.bid IN (' . implode(',', $blockids) . ') ORDER BY b.weight,b.bid'; |
|
155 | + $sql = 'SELECT b.* FROM '.$db->prefix('newblocks').' b, '.$db->prefix('block_module_link').' m WHERE m.block_id=b.bid AND b.isactive=1 AND b.visible=1 AND m.module_id='.(int)$altsysModuleId.' AND b.bid IN ('.implode(',', $blockids).') ORDER BY b.weight,b.bid'; |
|
156 | 156 | |
157 | 157 | $result = $db->query($sql); |
158 | 158 | |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | $btpl = $block_arr[$i]->getVar('template'); |
191 | 191 | |
192 | 192 | if ('' != $btpl) { |
193 | - if (empty($bcachetime) || !$xoopsTpl->is_cached('db:' . $btpl, 'blk_' . $block_arr[$i]->getVar('bid'))) { |
|
193 | + if (empty($bcachetime) || !$xoopsTpl->is_cached('db:'.$btpl, 'blk_'.$block_arr[$i]->getVar('bid'))) { |
|
194 | 194 | $xoopsLogger->addBlock($block_arr[$i]->getVar('name')); |
195 | 195 | |
196 | 196 | $bresult = $block_arr[$i]->buildBlock(); |
@@ -201,18 +201,18 @@ discard block |
||
201 | 201 | |
202 | 202 | $xoopsTpl->assign_by_ref('block', $bresult); |
203 | 203 | |
204 | - $bcontent = $xoopsTpl->fetch('db:' . $btpl, 'blk_' . $block_arr[$i]->getVar('bid')); |
|
204 | + $bcontent = $xoopsTpl->fetch('db:'.$btpl, 'blk_'.$block_arr[$i]->getVar('bid')); |
|
205 | 205 | |
206 | 206 | $xoopsTpl->clear_assign('block'); |
207 | 207 | } else { |
208 | 208 | $xoopsLogger->addBlock($block_arr[$i]->getVar('name'), true, $bcachetime); |
209 | 209 | |
210 | - $bcontent = $xoopsTpl->fetch('db:' . $btpl, 'blk_' . $block_arr[$i]->getVar('bid')); |
|
210 | + $bcontent = $xoopsTpl->fetch('db:'.$btpl, 'blk_'.$block_arr[$i]->getVar('bid')); |
|
211 | 211 | } |
212 | 212 | } else { |
213 | 213 | $bid = $block_arr[$i]->getVar('bid'); |
214 | 214 | |
215 | - if (empty($bcachetime) || !$xoopsTpl->is_cached('db:system_dummy.tpl', 'blk_' . $bid)) { |
|
215 | + if (empty($bcachetime) || !$xoopsTpl->is_cached('db:system_dummy.tpl', 'blk_'.$bid)) { |
|
216 | 216 | $xoopsLogger->addBlock($block_arr[$i]->getVar('name')); |
217 | 217 | |
218 | 218 | $bresult = $block_arr[$i]->buildBlock(); |
@@ -223,13 +223,13 @@ discard block |
||
223 | 223 | |
224 | 224 | $xoopsTpl->assign_by_ref('dummy_content', $bresult['content']); |
225 | 225 | |
226 | - $bcontent = $xoopsTpl->fetch('db:system_dummy.tpl', 'blk_' . $bid); |
|
226 | + $bcontent = $xoopsTpl->fetch('db:system_dummy.tpl', 'blk_'.$bid); |
|
227 | 227 | |
228 | 228 | $xoopsTpl->clear_assign('block'); |
229 | 229 | } else { |
230 | 230 | $xoopsLogger->addBlock($block_arr[$i]->getVar('name'), true, $bcachetime); |
231 | 231 | |
232 | - $bcontent = $xoopsTpl->fetch('db:system_dummy.tpl', 'blk_' . $bid); |
|
232 | + $bcontent = $xoopsTpl->fetch('db:system_dummy.tpl', 'blk_'.$bid); |
|
233 | 233 | } |
234 | 234 | } |
235 | 235 | |
@@ -281,7 +281,7 @@ discard block |
||
281 | 281 | |
282 | 282 | // FALLBACK inserting admin_menu_block in admin side |
283 | 283 | if (!$adminmenublock_exists) { |
284 | - require_once XOOPS_ROOT_PATH . '/modules/altsys/blocks/blocks.php'; |
|
284 | + require_once XOOPS_ROOT_PATH.'/modules/altsys/blocks/blocks.php'; |
|
285 | 285 | |
286 | 286 | $admin_menu_block = [b_altsys_admin_menu_show(['altsys'])]; |
287 | 287 |
@@ -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 |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | |
118 | 118 | $moduleHandler = xoops_getHandler('module'); |
119 | 119 | |
120 | - if (! empty($_GET['dirname'])) { |
|
120 | + if (! empty($_GET['dirname'])) { |
|
121 | 121 | $dirname = preg_replace('/[^0-9a-zA-Z_-]/', '', \Xmf\Request::getString('dirname', '', 'GET')); |
122 | 122 | |
123 | 123 | $target_module = $moduleHandler->getByDirname($dirname); |
@@ -558,12 +558,12 @@ discard block |
||
558 | 558 | ]; |
559 | 559 | |
560 | 560 | $blocks4assign[] = [ |
561 | - 'name_raw' => $block_data['name'], |
|
562 | - 'title_raw' => $block_data['title'], |
|
563 | - 'cell_position' => $this->renderCell4BlockPosition($block_data), |
|
564 | - 'cell_module_link' => $this->renderCell4BlockModuleLink($block_data), |
|
565 | - 'cell_group_perm' => $this->renderCell4BlockReadGroupPerm($block_data), |
|
566 | - ] + $block_data; |
|
561 | + 'name_raw' => $block_data['name'], |
|
562 | + 'title_raw' => $block_data['title'], |
|
563 | + 'cell_position' => $this->renderCell4BlockPosition($block_data), |
|
564 | + 'cell_module_link' => $this->renderCell4BlockModuleLink($block_data), |
|
565 | + 'cell_group_perm' => $this->renderCell4BlockReadGroupPerm($block_data), |
|
566 | + ] + $block_data; |
|
567 | 567 | } |
568 | 568 | |
569 | 569 | // display |
@@ -573,14 +573,14 @@ discard block |
||
573 | 573 | $tpl = new D3Tpl(); |
574 | 574 | |
575 | 575 | $tpl->assign([ |
576 | - 'target_mid' => $this->target_mid, |
|
577 | - 'target_dirname' => $this->target_dirname, |
|
578 | - 'target_mname' => $this->target_mname, |
|
579 | - 'language' => $this->lang, |
|
580 | - 'cachetime_options' => $this->cachetime_options, |
|
581 | - 'blocks' => $blocks4assign, |
|
582 | - 'gticket_hidden' => $xoopsGTicket->getTicketHtml(__LINE__, 1800, 'myblocksadmin'), |
|
583 | - ]); |
|
576 | + 'target_mid' => $this->target_mid, |
|
577 | + 'target_dirname' => $this->target_dirname, |
|
578 | + 'target_mname' => $this->target_mname, |
|
579 | + 'language' => $this->lang, |
|
580 | + 'cachetime_options' => $this->cachetime_options, |
|
581 | + 'blocks' => $blocks4assign, |
|
582 | + 'gticket_hidden' => $xoopsGTicket->getTicketHtml(__LINE__, 1800, 'myblocksadmin'), |
|
583 | + ]); |
|
584 | 584 | |
585 | 585 | $tpl->display('db:altsys_main_myblocksadmin_list.tpl'); |
586 | 586 | } |
@@ -1274,18 +1274,18 @@ discard block |
||
1274 | 1274 | } |
1275 | 1275 | |
1276 | 1276 | $tpl->assign([ |
1277 | - 'target_dirname' => $this->target_dirname, |
|
1278 | - 'target_mname' => $this->target_mname, |
|
1279 | - 'language' => $this->lang, |
|
1280 | - 'cachetime_options' => $this->cachetime_options, |
|
1281 | - 'ctype_options' => $this->ctype_options, |
|
1282 | - 'block' => $block4assign, |
|
1283 | - 'op' => $next_op, |
|
1284 | - 'form_title' => $form_title, |
|
1285 | - 'submit_button' => $button_value, |
|
1286 | - 'common_fck_installed' => $this->checkFck(), |
|
1287 | - 'gticket_hidden' => $GLOBALS['xoopsSecurity']->getTokenHTML('myblocksadmin'), |
|
1288 | - ]); |
|
1277 | + 'target_dirname' => $this->target_dirname, |
|
1278 | + 'target_mname' => $this->target_mname, |
|
1279 | + 'language' => $this->lang, |
|
1280 | + 'cachetime_options' => $this->cachetime_options, |
|
1281 | + 'ctype_options' => $this->ctype_options, |
|
1282 | + 'block' => $block4assign, |
|
1283 | + 'op' => $next_op, |
|
1284 | + 'form_title' => $form_title, |
|
1285 | + 'submit_button' => $button_value, |
|
1286 | + 'common_fck_installed' => $this->checkFck(), |
|
1287 | + 'gticket_hidden' => $GLOBALS['xoopsSecurity']->getTokenHTML('myblocksadmin'), |
|
1288 | + ]); |
|
1289 | 1289 | |
1290 | 1290 | if (defined('XOOPS_CUBE_LEGACY')) { |
1291 | 1291 | $tpl->display('db:altsys_main_myblocksadmin_edit_4legacy.tpl'); |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | |
118 | 118 | $moduleHandler = xoops_getHandler('module'); |
119 | 119 | |
120 | - if (! empty($_GET['dirname'])) { |
|
120 | + if (!empty($_GET['dirname'])) { |
|
121 | 121 | $dirname = preg_replace('/[^0-9a-zA-Z_-]/', '', \Xmf\Request::getString('dirname', '', 'GET')); |
122 | 122 | |
123 | 123 | $target_module = $moduleHandler->getByDirname($dirname); |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | |
129 | 129 | $this->target_mid = $target_module->getVar('mid'); |
130 | 130 | |
131 | - $this->target_mname = $target_module->getVar('name') . ' ' . sprintf('(%2.2f)', $target_module->getVar('version') / 100.0); |
|
131 | + $this->target_mname = $target_module->getVar('name').' '.sprintf('(%2.2f)', $target_module->getVar('version') / 100.0); |
|
132 | 132 | |
133 | 133 | $this->target_dirname = $target_module->getVar('dirname'); |
134 | 134 | |
@@ -138,9 +138,9 @@ discard block |
||
138 | 138 | |
139 | 139 | $breadcrumbsObj = AltsysBreadcrumbs::getInstance(); |
140 | 140 | |
141 | - $breadcrumbsObj->appendPath(XOOPS_URL . '/modules/altsys/admin/index.php?mode=admin&lib=altsys&page=myblocksadmin', '_MI_ALTSYS_MENU_MYBLOCKSADMIN'); |
|
141 | + $breadcrumbsObj->appendPath(XOOPS_URL.'/modules/altsys/admin/index.php?mode=admin&lib=altsys&page=myblocksadmin', '_MI_ALTSYS_MENU_MYBLOCKSADMIN'); |
|
142 | 142 | |
143 | - $breadcrumbsObj->appendPath(XOOPS_URL . '/modules/altsys/admin/index.php?mode=admin&lib=altsys&page=myblocksadmin&dirname=' . $this->target_dirname, $this->target_mname); |
|
143 | + $breadcrumbsObj->appendPath(XOOPS_URL.'/modules/altsys/admin/index.php?mode=admin&lib=altsys&page=myblocksadmin&dirname='.$this->target_dirname, $this->target_mname); |
|
144 | 144 | } else { |
145 | 145 | // custom blocks |
146 | 146 | |
@@ -154,28 +154,28 @@ discard block |
||
154 | 154 | |
155 | 155 | $breadcrumbsObj = AltsysBreadcrumbs::getInstance(); |
156 | 156 | |
157 | - $breadcrumbsObj->appendPath(XOOPS_URL . '/modules/altsys/admin/index.php?mode=admin&lib=altsys&page=myblocksadmin', '_MI_ALTSYS_MENU_MYBLOCKSADMIN'); |
|
157 | + $breadcrumbsObj->appendPath(XOOPS_URL.'/modules/altsys/admin/index.php?mode=admin&lib=altsys&page=myblocksadmin', '_MI_ALTSYS_MENU_MYBLOCKSADMIN'); |
|
158 | 158 | |
159 | - $breadcrumbsObj->appendPath(XOOPS_URL . '/modules/altsys/admin/index.php?mode=admin&lib=altsys&page=myblocksadmin&dirname=' . $this->target_dirname, '_MI_ALTSYS_MENU_CUSTOMBLOCKS'); |
|
159 | + $breadcrumbsObj->appendPath(XOOPS_URL.'/modules/altsys/admin/index.php?mode=admin&lib=altsys&page=myblocksadmin&dirname='.$this->target_dirname, '_MI_ALTSYS_MENU_CUSTOMBLOCKS'); |
|
160 | 160 | } |
161 | 161 | } else { |
162 | 162 | // myblocksadmin as a library |
163 | 163 | |
164 | 164 | $this->target_mid = $xoopsModule->getVar('mid'); |
165 | 165 | |
166 | - $this->target_mname = $xoopsModule->getVar('name') . ' ' . sprintf('(%2.2f)', $xoopsModule->getVar('version') / 100.0); |
|
166 | + $this->target_mname = $xoopsModule->getVar('name').' '.sprintf('(%2.2f)', $xoopsModule->getVar('version') / 100.0); |
|
167 | 167 | |
168 | 168 | $this->target_dirname = $xoopsModule->getVar('dirname'); |
169 | 169 | |
170 | - $mod_url = XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname'); |
|
170 | + $mod_url = XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname'); |
|
171 | 171 | |
172 | 172 | $modinfo = $xoopsModule->getInfo(); |
173 | 173 | |
174 | 174 | $breadcrumbsObj = AltsysBreadcrumbs::getInstance(); |
175 | 175 | |
176 | - $breadcrumbsObj->appendPath($mod_url . '/' . @$modinfo['adminindex'], $this->target_mname); |
|
176 | + $breadcrumbsObj->appendPath($mod_url.'/'.@$modinfo['adminindex'], $this->target_mname); |
|
177 | 177 | |
178 | - $breadcrumbsObj->appendPath($mod_url . '/admin/index.php?mode=admin&lib=altsys&page=myblocksadmin', _MD_A_MYBLOCKSADMIN_BLOCKADMIN); |
|
178 | + $breadcrumbsObj->appendPath($mod_url.'/admin/index.php?mode=admin&lib=altsys&page=myblocksadmin', _MD_A_MYBLOCKSADMIN_BLOCKADMIN); |
|
179 | 179 | } |
180 | 180 | |
181 | 181 | // read xoops_version.php of the target |
@@ -301,7 +301,7 @@ discard block |
||
301 | 301 | } else { |
302 | 302 | // origined from the table of `block_module_link` |
303 | 303 | |
304 | - $result = $this->db->query('SELECT module_id FROM ' . $this->db->prefix('block_module_link') . " WHERE block_id='$bid'"); |
|
304 | + $result = $this->db->query('SELECT module_id FROM '.$this->db->prefix('block_module_link')." WHERE block_id='$bid'"); |
|
305 | 305 | |
306 | 306 | $selected_mids = []; |
307 | 307 | |
@@ -370,7 +370,7 @@ discard block |
||
370 | 370 | } else { |
371 | 371 | // origined from the table of `group_perm` |
372 | 372 | |
373 | - $result = $this->db->query('SELECT gperm_groupid FROM ' . $this->db->prefix('group_permission') . " WHERE gperm_itemid='$bid' AND gperm_name='block_read'"); |
|
373 | + $result = $this->db->query('SELECT gperm_groupid FROM '.$this->db->prefix('group_permission')." WHERE gperm_itemid='$bid' AND gperm_name='block_read'"); |
|
374 | 374 | |
375 | 375 | $selected_gids = []; |
376 | 376 | |
@@ -473,31 +473,31 @@ discard block |
||
473 | 473 | |
474 | 474 | return " |
475 | 475 | <div class='blockposition $scol0'> |
476 | - <input type='radio' name='sides[$bid]' value='" . XOOPS_SIDEBLOCK_LEFT . "' class='blockposition' $ssel0 onclick='document.getElementById(\"extra_side_$bid\").value=" . XOOPS_SIDEBLOCK_LEFT . ";' /> |
|
476 | + <input type='radio' name='sides[$bid]' value='".XOOPS_SIDEBLOCK_LEFT."' class='blockposition' $ssel0 onclick='document.getElementById(\"extra_side_$bid\").value=".XOOPS_SIDEBLOCK_LEFT.";' /> |
|
477 | 477 | </div> |
478 | - <div style='float:" . _GLOBAL_LEFT . ";'>-</div> |
|
478 | + <div style='float:" . _GLOBAL_LEFT.";'>-</div> |
|
479 | 479 | <div class='blockposition $scol2'> |
480 | - <input type='radio' name='sides[$bid]' value='" . XOOPS_CENTERBLOCK_LEFT . "' class='blockposition' $ssel2 onclick='document.getElementById(\"extra_side_$bid\").value=" . XOOPS_CENTERBLOCK_LEFT . ";' /> |
|
480 | + <input type='radio' name='sides[$bid]' value='".XOOPS_CENTERBLOCK_LEFT."' class='blockposition' $ssel2 onclick='document.getElementById(\"extra_side_$bid\").value=".XOOPS_CENTERBLOCK_LEFT.";' /> |
|
481 | 481 | </div> |
482 | 482 | <div class='blockposition $scol3'> |
483 | - <input type='radio' name='sides[$bid]' value='" . XOOPS_CENTERBLOCK_CENTER . "' class='blockposition' $ssel3 onclick='document.getElementById(\"extra_side_$bid\").value=" . XOOPS_CENTERBLOCK_CENTER . ";' /> |
|
483 | + <input type='radio' name='sides[$bid]' value='".XOOPS_CENTERBLOCK_CENTER."' class='blockposition' $ssel3 onclick='document.getElementById(\"extra_side_$bid\").value=".XOOPS_CENTERBLOCK_CENTER.";' /> |
|
484 | 484 | </div> |
485 | 485 | <div class='blockposition $scol4'> |
486 | - <input type='radio' name='sides[$bid]' value='" . XOOPS_CENTERBLOCK_RIGHT . "' class='blockposition' $ssel4 onclick='document.getElementById(\"extra_side_$bid\").value=" . XOOPS_CENTERBLOCK_RIGHT . ";' /> |
|
486 | + <input type='radio' name='sides[$bid]' value='".XOOPS_CENTERBLOCK_RIGHT."' class='blockposition' $ssel4 onclick='document.getElementById(\"extra_side_$bid\").value=".XOOPS_CENTERBLOCK_RIGHT.";' /> |
|
487 | 487 | </div> |
488 | - <div style='float:" . _GLOBAL_LEFT . ";'>-</div> |
|
488 | + <div style='float:" . _GLOBAL_LEFT.";'>-</div> |
|
489 | 489 | <div class='blockposition $scol1'> |
490 | - <input type='radio' name='sides[$bid]' value='" . XOOPS_SIDEBLOCK_RIGHT . "' class='blockposition' $ssel1 onclick='document.getElementById(\"extra_side_$bid\").value=" . XOOPS_SIDEBLOCK_RIGHT . ";' /> |
|
490 | + <input type='radio' name='sides[$bid]' value='".XOOPS_SIDEBLOCK_RIGHT."' class='blockposition' $ssel1 onclick='document.getElementById(\"extra_side_$bid\").value=".XOOPS_SIDEBLOCK_RIGHT.";' /> |
|
491 | 491 | </div> |
492 | 492 | <br /> |
493 | 493 | <br /> |
494 | - <div style='float:" . _GLOBAL_LEFT . ";width:50px;' class='$stextbox'> |
|
495 | - <input type='text' name='extra_sides[$bid]' value='" . $value4extra_side . "' style='width:20px;' id='extra_side_$bid' /> |
|
494 | + <div style='float:" . _GLOBAL_LEFT.";width:50px;' class='$stextbox'> |
|
495 | + <input type='text' name='extra_sides[$bid]' value='".$value4extra_side."' style='width:20px;' id='extra_side_$bid' /> |
|
496 | 496 | </div> |
497 | 497 | <div class='blockposition $scoln'> |
498 | 498 | <input type='radio' name='sides[$bid]' value='-1' class='blockposition' $sseln onclick='document.getElementById(\"extra_side_$bid\").value=-1;' /> |
499 | 499 | </div> |
500 | - <div style='float:" . _GLOBAL_LEFT . ";'>" . _NONE . '</div> |
|
500 | + <div style='float:"._GLOBAL_LEFT.";'>"._NONE.'</div> |
|
501 | 501 | '; |
502 | 502 | } |
503 | 503 | |
@@ -509,7 +509,7 @@ discard block |
||
509 | 509 | |
510 | 510 | // main query |
511 | 511 | |
512 | - $sql = 'SELECT * FROM ' . $this->db->prefix('newblocks') . " WHERE mid='$this->target_mid' ORDER BY visible DESC,side,weight"; |
|
512 | + $sql = 'SELECT * FROM '.$this->db->prefix('newblocks')." WHERE mid='$this->target_mid' ORDER BY visible DESC,side,weight"; |
|
513 | 513 | |
514 | 514 | $result = $this->db->query($sql); |
515 | 515 | |
@@ -568,7 +568,7 @@ discard block |
||
568 | 568 | |
569 | 569 | // display |
570 | 570 | |
571 | - require_once XOOPS_TRUST_PATH . '/libs/altsys/class/D3Tpl.class.php'; |
|
571 | + require_once XOOPS_TRUST_PATH.'/libs/altsys/class/D3Tpl.class.php'; |
|
572 | 572 | |
573 | 573 | $tpl = new D3Tpl(); |
574 | 574 | |
@@ -595,7 +595,7 @@ discard block |
||
595 | 595 | return []; |
596 | 596 | } |
597 | 597 | |
598 | - include XOOPS_ROOT_PATH . '/modules/' . $this->target_dirname . '/xoops_version.php'; |
|
598 | + include XOOPS_ROOT_PATH.'/modules/'.$this->target_dirname.'/xoops_version.php'; |
|
599 | 599 | |
600 | 600 | if (empty($modversion['blocks'])) { |
601 | 601 | return []; |
@@ -608,7 +608,7 @@ discard block |
||
608 | 608 | { |
609 | 609 | // query for getting blocks |
610 | 610 | |
611 | - $sql = 'SELECT * FROM ' . $this->db->prefix('newblocks') . " WHERE mid='$this->target_mid' ORDER BY visible DESC,side,weight"; |
|
611 | + $sql = 'SELECT * FROM '.$this->db->prefix('newblocks')." WHERE mid='$this->target_mid' ORDER BY visible DESC,side,weight"; |
|
612 | 612 | |
613 | 613 | $result = $this->db->query($sql); |
614 | 614 | |
@@ -645,9 +645,9 @@ discard block |
||
645 | 645 | // skip system (TODO) |
646 | 646 | |
647 | 647 | if ($this->target_mid > 1) { |
648 | - $form->addAppendix('module_admin', $this->target_mid, $this->target_mname . ' ' . _MD_A_MYBLOCKSADMIN_PERM_MADMIN); |
|
648 | + $form->addAppendix('module_admin', $this->target_mid, $this->target_mname.' '._MD_A_MYBLOCKSADMIN_PERM_MADMIN); |
|
649 | 649 | |
650 | - $form->addAppendix('module_read', $this->target_mid, $this->target_mname . ' ' . _MD_A_MYBLOCKSADMIN_PERM_MREAD); |
|
650 | + $form->addAppendix('module_read', $this->target_mid, $this->target_mname.' '._MD_A_MYBLOCKSADMIN_PERM_MREAD); |
|
651 | 651 | } |
652 | 652 | |
653 | 653 | foreach ($item_list as $item_id => $item_name) { |
@@ -719,27 +719,27 @@ discard block |
||
719 | 719 | $msg = _MD_A_MYBLOCKSADMIN_DBUPDATED; |
720 | 720 | |
721 | 721 | if (false != $block->store()) { |
722 | - include_once XOOPS_ROOT_PATH . '/class/template.php'; |
|
722 | + include_once XOOPS_ROOT_PATH.'/class/template.php'; |
|
723 | 723 | |
724 | 724 | $xoopsTpl = new XoopsTpl(); |
725 | 725 | |
726 | 726 | $xoopsTpl->xoops_setCaching(2); |
727 | 727 | |
728 | 728 | if ('' != $block->getVar('template')) { |
729 | - if ($xoopsTpl->is_cached('db:' . $block->getVar('template'))) { |
|
730 | - if (!$xoopsTpl->clear_cache('db:' . $block->getVar('template'))) { |
|
731 | - $msg = 'Unable to clear cache for block ID' . $bid; |
|
729 | + if ($xoopsTpl->is_cached('db:'.$block->getVar('template'))) { |
|
730 | + if (!$xoopsTpl->clear_cache('db:'.$block->getVar('template'))) { |
|
731 | + $msg = 'Unable to clear cache for block ID'.$bid; |
|
732 | 732 | } |
733 | 733 | } |
734 | 734 | } else { |
735 | - if ($xoopsTpl->is_cached('db:system_dummy.tpl', 'blk_' . $bid)) { |
|
736 | - if (!$xoopsTpl->clear_cache('db:system_dummy.tpl', 'blk_' . $bid)) { |
|
737 | - $msg = 'Unable to clear cache for block ID' . $bid; |
|
735 | + if ($xoopsTpl->is_cached('db:system_dummy.tpl', 'blk_'.$bid)) { |
|
736 | + if (!$xoopsTpl->clear_cache('db:system_dummy.tpl', 'blk_'.$bid)) { |
|
737 | + $msg = 'Unable to clear cache for block ID'.$bid; |
|
738 | 738 | } |
739 | 739 | } |
740 | 740 | } |
741 | 741 | } else { |
742 | - $msg = 'Failed update of block. ID:' . $bid; |
|
742 | + $msg = 'Failed update of block. ID:'.$bid; |
|
743 | 743 | } |
744 | 744 | |
745 | 745 | return $msg; |
@@ -1078,7 +1078,7 @@ discard block |
||
1078 | 1078 | do { |
1079 | 1079 | $func_num--; |
1080 | 1080 | |
1081 | - list($count) = $this->db->fetchRow($this->db->query('SELECT COUNT(*) FROM ' . $this->db->prefix('newblocks') . ' WHERE mid=' . (int)$mid . ' AND func_num=' . $func_num)); |
|
1081 | + list($count) = $this->db->fetchRow($this->db->query('SELECT COUNT(*) FROM '.$this->db->prefix('newblocks').' WHERE mid='.(int)$mid.' AND func_num='.$func_num)); |
|
1082 | 1082 | } while ($count > 0); |
1083 | 1083 | |
1084 | 1084 | return $func_num > 128 ? $func_num : 255; |
@@ -1121,7 +1121,7 @@ discard block |
||
1121 | 1121 | // permission copy |
1122 | 1122 | |
1123 | 1123 | foreach ($GLOBALS['xoopsUser']->getGroups() as $gid) { |
1124 | - $sql = 'INSERT INTO ' . $this->db->prefix('group_permission') . " (gperm_groupid, gperm_itemid, gperm_modid, gperm_name) VALUES ($gid, $bid, 1, 'block_read')"; |
|
1124 | + $sql = 'INSERT INTO '.$this->db->prefix('group_permission')." (gperm_groupid, gperm_itemid, gperm_modid, gperm_name) VALUES ($gid, $bid, 1, 'block_read')"; |
|
1125 | 1125 | |
1126 | 1126 | $this->db->query($sql); |
1127 | 1127 | } |
@@ -1259,7 +1259,7 @@ discard block |
||
1259 | 1259 | |
1260 | 1260 | // display |
1261 | 1261 | |
1262 | - require_once XOOPS_TRUST_PATH . '/libs/altsys/class/D3Tpl.class.php'; |
|
1262 | + require_once XOOPS_TRUST_PATH.'/libs/altsys/class/D3Tpl.class.php'; |
|
1263 | 1263 | |
1264 | 1264 | $tpl = new D3Tpl(); |
1265 | 1265 | |
@@ -1268,7 +1268,7 @@ discard block |
||
1268 | 1268 | if (defined('XOOPS_CUBE_LEGACY')) { |
1269 | 1269 | $tpl->assign('xoops_cube_legacy', true); |
1270 | 1270 | |
1271 | - include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
1271 | + include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; |
|
1272 | 1272 | } else { |
1273 | 1273 | $tpl->assign('xoops_cube_legacy', false); |
1274 | 1274 | } |
@@ -1300,7 +1300,7 @@ discard block |
||
1300 | 1300 | |
1301 | 1301 | public function checkFck() |
1302 | 1302 | { |
1303 | - return file_exists(XOOPS_ROOT_PATH . '/common/fckeditor/fckeditor.js'); |
|
1303 | + return file_exists(XOOPS_ROOT_PATH.'/common/fckeditor/fckeditor.js'); |
|
1304 | 1304 | } |
1305 | 1305 | |
1306 | 1306 | /** |
@@ -1373,14 +1373,14 @@ discard block |
||
1373 | 1373 | // Ticket Check |
1374 | 1374 | |
1375 | 1375 | if (!$GLOBALS['xoopsSecurity']->check(true, 'myblocksadmin')) { |
1376 | - redirect_header(XOOPS_URL . '/', 3, $GLOBALS['xoopsSecurity']->getErrors()); |
|
1376 | + redirect_header(XOOPS_URL.'/', 3, $GLOBALS['xoopsSecurity']->getErrors()); |
|
1377 | 1377 | } |
1378 | 1378 | |
1379 | 1379 | $msg = ''; |
1380 | 1380 | |
1381 | 1381 | $bid = (int)(@$_GET['bid']); |
1382 | 1382 | |
1383 | - if (! empty($_POST['preview'])) { |
|
1383 | + if (!empty($_POST['preview'])) { |
|
1384 | 1384 | // preview |
1385 | 1385 | |
1386 | 1386 | $this->preview_request = $this->fetchRequest4Block($bid); |
@@ -1407,12 +1407,12 @@ discard block |
||
1407 | 1407 | } elseif (!empty($_POST['submit'])) { |
1408 | 1408 | // update module_admin,module_read,block_read |
1409 | 1409 | |
1410 | - include dirname(__DIR__) . '/include/mygroupperm.php'; |
|
1410 | + include dirname(__DIR__).'/include/mygroupperm.php'; |
|
1411 | 1411 | |
1412 | 1412 | $msg = _MD_A_MYBLOCKSADMIN_PERMUPDATED; |
1413 | 1413 | } |
1414 | 1414 | |
1415 | - redirect_header('?mode=admin&lib=altsys&page=myblocksadmin&dirname=' . $this->target_dirname, 1, $msg); |
|
1415 | + redirect_header('?mode=admin&lib=altsys&page=myblocksadmin&dirname='.$this->target_dirname, 1, $msg); |
|
1416 | 1416 | |
1417 | 1417 | exit; |
1418 | 1418 | } |
@@ -65,8 +65,8 @@ |
||
65 | 65 | require_once XOOPS_TRUST_PATH . '/libs/altsys/class/D3Tpl.class.php'; |
66 | 66 | $tpl = new D3Tpl(); |
67 | 67 | $tpl->assign([ |
68 | - 'adminmenu' => $adminmenu, |
|
69 | - ]); |
|
68 | + 'adminmenu' => $adminmenu, |
|
69 | + ]); |
|
70 | 70 | $tpl->display('db:altsys_inc_mymenu.tpl'); |
71 | 71 | |
72 | 72 | // submenu |
@@ -52,7 +52,7 @@ |
||
52 | 52 | require_once XOOPS_TRUST_PATH . '/libs/altsys/class/D3Tpl.class.php'; |
53 | 53 | $tpl = new D3Tpl(); |
54 | 54 | $tpl->assign([ |
55 | - 'adminmenu' => $adminmenu, |
|
56 | - 'mypage' => 'mytplsadmin', |
|
57 | - ]); |
|
55 | + 'adminmenu' => $adminmenu, |
|
56 | + 'mypage' => 'mytplsadmin', |
|
57 | + ]); |
|
58 | 58 | $tpl->display('db:altsys_inc_mymenusub.tpl'); |
@@ -59,7 +59,7 @@ |
||
59 | 59 | require_once XOOPS_TRUST_PATH . '/libs/altsys/class/D3Tpl.class.php'; |
60 | 60 | $tpl = new D3Tpl(); |
61 | 61 | $tpl->assign([ |
62 | - 'adminmenu' => $adminmenu, |
|
63 | - 'mypage' => 'myblocksadmin', |
|
64 | - ]); |
|
62 | + 'adminmenu' => $adminmenu, |
|
63 | + 'mypage' => 'myblocksadmin', |
|
64 | + ]); |
|
65 | 65 | $tpl->display('db:altsys_inc_mymenusub.tpl'); |
@@ -32,7 +32,7 @@ |
||
32 | 32 | require_once XOOPS_TRUST_PATH . '/libs/altsys/class/D3Tpl.class.php'; |
33 | 33 | $tpl = new D3Tpl(); |
34 | 34 | $tpl->assign([ |
35 | - 'adminmenu' => $adminmenu, |
|
36 | - 'mypage' => 'mylangadmin', |
|
37 | - ]); |
|
35 | + 'adminmenu' => $adminmenu, |
|
36 | + 'mypage' => 'mylangadmin', |
|
37 | + ]); |
|
38 | 38 | $tpl->display('db:altsys_inc_mymenusub.tpl'); |