Completed
Push — master ( b4f428...a74d38 )
by Michael
02:21
created
xoops_trust_path/libs/altsys/include/admin_in_theme_functions.php 2 patches
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -162,20 +162,20 @@
 block discarded – undo
162 162
     // assignment
163 163
 
164 164
     $xoopsTpl->assign([
165
-                          'xoops_theme' => $xoopsConfig['theme_set'],
166
-                          'xoops_imageurl' => XOOPS_THEME_URL . '/' . $xoopsConfig['theme_set'] . '/',
167
-                          'xoops_themecss' => xoops_getcss($xoopsConfig['theme_set']),
168
-                          'xoops_requesturi' => htmlspecialchars($GLOBALS['xoopsRequestUri'], ENT_QUOTES),
169
-                          'xoops_sitename' => htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES),
170
-                          'xoops_showlblock' => 1,
171
-                          //        'xoops_js' => '//--></script><script type="text/javascript" src="'.XOOPS_URL.'/include/xoops.js"></script><script type="text/javascript" src="'.XOOPS_URL.'/include/layersmenu.js"></script><script type="text/javascript"><!--'."\n".$xoops_admin_menu_js ,
172
-                          'xoops_js' => '//--></script><script type="text/javascript" src="' . XOOPS_URL . '/include/xoops.js"></script><script type="text/javascript"><!--' . "\n",
173
-                          'xoops_runs_admin_side' => 1,
174
-                          'xoops_breadcrumbs' => $xoops_breadcrumbs,
175
-                          'xoops_slogan' => htmlspecialchars($xoopsConfig['slogan'], ENT_QUOTES),
176
-                          'xoops_contents' => $xoops_admin_contents, //. '<div id="adminmenu_layers">' . $xoops_admin_menu_dv . '</div>' ,
177
-                          'xoops_module_header' => $xoops_module_header,
178
-                      ]);
165
+                            'xoops_theme' => $xoopsConfig['theme_set'],
166
+                            'xoops_imageurl' => XOOPS_THEME_URL . '/' . $xoopsConfig['theme_set'] . '/',
167
+                            'xoops_themecss' => xoops_getcss($xoopsConfig['theme_set']),
168
+                            'xoops_requesturi' => htmlspecialchars($GLOBALS['xoopsRequestUri'], ENT_QUOTES),
169
+                            'xoops_sitename' => htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES),
170
+                            'xoops_showlblock' => 1,
171
+                            //        'xoops_js' => '//--></script><script type="text/javascript" src="'.XOOPS_URL.'/include/xoops.js"></script><script type="text/javascript" src="'.XOOPS_URL.'/include/layersmenu.js"></script><script type="text/javascript"><!--'."\n".$xoops_admin_menu_js ,
172
+                            'xoops_js' => '//--></script><script type="text/javascript" src="' . XOOPS_URL . '/include/xoops.js"></script><script type="text/javascript"><!--' . "\n",
173
+                            'xoops_runs_admin_side' => 1,
174
+                            'xoops_breadcrumbs' => $xoops_breadcrumbs,
175
+                            'xoops_slogan' => htmlspecialchars($xoopsConfig['slogan'], ENT_QUOTES),
176
+                            'xoops_contents' => $xoops_admin_contents, //. '<div id="adminmenu_layers">' . $xoops_admin_menu_dv . '</div>' ,
177
+                            'xoops_module_header' => $xoops_module_header,
178
+                        ]);
179 179
 
180 180
     // rendering
181 181
 
Please login to merge, or discard this patch.
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         return $s;
47 47
     }
48 48
 
49
-    list($tmp_s, $tmp_after) = explode("<td width='1%' background='" . XOOPS_URL . "/modules/system/images/bg_content.gif'>", $tmp_s);
49
+    list($tmp_s, $tmp_after) = explode("<td width='1%' background='".XOOPS_URL."/modules/system/images/bg_content.gif'>", $tmp_s);
50 50
 
51 51
     if (empty($tmp_after)) {
52 52
         define('ALTSYS_DONT_USE_ADMIN_IN_THEME', 1);
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         return $s;
55 55
     }
56 56
 
57
-    $xoops_admin_contents = $former_outputs . mb_substr(strrev(mb_strstr(strrev($tmp_s), strrev('</div>'))), 0, -6);
57
+    $xoops_admin_contents = $former_outputs.mb_substr(strrev(mb_strstr(strrev($tmp_s), strrev('</div>'))), 0, -6);
58 58
 
59 59
     return '';
60 60
 }
@@ -88,10 +88,10 @@  discard block
 block discarded – undo
88 88
 
89 89
     // language files
90 90
 
