@@ -1,45 +1,45 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -$xoopsOption['nocommon'] = 1 ; |
|
4 | -define('_LEGACY_PREVENT_LOAD_CORE_', 1) ; |
|
3 | +$xoopsOption['nocommon'] = 1; |
|
4 | +define('_LEGACY_PREVENT_LOAD_CORE_', 1); |
|
5 | 5 | |
6 | -include '../../mainfile.php' ; |
|
6 | +include '../../mainfile.php'; |
|
7 | 7 | |
8 | 8 | if (defined('XOOPS_TRUST_PATH') && XOOPS_TRUST_PATH != '' && file_exists(XOOPS_TRUST_PATH.'/libs/altsys')) { |
9 | - die('No problem with your XOOPS_TRUST_PATH') ; |
|
9 | + die('No problem with your XOOPS_TRUST_PATH'); |
|
10 | 10 | } |
11 | 11 | |
12 | 12 | |
13 | 13 | // show the hint if password mathes |
14 | -$hint = '' ; |
|
14 | +$hint = ''; |
|
15 | 15 | if (@$_POST['dbpassword'] == XOOPS_DB_PASS) { |
16 | 16 | // find XOOPS_TRUST_PATH |
17 | - $xoops_trust_path = '' ; |
|
18 | - $base_dirs = array( XOOPS_ROOT_PATH , dirname(XOOPS_ROOT_PATH) , dirname(dirname(XOOPS_ROOT_PATH)) ) ; |
|
17 | + $xoops_trust_path = ''; |
|
18 | + $base_dirs = array(XOOPS_ROOT_PATH, dirname(XOOPS_ROOT_PATH), dirname(dirname(XOOPS_ROOT_PATH))); |
|
19 | 19 | foreach ($base_dirs as $base_dir) { |
20 | - $dh = @opendir($base_dir) ; |
|
21 | - if (! empty($dh)) { |
|
20 | + $dh = @opendir($base_dir); |
|
21 | + if (!empty($dh)) { |
|
22 | 22 | while (($file = readdir($dh)) !== false) { |
23 | 23 | if (substr($file, 0, 1) == '.') { |
24 | - continue ; |
|
24 | + continue; |
|
25 | 25 | } |
26 | - $fullpath = $base_dir . '/' . $file ; |
|
27 | - if (! is_dir($fullpath)) { |
|
28 | - continue ; |
|
26 | + $fullpath = $base_dir.'/'.$file; |
|
27 | + if (!is_dir($fullpath)) { |
|
28 | + continue; |
|
29 | 29 | } |
30 | 30 | if (is_dir($fullpath.'/libs/altsys')) { |
31 | - $xoops_trust_path = $fullpath ; |
|
32 | - break 2 ; |
|
31 | + $xoops_trust_path = $fullpath; |
|
32 | + break 2; |
|
33 | 33 | } |
34 | 34 | } |
35 | 35 | } |
36 | 36 | } |
37 | 37 | // fall back |
38 | 38 | if (empty($xoops_trust_path)) { |
39 | - $xoops_trust_path = dirname(XOOPS_ROOT_PATH).'/xoops_trust_path' ; |
|
39 | + $xoops_trust_path = dirname(XOOPS_ROOT_PATH).'/xoops_trust_path'; |
|
40 | 40 | } |
41 | 41 | // create the hint |
42 | - if (! defined('XOOPS_TRUST_PATH')) { |
|
42 | + if (!defined('XOOPS_TRUST_PATH')) { |
|
43 | 43 | $hint = "Insert the red line.<br />define('XOOPS_ROOT_PATH', '".htmlspecialchars(XOOPS_ROOT_PATH, ENT_QUOTES)."');<br /><ins style='color:red;'>define('XOOPS_TRUST_PATH', '".htmlspecialchars($xoops_trust_path, ENT_QUOTES)."');</ins>"; |
44 | 44 | } else { |
45 | 45 | $hint = "<del>define('XOOPS_TRUST_PATH', '');</del><br /><ins style='color:red;'>define('XOOPS_TRUST_PATH', '".htmlspecialchars($xoops_trust_path, ENT_QUOTES)."');</ins>"; |
@@ -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'; |
@@ -1,15 +1,15 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -if (! defined('XOOPS_ROOT_PATH')) { |
|
4 | - exit ; |
|
3 | +if (!defined('XOOPS_ROOT_PATH')) { |
|
4 | + exit; |
|
5 | 5 | } |
6 | 6 | |
7 | -if (! defined('XOOPS_TRUST_PATH') || XOOPS_TRUST_PATH == '') { |
|
8 | - header('Location: '.XOOPS_URL.'/modules/altsys/setup_xoops_trust_path.php') ; |
|
9 | - exit ; |
|
7 | +if (!defined('XOOPS_TRUST_PATH') || XOOPS_TRUST_PATH == '') { |
|
8 | + header('Location: '.XOOPS_URL.'/modules/altsys/setup_xoops_trust_path.php'); |
|
9 | + exit; |
|
10 | 10 | } |
11 | 11 | |
12 | -define('ALTSYS_MYLANGUAGE_ROOT_PATH', XOOPS_ROOT_PATH . '/my_language'); |
|
12 | +define('ALTSYS_MYLANGUAGE_ROOT_PATH', XOOPS_ROOT_PATH.'/my_language'); |
|
13 | 13 | |
14 | 14 | |
15 | 15 | class SetupAltsysLangMgr extends XCube_ActionFilter |
@@ -26,23 +26,23 @@ discard block |
||
26 | 26 | } |
27 | 27 | |
28 | 28 | |
29 | -require_once XOOPS_ROOT_PATH . "/core/XCube_LanguageManager.class.php"; |
|
30 | -require_once XOOPS_ROOT_PATH . "/modules/legacy/kernel/Legacy_LanguageManager.class.php"; |
|
29 | +require_once XOOPS_ROOT_PATH."/core/XCube_LanguageManager.class.php"; |
|
30 | +require_once XOOPS_ROOT_PATH."/modules/legacy/kernel/Legacy_LanguageManager.class.php"; |
|
31 | 31 | |
32 | 32 | class AltsysLangMgr_LanguageManager extends Legacy_LanguageManager |
33 | 33 | { |
34 | - public $langman = null ; |
|
35 | - public $theme_lang_checked = false ; |
|
34 | + public $langman = null; |
|
35 | + public $theme_lang_checked = false; |
|
36 | 36 | |
37 | 37 | public function prepare() |
38 | 38 | { |
39 | - $langmanpath = XOOPS_TRUST_PATH.'/libs/altsys/class/D3LanguageManager.class.php' ; |
|
40 | - if (! file_exists($langmanpath)) { |
|
41 | - die('install the latest altsys') ; |
|
39 | + $langmanpath = XOOPS_TRUST_PATH.'/libs/altsys/class/D3LanguageManager.class.php'; |
|
40 | + if (!file_exists($langmanpath)) { |
|
41 | + die('install the latest altsys'); |
|
42 | 42 | } |
43 | - require_once($langmanpath) ; |
|
44 | - $this->langman =& D3LanguageManager::getInstance() ; |
|
45 | - $this->langman->language = $this->mLanguageName ; |
|
43 | + require_once($langmanpath); |
|
44 | + $this->langman = & D3LanguageManager::getInstance(); |
|
45 | + $this->langman->language = $this->mLanguageName; |
|
46 | 46 | |
47 | 47 | parent::prepare(); |
48 | 48 | } |
@@ -50,40 +50,40 @@ discard block |
||
50 | 50 | public function _loadLanguage($dirname, $fileBodyName) |
51 | 51 | { |
52 | 52 | // read/check once (selected_theme)/language/(lang).php |
53 | - if (! $this->theme_lang_checked) { |
|
54 | - $root =& XCube_Root::getSingleton() ; |
|
55 | - if (! empty($root->mContext->mXoopsConfig['theme_set'])) { |
|
56 | - $langdir = XOOPS_THEME_PATH.'/'.$root->mContext->mXoopsConfig['theme_set'].'/language' ; |
|
53 | + if (!$this->theme_lang_checked) { |
|
54 | + $root = & XCube_Root::getSingleton(); |
|
55 | + if (!empty($root->mContext->mXoopsConfig['theme_set'])) { |
|
56 | + $langdir = XOOPS_THEME_PATH.'/'.$root->mContext->mXoopsConfig['theme_set'].'/language'; |
|
57 | 57 | if (file_exists($langdir)) { |
58 | - $langfile = $langdir.'/'.$this->mLanguageName.'.php' ; |
|
59 | - $engfile = $langdir.'/english.php' ; |
|
58 | + $langfile = $langdir.'/'.$this->mLanguageName.'.php'; |
|
59 | + $engfile = $langdir.'/english.php'; |
|
60 | 60 | if (file_exists($langfile)) { |
61 | - require_once $langfile ; |
|
61 | + require_once $langfile; |
|
62 | 62 | } elseif (file_exists($engfile)) { |
63 | - require_once $engfile ; |
|
63 | + require_once $engfile; |
|
64 | 64 | } |
65 | 65 | } |
66 | - $this->theme_lang_checked = true ; |
|
66 | + $this->theme_lang_checked = true; |
|
67 | 67 | } |
68 | 68 | } |
69 | 69 | |
70 | 70 | // read normal |
71 | - $this->langman->read($fileBodyName.'.php', $dirname) ; |
|
71 | + $this->langman->read($fileBodyName.'.php', $dirname); |
|
72 | 72 | } |
73 | 73 | |
74 | 74 | public function loadPageTypeMessageCatalog($type) |
75 | 75 | { |
76 | 76 | // I dare not to use langman... |
77 | 77 | if (strpos($type, '.') === false && $this->langman->my_language) { |
78 | - $mylang_file = $this->langman->my_language.'/'.$this->mLanguageName.'/'.$type.'.php' ; |
|
78 | + $mylang_file = $this->langman->my_language.'/'.$this->mLanguageName.'/'.$type.'.php'; |
|
79 | 79 | if (file_exists($mylang_file)) { |
80 | - require_once $mylang_file ; |
|
80 | + require_once $mylang_file; |
|
81 | 81 | } |
82 | 82 | } |
83 | - $original_error_level = error_reporting() ; |
|
84 | - error_reporting($original_error_level & ~ E_NOTICE) ; |
|
83 | + $original_error_level = error_reporting(); |
|
84 | + error_reporting($original_error_level & ~ E_NOTICE); |
|
85 | 85 | parent::loadPageTypeMessageCatalog($type); |
86 | - error_reporting($original_error_level) ; |
|
86 | + error_reporting($original_error_level); |
|
87 | 87 | } |
88 | 88 | |
89 | 89 | public function loadGlobalMessageCatalog() |
@@ -91,8 +91,8 @@ discard block |
||
91 | 91 | /* if (!$this->_loadFile(XOOPS_ROOT_PATH . "/modules/legacy/language/" . $this->mLanguageName . "/global.php")) { |
92 | 92 | $this->_loadFile(XOOPS_ROOT_PATH . "/modules/legacy/language/english/global.php"); |
93 | 93 | } */ |
94 | - $this->_loadLanguage('legacy', 'global') ; |
|
95 | - $this->_loadLanguage('legacy', 'setting') ; |
|
94 | + $this->_loadLanguage('legacy', 'global'); |
|
95 | + $this->_loadLanguage('legacy', 'setting'); |
|
96 | 96 | |
97 | 97 | // |
98 | 98 | // Now, if XOOPS_USE_MULTIBYTES isn't defined, set zero to it. |
@@ -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 | } |
@@ -2,91 +2,91 @@ |
||
2 | 2 | |
3 | 3 | function altsys_mylangadmin_get_constant_names($langfile_unique_path, $mydirname) |
4 | 4 | { |
5 | - $constpref = '' ; |
|
6 | - $langfile_names = array() ; |
|
7 | - $reqonce_ret = 0 ; |
|
8 | - $already_read = false ; |
|
9 | - $langfile_fingerprint = '_MYLANGADMIN_'.md5($langfile_unique_path) ; |
|
5 | + $constpref = ''; |
|
6 | + $langfile_names = array(); |
|
7 | + $reqonce_ret = 0; |
|
8 | + $already_read = false; |
|
9 | + $langfile_fingerprint = '_MYLANGADMIN_'.md5($langfile_unique_path); |
|
10 | 10 | |
11 | 11 | // for debug |
12 | 12 | //require_once XOOPS_TRUST_PATH.'/modules/pico/language/japanese/modinfo.php' ; |
13 | 13 | |
14 | 14 | // get constant_names by "require" |
15 | - if (! defined($langfile_fingerprint)) { |
|
16 | - $system_constants = array_keys(get_defined_constants()) ; |
|
17 | - $reqonce_ret = require_once($langfile_unique_path) ; |
|
18 | - $langfile_names = array_diff(array_keys(get_defined_constants()), $system_constants) ; |
|
15 | + if (!defined($langfile_fingerprint)) { |
|
16 | + $system_constants = array_keys(get_defined_constants()); |
|
17 | + $reqonce_ret = require_once($langfile_unique_path); |
|
18 | + $langfile_names = array_diff(array_keys(get_defined_constants()), $system_constants); |
|
19 | 19 | } |
20 | 20 | |
21 | 21 | // We have to parse the file if it has been already included ... |
22 | 22 | if (empty($langfile_names) && ($reqonce_ret === true || defined($langfile_fingerprint))) { |
23 | - $already_read = true ; |
|
24 | - $langfile_names = altsys_mylangadmin_get_constant_names_by_pcre($langfile_unique_path) ; |
|
23 | + $already_read = true; |
|
24 | + $langfile_names = altsys_mylangadmin_get_constant_names_by_pcre($langfile_unique_path); |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | // modinfo.php of D3 module |
28 | 28 | if (empty($langfile_names) && file_exists(XOOPS_ROOT_PATH.'/modules/'.$mydirname.'/mytrustdirname.php') /* && substr( $langfile_unique_path , -11 ) == 'modinfo.php' */) { |
29 | 29 | // get $constpref |
30 | - $constpref = '' ; |
|
31 | - require $langfile_unique_path ; |
|
32 | - $langfile_names = array() ; |
|
30 | + $constpref = ''; |
|
31 | + require $langfile_unique_path; |
|
32 | + $langfile_names = array(); |
|
33 | 33 | if ($constpref) { |
34 | 34 | foreach (array_keys(get_defined_constants()) as $name) { |
35 | 35 | if (strncmp($name, $constpref, strlen($constpref)) == 0) { |
36 | - $langfile_names[] = $name ; |
|
36 | + $langfile_names[] = $name; |
|
37 | 37 | } |
38 | 38 | } |
39 | 39 | } |
40 | 40 | } |
41 | 41 | |
42 | 42 | |
43 | - return array( $langfile_names , $constpref , $already_read ) ; |
|
43 | + return array($langfile_names, $constpref, $already_read); |
|
44 | 44 | } |
45 | 45 | |
46 | 46 | |
47 | 47 | function altsys_mylangadmin_get_constant_names_by_pcre($langfile_path) |
48 | 48 | { |
49 | - if (! file_exists($langfile_path)) { |
|
50 | - return array() ; |
|
49 | + if (!file_exists($langfile_path)) { |
|
50 | + return array(); |
|
51 | 51 | } |
52 | - $file_contents = file_get_contents($langfile_path) ; |
|
53 | - preg_match_all('/\n\s*define\(\s*(["\'])([0-9a-zA-Z_]+)\\1/iU', $file_contents, $matches) ; |
|
54 | - $langfile_names = array() ; |
|
52 | + $file_contents = file_get_contents($langfile_path); |
|
53 | + preg_match_all('/\n\s*define\(\s*(["\'])([0-9a-zA-Z_]+)\\1/iU', $file_contents, $matches); |
|
54 | + $langfile_names = array(); |
|
55 | 55 | foreach ($matches[2] as $name) { |
56 | 56 | // if( defined( $name ) ) |
57 | - $langfile_names[] = $name ; |
|
57 | + $langfile_names[] = $name; |
|
58 | 58 | } |
59 | 59 | |
60 | - return $langfile_names ; |
|
60 | + return $langfile_names; |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | |
64 | 64 | function altsys_mylangadmin_get_constants_by_pcre($langfile_path) |
65 | 65 | { |
66 | - if (! file_exists($langfile_path)) { |
|
67 | - return array() ; |
|
66 | + if (!file_exists($langfile_path)) { |
|
67 | + return array(); |
|
68 | 68 | } |
69 | 69 | |
70 | - $file_contents = file_get_contents($langfile_path) ; |
|
71 | - preg_match_all('/\n\s*define\(\s*(["\'])([0-9a-zA-Z_]+)\\1\s*\,\s*(["\'])([^\\3]+)\\3/iU', $file_contents, $matches) ; |
|
72 | - $constants = array() ; |
|
70 | + $file_contents = file_get_contents($langfile_path); |
|
71 | + preg_match_all('/\n\s*define\(\s*(["\'])([0-9a-zA-Z_]+)\\1\s*\,\s*(["\'])([^\\3]+)\\3/iU', $file_contents, $matches); |
|
72 | + $constants = array(); |
|
73 | 73 | foreach ($matches[2] as $i => $name) { |
74 | - $constants[ $name ] = $matches[4][$i] ; |
|
74 | + $constants[$name] = $matches[4][$i]; |
|
75 | 75 | } |
76 | 76 | |
77 | - return $constants ; |
|
77 | + return $constants; |
|
78 | 78 | } |
79 | 79 | |
80 | 80 | |
81 | 81 | function altsys_mylangadmin_errordie($target_mname, $message4disp) |
82 | 82 | { |
83 | - xoops_cp_header() ; |
|
84 | - altsys_include_mymenu() ; |
|
85 | - $breadcrumbsObj =& AltsysBreadcrumbs::getInstance() ; |
|
86 | - $breadcrumbsObj->appendPath(XOOPS_URL.'/modules/altsys/admin/index.php?mode=admin&lib=altsys&page=mylangadmin', _MI_ALTSYS_MENU_MYLANGADMIN) ; |
|
87 | - $breadcrumbsObj->appendPath('', $target_mname) ; |
|
88 | - echo '<h3>' . _MYLANGADMIN_H3_MODULE . ' : ' . $target_mname . '</h3>' ; |
|
89 | - echo '<p>'.$message4disp.'</p>' ; |
|
90 | - xoops_cp_footer() ; |
|
91 | - exit ; |
|
83 | + xoops_cp_header(); |
|
84 | + altsys_include_mymenu(); |
|
85 | + $breadcrumbsObj = & AltsysBreadcrumbs::getInstance(); |
|
86 | + $breadcrumbsObj->appendPath(XOOPS_URL.'/modules/altsys/admin/index.php?mode=admin&lib=altsys&page=mylangadmin', _MI_ALTSYS_MENU_MYLANGADMIN); |
|
87 | + $breadcrumbsObj->appendPath('', $target_mname); |
|
88 | + echo '<h3>'._MYLANGADMIN_H3_MODULE.' : '.$target_mname.'</h3>'; |
|
89 | + echo '<p>'.$message4disp.'</p>'; |
|
90 | + xoops_cp_footer(); |
|
91 | + exit; |
|
92 | 92 | } |
@@ -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 | } |