@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -$xoopsOption['nocommon'] = 1 ; |
|
4 | -define('_LEGACY_PREVENT_LOAD_CORE_', true) ; |
|
5 | -require '../../mainfile.php' ; |
|
3 | +$xoopsOption['nocommon'] = 1; |
|
4 | +define('_LEGACY_PREVENT_LOAD_CORE_', true); |
|
5 | +require '../../mainfile.php'; |
|
6 | 6 | |
7 | -header('Location: '.XOOPS_URL.'/user.php') ; |
|
7 | +header('Location: '.XOOPS_URL.'/user.php'); |
@@ -1,2 +1,2 @@ |
||
1 | 1 | <?php |
2 | - $mytrustdirname = 'altsys' ; |
|
2 | + $mytrustdirname = 'altsys'; |
@@ -465,7 +465,7 @@ discard block |
||
465 | 465 | } |
466 | 466 | |
467 | 467 | $this->lcs = 0; |
468 | - $this->seq[0]= $yoff - 1; |
|
468 | + $this->seq[0] = $yoff - 1; |
|
469 | 469 | $this->in_seq = array(); |
470 | 470 | $ymids[0] = array(); |
471 | 471 | |
@@ -478,7 +478,7 @@ discard block |
||
478 | 478 | } |
479 | 479 | } |
480 | 480 | |
481 | - $x1 = $xoff + (int)(($numer + ($xlim-$xoff)*$chunk) / $nchunks); |
|
481 | + $x1 = $xoff + (int)(($numer + ($xlim - $xoff) * $chunk) / $nchunks); |
|
482 | 482 | for (; $x < $x1; $x++) { |
483 | 483 | $line = $flip ? $this->yv[$x] : $this->xv[$x]; |
484 | 484 | if (empty($ymatches[$line])) { |
@@ -646,7 +646,7 @@ discard block |
||
646 | 646 | $j++; |
647 | 647 | } |
648 | 648 | |
649 | - while ($i < $len && ! $changed[$i]) { |
|
649 | + while ($i < $len && !$changed[$i]) { |
|
650 | 650 | assert('$j < $other_len && ! $other_changed[$j]'); |
651 | 651 | $i++; |
652 | 652 | $j++; |
@@ -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 | } |
@@ -72,14 +72,14 @@ discard block |
||
72 | 72 | if ($this->_split_level == 'words') { |
73 | 73 | return implode('', $lines); |
74 | 74 | } else { |
75 | - return implode("\n", $lines) . "\n"; |
|
75 | + return implode("\n", $lines)."\n"; |
|
76 | 76 | } |
77 | 77 | } |
78 | 78 | |
79 | 79 | public function _added($lines) |
80 | 80 | { |
81 | 81 | array_walk($lines, array(&$this, '_encode')); |
82 | - $lines[0] = $this->_ins_prefix . $lines[0]; |
|
82 | + $lines[0] = $this->_ins_prefix.$lines[0]; |
|
83 | 83 | $lines[count($lines) - 1] .= $this->_ins_suffix; |
84 | 84 | return $this->_lines($lines, ' ', false); |
85 | 85 | } |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | public function _deleted($lines, $words = false) |
88 | 88 | { |
89 | 89 | array_walk($lines, array(&$this, '_encode')); |
90 | - $lines[0] = $this->_del_prefix . $lines[0]; |
|
90 | + $lines[0] = $this->_del_prefix.$lines[0]; |
|
91 | 91 | $lines[count($lines) - 1] .= $this->_del_suffix; |
92 | 92 | return $this->_lines($lines, ' ', false); |
93 | 93 | } |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | $orig[0] = substr($orig[0], 1); |
106 | 106 | $final[0] = substr($final[0], 1); |
107 | 107 | } |
108 | - return $prefix . $this->_deleted($orig) . $this->_added($final); |
|
108 | + return $prefix.$this->_deleted($orig).$this->_added($final); |
|
109 | 109 | } |
110 | 110 | |
111 | 111 | $text1 = implode("\n", $orig); |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | array('split_level' => 'words'))); |
126 | 126 | |
127 | 127 | /* Run the diff and get the output. */ |
128 | - return str_replace($nl, "\n", $renderer->render($diff)) . "\n"; |
|
128 | + return str_replace($nl, "\n", $renderer->render($diff))."\n"; |
|
129 | 129 | } |
130 | 130 | |
131 | 131 | public function _splitOnWords($string, $newlineEscape = "\n") |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | public function __construct($params = array()) |
37 | 37 | { |
38 | 38 | foreach ($params as $param => $value) { |
39 | - $v = '_' . $param; |
|
39 | + $v = '_'.$param; |
|
40 | 40 | if (isset($this->$v)) { |
41 | 41 | $this->$v = $value; |
42 | 42 | } |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | $block); |
123 | 123 | } |
124 | 124 | |
125 | - return $output . $this->_endDiff(); |
|
125 | + return $output.$this->_endDiff(); |
|
126 | 126 | } |
127 | 127 | |
128 | 128 | public function _block($xbeg, $xlen, $ybeg, $ylen, &$edits) |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | } |
150 | 150 | } |
151 | 151 | |
152 | - return $output . $this->_endBlock(); |
|
152 | + return $output.$this->_endBlock(); |
|
153 | 153 | } |
154 | 154 | |
155 | 155 | public function _startDiff() |
@@ -165,18 +165,18 @@ discard block |
||
165 | 165 | public function _blockHeader($xbeg, $xlen, $ybeg, $ylen) |
166 | 166 | { |
167 | 167 | if ($xlen > 1) { |
168 | - $xbeg .= ',' . ($xbeg + $xlen - 1); |
|
168 | + $xbeg .= ','.($xbeg + $xlen - 1); |
|
169 | 169 | } |
170 | 170 | if ($ylen > 1) { |
171 | - $ybeg .= ',' . ($ybeg + $ylen - 1); |
|
171 | + $ybeg .= ','.($ybeg + $ylen - 1); |
|
172 | 172 | } |
173 | 173 | |
174 | - return $xbeg . ($xlen ? ($ylen ? 'c' : 'd') : 'a') . $ybeg; |
|
174 | + return $xbeg.($xlen ? ($ylen ? 'c' : 'd') : 'a').$ybeg; |
|
175 | 175 | } |
176 | 176 | |
177 | 177 | public function _startBlock($header) |
178 | 178 | { |
179 | - return $header . "\n"; |
|
179 | + return $header."\n"; |
|
180 | 180 | } |
181 | 181 | |
182 | 182 | public function _endBlock() |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | |
187 | 187 | public function _lines($lines, $prefix = ' ') |
188 | 188 | { |
189 | - return $prefix . implode("\n$prefix", $lines) . "\n"; |
|
189 | + return $prefix.implode("\n$prefix", $lines)."\n"; |
|
190 | 190 | } |
191 | 191 | |
192 | 192 | public function _context($lines) |
@@ -206,6 +206,6 @@ discard block |
||
206 | 206 | |
207 | 207 | public function _changed($orig, $final) |
208 | 208 | { |
209 | - return $this->_deleted($orig) . "---\n" . $this->_added($final); |
|
209 | + return $this->_deleted($orig)."---\n".$this->_added($final); |
|
210 | 210 | } |
211 | 211 | } |
@@ -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'); |