91
-    if (is_file(dirname(__DIR__) . '/language/' . $xoopsConfig['language'] . '/admin_in_theme.php')) {
92
-        include_once dirname(__DIR__) . '/language/' . $xoopsConfig['language'] . '/admin_in_theme.php';
91
+    if (is_file(dirname(__DIR__).'/language/'.$xoopsConfig['language'].'/admin_in_theme.php')) {
92
+        include_once dirname(__DIR__).'/language/'.$xoopsConfig['language'].'/admin_in_theme.php';
93 93
     } else {
94
-        include_once dirname(__DIR__) . '/language/english/admin_in_theme.php';
94
+        include_once dirname(__DIR__).'/language/english/admin_in_theme.php';
95 95
     }
96 96
 
97 97
     // set the theme
@@ -104,15 +104,15 @@  discard block
 block discarded – undo
104 104
 
105 105
     error_reporting($original_error_level & ~E_NOTICE);
106 106
 
107
-    if (is_file(XOOPS_THEME_PATH . '/' . $xoopsConfig['theme_set'] . '/language/' . $xoopsConfig['language'] . '.php')) {
108
-        include_once XOOPS_THEME_PATH . '/' . $xoopsConfig['theme_set'] . '/language/' . $xoopsConfig['language'] . '.php';
109
-    } elseif (is_file(XOOPS_THEME_PATH . '/' . $xoopsConfig['theme_set'] . '/language/english.php')) {
110
-        include_once XOOPS_THEME_PATH . '/' . $xoopsConfig['theme_set'] . '/language/english.php';
107
+    if (is_file(XOOPS_THEME_PATH.'/'.$xoopsConfig['theme_set'].'/language/'.$xoopsConfig['language'].'.php')) {
108
+        include_once XOOPS_THEME_PATH.'/'.$xoopsConfig['theme_set'].'/language/'.$xoopsConfig['language'].'.php';
109
+    } elseif (is_file(XOOPS_THEME_PATH.'/'.$xoopsConfig['theme_set'].'/language/english.php')) {
110
+        include_once XOOPS_THEME_PATH.'/'.$xoopsConfig['theme_set'].'/language/english.php';
111 111
     }
112 112
 
113 113
     error_reporting($original_error_level);
114 114
 
115
-    include __DIR__ . '/admin_in_theme_header.inc.php';
115
+    include __DIR__.'/admin_in_theme_header.inc.php';
116 116
 
117 117
     /*  // include adminmenu
118 118
         include XOOPS_CACHE_PATH.'/adminmenu.php' ;
@@ -152,10 +152,10 @@  discard block
 block discarded – undo
152 152
     $xoops_module_header = '';
153 153
 
154 154
     if (ALTSYS_CORE_TYPE_XCL21 == altsys_get_core_type()) {
155
-        $xoops_module_header .= '<link rel="stylesheet" type="text/css" media="all" href="' . XOOPS_URL . '/modules/legacyRender/admin/css.php?file=style.css" />' . "\n";
155
+        $xoops_module_header .= '<link rel="stylesheet" type="text/css" media="all" href="'.XOOPS_URL.'/modules/legacyRender/admin/css.php?file=style.css" />'."\n";
156 156
 
157 157
         if (is_object(@$xoopsModule)) {
158
-            $xoops_module_header .= '<link rel="stylesheet" type="text/css" media="all" href="' . XOOPS_URL . '/modules/legacyRender/admin/css.php?file=module.css&amp;dirname=' . $xoopsModule->getVar('dirname') . '" />' . "\n";
158
+            $xoops_module_header .= '<link rel="stylesheet" type="text/css" media="all" href="'.XOOPS_URL.'/modules/legacyRender/admin/css.php?file=module.css&amp;dirname='.$xoopsModule->getVar('dirname').'" />'."\n";
159 159
         }
160 160
     }
161 161
 
@@ -163,13 +163,13 @@  discard block
 block discarded – undo
163 163
 
164 164
     $xoopsTpl->assign([
165 165
                           'xoops_theme' => $xoopsConfig['theme_set'],
166
-                          'xoops_imageurl' => XOOPS_THEME_URL . '/' . $xoopsConfig['theme_set'] . '/',
166
+                          'xoops_imageurl' => XOOPS_THEME_URL.'/'.$xoopsConfig['theme_set'].'/',
167 167
                           'xoops_themecss' => xoops_getcss($xoopsConfig['theme_set']),
168 168
                           'xoops_requesturi' => htmlspecialchars($GLOBALS['xoopsRequestUri'], ENT_QUOTES),
169 169
                           'xoops_sitename' => htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES),
170 170
                           'xoops_showlblock' => 1,
171 171
                           //        'xoops_js' => '//--></script><script type="text/javascript" src="'.XOOPS_URL.'/include/xoops.js"></script><script type="text/javascript" src="'.XOOPS_URL.'/include/layersmenu.js"></script><script type="text/javascript"><!--'."\n".$xoops_admin_menu_js ,
172
-                          'xoops_js' => '//--></script><script type="text/javascript" src="' . XOOPS_URL . '/include/xoops.js"></script><script type="text/javascript"><!--' . "\n",
172
+                          'xoops_js' => '//--></script><script type="text/javascript" src="'.XOOPS_URL.'/include/xoops.js"></script><script type="text/javascript"><!--'."\n",
173 173
                           'xoops_runs_admin_side' => 1,
174 174
                           'xoops_breadcrumbs' => $xoops_breadcrumbs,
175 175
                           'xoops_slogan' => htmlspecialchars($xoopsConfig['slogan'], ENT_QUOTES),
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
 
180 180
     // rendering
181 181
 
182
-    $xoopsTpl->display($xoopsConfig['theme_set'] . '/theme.html');
182
+    $xoopsTpl->display($xoopsConfig['theme_set'].'/theme.html');
183 183
 
184 184
     // for XOOPS 2.0.14/15/16 from xoops.org
185 185
 
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/include/admin_in_theme.inc.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,12 +7,12 @@
 block discarded – undo
7 7
     if (preg_match('#(^/admin.php|^/modules/system/|^/modules/[a-zA-Z0-9_.-]+/admin/)#', $xoops_subpath)) {
8 8
         // The request looks like admin
9 9
 
10
-        require_once __DIR__ . '/altsys_functions.php';
10
+        require_once __DIR__.'/altsys_functions.php';
11 11
 
12
-        if (!empty($GLOBALS['altsysModuleConfig']['admin_in_theme']) && file_exists(XOOPS_THEME_PATH . '/' . $GLOBALS['altsysModuleConfig']['admin_in_theme'] . '/theme.html')) {
12
+        if (!empty($GLOBALS['altsysModuleConfig']['admin_in_theme']) && file_exists(XOOPS_THEME_PATH.'/'.$GLOBALS['altsysModuleConfig']['admin_in_theme'].'/theme.html')) {
13 13
             // configs OK
14 14
 
15
-            require_once __DIR__ . '/admin_in_theme_functions.php';
15
+            require_once __DIR__.'/admin_in_theme_functions.php';
16 16
 
17 17
             // for security with register_globals=1
18 18
 
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/include/Text_Diff_Renderer_unified.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,11 +34,11 @@  discard block
 block discarded – undo
34 34
     public function _blockHeader($xbeg, $xlen, $ybeg, $ylen)
35 35
     {
36 36
         if (1 != $xlen) {
37
-            $xbeg .= ',' . $xlen;
37
+            $xbeg .= ','.$xlen;
38 38
         }
39 39
 
40 40
         if (1 != $ylen) {
41
-            $ybeg .= ',' . $ylen;
41
+            $ybeg .= ','.$ylen;
42 42
         }
43 43
 
44 44
         return "@@ -$xbeg +$ybeg @@";
@@ -72,6 +72,6 @@  discard block
 block discarded – undo
72 72
 
73 73
     public function _changed($orig, $final)
74 74
     {
75
-        return $this->_deleted($orig) . $this->_added($final);
75
+        return $this->_deleted($orig).$this->_added($final);
76 76
     }
77 77
 }
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/include/formcheckboxgroup.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 /**
30 30
  * Parent
31 31
  */
32
-include_once XOOPS_ROOT_PATH . '/class/xoopsform/formcheckbox.php';
32
+include_once XOOPS_ROOT_PATH.'/class/xoopsform/formcheckbox.php';
33 33
 
34 34
 /**
35 35
  * A checkbox field with a choice of available groups
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         }
65 65
 
66 66
         foreach ($options as $k => $v) {
67
-            $options[$k] = $v . '<br />';
67
+            $options[$k] = $v.'<br />';
68 68
         }
69 69
 
70 70
         $this->addOptionArray($options);
Please login to merge, or discard this patch.
libs/altsys/include/Legacy_AltsysAdminRenderSystem.class.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
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
 /**
8 8
  * Class Legacy_AltsysAdminRenderSystem
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/include/lang_functions.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 
16 16
     $already_read = false;
17 17
 
18
-    $langfile_fingerprint = '_MYLANGADMIN_' . md5($langfile_unique_path);
18
+    $langfile_fingerprint = '_MYLANGADMIN_'.md5($langfile_unique_path);
19 19
 
20 20
     // for debug
21 21
 
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
     // modinfo.php of D3 module
43 43
 
44
-    if (empty($langfile_names) && file_exists(XOOPS_ROOT_PATH . '/modules/' . $mydirname . '/mytrustdirname.php') /* && substr( $langfile_unique_path , -11 ) == 'modinfo.php' */) {
44
+    if (empty($langfile_names) && file_exists(XOOPS_ROOT_PATH.'/modules/'.$mydirname.'/mytrustdirname.php') /* && substr( $langfile_unique_path , -11 ) == 'modinfo.php' */) {
45 45
         // get $constpref
46 46
 
47 47
         $constpref = '';
@@ -122,13 +122,13 @@  discard block
 block discarded – undo
122 122
 
123 123
     $breadcrumbsObj = AltsysBreadcrumbs::getInstance();
124 124
 
125
-    $breadcrumbsObj->appendPath(XOOPS_URL . '/modules/altsys/admin/index.php?mode=admin&amp;lib=altsys&amp;page=mylangadmin', _MI_ALTSYS_MENU_MYLANGADMIN);
125
+    $breadcrumbsObj->appendPath(XOOPS_URL.'/modules/altsys/admin/index.php?mode=admin&amp;lib=altsys&amp;page=mylangadmin', _MI_ALTSYS_MENU_MYLANGADMIN);
126 126
 
127 127
     $breadcrumbsObj->appendPath('', $target_mname);
128 128
 
129
-    echo '<h3>' . _MYLANGADMIN_H3_MODULE . ' : ' . $target_mname . '</h3>';
129
+    echo '<h3>'._MYLANGADMIN_H3_MODULE.' : '.$target_mname.'</h3>';
130 130
 
131
-    echo '<p>' . $message4disp . '</p>';
131
+    echo '<p>'.$message4disp.'</p>';
132 132
 
133 133
     xoops_cp_footer();
134 134
 
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/language/german/blocks_each.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -3,10 +3,10 @@
 block discarded – undo
3 3
 if (defined('FOR_XOOPS_LANG_CHECKER')) {
4 4
     $mydirname = 'd3forum';
5 5
 }
6
-$constpref = '_MB_' . mb_strtoupper($mydirname);
6
+$constpref = '_MB_'.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.
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/language/persian/compilehookadmin.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,12 +18,12 @@  discard block
 block discarded – undo
18 18
 
19 19
 define('_TPLSADMIN_FMT_MSG_ENCLOSEBYBORDEREDDIV', '%d ذخیره‌سازِ الگو با تگ‌های "div" بسته شدند');
20 20
 define('_TPLSADMIN_DT_ENCLOSEBYBORDEREDDIV', 'القا کردن تگ‌های "div"');
21
-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.') ;
21
+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.');
22 22
 define('_TPLSADMIN_CNF_ENCLOSEBYBORDEREDDIV', 'Compiled template caches will be enclosed by div tags. Are you OK?');
23 23
 
24 24
 define('_TPLSADMIN_FMT_MSG_HOOKSAVEVARS', '%d template caches have been implanted hooking logics to collect template varibles');
25 25
 define('_TPLSADMIN_DT_HOOKSAVEVARS', 'Implant logics to collect template variables');
26
-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.') ;
26
+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.');
27 27
 define('_TPLSADMIN_CNF_HOOKSAVEVARS', 'Compiled template caches will be implanted the logics to collect template variables. Are you OK?');
28 28
 
29 29
 define('_TPLSADMIN_FMT_MSG_REMOVEHOOKS', '%d template caches have been normalized');
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 define('_TPLSADMIN_CNF_DELETEOK', 'آیا حذف شود؟');
38 38
 
39 39
 define('_TPLSADMIN_DT_GETTPLSVARSINFO_DW', 'Get info of template variables as DreamWeaver Extensions');
40
-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.') ;
40
+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.');
41 41
 
42 42
 define('_TPLSADMIN_DT_GETTEMPLATES', 'دریافت الگو');
43 43
 define('_TPLSADMIN_DD_GETTEMPLATES', 'پیش از کلیک بروی هرگونه دکمه، یک دسته را انتخاب کنید');
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/language/portuguese/blocks_each.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,9 +4,9 @@
 block discarded – undo
4 4
 if (defined('FOR_XOOPS_LANG_CHECKER')) {
5 5
     $mydirname = 'd3forum';
6 6
 }
7
-$constpref = '_MB_' . mb_strtoupper($mydirname);
8
-if (defined('FOR_XOOPS_LANG_CHECKER') || !defined($constpref . '_LOADED')) {
9
-    define($constpref . '_LOADED', 1);
7
+$constpref = '_MB_'.mb_strtoupper($mydirname);
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 MODULE, THIS FILE HAS NON-SENSE.
Please login to merge, or discard this patch.