@@ -6,9 +6,9 @@ |
||
6 | 6 | //admin page |
7 | 7 | if ($root->mController->_mStrategy) { |
8 | 8 | if (strtolower(get_class($root->mController->_mStrategy)) == strtolower('Legacy_AdminControllerStrategy')) { |
9 | - include_once dirname(__FILE__).'/include/altsys_functions.php' ; |
|
9 | + include_once dirname(__FILE__).'/include/altsys_functions.php'; |
|
10 | 10 | // language file (modinfo.php) |
11 | - altsys_include_language_file('modinfo') ; |
|
11 | + altsys_include_language_file('modinfo'); |
|
12 | 12 | } |
13 | 13 | } |
14 | 14 | // load altsys newly gticket class for other modules |
@@ -2,30 +2,30 @@ discard block |
||
2 | 2 | |
3 | 3 | /********* mymenu only for ALTSYS ********/ |
4 | 4 | |
5 | -if (! defined('XOOPS_ROOT_PATH')) { |
|
6 | - exit ; |
|
5 | +if (!defined('XOOPS_ROOT_PATH')) { |
|
6 | + exit; |
|
7 | 7 | } |
8 | 8 | |
9 | 9 | // Skip for ORETEKI XOOPS |
10 | 10 | if (defined('XOOPS_ORETEKI')) { |
11 | - return ; |
|
11 | + return; |
|
12 | 12 | } |
13 | 13 | |
14 | -if (! isset($module) || ! is_object($module)) { |
|
15 | - $module = $xoopsModule ; |
|
16 | -} elseif (! is_object($xoopsModule)) { |
|
17 | - die('$xoopsModule is not set') ; |
|
14 | +if (!isset($module) || !is_object($module)) { |
|
15 | + $module = $xoopsModule; |
|
16 | +} elseif (!is_object($xoopsModule)) { |
|
17 | + die('$xoopsModule is not set'); |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | // language files (modinfo.php) |
21 | -altsys_include_language_file('modinfo') ; |
|
21 | +altsys_include_language_file('modinfo'); |
|
22 | 22 | |
23 | -include dirname(__FILE__).'/admin_menu.php' ; |
|
23 | +include dirname(__FILE__).'/admin_menu.php'; |
|
24 | 24 | |
25 | -$adminmenu = array_merge($adminmenu, $adminmenu4altsys) ; |
|
25 | +$adminmenu = array_merge($adminmenu, $adminmenu4altsys); |
|
26 | 26 | |
27 | -$mymenu_uri = empty($mymenu_fake_uri) ? $_SERVER['REQUEST_URI'] : $mymenu_fake_uri ; |
|
28 | -$mymenu_link = substr(strstr($mymenu_uri, '/admin/'), 1) ; |
|
27 | +$mymenu_uri = empty($mymenu_fake_uri) ? $_SERVER['REQUEST_URI'] : $mymenu_fake_uri; |
|
28 | +$mymenu_link = substr(strstr($mymenu_uri, '/admin/'), 1); |
|
29 | 29 | |
30 | 30 | // xoops_breadcrumbs |
31 | 31 | // $GLOBALS['altsysXoopsBreadcrumbs'] = array( array( 'url' => XOOPS_URL.'/modules/altsys/admin/index.php' , 'name' => $xoopsModule->getVar('name') ) ) ; |
@@ -33,19 +33,19 @@ discard block |
||
33 | 33 | // highlight |
34 | 34 | foreach (array_keys($adminmenu) as $i) { |
35 | 35 | if ($mymenu_link == $adminmenu[$i]['link']) { |
36 | - $adminmenu[$i]['selected'] = true ; |
|
37 | - $adminmenu_hilighted = true ; |
|
36 | + $adminmenu[$i]['selected'] = true; |
|
37 | + $adminmenu_hilighted = true; |
|
38 | 38 | // $GLOBALS['altsysXoopsBreadcrumbs'][] = array( 'url' => XOOPS_URL."/modules/altsys/".htmlspecialchars($adminmenu[$i]['link'],ENT_QUOTES) , 'name' => htmlspecialchars( $adminmenu[$i]['title'] , ENT_QUOTES ) ) ; |
39 | 39 | } else { |
40 | - $adminmenu[$i]['selected'] = false ; |
|
40 | + $adminmenu[$i]['selected'] = false; |
|
41 | 41 | } |
42 | 42 | } |
43 | 43 | if (empty($adminmenu_hilighted)) { |
44 | 44 | foreach (array_keys($adminmenu) as $i) { |
45 | 45 | if (stristr($mymenu_uri, $adminmenu[$i]['link'])) { |
46 | - $adminmenu[$i]['selected'] = true ; |
|
46 | + $adminmenu[$i]['selected'] = true; |
|
47 | 47 | // $GLOBALS['altsysXoopsBreadcrumbs'][] = array( 'url' => XOOPS_URL."/modules/altsys/".htmlspecialchars($adminmenu[$i]['link'],ENT_QUOTES) , 'name' => htmlspecialchars( $adminmenu[$i]['title'] , ENT_QUOTES ) ) ; |
48 | - break ; |
|
48 | + break; |
|
49 | 49 | } |
50 | 50 | } |
51 | 51 | } |
@@ -53,20 +53,20 @@ discard block |
||
53 | 53 | // link conversion from relative to absolute |
54 | 54 | foreach (array_keys($adminmenu) as $i) { |
55 | 55 | if (stristr($adminmenu[$i]['link'], XOOPS_URL) === false) { |
56 | - $adminmenu[$i]['link'] = XOOPS_URL."/modules/$mydirname/" . $adminmenu[$i]['link'] ; |
|
56 | + $adminmenu[$i]['link'] = XOOPS_URL."/modules/$mydirname/".$adminmenu[$i]['link']; |
|
57 | 57 | } |
58 | 58 | } |
59 | 59 | |
60 | 60 | // display |
61 | -require_once XOOPS_TRUST_PATH.'/libs/altsys/class/D3Tpl.class.php' ; |
|
62 | -$tpl = new D3Tpl() ; |
|
61 | +require_once XOOPS_TRUST_PATH.'/libs/altsys/class/D3Tpl.class.php'; |
|
62 | +$tpl = new D3Tpl(); |
|
63 | 63 | $tpl->assign(array( |
64 | 64 | 'adminmenu' => $adminmenu, |
65 | -)) ; |
|
66 | -$tpl->display('db:altsys_inc_mymenu.html') ; |
|
65 | +)); |
|
66 | +$tpl->display('db:altsys_inc_mymenu.html'); |
|
67 | 67 | |
68 | 68 | // submenu |
69 | -$page = preg_replace('/[^0-9a-zA-Z_-]/', '', @$_GET['page']) ; |
|
69 | +$page = preg_replace('/[^0-9a-zA-Z_-]/', '', @$_GET['page']); |
|
70 | 70 | if (file_exists(dirname(__FILE__).'/mymenusub/'.$page.'.php')) { |
71 | - include dirname(__FILE__).'/mymenusub/'.$page.'.php' ; |
|
71 | + include dirname(__FILE__).'/mymenusub/'.$page.'.php'; |
|
72 | 72 | } |
@@ -5,16 +5,16 @@ discard block |
||
5 | 5 | // GIJOE <http://www.peak.ne.jp/> // |
6 | 6 | // ------------------------------------------------------------------------- // |
7 | 7 | |
8 | -require_once dirname(__FILE__).'/class/AltsysBreadcrumbs.class.php' ; |
|
9 | -include_once dirname(__FILE__).'/include/gtickets.php' ; |
|
10 | -include_once dirname(__FILE__).'/include/altsys_functions.php' ; |
|
8 | +require_once dirname(__FILE__).'/class/AltsysBreadcrumbs.class.php'; |
|
9 | +include_once dirname(__FILE__).'/include/gtickets.php'; |
|
10 | +include_once dirname(__FILE__).'/include/altsys_functions.php'; |
|
11 | 11 | |
12 | 12 | |
13 | 13 | // this page can be called only from altsys |
14 | 14 | // if( $xoopsModule->getVar('dirname') != 'altsys' ) die( 'this page can be called only from altsys' ) ; |
15 | 15 | |
16 | 16 | // language file |
17 | -altsys_include_language_file('compilehookadmin') ; |
|
17 | +altsys_include_language_file('compilehookadmin'); |
|
18 | 18 | |
19 | 19 | // |
20 | 20 | // DEFINITIONS |
@@ -23,46 +23,46 @@ discard block |
||
23 | 23 | $compile_hooks = array( |
24 | 24 | |
25 | 25 | 'enclosebycomment' => array( |
26 | - 'pre' => '<!-- begin altsys_tplsadmin %s -->' , |
|
27 | - 'post' => '<!-- end altsys_tplsadmin %s -->' , |
|
28 | - 'success_msg' => _TPLSADMIN_FMT_MSG_ENCLOSEBYCOMMENT , |
|
29 | - 'dt' => _TPLSADMIN_DT_ENCLOSEBYCOMMENT , |
|
30 | - 'dd' => _TPLSADMIN_DD_ENCLOSEBYCOMMENT , |
|
31 | - 'conf_msg' => _TPLSADMIN_CNF_ENCLOSEBYCOMMENT , |
|
32 | - 'skip_theme' => true , |
|
33 | - ) , |
|
26 | + 'pre' => '<!-- begin altsys_tplsadmin %s -->', |
|
27 | + 'post' => '<!-- end altsys_tplsadmin %s -->', |
|
28 | + 'success_msg' => _TPLSADMIN_FMT_MSG_ENCLOSEBYCOMMENT, |
|
29 | + 'dt' => _TPLSADMIN_DT_ENCLOSEBYCOMMENT, |
|
30 | + 'dd' => _TPLSADMIN_DD_ENCLOSEBYCOMMENT, |
|
31 | + 'conf_msg' => _TPLSADMIN_CNF_ENCLOSEBYCOMMENT, |
|
32 | + 'skip_theme' => true, |
|
33 | + ), |
|
34 | 34 | |
35 | 35 | 'enclosebybordereddiv' => array( |
36 | - 'pre' => '<div class="altsys_tplsadmin_frame" style="border:1px solid black;word-wrap:break-word;">' , |
|
37 | - 'post' => '<br /><a href="'.XOOPS_URL.'/modules/altsys/admin/index.php?mode=admin&lib=altsys&page=mytplsform&tpl_file=%1$s" style="color:red;">Edit:<br />%1$s</a></div>' , |
|
38 | - 'success_msg' => _TPLSADMIN_FMT_MSG_ENCLOSEBYBORDEREDDIV , |
|
39 | - 'dt' => _TPLSADMIN_DT_ENCLOSEBYBORDEREDDIV , |
|
40 | - 'dd' => _TPLSADMIN_DD_ENCLOSEBYBORDEREDDIV , |
|
41 | - 'conf_msg' => _TPLSADMIN_CNF_ENCLOSEBYBORDEREDDIV , |
|
42 | - 'skip_theme' => true , |
|
43 | - ) , |
|
36 | + 'pre' => '<div class="altsys_tplsadmin_frame" style="border:1px solid black;word-wrap:break-word;">', |
|
37 | + 'post' => '<br /><a href="'.XOOPS_URL.'/modules/altsys/admin/index.php?mode=admin&lib=altsys&page=mytplsform&tpl_file=%1$s" style="color:red;">Edit:<br />%1$s</a></div>', |
|
38 | + 'success_msg' => _TPLSADMIN_FMT_MSG_ENCLOSEBYBORDEREDDIV, |
|
39 | + 'dt' => _TPLSADMIN_DT_ENCLOSEBYBORDEREDDIV, |
|
40 | + 'dd' => _TPLSADMIN_DD_ENCLOSEBYBORDEREDDIV, |
|
41 | + 'conf_msg' => _TPLSADMIN_CNF_ENCLOSEBYBORDEREDDIV, |
|
42 | + 'skip_theme' => true, |
|
43 | + ), |
|
44 | 44 | |
45 | 45 | 'hooksavevars' => array( |
46 | - 'pre' => '<?php include_once "'.XOOPS_TRUST_PATH.'/libs/altsys/include/compilehook.inc.php" ; tplsadmin_save_tplsvars(\'%s\',$this) ; ?>' , |
|
47 | - 'post' => '' , |
|
48 | - 'success_msg' => _TPLSADMIN_FMT_MSG_HOOKSAVEVARS , |
|
49 | - 'dt' => _TPLSADMIN_DT_HOOKSAVEVARS , |
|
50 | - 'dd' => _TPLSADMIN_DD_HOOKSAVEVARS , |
|
51 | - 'conf_msg' => _TPLSADMIN_CNF_HOOKSAVEVARS , |
|
52 | - 'skip_theme' => false , |
|
53 | - ) , |
|
46 | + 'pre' => '<?php include_once "'.XOOPS_TRUST_PATH.'/libs/altsys/include/compilehook.inc.php" ; tplsadmin_save_tplsvars(\'%s\',$this) ; ?>', |
|
47 | + 'post' => '', |
|
48 | + 'success_msg' => _TPLSADMIN_FMT_MSG_HOOKSAVEVARS, |
|
49 | + 'dt' => _TPLSADMIN_DT_HOOKSAVEVARS, |
|
50 | + 'dd' => _TPLSADMIN_DD_HOOKSAVEVARS, |
|
51 | + 'conf_msg' => _TPLSADMIN_CNF_HOOKSAVEVARS, |
|
52 | + 'skip_theme' => false, |
|
53 | + ), |
|
54 | 54 | |
55 | 55 | 'removehooks' => array( |
56 | - 'pre' => '' , |
|
57 | - 'post' => '' , |
|
58 | - 'success_msg' => _TPLSADMIN_FMT_MSG_REMOVEHOOKS , |
|
59 | - 'dt' => _TPLSADMIN_DT_REMOVEHOOKS , |
|
60 | - 'dd' => _TPLSADMIN_DD_REMOVEHOOKS , |
|
61 | - 'conf_msg' => _TPLSADMIN_CNF_REMOVEHOOKS , |
|
62 | - 'skip_theme' => false , |
|
63 | - ) , |
|
56 | + 'pre' => '', |
|
57 | + 'post' => '', |
|
58 | + 'success_msg' => _TPLSADMIN_FMT_MSG_REMOVEHOOKS, |
|
59 | + 'dt' => _TPLSADMIN_DT_REMOVEHOOKS, |
|
60 | + 'dd' => _TPLSADMIN_DD_REMOVEHOOKS, |
|
61 | + 'conf_msg' => _TPLSADMIN_CNF_REMOVEHOOKS, |
|
62 | + 'skip_theme' => false, |
|
63 | + ), |
|
64 | 64 | |
65 | -) ; |
|
65 | +); |
|
66 | 66 | |
67 | 67 | |
68 | 68 | // |
@@ -70,115 +70,115 @@ discard block |
||
70 | 70 | // |
71 | 71 | |
72 | 72 | // clearing files in templates_c/ |
73 | -if (! empty($_POST['clearcache']) || ! empty($_POST['cleartplsvars'])) { |
|
73 | +if (!empty($_POST['clearcache']) || !empty($_POST['cleartplsvars'])) { |
|
74 | 74 | // Ticket Check |
75 | - if (! $xoopsGTicket->check()) { |
|
75 | + if (!$xoopsGTicket->check()) { |
|
76 | 76 | redirect_header(XOOPS_URL.'/', 3, $xoopsGTicket->getErrors()); |
77 | 77 | } |
78 | 78 | |
79 | - if ($handler = opendir(XOOPS_COMPILE_PATH . '/')) { |
|
79 | + if ($handler = opendir(XOOPS_COMPILE_PATH.'/')) { |
|
80 | 80 | while (($file = readdir($handler)) !== false) { |
81 | - if (! empty($_POST['clearcache'])) { |
|
81 | + if (!empty($_POST['clearcache'])) { |
|
82 | 82 | // judging template cache '*.php' |
83 | 83 | if (substr($file, -4) !== '.php') { |
84 | - continue ; |
|
84 | + continue; |
|
85 | 85 | } |
86 | 86 | } else { |
87 | 87 | // judging tplsvars cache 'tplsvars_*' |
88 | 88 | if (substr($file, 0, 9) !== 'tplsvars_') { |
89 | - continue ; |
|
89 | + continue; |
|
90 | 90 | } |
91 | 91 | } |
92 | 92 | |
93 | - $file_path = XOOPS_COMPILE_PATH . '/' . $file ; |
|
94 | - @unlink($file_path) ; |
|
93 | + $file_path = XOOPS_COMPILE_PATH.'/'.$file; |
|
94 | + @unlink($file_path); |
|
95 | 95 | } |
96 | - redirect_header('?mode=admin&lib=altsys&page=compilehookadmin', 1, _TPLSADMIN_MSG_CLEARCACHE) ; |
|
97 | - exit ; |
|
96 | + redirect_header('?mode=admin&lib=altsys&page=compilehookadmin', 1, _TPLSADMIN_MSG_CLEARCACHE); |
|
97 | + exit; |
|
98 | 98 | } else { |
99 | - die('XOOPS_COMPILE_PATH cannot be opened') ; |
|
99 | + die('XOOPS_COMPILE_PATH cannot be opened'); |
|
100 | 100 | } |
101 | 101 | } |
102 | 102 | |
103 | 103 | // append hooking commands |
104 | 104 | foreach ($compile_hooks as $command => $compile_hook) { |
105 | - if (! empty($_POST[$command])) { |
|
105 | + if (!empty($_POST[$command])) { |
|
106 | 106 | // Ticket Check |
107 | - if (! $xoopsGTicket->check()) { |
|
107 | + if (!$xoopsGTicket->check()) { |
|
108 | 108 | redirect_header(XOOPS_URL.'/', 3, $xoopsGTicket->getErrors()); |
109 | 109 | } |
110 | 110 | |
111 | - if ($handler = opendir(XOOPS_COMPILE_PATH . '/')) { |
|
112 | - $file_count = 0 ; |
|
111 | + if ($handler = opendir(XOOPS_COMPILE_PATH.'/')) { |
|
112 | + $file_count = 0; |
|
113 | 113 | while (($file = readdir($handler)) !== false) { |
114 | 114 | |
115 | 115 | // skip /. /.. and hidden files |
116 | 116 | if ($file{0} == '.') { |
117 | - continue ; |
|
117 | + continue; |
|
118 | 118 | } |
119 | 119 | |
120 | 120 | // skip if the extension is not .html.php |
121 | 121 | if (substr($file, -9) != '.html.php') { |
122 | - continue ; |
|
122 | + continue; |
|
123 | 123 | } |
124 | 124 | |
125 | 125 | // skip theme.html when comment-mode or div-mode |
126 | 126 | if ($compile_hook['skip_theme'] && substr($file, -15) == '%theme.html.php') { |
127 | - $skip_mode = true ; |
|
127 | + $skip_mode = true; |
|
128 | 128 | } else { |
129 | - $skip_mode = false ; |
|
129 | + $skip_mode = false; |
|
130 | 130 | } |
131 | 131 | |
132 | - $file_path = XOOPS_COMPILE_PATH . '/' . $file ; |
|
133 | - $file_bodies = file($file_path) ; |
|
132 | + $file_path = XOOPS_COMPILE_PATH.'/'.$file; |
|
133 | + $file_bodies = file($file_path); |
|
134 | 134 | |
135 | 135 | // remove lines inserted by compilehookadmin |
136 | 136 | if (strstr($file_bodies[0], 'altsys')) { |
137 | - array_shift($file_bodies) ; |
|
137 | + array_shift($file_bodies); |
|
138 | 138 | } |
139 | - if (strstr($file_bodies[count($file_bodies)-1], 'altsys')) { |
|
140 | - array_pop($file_bodies) ; |
|
141 | - $file_bodies[count($file_bodies)-1] = rtrim($file_bodies[count($file_bodies)-1]) ; |
|
139 | + if (strstr($file_bodies[count($file_bodies) - 1], 'altsys')) { |
|
140 | + array_pop($file_bodies); |
|
141 | + $file_bodies[count($file_bodies) - 1] = rtrim($file_bodies[count($file_bodies) - 1]); |
|
142 | 142 | } |
143 | 143 | |
144 | 144 | // get the name of the source template from Smarty's comment |
145 | 145 | if (preg_match('/compiled from (\S+)/', $file_bodies[1], $regs)) { |
146 | - $tpl_name = $regs[1] ; |
|
146 | + $tpl_name = $regs[1]; |
|
147 | 147 | } else { |
148 | - $tpl_name = '__FILE__' ; |
|
148 | + $tpl_name = '__FILE__'; |
|
149 | 149 | } |
150 | 150 | |
151 | - $fw = fopen($file_path, 'w') ; |
|
151 | + $fw = fopen($file_path, 'w'); |
|
152 | 152 | |
153 | 153 | // insert "pre" command before the compiled cache |
154 | - if ($compile_hook['pre'] && ! $skip_mode) { |
|
155 | - fwrite($fw, sprintf($compile_hook['pre'], htmlspecialchars($tpl_name, ENT_QUOTES)) . "\r\n") ; |
|
154 | + if ($compile_hook['pre'] && !$skip_mode) { |
|
155 | + fwrite($fw, sprintf($compile_hook['pre'], htmlspecialchars($tpl_name, ENT_QUOTES))."\r\n"); |
|
156 | 156 | } |
157 | 157 | |
158 | 158 | // rest of template cache |
159 | 159 | foreach ($file_bodies as $line) { |
160 | - fwrite($fw, $line) ; |
|
160 | + fwrite($fw, $line); |
|
161 | 161 | } |
162 | 162 | |
163 | 163 | // insert "post" command after the compiled cache |
164 | - if ($compile_hook['post'] && ! $skip_mode) { |
|
165 | - fwrite($fw, "\r\n" . sprintf($compile_hook['post'], htmlspecialchars($tpl_name, ENT_QUOTES))) ; |
|
164 | + if ($compile_hook['post'] && !$skip_mode) { |
|
165 | + fwrite($fw, "\r\n".sprintf($compile_hook['post'], htmlspecialchars($tpl_name, ENT_QUOTES))); |
|
166 | 166 | } |
167 | 167 | |
168 | - fclose($fw) ; |
|
168 | + fclose($fw); |
|
169 | 169 | |
170 | - $file_count ++ ; |
|
170 | + $file_count++; |
|
171 | 171 | } |
172 | 172 | |
173 | 173 | if ($file_count > 0) { |
174 | - redirect_header('?mode=admin&lib=altsys&page=compilehookadmin', 3, sprintf($compile_hook['success_msg'], $file_count)) ; |
|
175 | - exit ; |
|
174 | + redirect_header('?mode=admin&lib=altsys&page=compilehookadmin', 3, sprintf($compile_hook['success_msg'], $file_count)); |
|
175 | + exit; |
|
176 | 176 | } else { |
177 | - redirect_header('?mode=admin&lib=altsys&page=compilehookadmin', 3, _TPLSADMIN_MSG_CREATECOMPILECACHEFIRST) ; |
|
178 | - exit ; |
|
177 | + redirect_header('?mode=admin&lib=altsys&page=compilehookadmin', 3, _TPLSADMIN_MSG_CREATECOMPILECACHEFIRST); |
|
178 | + exit; |
|
179 | 179 | } |
180 | 180 | } else { |
181 | - die('XOOPS_COMPILE_PATH cannot be opened') ; |
|
181 | + die('XOOPS_COMPILE_PATH cannot be opened'); |
|
182 | 182 | } |
183 | 183 | } |
184 | 184 | } |
@@ -190,25 +190,25 @@ discard block |
||
190 | 190 | // |
191 | 191 | |
192 | 192 | // count template vars & compiled caches |
193 | -$compiledcache_num = 0 ; |
|
194 | -$tplsvars_num = 0 ; |
|
195 | -if ($handler = opendir(XOOPS_COMPILE_PATH . '/')) { |
|
193 | +$compiledcache_num = 0; |
|
194 | +$tplsvars_num = 0; |
|
195 | +if ($handler = opendir(XOOPS_COMPILE_PATH.'/')) { |
|
196 | 196 | while (($file = readdir($handler)) !== false) { |
197 | 197 | if (strncmp($file, 'tplsvars_', 9) === 0) { |
198 | - $tplsvars_num ++ ; |
|
198 | + $tplsvars_num++; |
|
199 | 199 | } elseif (substr($file, -4) === '.php') { |
200 | - $compiledcache_num ++ ; |
|
200 | + $compiledcache_num++; |
|
201 | 201 | } |
202 | 202 | } |
203 | 203 | } |
204 | 204 | |
205 | 205 | // get tplsets |
206 | -$sql = "SELECT tplset_name,COUNT(distinct tpl_file) FROM ".$xoopsDB->prefix("tplset")." LEFT JOIN ".$xoopsDB->prefix("tplfile")." ON tplset_name=tpl_tplset GROUP BY tpl_tplset ORDER BY tpl_tplset='default' DESC,tpl_tplset" ; |
|
206 | +$sql = "SELECT tplset_name,COUNT(distinct tpl_file) FROM ".$xoopsDB->prefix("tplset")." LEFT JOIN ".$xoopsDB->prefix("tplfile")." ON tplset_name=tpl_tplset GROUP BY tpl_tplset ORDER BY tpl_tplset='default' DESC,tpl_tplset"; |
|
207 | 207 | $srs = $xoopsDB->query($sql); |
208 | -$tplset_options = "<option value=''>----</option>\n" ; |
|
208 | +$tplset_options = "<option value=''>----</option>\n"; |
|
209 | 209 | while (list($tplset, $tpl_count) = $xoopsDB->fetchRow($srs)) { |
210 | - $tplset4disp = htmlspecialchars($tplset, ENT_QUOTES) ; |
|
211 | - $tplset_options .= "<option value='$tplset4disp'>$tplset4disp ($tpl_count)</option>\n" ; |
|
210 | + $tplset4disp = htmlspecialchars($tplset, ENT_QUOTES); |
|
211 | + $tplset_options .= "<option value='$tplset4disp'>$tplset4disp ($tpl_count)</option>\n"; |
|
212 | 212 | } |
213 | 213 | |
214 | 214 | |
@@ -218,14 +218,14 @@ discard block |
||
218 | 218 | // FORM STAGE |
219 | 219 | // |
220 | 220 | |
221 | -xoops_cp_header() ; |
|
221 | +xoops_cp_header(); |
|
222 | 222 | |
223 | 223 | // mymenu |
224 | -altsys_include_mymenu() ; |
|
224 | +altsys_include_mymenu(); |
|
225 | 225 | |
226 | 226 | // breadcrumbs |
227 | -$breadcrumbsObj =& AltsysBreadcrumbs::getInstance() ; |
|
228 | -$breadcrumbsObj->appendPath(XOOPS_URL.'/modules/altsys/admin/index.php?mode=admin&lib=altsys&page=compilehookadmin', _MI_ALTSYS_MENU_COMPILEHOOKADMIN) ; |
|
227 | +$breadcrumbsObj = & AltsysBreadcrumbs::getInstance(); |
|
228 | +$breadcrumbsObj->appendPath(XOOPS_URL.'/modules/altsys/admin/index.php?mode=admin&lib=altsys&page=compilehookadmin', _MI_ALTSYS_MENU_COMPILEHOOKADMIN); |
|
229 | 229 | |
230 | 230 | echo " |
231 | 231 | <style> |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | </dd> |
251 | 251 | </dl> |
252 | 252 | </p> |
253 | - \n" ; |
|
253 | + \n"; |
|
254 | 254 | } |
255 | 255 | |
256 | 256 | echo " |
@@ -319,4 +319,4 @@ discard block |
||
319 | 319 | \n" ; |
320 | 320 | |
321 | 321 | |
322 | -xoops_cp_footer() ; |
|
322 | +xoops_cp_footer(); |
@@ -1,147 +1,147 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -require_once dirname(dirname(__FILE__)).'/include/altsys_functions.php' ; |
|
3 | +require_once dirname(dirname(__FILE__)).'/include/altsys_functions.php'; |
|
4 | 4 | |
5 | 5 | function b_altsys_admin_menu_show($options) |
6 | 6 | { |
7 | - global $xoopsUser ; |
|
7 | + global $xoopsUser; |
|
8 | 8 | |
9 | - $mydirname = empty($options[0]) ? 'altsys' : $options[0] ; |
|
10 | - $this_template = empty($options[1]) ? 'db:'.$mydirname.'_block_admin_menu.html' : trim($options[1]) ; |
|
9 | + $mydirname = empty($options[0]) ? 'altsys' : $options[0]; |
|
10 | + $this_template = empty($options[1]) ? 'db:'.$mydirname.'_block_admin_menu.html' : trim($options[1]); |
|
11 | 11 | |
12 | 12 | if (preg_match('/[^0-9a-zA-Z_-]/', $mydirname)) { |
13 | - die('Invalid mydirname') ; |
|
13 | + die('Invalid mydirname'); |
|
14 | 14 | } |
15 | - if (! is_object(@$xoopsUser)) { |
|
16 | - return array() ; |
|
15 | + if (!is_object(@$xoopsUser)) { |
|
16 | + return array(); |
|
17 | 17 | } |
18 | 18 | |
19 | 19 | // coretype |
20 | - $coretype = altsys_get_core_type() ; |
|
20 | + $coretype = altsys_get_core_type(); |
|
21 | 21 | |
22 | 22 | // mid_selected |
23 | 23 | if (is_object(@$GLOBALS["xoopsModule"])) { |
24 | - $mid_selected = $GLOBALS["xoopsModule"]->getVar("mid") ; |
|
24 | + $mid_selected = $GLOBALS["xoopsModule"]->getVar("mid"); |
|
25 | 25 | // for system->preferences |
26 | - if ($mid_selected == 1 && @$_GET["fct"] == "preferences" && @$_GET["op"] == "showmod" && ! empty($_GET["mod"])) { |
|
27 | - $mid_selected = intval($_GET["mod"]) ; |
|
26 | + if ($mid_selected == 1 && @$_GET["fct"] == "preferences" && @$_GET["op"] == "showmod" && !empty($_GET["mod"])) { |
|
27 | + $mid_selected = intval($_GET["mod"]); |
|
28 | 28 | } |
29 | 29 | } else { |
30 | - $mid_selected = 0 ; |
|
30 | + $mid_selected = 0; |
|
31 | 31 | } |
32 | 32 | |
33 | - $db =& XoopsDatabaseFactory::getDatabaseConnection(); |
|
34 | - (method_exists('MyTextSanitizer', 'sGetInstance') and $myts =& MyTextSanitizer::sGetInstance()) || $myts =& MyTextSanitizer::getInstance(); |
|
33 | + $db = & XoopsDatabaseFactory::getDatabaseConnection(); |
|
34 | + (method_exists('MyTextSanitizer', 'sGetInstance') and $myts = & MyTextSanitizer::sGetInstance()) || $myts = & MyTextSanitizer::getInstance(); |
|
35 | 35 | |
36 | - $module_handler =& xoops_gethandler('module'); |
|
37 | - $current_module =& $module_handler->getByDirname($mydirname); |
|
38 | - $config_handler =& xoops_gethandler('config'); |
|
39 | - $current_configs = $config_handler->getConfigList($current_module->mid()) ; |
|
40 | - $moduleperm_handler =& xoops_gethandler('groupperm'); |
|
36 | + $module_handler = & xoops_gethandler('module'); |
|
37 | + $current_module = & $module_handler->getByDirname($mydirname); |
|
38 | + $config_handler = & xoops_gethandler('config'); |
|
39 | + $current_configs = $config_handler->getConfigList($current_module->mid()); |
|
40 | + $moduleperm_handler = & xoops_gethandler('groupperm'); |
|
41 | 41 | $admin_mids = $moduleperm_handler->getItemIds('module_admin', $xoopsUser->getGroups()); |
42 | - $modules = $module_handler->getObjects(new Criteria('mid', '('.implode(',', $admin_mids) . ')', 'IN'), true) ; |
|
42 | + $modules = $module_handler->getObjects(new Criteria('mid', '('.implode(',', $admin_mids).')', 'IN'), true); |
|
43 | 43 | |
44 | 44 | $block = array( |
45 | - 'mydirname' => $mydirname , |
|
46 | - 'mod_url' => XOOPS_URL.'/modules/'.$mydirname , |
|
47 | - 'mod_imageurl' => XOOPS_URL.'/modules/'.$mydirname.'/'.$current_configs['images_dir'] , |
|
48 | - 'mod_config' => $current_configs , |
|
49 | - ) ; |
|
45 | + 'mydirname' => $mydirname, |
|
46 | + 'mod_url' => XOOPS_URL.'/modules/'.$mydirname, |
|
47 | + 'mod_imageurl' => XOOPS_URL.'/modules/'.$mydirname.'/'.$current_configs['images_dir'], |
|
48 | + 'mod_config' => $current_configs, |
|
49 | + ); |
|
50 | 50 | |
51 | 51 | foreach ($modules as $mod) { |
52 | - $mid = intval($mod->getVar('mid')) ; |
|
53 | - $dirname = $mod->getVar('dirname') ; |
|
54 | - $modinfo = $mod->getInfo() ; |
|
55 | - $submenus4assign = array() ; |
|
56 | - $adminmenu = array() ; |
|
57 | - $adminmenu4altsys = array() ; |
|
58 | - unset($adminmenu_use_altsys) ; |
|
59 | - @include XOOPS_ROOT_PATH.'/modules/'.$dirname.'/'.@$modinfo['adminmenu'] ; |
|
52 | + $mid = intval($mod->getVar('mid')); |
|
53 | + $dirname = $mod->getVar('dirname'); |
|
54 | + $modinfo = $mod->getInfo(); |
|
55 | + $submenus4assign = array(); |
|
56 | + $adminmenu = array(); |
|
57 | + $adminmenu4altsys = array(); |
|
58 | + unset($adminmenu_use_altsys); |
|
59 | + @include XOOPS_ROOT_PATH.'/modules/'.$dirname.'/'.@$modinfo['adminmenu']; |
|
60 | 60 | // from admin_menu.php etc. |
61 | - $adminmenu = array_merge($adminmenu, $adminmenu4altsys) ; |
|
61 | + $adminmenu = array_merge($adminmenu, $adminmenu4altsys); |
|
62 | 62 | foreach ($adminmenu as $sub) { |
63 | - $link = empty($sub['altsys_link']) ? $sub['link'] : $sub['altsys_link'] ; |
|
63 | + $link = empty($sub['altsys_link']) ? $sub['link'] : $sub['altsys_link']; |
|
64 | 64 | if (isset($sub['show']) && $sub['show'] === false) { |
65 | - continue ; |
|
65 | + continue; |
|
66 | 66 | } |
67 | 67 | $submenus4assign[] = array( |
68 | - 'title' => $myts->makeTboxData4Show($sub['title']) , |
|
69 | - 'url' => XOOPS_URL.'/modules/'.$dirname.'/'.htmlspecialchars($link, ENT_QUOTES) , |
|
70 | - ) ; |
|
68 | + 'title' => $myts->makeTboxData4Show($sub['title']), |
|
69 | + 'url' => XOOPS_URL.'/modules/'.$dirname.'/'.htmlspecialchars($link, ENT_QUOTES), |
|
70 | + ); |
|
71 | 71 | } |
72 | 72 | |
73 | 73 | // for modules overriding Module.class.php (eg. Analyzer for XC) |
74 | - if (empty($submenus4assign) && defined('XOOPS_CUBE_LEGACY') && ! empty($modinfo['cube_style'])) { |
|
75 | - $module_handler =& xoops_gethandler('module'); |
|
76 | - $module =& $module_handler->get($mid); |
|
77 | - $moduleObj =& Legacy_Utils::createModule($module); |
|
78 | - $modinfo['adminindex'] = $moduleObj->getAdminIndex() ; |
|
79 | - $modinfo['adminindex_absolute'] = true ; |
|
74 | + if (empty($submenus4assign) && defined('XOOPS_CUBE_LEGACY') && !empty($modinfo['cube_style'])) { |
|
75 | + $module_handler = & xoops_gethandler('module'); |
|
76 | + $module = & $module_handler->get($mid); |
|
77 | + $moduleObj = & Legacy_Utils::createModule($module); |
|
78 | + $modinfo['adminindex'] = $moduleObj->getAdminIndex(); |
|
79 | + $modinfo['adminindex_absolute'] = true; |
|
80 | 80 | foreach ($moduleObj->getAdminMenu() as $sub) { |
81 | 81 | if (@$sub['show'] === false) { |
82 | - continue ; |
|
82 | + continue; |
|
83 | 83 | } |
84 | 84 | $submenus4assign[] = array( |
85 | - 'title' => $myts->makeTboxData4Show($sub['title']) , |
|
86 | - 'url' => strncmp($sub['link'], 'http', 4) === 0 ? htmlspecialchars($sub['link'], ENT_QUOTES) : XOOPS_URL.'/modules/'.$dirname.'/'.htmlspecialchars($sub['link'], ENT_QUOTES) , |
|
87 | - ) ; |
|
85 | + 'title' => $myts->makeTboxData4Show($sub['title']), |
|
86 | + 'url' => strncmp($sub['link'], 'http', 4) === 0 ? htmlspecialchars($sub['link'], ENT_QUOTES) : XOOPS_URL.'/modules/'.$dirname.'/'.htmlspecialchars($sub['link'], ENT_QUOTES), |
|
87 | + ); |
|
88 | 88 | } |
89 | 89 | } elseif (empty($adminmenu4altsys)) { |
90 | 90 | |
91 | 91 | // add preferences |
92 | - if ($mod->getVar('hasconfig') && ! in_array($mod->getVar('dirname'), array( 'system', 'legacy' ))) { |
|
92 | + if ($mod->getVar('hasconfig') && !in_array($mod->getVar('dirname'), array('system', 'legacy'))) { |
|
93 | 93 | $submenus4assign[] = array( |
94 | - 'title' => _PREFERENCES , |
|
95 | - 'url' => htmlspecialchars(altsys_get_link2modpreferences($mid, $coretype), ENT_QUOTES) , |
|
96 | - ) ; |
|
94 | + 'title' => _PREFERENCES, |
|
95 | + 'url' => htmlspecialchars(altsys_get_link2modpreferences($mid, $coretype), ENT_QUOTES), |
|
96 | + ); |
|
97 | 97 | } |
98 | 98 | |
99 | 99 | // add help |
100 | - if (defined('XOOPS_CUBE_LEGACY') && ! empty($modinfo['help'])) { |
|
100 | + if (defined('XOOPS_CUBE_LEGACY') && !empty($modinfo['help'])) { |
|
101 | 101 | $submenus4assign[] = array( |
102 | - 'title' => _HELP , |
|
103 | - 'url' => XOOPS_URL.'/modules/legacy/admin/index.php?action=Help&dirname='.$dirname , |
|
104 | - ) ; |
|
102 | + 'title' => _HELP, |
|
103 | + 'url' => XOOPS_URL.'/modules/legacy/admin/index.php?action=Help&dirname='.$dirname, |
|
104 | + ); |
|
105 | 105 | } |
106 | 106 | } |
107 | 107 | |
108 | 108 | $module4assign = array( |
109 | - 'mid' => $mid , |
|
110 | - 'dirname' => $dirname , |
|
111 | - 'name' => $mod->getVar('name') , |
|
112 | - 'version_in_db' => sprintf('%.2f', $mod->getVar('version') / 100.0) , |
|
113 | - 'version_in_file' => sprintf('%.2f', $modinfo['version']) , |
|
114 | - 'description' => htmlspecialchars(@$modinfo['description'], ENT_QUOTES) , |
|
115 | - 'image' => htmlspecialchars($modinfo['image'], ENT_QUOTES) , |
|
116 | - 'isactive' => $mod->getVar('isactive') , |
|
117 | - 'hasmain' => $mod->getVar('hasmain') , |
|
118 | - 'hasadmin' => $mod->getVar('hasadmin') , |
|
119 | - 'hasconfig' => $mod->getVar('hasconfig') , |
|
120 | - 'weight' => $mod->getVar('weight') , |
|
121 | - 'adminindex' => htmlspecialchars(@$modinfo['adminindex'], ENT_QUOTES) , |
|
122 | - 'adminindex_absolute' => @$modinfo['adminindex_absolute'] , |
|
123 | - 'submenu' => $submenus4assign , |
|
124 | - 'selected' => $mid == $mid_selected ? true : false , |
|
125 | - 'dot_suffix' => $mid == $mid_selected ? 'selected_opened' : 'closed' , |
|
126 | - ) ; |
|
127 | - $block['modules'][] = $module4assign ; |
|
109 | + 'mid' => $mid, |
|
110 | + 'dirname' => $dirname, |
|
111 | + 'name' => $mod->getVar('name'), |
|
112 | + 'version_in_db' => sprintf('%.2f', $mod->getVar('version') / 100.0), |
|
113 | + 'version_in_file' => sprintf('%.2f', $modinfo['version']), |
|
114 | + 'description' => htmlspecialchars(@$modinfo['description'], ENT_QUOTES), |
|
115 | + 'image' => htmlspecialchars($modinfo['image'], ENT_QUOTES), |
|
116 | + 'isactive' => $mod->getVar('isactive'), |
|
117 | + 'hasmain' => $mod->getVar('hasmain'), |
|
118 | + 'hasadmin' => $mod->getVar('hasadmin'), |
|
119 | + 'hasconfig' => $mod->getVar('hasconfig'), |
|
120 | + 'weight' => $mod->getVar('weight'), |
|
121 | + 'adminindex' => htmlspecialchars(@$modinfo['adminindex'], ENT_QUOTES), |
|
122 | + 'adminindex_absolute' => @$modinfo['adminindex_absolute'], |
|
123 | + 'submenu' => $submenus4assign, |
|
124 | + 'selected' => $mid == $mid_selected ? true : false, |
|
125 | + 'dot_suffix' => $mid == $mid_selected ? 'selected_opened' : 'closed', |
|
126 | + ); |
|
127 | + $block['modules'][] = $module4assign; |
|
128 | 128 | } |
129 | 129 | |
130 | - require_once XOOPS_TRUST_PATH.'/libs/altsys/class/D3Tpl.class.php' ; |
|
131 | - $tpl = new D3Tpl() ; |
|
132 | - $tpl->assign('block', $block) ; |
|
133 | - $ret['content'] = $tpl->fetch($this_template) ; |
|
134 | - return $ret ; |
|
130 | + require_once XOOPS_TRUST_PATH.'/libs/altsys/class/D3Tpl.class.php'; |
|
131 | + $tpl = new D3Tpl(); |
|
132 | + $tpl->assign('block', $block); |
|
133 | + $ret['content'] = $tpl->fetch($this_template); |
|
134 | + return $ret; |
|
135 | 135 | } |
136 | 136 | |
137 | 137 | |
138 | 138 | function b_altsys_admin_menu_edit($options) |
139 | 139 | { |
140 | - $mydirname = empty($options[0]) ? 'd3forum' : $options[0] ; |
|
141 | - $this_template = empty($options[1]) ? 'db:'.$mydirname.'_block_admin_menu.html' : trim($options[1]) ; |
|
140 | + $mydirname = empty($options[0]) ? 'd3forum' : $options[0]; |
|
141 | + $this_template = empty($options[1]) ? 'db:'.$mydirname.'_block_admin_menu.html' : trim($options[1]); |
|
142 | 142 | |
143 | 143 | if (preg_match('/[^0-9a-zA-Z_-]/', $mydirname)) { |
144 | - die('Invalid mydirname') ; |
|
144 | + die('Invalid mydirname'); |
|
145 | 145 | } |
146 | 146 | |
147 | 147 | $form = " |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | $tplset = $xoopsConfig['template_set']; |
59 | 59 | $theme = isset($xoopsConfig['theme_set']) ? $xoopsConfig['theme_set'] : 'default'; |
60 | 60 | |
61 | - $tplfile_handler =& xoops_gethandler('tplfile'); |
|
61 | + $tplfile_handler = & xoops_gethandler('tplfile'); |
|
62 | 62 | // If we're not using the "default" template set, then get the templates from the DB |
63 | 63 | if ($tplset != "default") { |
64 | 64 | $tplobj = $tplfile_handler->find($tplset, null, null, null, $tpl_name, true); |
@@ -77,12 +77,12 @@ discard block |
||
77 | 77 | $type = $tplobj->getVar('tpl_type', 'n'); |
78 | 78 | $blockpath = ($type == 'block') ? 'blocks/' : ''; |
79 | 79 | // First, check for an overloaded version within the theme folder |
80 | - $filepath = XOOPS_THEME_PATH . "/$theme/modules/$module/$blockpath$tpl_name"; |
|
80 | + $filepath = XOOPS_THEME_PATH."/$theme/modules/$module/$blockpath$tpl_name"; |
|
81 | 81 | if (!file_exists($filepath)) { |
82 | 82 | // If no custom version exists, get the tpl from its default location |
83 | - $filepath = XOOPS_ROOT_PATH . "/modules/$module/templates/$blockpath$tpl_name"; |
|
83 | + $filepath = XOOPS_ROOT_PATH."/modules/$module/templates/$blockpath$tpl_name"; |
|
84 | 84 | if (!file_exists($filepath)) { |
85 | - return $cache[$tpl_name] = $tplobj ; |
|
85 | + return $cache[$tpl_name] = $tplobj; |
|
86 | 86 | } |
87 | 87 | } |
88 | 88 | return $cache[$tpl_name] = $filepath; |
@@ -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. |