@@ -5,16 +5,16 @@ discard block |
||
5 | 5 | // GIJOE <http://www.peak.ne.jp/> // |
6 | 6 | // ------------------------------------------------------------------------- // |
7 | 7 | |
8 | -require_once __DIR__.'/class/AltsysBreadcrumbs.class.php' ; |
|
9 | -include_once __DIR__.'/include/gtickets.php' ; |
|
10 | -include_once __DIR__.'/include/altsys_functions.php' ; |
|
8 | +require_once __DIR__.'/class/AltsysBreadcrumbs.class.php'; |
|
9 | +include_once __DIR__.'/include/gtickets.php'; |
|
10 | +include_once __DIR__.'/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 , |
|
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 | 32 | 'skip_theme' => true |
33 | - ) , |
|
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 , |
|
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 | 42 | 'skip_theme' => true |
43 | - ) , |
|
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 , |
|
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 | 52 | 'skip_theme' => false |
53 | - ) , |
|
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 , |
|
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 | 62 | 'skip_theme' => false |
63 | 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 " |
@@ -271,10 +271,10 @@ discard block |
||
271 | 271 | <p> |
272 | 272 | <dl> |
273 | 273 | <dt> |
274 | - "._TPLSADMIN_DT_GETTPLSVARSINFO_DW . ' |
|
274 | + "._TPLSADMIN_DT_GETTPLSVARSINFO_DW.' |
|
275 | 275 | </dt> |
276 | 276 | <dd> |
277 | - ' . _TPLSADMIN_DD_GETTPLSVARSINFO_DW . " |
|
277 | + ' . _TPLSADMIN_DD_GETTPLSVARSINFO_DW." |
|
278 | 278 | <br /> |
279 | 279 | <input type='submit' name='as_dw_extension_zip' value='zip' /> |
280 | 280 | <input type='submit' name='as_dw_extension_tgz' value='tar.gz' /> |
@@ -287,10 +287,10 @@ discard block |
||
287 | 287 | <p> |
288 | 288 | <dl> |
289 | 289 | <dt> |
290 | - "._TPLSADMIN_DT_GETTEMPLATES . ' |
|
290 | + "._TPLSADMIN_DT_GETTEMPLATES.' |
|
291 | 291 | </dt> |
292 | 292 | <dd> |
293 | - ' . _TPLSADMIN_DD_GETTEMPLATES . " |
|
293 | + ' . _TPLSADMIN_DD_GETTEMPLATES." |
|
294 | 294 | <br /> |
295 | 295 | <select name='tplset'>$tplset_options</select> |
296 | 296 | <input type='submit' name='download_zip' value='zip' /> |
@@ -304,10 +304,10 @@ discard block |
||
304 | 304 | <p> |
305 | 305 | <dl> |
306 | 306 | <dt> |
307 | - "._TPLSADMIN_DT_PUTTEMPLATES . ' |
|
307 | + "._TPLSADMIN_DT_PUTTEMPLATES.' |
|
308 | 308 | </dt> |
309 | 309 | <dd> |
310 | - ' . _TPLSADMIN_DD_PUTTEMPLATES . " |
|
310 | + ' . _TPLSADMIN_DD_PUTTEMPLATES." |
|
311 | 311 | <br /> |
312 | 312 | <select name='tplset'>$tplset_options</select> |
313 | 313 | <input type='file' name='tplset_archive' size='60' /> |
@@ -319,4 +319,4 @@ discard block |
||
319 | 319 | \n" ; |
320 | 320 | |
321 | 321 | |
322 | -xoops_cp_footer() ; |
|
322 | +xoops_cp_footer(); |
@@ -5,37 +5,37 @@ discard block |
||
5 | 5 | // GIJOE <http://www.peak.ne.jp/> // |
6 | 6 | // ------------------------------------------------------------------------- // |
7 | 7 | |
8 | -error_reporting(0) ; |
|
8 | +error_reporting(0); |
|
9 | 9 | |
10 | -include_once __DIR__.'/include/gtickets.php' ; |
|
11 | -include_once __DIR__.'/include/altsys_functions.php' ; |
|
10 | +include_once __DIR__.'/include/gtickets.php'; |
|
11 | +include_once __DIR__.'/include/altsys_functions.php'; |
|
12 | 12 | |
13 | 13 | |
14 | 14 | // this page can be called only from altsys |
15 | 15 | if ($xoopsModule->getVar('dirname') != 'altsys') { |
16 | - die('this page can be called only from altsys') ; |
|
16 | + die('this page can be called only from altsys'); |
|
17 | 17 | } |
18 | 18 | |
19 | 19 | |
20 | 20 | // language file |
21 | -altsys_include_language_file('compilehookadmin') ; |
|
21 | +altsys_include_language_file('compilehookadmin'); |
|
22 | 22 | |
23 | -if (! empty($_POST['download_zip'])) { |
|
24 | - require_once XOOPS_ROOT_PATH.'/class/zipdownloader.php' ; |
|
23 | +if (!empty($_POST['download_zip'])) { |
|
24 | + require_once XOOPS_ROOT_PATH.'/class/zipdownloader.php'; |
|
25 | 25 | $downloader = new XoopsZipDownloader(); |
26 | - $do_download = true ; |
|
27 | -} elseif (! empty($_POST['download_tgz'])) { |
|
28 | - require_once XOOPS_ROOT_PATH.'/class/tardownloader.php' ; |
|
26 | + $do_download = true; |
|
27 | +} elseif (!empty($_POST['download_tgz'])) { |
|
28 | + require_once XOOPS_ROOT_PATH.'/class/tardownloader.php'; |
|
29 | 29 | $downloader = new XoopsTarDownloader(); |
30 | - $do_download = true ; |
|
30 | + $do_download = true; |
|
31 | 31 | } |
32 | 32 | if (empty($do_download)) { |
33 | - exit ; |
|
33 | + exit; |
|
34 | 34 | } |
35 | 35 | |
36 | -$tplset = @$_POST['tplset'] ; |
|
37 | -if (! preg_match('/^[0-9A-Za-z_-]{1,16}$/', $tplset)) { |
|
38 | - die(_TPLSADMIN_ERR_INVALIDTPLSET) ; |
|
36 | +$tplset = @$_POST['tplset']; |
|
37 | +if (!preg_match('/^[0-9A-Za-z_-]{1,16}$/', $tplset)) { |
|
38 | + die(_TPLSADMIN_ERR_INVALIDTPLSET); |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | //fix for mb_http_output setting and for add any browsers |
@@ -45,17 +45,17 @@ discard block |
||
45 | 45 | //ob_buffer over flow |
46 | 46 | //HACK by suin & nao-pon 2012/01/06 |
47 | 47 | while (ob_get_level() > 0) { |
48 | - if (! ob_end_clean()) { |
|
48 | + if (!ob_end_clean()) { |
|
49 | 49 | break; |
50 | 50 | } |
51 | 51 | } |
52 | -$trs = $xoopsDB->query('SELECT distinct tpl_file,tpl_source,tpl_lastmodified FROM ' . $xoopsDB->prefix('tplfile') . ' NATURAL LEFT JOIN ' . $xoopsDB->prefix('tplsource') . " WHERE tpl_tplset='" . addslashes($tplset) . "' ORDER BY tpl_file") ; |
|
52 | +$trs = $xoopsDB->query('SELECT distinct tpl_file,tpl_source,tpl_lastmodified FROM '.$xoopsDB->prefix('tplfile').' NATURAL LEFT JOIN '.$xoopsDB->prefix('tplsource')." WHERE tpl_tplset='".addslashes($tplset)."' ORDER BY tpl_file"); |
|
53 | 53 | if ($xoopsDB->getRowsNum($trs) <= 0) { |
54 | - die(_TPLSADMIN_ERR_INVALIDTPLSET) ; |
|
54 | + die(_TPLSADMIN_ERR_INVALIDTPLSET); |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | while (list($tpl_file, $tpl_source, $tpl_lastmodified) = $xoopsDB->fetchRow($trs)) { |
58 | - $downloader->addFileData($tpl_source, $tplset.'/'.$tpl_file, $tpl_lastmodified) ; |
|
58 | + $downloader->addFileData($tpl_source, $tplset.'/'.$tpl_file, $tpl_lastmodified); |
|
59 | 59 | } |
60 | 60 | //bugfix by nao-pon ,echo is not necessary for downloader |
61 | -$downloader->download('template_'.$tplset, true) ; |
|
61 | +$downloader->download('template_'.$tplset, true); |
@@ -5,26 +5,26 @@ discard block |
||
5 | 5 | // GIJOE <http://www.peak.ne.jp/> // |
6 | 6 | // ------------------------------------------------------------------------- // |
7 | 7 | |
8 | -error_reporting(0) ; |
|
8 | +error_reporting(0); |
|
9 | 9 | |
10 | -include_once __DIR__.'/include/gtickets.php' ; |
|
11 | -include_once __DIR__.'/include/altsys_functions.php' ; |
|
10 | +include_once __DIR__.'/include/gtickets.php'; |
|
11 | +include_once __DIR__.'/include/altsys_functions.php'; |
|
12 | 12 | |
13 | 13 | |
14 | 14 | // this page can be called only from altsys |
15 | 15 | if ($xoopsModule->getVar('dirname') != 'altsys') { |
16 | - die('this page can be called only from altsys') ; |
|
16 | + die('this page can be called only from altsys'); |
|
17 | 17 | } |
18 | 18 | |
19 | 19 | |
20 | 20 | // language file |
21 | -altsys_include_language_file('compilehookadmin') ; |
|
21 | +altsys_include_language_file('compilehookadmin'); |
|
22 | 22 | |
23 | 23 | |
24 | -$dw_snippets_dirname = 'files' ; |
|
25 | -$site_name = @$_SERVER['HTTP_HOST'] ; |
|
26 | -if (! preg_match('/^[0-9A-Za-z._-]+$/', $site_name)) { |
|
27 | - $site_name = 'xoops_site' ; |
|
24 | +$dw_snippets_dirname = 'files'; |
|
25 | +$site_name = @$_SERVER['HTTP_HOST']; |
|
26 | +if (!preg_match('/^[0-9A-Za-z._-]+$/', $site_name)) { |
|
27 | + $site_name = 'xoops_site'; |
|
28 | 28 | } |
29 | 29 | |
30 | 30 | |
@@ -38,36 +38,36 @@ discard block |
||
38 | 38 | case 'array' : |
39 | 39 | foreach ($var_value as $key => $val) { |
40 | 40 | if (gettype($key) == 'integer') { |
41 | - $GLOBALS[ $sum_array_name ][ $var_name ] = '(array)' ; |
|
42 | - continue ; |
|
41 | + $GLOBALS[$sum_array_name][$var_name] = '(array)'; |
|
42 | + continue; |
|
43 | 43 | } |
44 | - convert_array2info_recursive($var_name.'.'.$key, $val, $sum_array_name) ; |
|
44 | + convert_array2info_recursive($var_name.'.'.$key, $val, $sum_array_name); |
|
45 | 45 | } |
46 | - return ; |
|
46 | + return; |
|
47 | 47 | case 'string' : |
48 | - $GLOBALS[ $sum_array_name ][ $var_name ] = $var_value ; |
|
49 | - return ; |
|
48 | + $GLOBALS[$sum_array_name][$var_name] = $var_value; |
|
49 | + return; |
|
50 | 50 | case 'boolean' : |
51 | 51 | case 'integer' : |
52 | 52 | case 'float' : |
53 | 53 | case 'double' : |
54 | - $GLOBALS[ $sum_array_name ][ $var_name ] = (string)$var_value ; |
|
55 | - return ; |
|
54 | + $GLOBALS[$sum_array_name][$var_name] = (string)$var_value; |
|
55 | + return; |
|
56 | 56 | case 'null' : |
57 | - $GLOBALS[ $sum_array_name ][ $var_name ] = '(null)' ; |
|
58 | - return ; |
|
57 | + $GLOBALS[$sum_array_name][$var_name] = '(null)'; |
|
58 | + return; |
|
59 | 59 | case 'object' : |
60 | - $GLOBALS[ $sum_array_name ][ $var_name ] = '(object)' ; |
|
61 | - return ; |
|
60 | + $GLOBALS[$sum_array_name][$var_name] = '(object)'; |
|
61 | + return; |
|
62 | 62 | default : |
63 | - return ; |
|
63 | + return; |
|
64 | 64 | } |
65 | 65 | } |
66 | 66 | |
67 | 67 | |
68 | 68 | function get_mxi_body($mxi_name, $file_entries) |
69 | 69 | { |
70 | - global $site_name ; |
|
70 | + global $site_name; |
|
71 | 71 | |
72 | 72 | return '<macromedia-extension name="XOOPS-'.$site_name.' '.$mxi_name.'" version="1.0" type="Suite" requires-restart="true"> |
73 | 73 | <products> |
@@ -108,44 +108,44 @@ discard block |
||
108 | 108 | // TOTAL STAGE |
109 | 109 | // |
110 | 110 | |
111 | -$tplsvarsinfo_mod_tpl = array() ; |
|
112 | -$tplsvarsinfo_total = array() ; |
|
111 | +$tplsvarsinfo_mod_tpl = array(); |
|
112 | +$tplsvarsinfo_total = array(); |
|
113 | 113 | |
114 | -if ($handler = opendir(XOOPS_COMPILE_PATH . '/')) { |
|
114 | +if ($handler = opendir(XOOPS_COMPILE_PATH.'/')) { |
|
115 | 115 | while (($file = readdir($handler)) !== false) { |
116 | 116 | |
117 | 117 | // skip files other than tplsvars_* files |
118 | 118 | if (substr($file, 0, 9) !== 'tplsvars_') { |
119 | - continue ; |
|
119 | + continue; |
|
120 | 120 | } |
121 | 121 | |
122 | 122 | // 'tplsvars_'.(randomized 4byte).'_'.(tpl_file) |
123 | - $tpl_name = substr($file, 14) ; |
|
124 | - if (! preg_match('/^[%0-9A-Za-z._-]+$/', $tpl_name)) { |
|
125 | - continue ; |
|
123 | + $tpl_name = substr($file, 14); |
|
124 | + if (!preg_match('/^[%0-9A-Za-z._-]+$/', $tpl_name)) { |
|
125 | + continue; |
|
126 | 126 | } |
127 | - $file_path = XOOPS_COMPILE_PATH . '/' . $file ; |
|
128 | - $file_body = implode('', file($file_path)) ; |
|
129 | - $tplsvars = @unserialize($file_body) ; |
|
130 | - if (! is_array($tplsvars)) { |
|
131 | - $tplsvars = array() ; |
|
127 | + $file_path = XOOPS_COMPILE_PATH.'/'.$file; |
|
128 | + $file_body = implode('', file($file_path)); |
|
129 | + $tplsvars = @unserialize($file_body); |
|
130 | + if (!is_array($tplsvars)) { |
|
131 | + $tplsvars = array(); |
|
132 | 132 | } |
133 | - $GLOBALS['tplsvarsinfo'] = array() ; |
|
134 | - convert_array2info_recursive('', $tplsvars, 'tplsvarsinfo') ; |
|
133 | + $GLOBALS['tplsvarsinfo'] = array(); |
|
134 | + convert_array2info_recursive('', $tplsvars, 'tplsvarsinfo'); |
|
135 | 135 | if (strstr($tpl_name, '%')) { |
136 | - $mod_name = 'theme_etc' ; |
|
136 | + $mod_name = 'theme_etc'; |
|
137 | 137 | } else { |
138 | - list($mod_name) = explode('_', $tpl_name) ; |
|
138 | + list($mod_name) = explode('_', $tpl_name); |
|
139 | 139 | } |
140 | - $tplsvarsinfo_mod_tpl[$mod_name][$tpl_name] = $tplsvarsinfo ; |
|
141 | - $tplsvarsinfo_total = array_merge($tplsvarsinfo_total, $tplsvarsinfo) ; |
|
140 | + $tplsvarsinfo_mod_tpl[$mod_name][$tpl_name] = $tplsvarsinfo; |
|
141 | + $tplsvarsinfo_total = array_merge($tplsvarsinfo_total, $tplsvarsinfo); |
|
142 | 142 | } |
143 | 143 | } else { |
144 | - die('XOOPS_COMPILE_PATH cannot be opened') ; |
|
144 | + die('XOOPS_COMPILE_PATH cannot be opened'); |
|
145 | 145 | } |
146 | 146 | |
147 | 147 | if (empty($tplsvarsinfo_total)) { |
148 | - die(_TPLSADMIN_ERR_NOTPLSVARSINFO) ; |
|
148 | + die(_TPLSADMIN_ERR_NOTPLSVARSINFO); |
|
149 | 149 | } |
150 | 150 | |
151 | 151 | // |
@@ -162,17 +162,17 @@ discard block |
||
162 | 162 | </snippet>' ; |
163 | 163 | |
164 | 164 | |
165 | -if (! empty($_POST['as_dw_extension_zip'])) { |
|
166 | - require_once XOOPS_ROOT_PATH.'/class/zipdownloader.php' ; |
|
165 | +if (!empty($_POST['as_dw_extension_zip'])) { |
|
166 | + require_once XOOPS_ROOT_PATH.'/class/zipdownloader.php'; |
|
167 | 167 | $downloader = new XoopsZipDownloader(); |
168 | - $do_download = true ; |
|
169 | -} elseif (! empty($_POST['as_dw_extension_tgz'])) { |
|
170 | - require_once XOOPS_ROOT_PATH.'/class/tardownloader.php' ; |
|
168 | + $do_download = true; |
|
169 | +} elseif (!empty($_POST['as_dw_extension_tgz'])) { |
|
170 | + require_once XOOPS_ROOT_PATH.'/class/tardownloader.php'; |
|
171 | 171 | $downloader = new XoopsTarDownloader(); |
172 | - $do_download = true ; |
|
172 | + $do_download = true; |
|
173 | 173 | } |
174 | 174 | |
175 | -if (! empty($do_download)) { |
|
175 | +if (!empty($do_download)) { |
|
176 | 176 | //fix for mb_http_output setting and for add any browsers |
177 | 177 | if (function_exists('mb_http_output')) { |
178 | 178 | mb_http_output('pass'); |
@@ -180,33 +180,33 @@ discard block |
||
180 | 180 | //ob_buffer over flow |
181 | 181 | //HACK by suin & nao-pon 2012/01/06 |
182 | 182 | while (ob_get_level() > 0) { |
183 | - if (! ob_end_clean()) { |
|
183 | + if (!ob_end_clean()) { |
|
184 | 184 | break; |
185 | 185 | } |
186 | 186 | } |
187 | 187 | // make files for each tplsvars |
188 | 188 | foreach ($tplsvarsinfo_total as $key => $val) { |
189 | - $name = substr($key, 1) ; |
|
190 | - $description = htmlspecialchars(xoops_utf8_encode(xoops_substr($val, 0, 256)), ENT_QUOTES) ; |
|
191 | - $snippet_body = sprintf($snippet_format, $name, $description) ; |
|
189 | + $name = substr($key, 1); |
|
190 | + $description = htmlspecialchars(xoops_utf8_encode(xoops_substr($val, 0, 256)), ENT_QUOTES); |
|
191 | + $snippet_body = sprintf($snippet_format, $name, $description); |
|
192 | 192 | |
193 | - $file_name = strtr($key, '.', '_') . '.csn' ; |
|
194 | - $downloader->addFileData($snippet_body, $dw_snippets_dirname.'/'.$file_name) ; |
|
193 | + $file_name = strtr($key, '.', '_').'.csn'; |
|
194 | + $downloader->addFileData($snippet_body, $dw_snippets_dirname.'/'.$file_name); |
|
195 | 195 | } |
196 | 196 | |
197 | 197 | // make a mxi file per module |
198 | 198 | foreach ($tplsvarsinfo_mod_tpl as $mod_name => $tplsvarsinfo_tpl) { |
199 | - $file_entries = '' ; |
|
199 | + $file_entries = ''; |
|
200 | 200 | foreach ($tplsvarsinfo_tpl as $tpl_name => $tplsvarsinfo) { |
201 | 201 | foreach ($tplsvarsinfo as $key => $val) { |
202 | - $name = substr($key, 1) ; |
|
203 | - $file_name = strtr($key, '.', '_') . '.csn' ; |
|
204 | - $file_entries .= "\t\t".'<file name="'.$dw_snippets_dirname.'/'.$file_name.'" destination="$Dreamweaver/Configuration/Snippets/XOOPS-'.$site_name.'/'.$tpl_name.'" />'."\n" ; |
|
202 | + $name = substr($key, 1); |
|
203 | + $file_name = strtr($key, '.', '_').'.csn'; |
|
204 | + $file_entries .= "\t\t".'<file name="'.$dw_snippets_dirname.'/'.$file_name.'" destination="$Dreamweaver/Configuration/Snippets/XOOPS-'.$site_name.'/'.$tpl_name.'" />'."\n"; |
|
205 | 205 | } |
206 | 206 | } |
207 | - $mxi_body = get_mxi_body($mod_name, $file_entries) ; |
|
208 | - $downloader->addFileData($mxi_body, $mod_name.'.mxi') ; |
|
207 | + $mxi_body = get_mxi_body($mod_name, $file_entries); |
|
208 | + $downloader->addFileData($mxi_body, $mod_name.'.mxi'); |
|
209 | 209 | } |
210 | 210 | //bugfix by nao-pon ,echo is not necessary for downloader |
211 | - $downloader->download('tplsvarsinfo', true) ; |
|
211 | + $downloader->download('tplsvarsinfo', true); |
|
212 | 212 | } |
@@ -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. |
@@ -14,25 +14,25 @@ |
||
14 | 14 | define('_MYTPLSADMIN_CUSTOMTEMPLATE', 'الگوی شخصی'); |
15 | 15 | define('_MYTPLSADMIN_CREATENEWCUSTOMTEMPLATE', 'یک الگوی شخصی بسازید'); |
16 | 16 | |
17 | -define('_MYTPLSADMIN_CREATE_NEW_TPLSET', 'ساخت مجموعهی جدید') ; |
|
18 | -define('_MYTPLSADMIN_CAPTION_BASE', 'پایگاه') ; |
|
19 | -define('_MYTPLSADMIN_CAPTION_SETNAME', 'نام') ; |
|
20 | -define('_MYTPLSADMIN_OPT_BLANKSET', '(فاصله)') ; |
|
21 | -define('_MYTPLSADMIN_CAPTION_COPYTO', 'بسوی') ; |
|
22 | -define('_MYTPLSADMIN_BTN_COPY', 'کپی') ; |
|
23 | -define('_MYTPLSADMIN_TITLE_CHECKALL', 'خاموش /روشن کردن تمام چک باکسها در این خط') ; |
|
24 | -define('_MYTPLSADMIN_CNF_DELETE_SELECTED_TEMPLATES', 'تمام الگوهای انتخاب شده در این دسته پاک خواهند شد. آیا شما موافقید؟') ; |
|
25 | -define('_MYTPLSADMIN_CNF_COPY_SELECTED_TEMPLATES', 'تمام الگوهای انتخاب شده در این دسته در در دسته ی انتخاب شده کپی/بازچسبانی میشوند. آیا شما موافقید؟') ; |
|
26 | -define('_MYTPLSADMIN_TH_NAME', 'نام الگو') ; |
|
27 | -define('_MYTPLSADMIN_TH_TYPE', 'نوع') ; |
|
28 | -define('_MYTPLSADMIN_TH_FILE', 'پروندهی پایگاه') ; |
|
29 | -define('_MYTPLSADMIN_ERR_NOTPLFILE', 'هیچ الگوی چک نشده') ; |
|
30 | -define('_MYTPLSADMIN_ERR_INVALIDTPLSET', 'جایگاه مقصد باید دقیقا مانند جایگاه پرونده درون بسته باشد در غیر این صورت هیچ الگویی مجاز شناخته نخواهد شد') ; |
|
31 | -define('_MYTPLSADMIN_ERR_CANTREMOVEDEFAULT', 'شما میتوانید الگو پیش فرض را پاک کنید.') ; |
|
32 | -define('_MYTPLSADMIN_ERR_DUPLICATEDSETNAME', 'نام مجموعه قبلا وجود داشته.') ; |
|
33 | -define('_MYTPLSADMIN_ERR_INVALIDSETNAME', 'خطا: نام مجموعه پیشتر تعیین شده است.') ; |
|
17 | +define('_MYTPLSADMIN_CREATE_NEW_TPLSET', 'ساخت مجموعهی جدید'); |
|
18 | +define('_MYTPLSADMIN_CAPTION_BASE', 'پایگاه'); |
|
19 | +define('_MYTPLSADMIN_CAPTION_SETNAME', 'نام'); |
|
20 | +define('_MYTPLSADMIN_OPT_BLANKSET', '(فاصله)'); |
|
21 | +define('_MYTPLSADMIN_CAPTION_COPYTO', 'بسوی'); |
|
22 | +define('_MYTPLSADMIN_BTN_COPY', 'کپی'); |
|
23 | +define('_MYTPLSADMIN_TITLE_CHECKALL', 'خاموش /روشن کردن تمام چک باکسها در این خط'); |
|
24 | +define('_MYTPLSADMIN_CNF_DELETE_SELECTED_TEMPLATES', 'تمام الگوهای انتخاب شده در این دسته پاک خواهند شد. آیا شما موافقید؟'); |
|
25 | +define('_MYTPLSADMIN_CNF_COPY_SELECTED_TEMPLATES', 'تمام الگوهای انتخاب شده در این دسته در در دسته ی انتخاب شده کپی/بازچسبانی میشوند. آیا شما موافقید؟'); |
|
26 | +define('_MYTPLSADMIN_TH_NAME', 'نام الگو'); |
|
27 | +define('_MYTPLSADMIN_TH_TYPE', 'نوع'); |
|
28 | +define('_MYTPLSADMIN_TH_FILE', 'پروندهی پایگاه'); |
|
29 | +define('_MYTPLSADMIN_ERR_NOTPLFILE', 'هیچ الگوی چک نشده'); |
|
30 | +define('_MYTPLSADMIN_ERR_INVALIDTPLSET', 'جایگاه مقصد باید دقیقا مانند جایگاه پرونده درون بسته باشد در غیر این صورت هیچ الگویی مجاز شناخته نخواهد شد'); |
|
31 | +define('_MYTPLSADMIN_ERR_CANTREMOVEDEFAULT', 'شما میتوانید الگو پیش فرض را پاک کنید.'); |
|
32 | +define('_MYTPLSADMIN_ERR_DUPLICATEDSETNAME', 'نام مجموعه قبلا وجود داشته.'); |
|
33 | +define('_MYTPLSADMIN_ERR_INVALIDSETNAME', 'خطا: نام مجموعه پیشتر تعیین شده است.'); |
|
34 | 34 | |
35 | -define('_MYTPLSADMIN_H3_MODULE', 'ماژول') ; |
|
36 | -define('_MYTPLSADMIN_BTN_NEWTPLSET', 'ساختن') ; |
|
35 | +define('_MYTPLSADMIN_H3_MODULE', 'ماژول'); |
|
36 | +define('_MYTPLSADMIN_BTN_NEWTPLSET', 'ساختن'); |
|
37 | 37 | |
38 | -define('_MYTPLSADMIN_DBUPDATED', 'الگوها با موفقیت به روز شدند') ; |
|
38 | +define('_MYTPLSADMIN_DBUPDATED', 'الگوها با موفقیت به روز شدند'); |
@@ -1,3 +1,3 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -define('_MD_A_DBUPDATED', 'La base de datos se actualizó con éxito') ; |
|
3 | +define('_MD_A_DBUPDATED', 'La base de datos se actualizó con éxito'); |
@@ -4,51 +4,51 @@ |
||
4 | 4 | // Appended by Xoops Language Checker -GIJOE- in 2008-12-13 18:32:09 |
5 | 5 | define('_MD_A_MYBLOCKSADMIN_NOTICE4COMMONFCK', 'If you want to use WYSIWYG editor, install common/fckeditor'); |
6 | 6 | |
7 | -define('_MD_A_MYBLOCKSADMIN_PERMUPDATED', 'Los permisos se actualizaron con éxito') ; |
|
8 | -define('_MD_A_MYBLOCKSADMIN_BLOCKADMIN', 'Administración de Bloques') ; |
|
9 | -define('_MD_A_MYBLOCKSADMIN_NAME', 'Nombre') ; |
|
10 | -define('_MD_A_MYBLOCKSADMIN_TITLE', 'Título') ; |
|
11 | -define('_MD_A_MYBLOCKSADMIN_SIDE', 'Tipo de bloque') ; |
|
12 | -define('_MD_A_MYBLOCKSADMIN_SBLEFT', 'o --- - izquierdo') ; |
|
13 | -define('_MD_A_MYBLOCKSADMIN_SBRIGHT', '- --- o derecho') ; |
|
14 | -define('_MD_A_MYBLOCKSADMIN_CBLEFT', '- o-- - central-izquierdo') ; |
|
15 | -define('_MD_A_MYBLOCKSADMIN_CBRIGHT', '- --o - central-derecho') ; |
|
16 | -define('_MD_A_MYBLOCKSADMIN_CBCENTER', '- -o- - central') ; |
|
17 | -define('_MD_A_MYBLOCKSADMIN_VISIBLE', 'Visible') ; |
|
18 | -define('_MD_A_MYBLOCKSADMIN_WEIGHT', 'Ubicación') ; |
|
19 | -define('_MD_A_MYBLOCKSADMIN_VISIBLEIN', 'Visible en') ; |
|
20 | -define('_MD_A_MYBLOCKSADMIN_CONTENT', 'Contenido') ; |
|
21 | -define('_MD_A_MYBLOCKSADMIN_CAPT_USABLETAGS', 'Etiquetas admitidas') ; |
|
22 | -define('_MD_A_MYBLOCKSADMIN_FMT_TAGRULE', '%s será reemplazada en %s en esta vista') ; |
|
23 | -define('_MD_A_MYBLOCKSADMIN_CTYPE', 'Tipo de contenido') ; |
|
24 | -define('_MD_A_MYBLOCKSADMIN_EDITTPL', 'Modificar la plantilla') ; |
|
25 | -define('_MD_A_MYBLOCKSADMIN_OPTIONS', 'Opciones de los Bloques') ; |
|
26 | -define('_MD_A_MYBLOCKSADMIN_BCACHETIME', 'Cache') ; |
|
27 | -define('_MD_A_MYBLOCKSADMIN_ACTION', 'Acción') ; |
|
28 | -define('_MD_A_MYBLOCKSADMIN_DESCRIPTION', 'Descripción') ; |
|
29 | -define('_MD_A_MYBLOCKSADMIN_TOPPAGE', 'Página de inicio') ; |
|
30 | -define('_MD_A_MYBLOCKSADMIN_ALLPAGES', 'En todas') ; |
|
31 | -define('_MD_A_MYBLOCKSADMIN_PERMFORM', 'Permisos') ; |
|
32 | -define('_MD_A_MYBLOCKSADMIN_PERM_MADMIN', 'permiso de administración del módulo') ; |
|
33 | -define('_MD_A_MYBLOCKSADMIN_PERM_MREAD', 'permiso de lectura del módulo') ; |
|
34 | -define('_MD_A_MYBLOCKSADMIN_DBUPDATED', 'La base de datos se actualizó con éxito') ; |
|
35 | -define('_MD_A_MYBLOCKSADMIN_FMT_REMOVEBLOCK', '%s será eliminado. ¿Está seguro?') ; |
|
36 | - |
|
37 | - |
|
38 | -define('_MD_A_MYBLOCKSADMIN_CLONEFORM', 'Duplicar el bloque') ; |
|
39 | -define('_MD_A_MYBLOCKSADMIN_NEWFORM', 'Crear un bloque') ; |
|
40 | -define('_MD_A_MYBLOCKSADMIN_EDITFORM', 'Modificar el bloque') ; |
|
41 | - |
|
42 | -define('_MD_A_MYBLOCKSADMIN_LINK_FORCECLONE', 'Forzar la duplicación') ; |
|
43 | - |
|
44 | -define('_MD_A_MYBLOCKSADMIN_BTN_CLONE', 'Duplicar') ; |
|
45 | -define('_MD_A_MYBLOCKSADMIN_BTN_NEW', 'Crear') ; |
|
46 | -define('_MD_A_MYBLOCKSADMIN_BTN_EDIT', 'Actualizar') ; |
|
47 | - |
|
48 | -define('_MD_A_MYBLOCKSADMIN_CTYPE_HTML', '(HTML)') ; |
|
49 | -define('_MD_A_MYBLOCKSADMIN_CTYPE_NOSMILE', '(HTML+BBCODE+AutoLink)') ; |
|
50 | -define('_MD_A_MYBLOCKSADMIN_CTYPE_SMILE', '(HTML+BBCODE+AutoLink+Smiley)') ; |
|
51 | -define('_MD_A_MYBLOCKSADMIN_CTYPE_PHP', '(PHP eval())') ; |
|
7 | +define('_MD_A_MYBLOCKSADMIN_PERMUPDATED', 'Los permisos se actualizaron con éxito'); |
|
8 | +define('_MD_A_MYBLOCKSADMIN_BLOCKADMIN', 'Administración de Bloques'); |
|
9 | +define('_MD_A_MYBLOCKSADMIN_NAME', 'Nombre'); |
|
10 | +define('_MD_A_MYBLOCKSADMIN_TITLE', 'Título'); |
|
11 | +define('_MD_A_MYBLOCKSADMIN_SIDE', 'Tipo de bloque'); |
|
12 | +define('_MD_A_MYBLOCKSADMIN_SBLEFT', 'o --- - izquierdo'); |
|
13 | +define('_MD_A_MYBLOCKSADMIN_SBRIGHT', '- --- o derecho'); |
|
14 | +define('_MD_A_MYBLOCKSADMIN_CBLEFT', '- o-- - central-izquierdo'); |
|
15 | +define('_MD_A_MYBLOCKSADMIN_CBRIGHT', '- --o - central-derecho'); |
|
16 | +define('_MD_A_MYBLOCKSADMIN_CBCENTER', '- -o- - central'); |
|
17 | +define('_MD_A_MYBLOCKSADMIN_VISIBLE', 'Visible'); |
|
18 | +define('_MD_A_MYBLOCKSADMIN_WEIGHT', 'Ubicación'); |
|
19 | +define('_MD_A_MYBLOCKSADMIN_VISIBLEIN', 'Visible en'); |
|
20 | +define('_MD_A_MYBLOCKSADMIN_CONTENT', 'Contenido'); |
|
21 | +define('_MD_A_MYBLOCKSADMIN_CAPT_USABLETAGS', 'Etiquetas admitidas'); |
|
22 | +define('_MD_A_MYBLOCKSADMIN_FMT_TAGRULE', '%s será reemplazada en %s en esta vista'); |
|
23 | +define('_MD_A_MYBLOCKSADMIN_CTYPE', 'Tipo de contenido'); |
|
24 | +define('_MD_A_MYBLOCKSADMIN_EDITTPL', 'Modificar la plantilla'); |
|
25 | +define('_MD_A_MYBLOCKSADMIN_OPTIONS', 'Opciones de los Bloques'); |
|
26 | +define('_MD_A_MYBLOCKSADMIN_BCACHETIME', 'Cache'); |
|
27 | +define('_MD_A_MYBLOCKSADMIN_ACTION', 'Acción'); |
|
28 | +define('_MD_A_MYBLOCKSADMIN_DESCRIPTION', 'Descripción'); |
|
29 | +define('_MD_A_MYBLOCKSADMIN_TOPPAGE', 'Página de inicio'); |
|
30 | +define('_MD_A_MYBLOCKSADMIN_ALLPAGES', 'En todas'); |
|
31 | +define('_MD_A_MYBLOCKSADMIN_PERMFORM', 'Permisos'); |
|
32 | +define('_MD_A_MYBLOCKSADMIN_PERM_MADMIN', 'permiso de administración del módulo'); |
|
33 | +define('_MD_A_MYBLOCKSADMIN_PERM_MREAD', 'permiso de lectura del módulo'); |
|
34 | +define('_MD_A_MYBLOCKSADMIN_DBUPDATED', 'La base de datos se actualizó con éxito'); |
|
35 | +define('_MD_A_MYBLOCKSADMIN_FMT_REMOVEBLOCK', '%s será eliminado. ¿Está seguro?'); |
|
36 | + |
|
37 | + |
|
38 | +define('_MD_A_MYBLOCKSADMIN_CLONEFORM', 'Duplicar el bloque'); |
|
39 | +define('_MD_A_MYBLOCKSADMIN_NEWFORM', 'Crear un bloque'); |
|
40 | +define('_MD_A_MYBLOCKSADMIN_EDITFORM', 'Modificar el bloque'); |
|
41 | + |
|
42 | +define('_MD_A_MYBLOCKSADMIN_LINK_FORCECLONE', 'Forzar la duplicación'); |
|
43 | + |
|
44 | +define('_MD_A_MYBLOCKSADMIN_BTN_CLONE', 'Duplicar'); |
|
45 | +define('_MD_A_MYBLOCKSADMIN_BTN_NEW', 'Crear'); |
|
46 | +define('_MD_A_MYBLOCKSADMIN_BTN_EDIT', 'Actualizar'); |
|
47 | + |
|
48 | +define('_MD_A_MYBLOCKSADMIN_CTYPE_HTML', '(HTML)'); |
|
49 | +define('_MD_A_MYBLOCKSADMIN_CTYPE_NOSMILE', '(HTML+BBCODE+AutoLink)'); |
|
50 | +define('_MD_A_MYBLOCKSADMIN_CTYPE_SMILE', '(HTML+BBCODE+AutoLink+Smiley)'); |
|
51 | +define('_MD_A_MYBLOCKSADMIN_CTYPE_PHP', '(PHP eval())'); |
|
52 | 52 | |
53 | 53 | |
54 | 54 | // Group permission phrases |
@@ -4,11 +4,11 @@ |
||
4 | 4 | // Appended by Xoops Language Checker -GIJOE- in 2008-07-09 13:28:58 |
5 | 5 | define('_MD_A_MYTPLSFORM_TPLSADMIN', 'Templates'); |
6 | 6 | |
7 | -define('_MD_A_MYTPLSFORM_EDIT', 'Modificar la plantilla') ; |
|
8 | -define('_MD_A_MYTPLSFORM_UPDATED', 'La plantilla fue actualizada con éxito') ; |
|
9 | -define('_MD_A_MYTPLSFORM_CREATED', 'La plantilla fue creada con éxito') ; |
|
10 | -define('_MD_A_MYTPLSFORM_LABEL_TPLFILE', 'Nombre de la plantilla') ; |
|
11 | -define('_MD_A_MYTPLSFORM_BTN_MODIFYCONT', 'Guardar cambios') ; |
|
12 | -define('_MD_A_MYTPLSFORM_BTN_MODIFYEND', 'Guardar cambios y finalizar') ; |
|
13 | -define('_MD_A_MYTPLSFORM_BTN_CREATE', 'Crear') ; |
|
14 | -define('_MD_A_MYTPLSFORM_BTN_RESET', 'Reestablecer') ; |
|
7 | +define('_MD_A_MYTPLSFORM_EDIT', 'Modificar la plantilla'); |
|
8 | +define('_MD_A_MYTPLSFORM_UPDATED', 'La plantilla fue actualizada con éxito'); |
|
9 | +define('_MD_A_MYTPLSFORM_CREATED', 'La plantilla fue creada con éxito'); |
|
10 | +define('_MD_A_MYTPLSFORM_LABEL_TPLFILE', 'Nombre de la plantilla'); |
|
11 | +define('_MD_A_MYTPLSFORM_BTN_MODIFYCONT', 'Guardar cambios'); |
|
12 | +define('_MD_A_MYTPLSFORM_BTN_MODIFYEND', 'Guardar cambios y finalizar'); |
|
13 | +define('_MD_A_MYTPLSFORM_BTN_CREATE', 'Crear'); |
|
14 | +define('_MD_A_MYTPLSFORM_BTN_RESET', 'Reestablecer'); |
@@ -1,4 +1,4 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -define('_MD_A_AINTHEME_FMT_PUBLICTOP', 'Público (Top) de %s') ; |
|
4 | -define('_MD_A_AINTHEME_FMT_ADMINTOP', 'Administración (Top) de %s') ; |
|
3 | +define('_MD_A_AINTHEME_FMT_PUBLICTOP', 'Público (Top) de %s'); |
|
4 | +define('_MD_A_AINTHEME_FMT_ADMINTOP', 'Administración (Top) de %s'); |