Completed
Push — master ( 6dab8b...b949bb )
by Michael
02:15 queued 11s
created
xoops_trust_path/libs/altsys/include/admin_in_theme_header.inc.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -17,12 +17,12 @@  discard block
 block discarded – undo
17 17
 
18 18
 // This is a mimic file from header.php of 2.0.16-JP
19 19
 
20
-require_once dirname(__DIR__) . '/class/AltsysBreadcrumbs.class.php';
21
-include_once XOOPS_ROOT_PATH . '/class/xoopsblock.php';
20
+require_once dirname(__DIR__).'/class/AltsysBreadcrumbs.class.php';
21
+include_once XOOPS_ROOT_PATH.'/class/xoopsblock.php';
22 22
 
23 23
 $xoopsOption['theme_use_smarty'] = 1;
24 24
 // include Smarty template engine and initialize it
25
-require_once XOOPS_ROOT_PATH . '/class/template.php';
25
+require_once XOOPS_ROOT_PATH.'/class/template.php';
26 26
 $xoopsTpl = new XoopsTpl();
27 27
 $xoopsTpl->xoops_setCaching(2);
28 28
 if (3 == $xoopsConfig['debug_mode']) {
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 }
31 31
 $xoopsTpl->assign([
32 32
                       'xoops_theme' => $xoopsConfig['theme_set'],
33
-                      'xoops_imageurl' => XOOPS_THEME_URL . '/' . $xoopsConfig['theme_set'] . '/',
33
+                      'xoops_imageurl' => XOOPS_THEME_URL.'/'.$xoopsConfig['theme_set'].'/',
34 34
                       'xoops_themecss' => xoops_getcss($xoopsConfig['theme_set']),
35 35
                       'xoops_requesturi' => htmlspecialchars($GLOBALS['xoopsRequestUri'], ENT_QUOTES),
36 36
                       'xoops_sitename' => htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES),
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 foreach (array_keys($config) as $i) {
45 45
     // prefix each tag with 'xoops_'
46 46
 
47
-    $xoopsTpl->assign('xoops_' . $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput());
47
+    $xoopsTpl->assign('xoops_'.$config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput());
48 48
 }
49 49
 //unset($config);
50 50
 // Weird, but need extra <script> tags for 2.0.x themes
@@ -85,9 +85,9 @@  discard block
 block discarded – undo
85 85
         if ($breadcrumbsObj->hasPaths()) {
86 86
             $xoops_breadcrumbs = $breadcrumbsObj->getXoopsBreadcrumbs();
87 87
         } else {
88
-            $mod_url = XOOPS_URL . '/modules/' . $target_module->getVar('dirname');
88
+            $mod_url = XOOPS_URL.'/modules/'.$target_module->getVar('dirname');
89 89
 
90
-            $mod_path = XOOPS_ROOT_PATH . '/modules/' . $target_module->getVar('dirname');
90
+            $mod_path = XOOPS_ROOT_PATH.'/modules/'.$target_module->getVar('dirname');
91 91
 
92 92
             $modinfo = &$target_module->getInfo();
93 93
 
@@ -95,14 +95,14 @@  discard block
 block discarded – undo
95 95
 
96 96
             if (!empty($modinfo['hasMain'])) {
97 97
                 $xoops_breadcrumbs[] = [
98
-                    'url' => $mod_url . '/',
98
+                    'url' => $mod_url.'/',
99 99
                     'name' => sprintf(_MD_A_AINTHEME_FMT_PUBLICTOP, $target_module->getVar('name')),
100 100
                 ];
101 101
             }
102 102
 
103 103
             if (!empty($modinfo['adminindex'])) {
104 104
                 $xoops_breadcrumbs[] = [
105
-                    'url' => $mod_url . '/' . $modinfo['adminindex'],
105
+                    'url' => $mod_url.'/'.$modinfo['adminindex'],
106 106
                     'name' => sprintf(_MD_A_AINTHEME_FMT_ADMINTOP, $target_module->getVar('name')),
107 107
                 ];
108 108
             }
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
             if (!empty($GLOBALS['altsysAdminPageTitle'])) {
111 111
                 $xoops_breadcrumbs[] = ['name' => htmlspecialchars($GLOBALS['altsysAdminPageTitle'], ENT_QUOTES)];
112 112
             } elseif (!empty($modinfo['adminmenu'])) {
113
-                @include $mod_path . '/' . $modinfo['adminmenu'];
113
+                @include $mod_path.'/'.$modinfo['adminmenu'];
114 114
 
115 115
                 if (is_array(@$adminmenu)) {
116 116
                     foreach ($adminmenu as $eachmenu) {
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
 
131 131
         $xoops_breadcrumbs = [
132 132
             [
133
-                'url' => XOOPS_URL . '/admin.php',
133
+                'url' => XOOPS_URL.'/admin.php',
134 134
                 'name' => _CPHOME,
135 135
             ],
136 136
         ];
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
 
142 142
 // get block_arr
143 143
 $db = XoopsDatabaseFactory::getDatabaseConnection();
144
-$sql = 'SELECT DISTINCT gperm_itemid FROM ' . $db->prefix('group_permission') . " WHERE gperm_name = 'block_read' AND gperm_modid = 1 AND gperm_groupid IN (" . implode(',', $xoopsUser->getGroups()) . ')';
144
+$sql = 'SELECT DISTINCT gperm_itemid FROM '.$db->prefix('group_permission')." WHERE gperm_name = 'block_read' AND gperm_modid = 1 AND gperm_groupid IN (".implode(',', $xoopsUser->getGroups()).')';
145 145
 $result = $db->query($sql);
146 146
 
147 147
 $blockids = [];
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
 global $block_arr, $i; // for piCal :-)
153 153
 $block_arr = [];
154 154
 if (!empty($blockids)) {
155
-    $sql = 'SELECT b.* FROM ' . $db->prefix('newblocks') . ' b, ' . $db->prefix('block_module_link') . ' m WHERE m.block_id=b.bid AND b.isactive=1 AND b.visible=1 AND m.module_id=' . (int)$altsysModuleId . ' AND b.bid IN (' . implode(',', $blockids) . ') ORDER BY b.weight,b.bid';
155
+    $sql = 'SELECT b.* FROM '.$db->prefix('newblocks').' b, '.$db->prefix('block_module_link').' m WHERE m.block_id=b.bid AND b.isactive=1 AND b.visible=1 AND m.module_id='.(int)$altsysModuleId.' AND b.bid IN ('.implode(',', $blockids).') ORDER BY b.weight,b.bid';
156 156
 
157 157
     $result = $db->query($sql);
158 158
 
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
     $btpl = $block_arr[$i]->getVar('template');
191 191
 
192 192
     if ('' != $btpl) {
193
-        if (empty($bcachetime) || !$xoopsTpl->is_cached('db:' . $btpl, 'blk_' . $block_arr[$i]->getVar('bid'))) {
193
+        if (empty($bcachetime) || !$xoopsTpl->is_cached('db:'.$btpl, 'blk_'.$block_arr[$i]->getVar('bid'))) {
194 194
             $xoopsLogger->addBlock($block_arr[$i]->getVar('name'));
195 195
 
196 196
             $bresult = $block_arr[$i]->buildBlock();
@@ -201,18 +201,18 @@  discard block
 block discarded – undo
201 201
 
202 202
             $xoopsTpl->assign_by_ref('block', $bresult);
203 203
 
204
-            $bcontent = $xoopsTpl->fetch('db:' . $btpl, 'blk_' . $block_arr[$i]->getVar('bid'));
204
+            $bcontent = $xoopsTpl->fetch('db:'.$btpl, 'blk_'.$block_arr[$i]->getVar('bid'));
205 205
 
206 206
             $xoopsTpl->clear_assign('block');
207 207
         } else {
208 208
             $xoopsLogger->addBlock($block_arr[$i]->getVar('name'), true, $bcachetime);
209 209
 
210
-            $bcontent = $xoopsTpl->fetch('db:' . $btpl, 'blk_' . $block_arr[$i]->getVar('bid'));
210
+            $bcontent = $xoopsTpl->fetch('db:'.$btpl, 'blk_'.$block_arr[$i]->getVar('bid'));
211 211
         }
212 212
     } else {
213 213
         $bid = $block_arr[$i]->getVar('bid');
214 214
 
215
-        if (empty($bcachetime) || !$xoopsTpl->is_cached('db:system_dummy.html', 'blk_' . $bid)) {
215
+        if (empty($bcachetime) || !$xoopsTpl->is_cached('db:system_dummy.html', 'blk_'.$bid)) {
216 216
             $xoopsLogger->addBlock($block_arr[$i]->getVar('name'));
217 217
 
218 218
             $bresult = $block_arr[$i]->buildBlock();
@@ -223,13 +223,13 @@  discard block
 block discarded – undo
223 223
 
224 224
             $xoopsTpl->assign_by_ref('dummy_content', $bresult['content']);
225 225
 
226
-            $bcontent = $xoopsTpl->fetch('db:system_dummy.html', 'blk_' . $bid);
226
+            $bcontent = $xoopsTpl->fetch('db:system_dummy.html', 'blk_'.$bid);
227 227
 
228 228
             $xoopsTpl->clear_assign('block');
229 229
         } else {
230 230
             $xoopsLogger->addBlock($block_arr[$i]->getVar('name'), true, $bcachetime);
231 231
 
232
-            $bcontent = $xoopsTpl->fetch('db:system_dummy.html', 'blk_' . $bid);
232
+            $bcontent = $xoopsTpl->fetch('db:system_dummy.html', 'blk_'.$bid);
233 233
         }
234 234
     }
235 235
 
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
 
282 282
 // FALLBACK inserting admin_menu_block in admin side
283 283
 if (!$adminmenublock_exists) {
284
-    require_once XOOPS_ROOT_PATH . '/modules/altsys/blocks/blocks.php';
284
+    require_once XOOPS_ROOT_PATH.'/modules/altsys/blocks/blocks.php';
285 285
 
286 286
     $admin_menu_block = [b_altsys_admin_menu_show(['altsys'])];
287 287
 
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/include/Text_Diff_Renderer.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     public function __construct($params = [])
43 43
     {
44 44
         foreach ($params as $param => $value) {
45
-            $v = '_' . $param;
45
+            $v = '_'.$param;
46 46
 
47 47
             if (isset($this->$v)) {
48 48
                 $this->$v = $value;
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
             $output .= $this->_block($x0, $xi - $x0, $y0, $yi - $y0, $block);
142 142
         }
143 143
 
144
-        return $output . $this->_endDiff();
144
+        return $output.$this->_endDiff();
145 145
     }
146 146
 
147 147
     /**
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
             }
175 175
         }
176 176
 
177
-        return $output . $this->_endBlock();
177
+        return $output.$this->_endBlock();
178 178
     }
179 179
 
180 180
     /**
@@ -206,14 +206,14 @@  discard block
 block discarded – undo
206 206
     public function _blockHeader($xbeg, $xlen, $ybeg, $ylen)
207 207
     {
208 208
         if ($xlen > 1) {
209
-            $xbeg .= ',' . ($xbeg + $xlen - 1);
209
+            $xbeg .= ','.($xbeg + $xlen - 1);
210 210
         }
211 211
 
212 212
         if ($ylen > 1) {
213
-            $ybeg .= ',' . ($ybeg + $ylen - 1);
213
+            $ybeg .= ','.($ybeg + $ylen - 1);
214 214
         }
215 215
 
216
-        return $xbeg . ($xlen ? ($ylen ? 'c' : 'd') : 'a') . $ybeg;
216
+        return $xbeg.($xlen ? ($ylen ? 'c' : 'd') : 'a').$ybeg;
217 217
     }
218 218
 
219 219
     /**
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
 
224 224
     public function _startBlock($header)
225 225
     {
226
-        return $header . "\n";
226
+        return $header."\n";
227 227
     }
228 228
 
229 229
     /**
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
 
244 244
     public function _lines($lines, $prefix = ' ')
245 245
     {
246
-        return $prefix . implode("\n$prefix", $lines) . "\n";
246
+        return $prefix.implode("\n$prefix", $lines)."\n";
247 247
     }
248 248
 
249 249
     /**
@@ -284,6 +284,6 @@  discard block
 block discarded – undo
284 284
 
285 285
     public function _changed($orig, $final)
286 286
     {
287
-        return $this->_deleted($orig) . "---\n" . $this->_added($final);
287
+        return $this->_deleted($orig)."---\n".$this->_added($final);
288 288
     }
289 289
 }
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/include/admin_in_theme_functions.php 1 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/Text_Diff_Renderer_inline.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
             return implode('', $lines);
102 102
         }
103 103
 
104
-        return implode("\n", $lines) . "\n";
104
+        return implode("\n", $lines)."\n";
105 105
     }
106 106
 
107 107
     /**
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
     {
114 114
         array_walk($lines, [&$this, '_encode']);
115 115
 
116
-        $lines[0] = $this->_ins_prefix . $lines[0];
116
+        $lines[0] = $this->_ins_prefix.$lines[0];
117 117
 
118 118
         $lines[count($lines) - 1] .= $this->_ins_suffix;
119 119
 
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
     {
131 131
         array_walk($lines, [&$this, '_encode']);
132 132
 
133
-        $lines[0] = $this->_del_prefix . $lines[0];
133
+        $lines[0] = $this->_del_prefix.$lines[0];
134 134
 
135 135
         $lines[count($lines) - 1] .= $this->_del_suffix;
136 136
 
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
                 $final[0] = mb_substr($final[0], 1);
162 162
             }
163 163
 
164
-            return $prefix . $this->_deleted($orig) . $this->_added($final);
164
+            return $prefix.$this->_deleted($orig).$this->_added($final);
165 165
         }
166 166
 
167 167
         $text1 = implode("\n", $orig);
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
 
185 185
         /* Run the diff and get the output. */
186 186
 
187
-        return str_replace($nl, "\n", $renderer->render($diff)) . "\n";
187
+        return str_replace($nl, "\n", $renderer->render($diff))."\n";
188 188
     }
189 189
 
190 190
     /**
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/include/autoupdate_from_theme.inc.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -5,19 +5,19 @@
 block discarded – undo
5 5
 }
6 6
 
7 7
 // templates/ under the theme
8
-$tplsadmin_autoupdate_path = XOOPS_THEME_PATH . '/' . $xoopsConfig['theme_set'] . '/templates';
8
+$tplsadmin_autoupdate_path = XOOPS_THEME_PATH.'/'.$xoopsConfig['theme_set'].'/templates';
9 9
 
10
-if ($handler = @opendir($tplsadmin_autoupdate_path . '/')) {
10
+if ($handler = @opendir($tplsadmin_autoupdate_path.'/')) {
11 11
     while (false !== ($file = readdir($handler))) {
12
-        $file_path = $tplsadmin_autoupdate_path . '/' . $file;
12
+        $file_path = $tplsadmin_autoupdate_path.'/'.$file;
13 13
 
14 14
         if (is_file($file_path) && '.html' == mb_substr($file, -5)) {
15 15
             $mtime = (int)(@filemtime($file_path));
16 16
 
17
-            list($count) = $xoopsDB->fetchRow($xoopsDB->query('SELECT COUNT(*) FROM ' . $xoopsDB->prefix('tplfile') . " WHERE tpl_tplset='" . addslashes($xoopsConfig['template_set']) . "' AND tpl_file='" . addslashes($file) . "' AND tpl_lastmodified >= $mtime"));
17
+            list($count) = $xoopsDB->fetchRow($xoopsDB->query('SELECT COUNT(*) FROM '.$xoopsDB->prefix('tplfile')." WHERE tpl_tplset='".addslashes($xoopsConfig['template_set'])."' AND tpl_file='".addslashes($file)."' AND tpl_lastmodified >= $mtime"));
18 18
 
19 19
             if ($count <= 0) {
20
-                include_once XOOPS_TRUST_PATH . '/libs/altsys/include/tpls_functions.php';
20
+                include_once XOOPS_TRUST_PATH.'/libs/altsys/include/tpls_functions.php';
21 21
 
22 22
                 tplsadmin_import_data($xoopsConfig['template_set'], $file, implode('', file($file_path)), $mtime);
23 23
             }
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/altsys_functions.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -45,17 +45,17 @@  discard block
 block discarded – undo
45 45
     global $xoopsModule, $xoopsConfig, $mydirname, $mydirpath, $mytrustdirname, $mytrustdirpath, $mymenu_fake_uri;
46 46
 
47 47
     $mymenu_find_paths = [
48
-        $mydirpath . '/admin/mymenu.php',
49
-        $mydirpath . '/mymenu.php',
50
-        $mytrustdirpath . '/admin/mymenu.php',
51
-        $mytrustdirpath . '/mymenu.php',
48
+        $mydirpath.'/admin/mymenu.php',
49
+        $mydirpath.'/mymenu.php',
50
+        $mytrustdirpath.'/admin/mymenu.php',
51
+        $mytrustdirpath.'/mymenu.php',
52 52
     ];
53 53
 
54 54
     foreach ($mymenu_find_paths as $mymenu_find_path) {
55 55
         if (is_file($mymenu_find_path)) {
56 56
             include $mymenu_find_path;
57 57
 
58
-            include_once __DIR__ . '/adminmenu_functions.php';
58
+            include_once __DIR__.'/adminmenu_functions.php';
59 59
 
60 60
             altsys_adminmenu_insert_mymenu($xoopsModule);
61 61
 
@@ -73,14 +73,14 @@  discard block
 block discarded – undo
73 73
 {
74 74
     $mylang = $GLOBALS['xoopsConfig']['language'];
75 75
 
76
-    if (is_file(XOOPS_ROOT_PATH . '/modules/altsys/language/' . $mylang . '/' . $type . '.php')) {
77
-        include_once XOOPS_ROOT_PATH . '/modules/altsys/language/' . $mylang . '/' . $type . '.php';
78
-    } elseif (is_file(XOOPS_TRUST_PATH . '/libs/altsys/language/' . $mylang . '/' . $type . '.php')) {
79
-        include_once XOOPS_TRUST_PATH . '/libs/altsys/language/' . $mylang . '/' . $type . '.php';
80
-    } elseif (is_file(XOOPS_ROOT_PATH . '/modules/altsys/language/english/' . $type . '.php')) {
81
-        include_once XOOPS_ROOT_PATH . '/modules/altsys/language/english/' . $type . '.php';
82
-    } elseif (is_file(XOOPS_TRUST_PATH . '/libs/altsys/language/english/' . $type . '.php')) {
83
-        include_once XOOPS_TRUST_PATH . '/libs/altsys/language/english/' . $type . '.php';
76
+    if (is_file(XOOPS_ROOT_PATH.'/modules/altsys/language/'.$mylang.'/'.$type.'.php')) {
77
+        include_once XOOPS_ROOT_PATH.'/modules/altsys/language/'.$mylang.'/'.$type.'.php';
78
+    } elseif (is_file(XOOPS_TRUST_PATH.'/libs/altsys/language/'.$mylang.'/'.$type.'.php')) {
79
+        include_once XOOPS_TRUST_PATH.'/libs/altsys/language/'.$mylang.'/'.$type.'.php';
80
+    } elseif (is_file(XOOPS_ROOT_PATH.'/modules/altsys/language/english/'.$type.'.php')) {
81
+        include_once XOOPS_ROOT_PATH.'/modules/altsys/language/english/'.$type.'.php';
82
+    } elseif (is_file(XOOPS_TRUST_PATH.'/libs/altsys/language/english/'.$type.'.php')) {
83
+        include_once XOOPS_TRUST_PATH.'/libs/altsys/language/english/'.$type.'.php';
84 84
     }
85 85
 }
86 86
 
@@ -144,9 +144,9 @@  discard block
 block discarded – undo
144 144
         case ALTSYS_CORE_TYPE_X23P:
145 145
         case ALTSYS_CORE_TYPE_ICMS:
146 146
         default:
147
-            return XOOPS_URL . '/modules/system/admin.php?fct=preferences&op=showmod&mod=' . $mid;
147
+            return XOOPS_URL.'/modules/system/admin.php?fct=preferences&op=showmod&mod='.$mid;
148 148
         case ALTSYS_CORE_TYPE_XCL21:
149
-            return XOOPS_URL . '/modules/legacy/admin/index.php?action=PreferenceEdit&confmod_id=' . $mid;
149
+            return XOOPS_URL.'/modules/legacy/admin/index.php?action=PreferenceEdit&confmod_id='.$mid;
150 150
     }
151 151
 }
152 152
 
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
             continue;
180 180
         }
181 181
 
182
-        @unlink(XOOPS_COMPILE_PATH . '/' . $file);
182
+        @unlink(XOOPS_COMPILE_PATH.'/'.$file);
183 183
     }
184 184
 
185 185
     closedir($dh);
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.