@@ -1,2 +1,2 @@ |
||
1 | 1 | <?php |
2 | - $mytrustdirname = 'altsys' ; |
|
2 | + $mytrustdirname = 'altsys'; |
@@ -201,41 +201,41 @@ |
||
201 | 201 | } |
202 | 202 | } |
203 | 203 | switch ($block_arr[$i]->getVar('side')) { |
204 | - case XOOPS_SIDEBLOCK_LEFT: |
|
205 | - if (!isset($show_lblock)) { |
|
206 | - $xoopsTpl->assign('xoops_showlblock', 1); |
|
207 | - $show_lblock = 1; |
|
208 | - } |
|
209 | - $xoopsTpl->append('xoops_lblocks', array('title' => $block_arr[$i]->getVar('title'), 'content' => $bcontent, 'weight' => $block_arr[$i]->getVar('weight'))); |
|
210 | - break; |
|
211 | - case XOOPS_CENTERBLOCK_LEFT: |
|
212 | - if (!isset($show_cblock)) { |
|
213 | - $xoopsTpl->assign('xoops_showcblock', 1); |
|
214 | - $show_cblock = 1; |
|
215 | - } |
|
216 | - $xoopsTpl->append('xoops_clblocks', array('title' => $block_arr[$i]->getVar('title'), 'content' => $bcontent, 'weight' => $block_arr[$i]->getVar('weight'))); |
|
217 | - break; |
|
218 | - case XOOPS_CENTERBLOCK_RIGHT: |
|
219 | - if (!isset($show_cblock)) { |
|
220 | - $xoopsTpl->assign('xoops_showcblock', 1); |
|
221 | - $show_cblock = 1; |
|
222 | - } |
|
223 | - $xoopsTpl->append('xoops_crblocks', array('title' => $block_arr[$i]->getVar('title'), 'content' => $bcontent, 'weight' => $block_arr[$i]->getVar('weight'))); |
|
224 | - break; |
|
225 | - case XOOPS_CENTERBLOCK_CENTER: |
|
226 | - if (!isset($show_cblock)) { |
|
227 | - $xoopsTpl->assign('xoops_showcblock', 1); |
|
228 | - $show_cblock = 1; |
|
229 | - } |
|
230 | - $xoopsTpl->append('xoops_ccblocks', array('title' => $block_arr[$i]->getVar('title'), 'content' => $bcontent, 'weight' => $block_arr[$i]->getVar('weight'))); |
|
231 | - break; |
|
232 | - case XOOPS_SIDEBLOCK_RIGHT: |
|
233 | - if (!isset($show_rblock)) { |
|
234 | - $xoopsTpl->assign('xoops_showrblock', 1); |
|
235 | - $show_rblock = 1; |
|
236 | - } |
|
237 | - $xoopsTpl->append('xoops_rblocks', array('title' => $block_arr[$i]->getVar('title'), 'content' => $bcontent, 'weight' => $block_arr[$i]->getVar('weight'))); |
|
238 | - break; |
|
204 | + case XOOPS_SIDEBLOCK_LEFT: |
|
205 | + if (!isset($show_lblock)) { |
|
206 | + $xoopsTpl->assign('xoops_showlblock', 1); |
|
207 | + $show_lblock = 1; |
|
208 | + } |
|
209 | + $xoopsTpl->append('xoops_lblocks', array('title' => $block_arr[$i]->getVar('title'), 'content' => $bcontent, 'weight' => $block_arr[$i]->getVar('weight'))); |
|
210 | + break; |
|
211 | + case XOOPS_CENTERBLOCK_LEFT: |
|
212 | + if (!isset($show_cblock)) { |
|
213 | + $xoopsTpl->assign('xoops_showcblock', 1); |
|
214 | + $show_cblock = 1; |
|
215 | + } |
|
216 | + $xoopsTpl->append('xoops_clblocks', array('title' => $block_arr[$i]->getVar('title'), 'content' => $bcontent, 'weight' => $block_arr[$i]->getVar('weight'))); |
|
217 | + break; |
|
218 | + case XOOPS_CENTERBLOCK_RIGHT: |
|
219 | + if (!isset($show_cblock)) { |
|
220 | + $xoopsTpl->assign('xoops_showcblock', 1); |
|
221 | + $show_cblock = 1; |
|
222 | + } |
|
223 | + $xoopsTpl->append('xoops_crblocks', array('title' => $block_arr[$i]->getVar('title'), 'content' => $bcontent, 'weight' => $block_arr[$i]->getVar('weight'))); |
|
224 | + break; |
|
225 | + case XOOPS_CENTERBLOCK_CENTER: |
|
226 | + if (!isset($show_cblock)) { |
|
227 | + $xoopsTpl->assign('xoops_showcblock', 1); |
|
228 | + $show_cblock = 1; |
|
229 | + } |
|
230 | + $xoopsTpl->append('xoops_ccblocks', array('title' => $block_arr[$i]->getVar('title'), 'content' => $bcontent, 'weight' => $block_arr[$i]->getVar('weight'))); |
|
231 | + break; |
|
232 | + case XOOPS_SIDEBLOCK_RIGHT: |
|
233 | + if (!isset($show_rblock)) { |
|
234 | + $xoopsTpl->assign('xoops_showrblock', 1); |
|
235 | + $show_rblock = 1; |
|
236 | + } |
|
237 | + $xoopsTpl->append('xoops_rblocks', array('title' => $block_arr[$i]->getVar('title'), 'content' => $bcontent, 'weight' => $block_arr[$i]->getVar('weight'))); |
|
238 | + break; |
|
239 | 239 | } |
240 | 240 | unset($bcontent); |
241 | 241 | } |
@@ -142,7 +142,7 @@ |
||
142 | 142 | $block_arr = array() ; |
143 | 143 | if (!empty($blockids)) { |
144 | 144 | $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 |
145 | - . ' AND b.bid IN (' . implode(',', $blockids) . ') ORDER BY b.weight,b.bid' ; |
|
145 | + . ' AND b.bid IN (' . implode(',', $blockids) . ') ORDER BY b.weight,b.bid' ; |
|
146 | 146 | $result = $db->query($sql); |
147 | 147 | while ($myrow = $db->fetchArray($result)) { |
148 | 148 |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | |
20 | 20 | // This is a mimic file from header.php of 2.0.16-JP |
21 | 21 | |
22 | -require_once dirname(__DIR__).'/class/AltsysBreadcrumbs.class.php' ; |
|
22 | +require_once dirname(__DIR__).'/class/AltsysBreadcrumbs.class.php'; |
|
23 | 23 | include_once XOOPS_ROOT_PATH.'/class/xoopsblock.php'; |
24 | 24 | |
25 | 25 | $xoopsOption['theme_use_smarty'] = 1; |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | //HACK by domifara |
49 | 49 | if (defined('XOOPS_CUBE_LEGACY')) { |
50 | 50 | $handler = xoops_getHandler('block'); |
51 | - $xoopsblock = $handler->create(false) ; |
|
51 | + $xoopsblock = $handler->create(false); |
|
52 | 52 | } else { |
53 | 53 | $xoopsblock = new XoopsBlock(); |
54 | 54 | } |
@@ -58,46 +58,46 @@ discard block |
||
58 | 58 | if (is_object($xoopsUser)) { |
59 | 59 | $xoopsTpl->assign(array('xoops_isuser' => true, 'xoops_userid' => $xoopsUser->getVar('uid'), 'xoops_uname' => $xoopsUser->getVar('uname'), 'xoops_isadmin' => $xoopsUserIsAdmin)); |
60 | 60 | if (is_object(@$xoopsModule)) { |
61 | - if ($xoopsModule->getVar('mid') == 1 && @$_GET['fct'] == 'preferences' && @$_GET['op'] == 'showmod' && ! empty($_GET['mod'])) { |
|
62 | - $module_handler = xoops_getHandler('module') ; |
|
63 | - $target_module = $module_handler->get((int)$_GET['mod']) ; |
|
61 | + if ($xoopsModule->getVar('mid') == 1 && @$_GET['fct'] == 'preferences' && @$_GET['op'] == 'showmod' && !empty($_GET['mod'])) { |
|
62 | + $module_handler = xoops_getHandler('module'); |
|
63 | + $target_module = $module_handler->get((int)$_GET['mod']); |
|
64 | 64 | } else { |
65 | - $target_module = $xoopsModule ; |
|
65 | + $target_module = $xoopsModule; |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | // set page title |
69 | 69 | $xoopsTpl->assign(array('xoops_pagetitle' => $target_module->getVar('name'), 'xoops_modulename' => $target_module->getVar('name'), 'xoops_dirname' => $target_module->getVar('dirname'))); |
70 | 70 | |
71 | 71 | // xoops_breadcrumbs |
72 | - $breadcrumbsObj = AltsysBreadcrumbs::getInstance() ; |
|
72 | + $breadcrumbsObj = AltsysBreadcrumbs::getInstance(); |
|
73 | 73 | if ($breadcrumbsObj->hasPaths()) { |
74 | - $xoops_breadcrumbs = $breadcrumbsObj->getXoopsBreadcrumbs() ; |
|
74 | + $xoops_breadcrumbs = $breadcrumbsObj->getXoopsBreadcrumbs(); |
|
75 | 75 | } else { |
76 | - $mod_url = XOOPS_URL.'/modules/'.$target_module->getVar('dirname') ; |
|
77 | - $mod_path = XOOPS_ROOT_PATH.'/modules/'.$target_module->getVar('dirname') ; |
|
78 | - $modinfo =& $target_module->getInfo() ; |
|
79 | - $xoops_breadcrumbs = array() ; |
|
80 | - if (! empty($modinfo['hasMain'])) { |
|
76 | + $mod_url = XOOPS_URL.'/modules/'.$target_module->getVar('dirname'); |
|
77 | + $mod_path = XOOPS_ROOT_PATH.'/modules/'.$target_module->getVar('dirname'); |
|
78 | + $modinfo = & $target_module->getInfo(); |
|
79 | + $xoops_breadcrumbs = array(); |
|
80 | + if (!empty($modinfo['hasMain'])) { |
|
81 | 81 | $xoops_breadcrumbs[] = array( |
82 | - 'url' => $mod_url.'/' , |
|
82 | + 'url' => $mod_url.'/', |
|
83 | 83 | 'name' => sprintf(_MD_A_AINTHEME_FMT_PUBLICTOP, $target_module->getVar('name')) |
84 | - ) ; |
|
84 | + ); |
|
85 | 85 | } |
86 | - if (! empty($modinfo['adminindex'])) { |
|
86 | + if (!empty($modinfo['adminindex'])) { |
|
87 | 87 | $xoops_breadcrumbs[] = array( |
88 | - 'url' => $mod_url.'/'.$modinfo['adminindex'] , |
|
88 | + 'url' => $mod_url.'/'.$modinfo['adminindex'], |
|
89 | 89 | 'name' => sprintf(_MD_A_AINTHEME_FMT_ADMINTOP, $target_module->getVar('name')) |
90 | - ) ; |
|
90 | + ); |
|
91 | 91 | } |
92 | - if (! empty($GLOBALS['altsysAdminPageTitle'])) { |
|
93 | - $xoops_breadcrumbs[] = array( 'name' => htmlspecialchars($GLOBALS['altsysAdminPageTitle'], ENT_QUOTES) ) ; |
|
94 | - } elseif (! empty($modinfo['adminmenu'])) { |
|
95 | - @include $mod_path.'/'.$modinfo['adminmenu'] ; |
|
92 | + if (!empty($GLOBALS['altsysAdminPageTitle'])) { |
|
93 | + $xoops_breadcrumbs[] = array('name' => htmlspecialchars($GLOBALS['altsysAdminPageTitle'], ENT_QUOTES)); |
|
94 | + } elseif (!empty($modinfo['adminmenu'])) { |
|
95 | + @include $mod_path.'/'.$modinfo['adminmenu']; |
|
96 | 96 | if (is_array(@$adminmenu)) { |
97 | 97 | foreach ($adminmenu as $eachmenu) { |
98 | 98 | if (strstr($_SERVER['REQUEST_URI'], $eachmenu['link'])) { |
99 | - $xoops_breadcrumbs[] = array( 'name' => $eachmenu['title'] ) ; |
|
100 | - break ; |
|
99 | + $xoops_breadcrumbs[] = array('name' => $eachmenu['title']); |
|
100 | + break; |
|
101 | 101 | } |
102 | 102 | } |
103 | 103 | } |
@@ -106,21 +106,21 @@ discard block |
||
106 | 106 | |
107 | 107 | //$block_arr =& $xoopsblock->getAllByGroupModule($xoopsUser->getGroups(), $target_module->getVar('mid'), false, XOOPS_BLOCK_VISIBLE); |
108 | 108 | } else { |
109 | - $xoopsTpl->assign(array( 'xoops_pagetitle' => _CPHOME )) ; |
|
109 | + $xoopsTpl->assign(array('xoops_pagetitle' => _CPHOME)); |
|
110 | 110 | $xoops_breadcrumbs = array( |
111 | 111 | array( |
112 | - 'url' => XOOPS_URL.'/admin.php' , |
|
112 | + 'url' => XOOPS_URL.'/admin.php', |
|
113 | 113 | 'name' => _CPHOME |
114 | 114 | ) |
115 | - ) ; |
|
115 | + ); |
|
116 | 116 | } |
117 | 117 | } else { |
118 | - exit ; |
|
118 | + exit; |
|
119 | 119 | } |
120 | 120 | |
121 | 121 | // get block_arr |
122 | - $db = XoopsDatabaseFactory::getDatabaseConnection() ; |
|
123 | - $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()) . ')'; |
|
122 | + $db = XoopsDatabaseFactory::getDatabaseConnection(); |
|
123 | + $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()).')'; |
|
124 | 124 | $result = $db->query($sql); |
125 | 125 | |
126 | 126 | $blockids = array(); |
@@ -128,30 +128,30 @@ discard block |
||
128 | 128 | $blockids[] = (int)$blockid; |
129 | 129 | } |
130 | 130 | |
131 | - global $block_arr , $i ; // for piCal :-) |
|
132 | - $block_arr = array() ; |
|
131 | + global $block_arr, $i; // for piCal :-) |
|
132 | + $block_arr = array(); |
|
133 | 133 | if (!empty($blockids)) { |
134 | - $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 |
|
135 | - . ' AND b.bid IN (' . implode(',', $blockids) . ') ORDER BY b.weight,b.bid' ; |
|
134 | + $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 |
|
135 | + . ' AND b.bid IN ('.implode(',', $blockids).') ORDER BY b.weight,b.bid'; |
|
136 | 136 | $result = $db->query($sql); |
137 | 137 | while ($myrow = $db->fetchArray($result)) { |
138 | 138 | |
139 | 139 | //HACK by domifara |
140 | 140 | if (defined('XOOPS_CUBE_LEGACY')) { |
141 | - $block = $handler->create(false) ; |
|
141 | + $block = $handler->create(false); |
|
142 | 142 | $block->assignVars($myrow); |
143 | 143 | } else { |
144 | - $block = new XoopsBlock($myrow) ; |
|
144 | + $block = new XoopsBlock($myrow); |
|
145 | 145 | } |
146 | 146 | |
147 | - $block_arr[ $myrow['bid'] ] = $block ; |
|
147 | + $block_arr[$myrow['bid']] = $block; |
|
148 | 148 | } |
149 | 149 | } |
150 | 150 | |
151 | - $adminmenublock_exists = false ; |
|
151 | + $adminmenublock_exists = false; |
|
152 | 152 | foreach (array_keys($block_arr) as $i) { |
153 | 153 | if ($block_arr[$i]->getVar('show_func') == 'b_altsys_admin_menu_show') { |
154 | - $adminmenublock_exists = true ; |
|
154 | + $adminmenublock_exists = true; |
|
155 | 155 | } |
156 | 156 | $bcachetime = $block_arr[$i]->getVar('bcachetime'); |
157 | 157 | if (empty($bcachetime)) { |
@@ -232,15 +232,15 @@ discard block |
||
232 | 232 | } |
233 | 233 | |
234 | 234 | // FALLBACK inserting admin_menu_block in admin side |
235 | - if (! $adminmenublock_exists) { |
|
236 | - require_once XOOPS_ROOT_PATH.'/modules/altsys/blocks/blocks.php' ; |
|
237 | - $admin_menu_block = array( b_altsys_admin_menu_show(array( 'altsys' )) ) ; |
|
238 | - $admin_menu_block[0]['title'] = 'Admin Menu' ; |
|
239 | - $lblocks =& $xoopsTpl->get_template_vars('xoops_lblocks') ; |
|
240 | - if (! is_array($lblocks)) { |
|
241 | - $lblocks = array() ; |
|
235 | + if (!$adminmenublock_exists) { |
|
236 | + require_once XOOPS_ROOT_PATH.'/modules/altsys/blocks/blocks.php'; |
|
237 | + $admin_menu_block = array(b_altsys_admin_menu_show(array('altsys'))); |
|
238 | + $admin_menu_block[0]['title'] = 'Admin Menu'; |
|
239 | + $lblocks = & $xoopsTpl->get_template_vars('xoops_lblocks'); |
|
240 | + if (!is_array($lblocks)) { |
|
241 | + $lblocks = array(); |
|
242 | 242 | } |
243 | - $xoopsTpl->assign('xoops_lblocks', array_merge($admin_menu_block, $lblocks)) ; |
|
243 | + $xoopsTpl->assign('xoops_lblocks', array_merge($admin_menu_block, $lblocks)); |
|
244 | 244 | } |
245 | 245 | |
246 | 246 | //unset($block_arr); |
@@ -5,20 +5,20 @@ |
||
5 | 5 | // save assigned variables for the template |
6 | 6 | function tplsadmin_save_tplsvars($file, $smarty) |
7 | 7 | { |
8 | - $tplsvars_file = 'tplsvars_' ; |
|
9 | - $tplsvars_file .= substr(md5(substr(XOOPS_DB_PASS, 0, 4)), 0, 4) . '_' ; |
|
8 | + $tplsvars_file = 'tplsvars_'; |
|
9 | + $tplsvars_file .= substr(md5(substr(XOOPS_DB_PASS, 0, 4)), 0, 4).'_'; |
|
10 | 10 | if (strncmp($file, 'db:', 3) === 0) { |
11 | - $tplsvars_file .= substr($file, 3) ; |
|
11 | + $tplsvars_file .= substr($file, 3); |
|
12 | 12 | } elseif (strncmp($file, 'file:', 5) === 0) { |
13 | - $tplsvars_file .= strtr(substr($file, 5), '/', '%') ; |
|
13 | + $tplsvars_file .= strtr(substr($file, 5), '/', '%'); |
|
14 | 14 | } else { |
15 | - $tplsvars_file .= strtr($file, '/', '%') ; |
|
15 | + $tplsvars_file .= strtr($file, '/', '%'); |
|
16 | 16 | } |
17 | 17 | |
18 | 18 | if ($fw = @fopen(XOOPS_COMPILE_PATH.'/'.$tplsvars_file, 'x')) { |
19 | - fwrite($fw, serialize($smarty->_tpl_vars)) ; |
|
20 | - fclose($fw) ; |
|
21 | - return true ; |
|
19 | + fwrite($fw, serialize($smarty->_tpl_vars)); |
|
20 | + fclose($fw); |
|
21 | + return true; |
|
22 | 22 | } |
23 | - return false ; |
|
23 | + return false; |
|
24 | 24 | } |
@@ -24,10 +24,10 @@ discard block |
||
24 | 24 | public function _blockHeader($xbeg, $xlen, $ybeg, $ylen) |
25 | 25 | { |
26 | 26 | if ($xlen != 1) { |
27 | - $xbeg .= ',' . $xlen; |
|
27 | + $xbeg .= ','.$xlen; |
|
28 | 28 | } |
29 | 29 | if ($ylen != 1) { |
30 | - $ybeg .= ',' . $ylen; |
|
30 | + $ybeg .= ','.$ylen; |
|
31 | 31 | } |
32 | 32 | return "@@ -$xbeg +$ybeg @@"; |
33 | 33 | } |
@@ -44,6 +44,6 @@ discard block |
||
44 | 44 | |
45 | 45 | public function _changed($orig, $final) |
46 | 46 | { |
47 | - return $this->_deleted($orig) . $this->_added($final); |
|
47 | + return $this->_deleted($orig).$this->_added($final); |
|
48 | 48 | } |
49 | 49 | } |
@@ -1,21 +1,21 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -require_once XOOPS_ROOT_PATH.'/modules/legacyRender/kernel/Legacy_AdminRenderSystem.class.php' ; |
|
4 | -require_once XOOPS_TRUST_PATH.'/libs/altsys/include/altsys_functions.php' ; |
|
5 | -require_once XOOPS_TRUST_PATH.'/libs/altsys/include/admin_in_theme_functions.php' ; |
|
3 | +require_once XOOPS_ROOT_PATH.'/modules/legacyRender/kernel/Legacy_AdminRenderSystem.class.php'; |
|
4 | +require_once XOOPS_TRUST_PATH.'/libs/altsys/include/altsys_functions.php'; |
|
5 | +require_once XOOPS_TRUST_PATH.'/libs/altsys/include/admin_in_theme_functions.php'; |
|
6 | 6 | |
7 | 7 | class Legacy_AltsysAdminRenderSystem extends Legacy_AdminRenderSystem |
8 | 8 | { |
9 | 9 | public function renderTheme(&$target) |
10 | 10 | { |
11 | - global $altsysModuleConfig ; |
|
11 | + global $altsysModuleConfig; |
|
12 | 12 | |
13 | 13 | if (empty($altsysModuleConfig['admin_in_theme'])) { |
14 | - parent::renderTheme($target) ; |
|
14 | + parent::renderTheme($target); |
|
15 | 15 | } else { |
16 | - $attributes = $target->getAttributes() ; |
|
17 | - altsys_admin_in_theme_in_last($attributes['xoops_contents']) ; |
|
18 | - exit ; |
|
16 | + $attributes = $target->getAttributes(); |
|
17 | + altsys_admin_in_theme_in_last($attributes['xoops_contents']); |
|
18 | + exit; |
|
19 | 19 | } |
20 | 20 | } |
21 | 21 | } |
@@ -1,4 +1,4 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -define('_MD_A_AINTHEME_FMT_PUBLICTOP', 'Public Top de %s') ; |
|
4 | -define('_MD_A_AINTHEME_FMT_ADMINTOP', 'Admin Top de %s') ; |
|
3 | +define('_MD_A_AINTHEME_FMT_PUBLICTOP', 'Public Top de %s'); |
|
4 | +define('_MD_A_AINTHEME_FMT_ADMINTOP', 'Admin Top de %s'); |
@@ -1,12 +1,12 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | if (defined('FOR_XOOPS_LANG_CHECKER')) { |
4 | - $mydirname = 'd3forum' ; |
|
4 | + $mydirname = 'd3forum'; |
|
5 | 5 | } |
6 | -$constpref = '_MB_' . strtoupper($mydirname) ; |
|
6 | +$constpref = '_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. |
@@ -1,50 +1,50 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -define('_TPLSADMIN_FMT_MSG_ENCLOSEBYCOMMENT', '%d template caches have been enclosed by tplsadmin comments') ; |
|
4 | -define('_TPLSADMIN_DT_ENCLOSEBYCOMMENT', 'Implant comments') ; |
|
5 | -define('_TPLSADMIN_DD_ENCLOSEBYCOMMENT', 'Two HTML comments will be implanted in the begging/ending point of each templates. Since this rarely breaks its design, it is recommended to professionals can read HTML itself') ; |
|
6 | -define('_TPLSADMIN_CNF_ENCLOSEBYCOMMENT', 'Compiled template caches will be enclosed by tplsadmin comments. Are you OK?') ; |
|
3 | +define('_TPLSADMIN_FMT_MSG_ENCLOSEBYCOMMENT', '%d template caches have been enclosed by tplsadmin comments'); |
|
4 | +define('_TPLSADMIN_DT_ENCLOSEBYCOMMENT', 'Implant comments'); |
|
5 | +define('_TPLSADMIN_DD_ENCLOSEBYCOMMENT', 'Two HTML comments will be implanted in the begging/ending point of each templates. Since this rarely breaks its design, it is recommended to professionals can read HTML itself'); |
|
6 | +define('_TPLSADMIN_CNF_ENCLOSEBYCOMMENT', 'Compiled template caches will be enclosed by tplsadmin comments. Are you OK?'); |
|
7 | 7 | |
8 | 8 | |
9 | -define('_TPLSADMIN_FMT_MSG_ENCLOSEBYBORDEREDDIV', '%d template caches have been enclosed by div tags') ; |
|
10 | -define('_TPLSADMIN_DT_ENCLOSEBYBORDEREDDIV', 'Implant div tags') ; |
|
11 | -define('_TPLSADMIN_DD_ENCLOSEBYBORDEREDDIV', 'Each templates will be enclosed by black-bordered div tags. A link for editing controller of tplsadmin will be implanted into each templates. Though this often cause destructions in designing, you can edit each templates the most instictively and easily.') ; |
|
12 | -define('_TPLSADMIN_CNF_ENCLOSEBYBORDEREDDIV', 'Compiled template caches will be enclosed by div tags. Are you OK?') ; |
|
9 | +define('_TPLSADMIN_FMT_MSG_ENCLOSEBYBORDEREDDIV', '%d template caches have been enclosed by div tags'); |
|
10 | +define('_TPLSADMIN_DT_ENCLOSEBYBORDEREDDIV', 'Implant div tags'); |
|
11 | +define('_TPLSADMIN_DD_ENCLOSEBYBORDEREDDIV', 'Each templates will be enclosed by black-bordered div tags. A link for editing controller of tplsadmin will be implanted into each templates. Though this often cause destructions in designing, you can edit each templates the most instictively and easily.'); |
|
12 | +define('_TPLSADMIN_CNF_ENCLOSEBYBORDEREDDIV', 'Compiled template caches will be enclosed by div tags. Are you OK?'); |
|
13 | 13 | |
14 | -define('_TPLSADMIN_FMT_MSG_HOOKSAVEVARS', '%d template caches have been implanted hooking logics to collect template varibles') ; |
|
15 | -define('_TPLSADMIN_DT_HOOKSAVEVARS', 'Implant logics to collect template variables') ; |
|
16 | -define('_TPLSADMIN_DD_HOOKSAVEVARS', 'The first step of getting the informations of template variables in your site. The template vars infos will be collected when public sides of your site is displayed. If all templates you want to edit are displayed, get template vars info by underlying buttons.') ; |
|
17 | -define('_TPLSADMIN_CNF_HOOKSAVEVARS', 'Compiled template caches will be implanted the logics to collect template variables. Are you OK?') ; |
|
14 | +define('_TPLSADMIN_FMT_MSG_HOOKSAVEVARS', '%d template caches have been implanted hooking logics to collect template varibles'); |
|
15 | +define('_TPLSADMIN_DT_HOOKSAVEVARS', 'Implant logics to collect template variables'); |
|
16 | +define('_TPLSADMIN_DD_HOOKSAVEVARS', 'The first step of getting the informations of template variables in your site. The template vars infos will be collected when public sides of your site is displayed. If all templates you want to edit are displayed, get template vars info by underlying buttons.'); |
|
17 | +define('_TPLSADMIN_CNF_HOOKSAVEVARS', 'Compiled template caches will be implanted the logics to collect template variables. Are you OK?'); |
|
18 | 18 | |
19 | -define('_TPLSADMIN_FMT_MSG_REMOVEHOOKS', '%d template caches have been normalized') ; |
|
20 | -define('_TPLSADMIN_DT_REMOVEHOOKS', 'Normalize compiled template caches') ; |
|
21 | -define('_TPLSADMIN_DD_REMOVEHOOKS', 'This removes comments/div tags/logics implanted by upper operations from each compiled template caches.') ; |
|
22 | -define('_TPLSADMIN_CNF_REMOVEHOOKS', 'Are you OK for normlizing?') ; |
|
19 | +define('_TPLSADMIN_FMT_MSG_REMOVEHOOKS', '%d template caches have been normalized'); |
|
20 | +define('_TPLSADMIN_DT_REMOVEHOOKS', 'Normalize compiled template caches'); |
|
21 | +define('_TPLSADMIN_DD_REMOVEHOOKS', 'This removes comments/div tags/logics implanted by upper operations from each compiled template caches.'); |
|
22 | +define('_TPLSADMIN_CNF_REMOVEHOOKS', 'Are you OK for normlizing?'); |
|
23 | 23 | |
24 | 24 | |
25 | -define('_TPLSADMIN_MSG_CLEARCACHE', 'Template caches are removed') ; |
|
26 | -define('_TPLSADMIN_MSG_CREATECOMPILECACHEFIRST', 'There are no compiled template caches. Create complied template caches by displaying public sides of your site, first') ; |
|
25 | +define('_TPLSADMIN_MSG_CLEARCACHE', 'Template caches are removed'); |
|
26 | +define('_TPLSADMIN_MSG_CREATECOMPILECACHEFIRST', 'There are no compiled template caches. Create complied template caches by displaying public sides of your site, first'); |
|
27 | 27 | |
28 | -define('_TPLSADMIN_CNF_DELETEOK', 'Delete OK?') ; |
|
28 | +define('_TPLSADMIN_CNF_DELETEOK', 'Delete OK?'); |
|
29 | 29 | |
30 | 30 | |
31 | -define('_TPLSADMIN_DT_GETTPLSVARSINFO_DW', 'Get info of template variables as DreamWeaver Extensions') ; |
|
32 | -define('_TPLSADMIN_DD_GETTPLSVARSINFO_DW', 'Open Macromedia Extension Manager, first.<br />Extract the download archive.<br />Execute the files which extensions are .mxi and you will meet installing dialogs.<br />The snippets for template variables of your site will be usable after restarting Dream Weaver.') ; |
|
31 | +define('_TPLSADMIN_DT_GETTPLSVARSINFO_DW', 'Get info of template variables as DreamWeaver Extensions'); |
|
32 | +define('_TPLSADMIN_DD_GETTPLSVARSINFO_DW', 'Open Macromedia Extension Manager, first.<br />Extract the download archive.<br />Execute the files which extensions are .mxi and you will meet installing dialogs.<br />The snippets for template variables of your site will be usable after restarting Dream Weaver.'); |
|
33 | 33 | |
34 | -define('_TPLSADMIN_DT_GETTEMPLATES', 'Download templates') ; |
|
35 | -define('_TPLSADMIN_DD_GETTEMPLATES', 'Select a set before pushing either button') ; |
|
34 | +define('_TPLSADMIN_DT_GETTEMPLATES', 'Download templates'); |
|
35 | +define('_TPLSADMIN_DD_GETTEMPLATES', 'Select a set before pushing either button'); |
|
36 | 36 | |
37 | -define('_TPLSADMIN_FMT_MSG_PUTTEMPLATES', '%d templates are imported.') ; |
|
38 | -define('_TPLSADMIN_DT_PUTTEMPLATES', 'Upload templates') ; |
|
39 | -define('_TPLSADMIN_DD_PUTTEMPLATES', 'Select a set you want to upload/overwrite before uploading zip/tgz archive including template files (.html). You need not to check depths of the paths in the archive.') ; |
|
37 | +define('_TPLSADMIN_FMT_MSG_PUTTEMPLATES', '%d templates are imported.'); |
|
38 | +define('_TPLSADMIN_DT_PUTTEMPLATES', 'Upload templates'); |
|
39 | +define('_TPLSADMIN_DD_PUTTEMPLATES', 'Select a set you want to upload/overwrite before uploading zip/tgz archive including template files (.html). You need not to check depths of the paths in the archive.'); |
|
40 | 40 | |
41 | 41 | |
42 | -define('_TPLSADMIN_ERR_NOTUPLOADED', 'No files are uploaded.') ; |
|
43 | -define('_TPLSADMIN_ERR_EXTENSION', 'This extension cannot be recognized.') ; |
|
44 | -define('_TPLSADMIN_ERR_INVALIDARCHIVE', 'The archive is not extractable.') ; |
|
45 | -define('_TPLSADMIN_ERR_INVALIDTPLSET', 'Invalid set name has been specified.') ; |
|
42 | +define('_TPLSADMIN_ERR_NOTUPLOADED', 'No files are uploaded.'); |
|
43 | +define('_TPLSADMIN_ERR_EXTENSION', 'This extension cannot be recognized.'); |
|
44 | +define('_TPLSADMIN_ERR_INVALIDARCHIVE', 'The archive is not extractable.'); |
|
45 | +define('_TPLSADMIN_ERR_INVALIDTPLSET', 'Invalid set name has been specified.'); |
|
46 | 46 | |
47 | -define('_TPLSADMIN_ERR_NOTPLSVARSINFO', 'There are no template vars info files.') ; |
|
47 | +define('_TPLSADMIN_ERR_NOTPLSVARSINFO', 'There are no template vars info files.'); |
|
48 | 48 | |
49 | -define('_TPLSADMIN_NUMCAP_COMPILEDCACHES', 'Compiled template caches') ; |
|
50 | -define('_TPLSADMIN_NUMCAP_TPLSVARS', 'Template vars info files') ; |
|
49 | +define('_TPLSADMIN_NUMCAP_COMPILEDCACHES', 'Compiled template caches'); |
|
50 | +define('_TPLSADMIN_NUMCAP_TPLSVARS', 'Template vars info files'); |
@@ -4,8 +4,8 @@ |
||
4 | 4 | if (defined('FOR_XOOPS_LANG_CHECKER')) { |
5 | 5 | $mydirname = 'd3forum'; |
6 | 6 | } |
7 | -$constpref = '_MB_' . strtoupper($mydirname); |
|
8 | -if (defined('FOR_XOOPS_LANG_CHECKER') || ! defined($constpref.'_LOADED')) { |
|
7 | +$constpref = '_MB_'.strtoupper($mydirname); |
|
8 | +if (defined('FOR_XOOPS_LANG_CHECKER') || !defined($constpref.'_LOADED')) { |
|
9 | 9 | define($constpref.'_LOADED', 1); |
10 | 10 | // DEFINITIONS FOR DISPLAYING BLOCKS |
11 | 11 | // SINCE ALTSYS IS A SINGLETON MODULE, THIS FILE HAS NON-SENSE. |