Completed
Branch master (5c4e1a)
by Michael
46s
created
xoops_trust_path/libs/altsys/compilehookadmin.php 1 patch
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -5,9 +5,9 @@  discard block
 block discarded – undo
5 5
 //                       GIJOE <https://www.peak.ne.jp>                      //
6 6
 // ------------------------------------------------------------------------- //
7 7
 
8
-require_once __DIR__ . '/class/AltsysBreadcrumbs.class.php';
9
-require_once __DIR__ . '/include/gtickets.php';
10
-require_once __DIR__ . '/include/altsys_functions.php';
8
+require_once __DIR__.'/class/AltsysBreadcrumbs.class.php';
9
+require_once __DIR__.'/include/gtickets.php';
10
+require_once __DIR__.'/include/altsys_functions.php';
11 11
 
12 12
 // this page can be called only from altsys
13 13
 // if( $xoopsModule->getVar('dirname') != 'altsys' ) die( 'this page can be called only from altsys' ) ;
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
     'enclosebybordereddiv' => [
34 34
         'pre' => '<div class="altsys_tplsadmin_frame" style="border:1px solid black;word-wrap:break-word;">',
35
-        'post' => '<br><a href="' . XOOPS_URL . '/modules/altsys/admin/index.php?mode=admin&amp;lib=altsys&amp;page=mytplsform&amp;tpl_file=%1$s" style="color:red;">Edit:<br>%1$s</a></div>',
35
+        'post' => '<br><a href="'.XOOPS_URL.'/modules/altsys/admin/index.php?mode=admin&amp;lib=altsys&amp;page=mytplsform&amp;tpl_file=%1$s" style="color:red;">Edit:<br>%1$s</a></div>',
36 36
         'success_msg' => _TPLSADMIN_FMT_MSG_ENCLOSEBYBORDEREDDIV,
37 37
         'dt' => _TPLSADMIN_DT_ENCLOSEBYBORDEREDDIV,
38 38
         'dd' => _TPLSADMIN_DD_ENCLOSEBYBORDEREDDIV,
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     ],
42 42
 
43 43
     'hooksavevars' => [
44
-        'pre' => '<?php require_once \'' . XOOPS_TRUST_PATH . ',$this) ; ?>',
44
+        'pre' => '<?php require_once \''.XOOPS_TRUST_PATH.',$this) ; ?>',
45 45
         'post' => '',
46 46
         'success_msg' => _TPLSADMIN_FMT_MSG_HOOKSAVEVARS,
47 47
         'dt' => _TPLSADMIN_DT_HOOKSAVEVARS,
@@ -70,10 +70,10 @@  discard block
 block discarded – undo
70 70
     // Ticket Check
71 71
 
72 72
     if (!$xoopsGTicket->check()) {
73
-        redirect_header(XOOPS_URL . '/', 3, $xoopsGTicket->getErrors());
73
+        redirect_header(XOOPS_URL.'/', 3, $xoopsGTicket->getErrors());
74 74
     }
75 75
 
76
-    if ($handler = opendir(XOOPS_COMPILE_PATH . '/')) {
76
+    if ($handler = opendir(XOOPS_COMPILE_PATH.'/')) {
77 77
         while (false !== ($file = readdir($handler))) {
78 78
             if (!empty($_POST['clearcache'])) {
79 79
                 // judging template cache '*.php'
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
                 continue;
87 87
             }
88 88
 
89
-            $file_path = XOOPS_COMPILE_PATH . '/' . $file;
89
+            $file_path = XOOPS_COMPILE_PATH.'/'.$file;
90 90
 
91 91
             @unlink($file_path);
92 92
         }
@@ -105,10 +105,10 @@  discard block
 block discarded – undo
105 105
         // Ticket Check
106 106
 
107 107
         if (!$xoopsGTicket->check()) {
108
-            redirect_header(XOOPS_URL . '/', 3, $xoopsGTicket->getErrors());
108
+            redirect_header(XOOPS_URL.'/', 3, $xoopsGTicket->getErrors());
109 109
         }
110 110
 
111
-        if ($handler = opendir(XOOPS_COMPILE_PATH . '/')) {
111
+        if ($handler = opendir(XOOPS_COMPILE_PATH.'/')) {
112 112
             $file_count = 0;
113 113
 
114 114
             while (false !== ($file = readdir($handler))) {
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
                     $skip_mode = false;
133 133
                 }
134 134
 
135
-                $file_path = XOOPS_COMPILE_PATH . '/' . $file;
135
+                $file_path = XOOPS_COMPILE_PATH.'/'.$file;
136 136
 
137 137
                 $file_bodies = file($file_path);
138 138
 
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
                 // insert "pre" command before the compiled cache
162 162
 
163 163
                 if ($compile_hook['pre'] && !$skip_mode) {
164
-                    fwrite($fw, sprintf($compile_hook['pre'], htmlspecialchars($tpl_name, ENT_QUOTES | ENT_HTML5)) . "\r\n");
164
+                    fwrite($fw, sprintf($compile_hook['pre'], htmlspecialchars($tpl_name, ENT_QUOTES | ENT_HTML5))."\r\n");
165 165
                 }
166 166
 
167 167
                 // rest of template cache
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
                 // insert "post" command after the compiled cache
174 174
 
175 175
                 if ($compile_hook['post'] && !$skip_mode) {
176
-                    fwrite($fw, "\r\n" . sprintf($compile_hook['post'], htmlspecialchars($tpl_name, ENT_QUOTES | ENT_HTML5)));
176
+                    fwrite($fw, "\r\n".sprintf($compile_hook['post'], htmlspecialchars($tpl_name, ENT_QUOTES | ENT_HTML5)));
177 177
                 }
178 178
 
179 179
                 fclose($fw);
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
 // count template vars & compiled caches
204 204
 $compiledcache_num = 0;
205 205
 $tplsvars_num = 0;
206
-if ($handler = opendir(XOOPS_COMPILE_PATH . '/')) {
206
+if ($handler = opendir(XOOPS_COMPILE_PATH.'/')) {
207 207
     while (false !== ($file = readdir($handler))) {
208 208
         if (0 === strncmp($file, 'tplsvars_', 9)) {
209 209
             $tplsvars_num++;
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
 }
215 215
 
216 216
 // get tplsets
217
-$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, tplset_name, tpl_file ORDER BY tpl_tplset='default' DESC,tpl_tplset";
217
+$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, tplset_name, tpl_file ORDER BY tpl_tplset='default' DESC,tpl_tplset";
218 218
 $srs = $xoopsDB->query($sql);
219 219
 $tplset_options = "<option value=''>----</option>\n";
220 220
 while ([$tplset, $tpl_count] = $xoopsDB->fetchRow($srs)) {
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
 
235 235
 // breadcrumbs
236 236
 $breadcrumbsObj = AltsysBreadcrumbs::getInstance();
237
-$breadcrumbsObj->appendPath(XOOPS_URL . '/modules/altsys/admin/index.php?mode=admin&amp;lib=altsys&amp;page=compilehookadmin', _MI_ALTSYS_MENU_COMPILEHOOKADMIN);
237
+$breadcrumbsObj->appendPath(XOOPS_URL.'/modules/altsys/admin/index.php?mode=admin&amp;lib=altsys&amp;page=compilehookadmin', _MI_ALTSYS_MENU_COMPILEHOOKADMIN);
238 238
 
239 239
 echo "
240 240
     <style>
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
             <dl>
253 253
                 <dt>
254 254
                     {$compile_hook['dt']}
255
-                    <input type='submit' name='$command' id='$command' value='" . _GO . "' onclick='return confirm(\"{$compile_hook['conf_msg']}\");'>
255
+                    <input type='submit' name='$command' id='$command' value='"._GO."' onclick='return confirm(\"{$compile_hook['conf_msg']}\");'>
256 256
                 </dt>
257 257
                 <dd>
258 258
                     {$compile_hook['dd']}
@@ -264,26 +264,26 @@  discard block
 block discarded – undo
264 264
 
265 265
 echo "
266 266
         <p style='margin:10px;'>
267
-            " . _TPLSADMIN_NUMCAP_COMPILEDCACHES . ": <strong>$compiledcache_num</strong>
268
-            <input type='submit' name='clearcache' value='" . _DELETE . "' onclick='return confirm(\"" . _TPLSADMIN_CNF_DELETEOK . "\");'>
267
+            " . _TPLSADMIN_NUMCAP_COMPILEDCACHES.": <strong>$compiledcache_num</strong>
268
+            <input type='submit' name='clearcache' value='"._DELETE."' onclick='return confirm(\""._TPLSADMIN_CNF_DELETEOK."\");'>
269 269
 
270 270
         </p>
271 271
         <p style='margin:10px;'>
272
-            " . _TPLSADMIN_NUMCAP_TPLSVARS . ": <strong>$tplsvars_num</strong>
273
-            <input type='submit' name='cleartplsvars' value='" . _DELETE . "' onclick='return confirm(\"" . _TPLSADMIN_CNF_DELETEOK . "\");'>
272
+            " . _TPLSADMIN_NUMCAP_TPLSVARS.": <strong>$tplsvars_num</strong>
273
+            <input type='submit' name='cleartplsvars' value='"._DELETE."' onclick='return confirm(\""._TPLSADMIN_CNF_DELETEOK."\");'>
274 274
 
275 275
         </p>
276
-        " . $xoopsGTicket->getTicketHtml(__LINE__) . "
276
+        " . $xoopsGTicket->getTicketHtml(__LINE__)."
277 277
     </form>
278 278
 
279 279
     <form action='?mode=admin&amp;lib=altsys&amp;page=get_tplsvarsinfo' method='post' class='odd' style='margin: 40px;' target='_blank'>
280 280
         <p>
281 281
             <dl>
282 282
                 <dt>
283
-                    " . _TPLSADMIN_DT_GETTPLSVARSINFO_DW . '
283
+                    " . _TPLSADMIN_DT_GETTPLSVARSINFO_DW.'
284 284
                 </dt>
285 285
                 <dd>
286
-                    ' . _TPLSADMIN_DD_GETTPLSVARSINFO_DW . "
286
+                    ' . _TPLSADMIN_DD_GETTPLSVARSINFO_DW."
287 287
                     <br>
288 288
                     <input type='submit' name='as_dw_extension_zip' value='zip'>
289 289
                     <input type='submit' name='as_dw_extension_tgz' value='tar.gz'>
@@ -296,10 +296,10 @@  discard block
 block discarded – undo
296 296
         <p>
297 297
             <dl>
298 298
                 <dt>
299
-                    " . _TPLSADMIN_DT_GETTEMPLATES . '
299
+                    " . _TPLSADMIN_DT_GETTEMPLATES.'
300 300
                 </dt>
301 301
                 <dd>
302
-                    ' . _TPLSADMIN_DD_GETTEMPLATES . "
302
+                    ' . _TPLSADMIN_DD_GETTEMPLATES."
303 303
                     <br>
304 304
                     <select name='tplset'>$tplset_options</select>
305 305
                     <input type='submit' name='download_zip' value='zip'>
@@ -313,14 +313,14 @@  discard block
 block discarded – undo
313 313
         <p>
314 314
             <dl>
315 315
                 <dt>
316
-                    " . _TPLSADMIN_DT_PUTTEMPLATES . '
316
+                    "._TPLSADMIN_DT_PUTTEMPLATES.'
317 317
                 </dt>
318 318
                 <dd>
319
-                    ' . _TPLSADMIN_DD_PUTTEMPLATES . "
319
+                    ' . _TPLSADMIN_DD_PUTTEMPLATES."
320 320
                     <br>
321 321
                     <select name='tplset'>$tplset_options</select>
322 322
                     <input type='file' name='tplset_archive' size='60'>
323
-                    <input type='submit' value='" . _SUBMIT . "'>
323
+                    <input type='submit' value='"._SUBMIT."'>
324 324
                 </dd>
325 325
             </dl>
326 326
         </p>
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/preload.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
 //admin page
7 7
 if ($root->mController->_mStrategy) {
8 8
     if (mb_strtolower(get_class($root->mController->_mStrategy)) == mb_strtolower('Legacy_AdminControllerStrategy')) {
9
-        require_once __DIR__ . '/include/altsys_functions.php';
9
+        require_once __DIR__.'/include/altsys_functions.php';
10 10
 
11 11
         // language file (modinfo.php)
12 12
 
@@ -14,4 +14,4 @@  discard block
 block discarded – undo
14 14
     }
15 15
 }
16 16
 // load altsys newly gticket class for other modules
17
-require_once XOOPS_TRUST_PATH . '/libs/altsys/include/gtickets.php';
17
+require_once XOOPS_TRUST_PATH.'/libs/altsys/include/gtickets.php';
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/include/admin_in_theme_header.inc.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -29,13 +29,13 @@
 block discarded – undo
29 29
     $xoopsTpl->xoops_setDebugging(true);
30 30
 }
31 31
 $xoopsTpl->assign([
32
-                      'xoops_theme' => $xoopsConfig['theme_set'],
33
-                      'xoops_imageurl' => XOOPS_THEME_URL . '/' . $xoopsConfig['theme_set'] . '/',
34
-                      'xoops_themecss' => xoops_getcss($xoopsConfig['theme_set']),
35
-                      'xoops_requesturi' => htmlspecialchars($GLOBALS['xoopsRequestUri'], ENT_QUOTES | ENT_HTML5),
36
-                      'xoops_sitename' => htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES | ENT_HTML5),
37
-                      'xoops_slogan' => htmlspecialchars($xoopsConfig['slogan'], ENT_QUOTES | ENT_HTML5),
38
-                  ]);
32
+                        'xoops_theme' => $xoopsConfig['theme_set'],
33
+                        'xoops_imageurl' => XOOPS_THEME_URL . '/' . $xoopsConfig['theme_set'] . '/',
34
+                        'xoops_themecss' => xoops_getcss($xoopsConfig['theme_set']),
35
+                        'xoops_requesturi' => htmlspecialchars($GLOBALS['xoopsRequestUri'], ENT_QUOTES | ENT_HTML5),
36
+                        'xoops_sitename' => htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES | ENT_HTML5),
37
+                        'xoops_slogan' => htmlspecialchars($xoopsConfig['slogan'], ENT_QUOTES | ENT_HTML5),
38
+                    ]);
39 39
 // Meta tags
40 40
 $configHandler = xoops_getHandler('config');
41 41
 $criteria = new \CriteriaCompo(new \Criteria('conf_modid', 0));
Please login to merge, or discard this patch.
Spacing   +21 added lines, -21 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
-require_once XOOPS_ROOT_PATH . '/class/xoopsblock.php';
20
+require_once dirname(__DIR__).'/class/AltsysBreadcrumbs.class.php';
21
+require_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 | ENT_HTML5),
36 36
                       'xoops_sitename' => htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES | ENT_HTML5),
@@ -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 | ENT_HTML5)];
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,18 +141,18 @@  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 = [];
148 148
 while ([$blockid] = $db->fetchRow($result)) {
149
-    $blockids[] = (int) $blockid;
149
+    $blockids[] = (int)$blockid;
150 150
 }
151 151
 
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->isCached('db:' . $btpl, 'blk_' . $block_arr[$i]->getVar('bid'))) {
193
+        if (empty($bcachetime) || !$xoopsTpl->isCached('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->assignByRef('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->clearAssign('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->isCached('db:system_dummy.tpl', 'blk_' . $bid)) {
215
+        if (empty($bcachetime) || !$xoopsTpl->isCached('db:system_dummy.tpl', '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->assignByRef('dummy_content', $bresult['content']);
225 225
 
226
-            $bcontent = $xoopsTpl->fetch('db:system_dummy.tpl', 'blk_' . $bid);
226
+            $bcontent = $xoopsTpl->fetch('db:system_dummy.tpl', 'blk_'.$bid);
227 227
 
228 228
             $xoopsTpl->clearAssign('block');
229 229
         } else {
230 230
             $xoopsLogger->addBlock($block_arr[$i]->getVar('name'), true, $bcachetime);
231 231
 
232
-            $bcontent = $xoopsTpl->fetch('db:system_dummy.tpl', 'blk_' . $bid);
232
+            $bcontent = $xoopsTpl->fetch('db:system_dummy.tpl', '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/autoupdate_from_module.inc.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -14,21 +14,21 @@  discard block
 block discarded – undo
14 14
 foreach ($tplsadmin_autoupdate_dirnames as $dirname) {
15 15
     $dirname = preg_replace('/[^a-zA-Z0-9_-]/', '', $dirname);
16 16
 
17
-    $tplsadmin_autoupdate_path = XOOPS_ROOT_PATH . '/modules/' . $dirname . '/templates';
17
+    $tplsadmin_autoupdate_path = XOOPS_ROOT_PATH.'/modules/'.$dirname.'/templates';
18 18
 
19 19
     // modules
20 20
 
21
-    if ($handler = @opendir($tplsadmin_autoupdate_path . '/')) {
21
+    if ($handler = @opendir($tplsadmin_autoupdate_path.'/')) {
22 22
         while (false !== ($file = readdir($handler))) {
23
-            $file_path = $tplsadmin_autoupdate_path . '/' . $file;
23
+            $file_path = $tplsadmin_autoupdate_path.'/'.$file;
24 24
 
25 25
             if (is_file($file_path) && '.tpl' == mb_substr($file, -5)) {
26
-                $mtime = (int) (@filemtime($file_path));
26
+                $mtime = (int)(@filemtime($file_path));
27 27
 
28
-                [$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"));
28
+                [$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"));
29 29
 
30 30
                 if ($count <= 0) {
31
-                    require_once XOOPS_TRUST_PATH . '/libs/altsys/include/tpls_functions.php';
31
+                    require_once XOOPS_TRUST_PATH.'/libs/altsys/include/tpls_functions.php';
32 32
 
33 33
                     tplsadmin_import_data($xoopsConfig['template_set'], $file, implode('', file($file_path)), $mtime);
34 34
                 }
@@ -38,17 +38,17 @@  discard block
 block discarded – undo
38 38
 
39 39
     // blocks
40 40
 
41
-    if ($handler = @opendir($tplsadmin_autoupdate_path . '/blocks/')) {
41
+    if ($handler = @opendir($tplsadmin_autoupdate_path.'/blocks/')) {
42 42
         while (false !== ($file = readdir($handler))) {
43
-            $file_path = $tplsadmin_autoupdate_path . '/blocks/' . $file;
43
+            $file_path = $tplsadmin_autoupdate_path.'/blocks/'.$file;
44 44
 
45 45
             if (is_file($file_path) && '.tpl' == mb_substr($file, -5)) {
46
-                $mtime = (int) (@filemtime($file_path));
46
+                $mtime = (int)(@filemtime($file_path));
47 47
 
48
-                [$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"));
48
+                [$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"));
49 49
 
50 50
                 if ($count <= 0) {
51
-                    require_once XOOPS_TRUST_PATH . '/libs/altsys/include/tpls_functions.php';
51
+                    require_once XOOPS_TRUST_PATH.'/libs/altsys/include/tpls_functions.php';
52 52
 
53 53
                     tplsadmin_import_data($xoopsConfig['template_set'], $file, implode('', file($file_path)), $mtime);
54 54
                 }
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/include/Text_Diff.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -557,7 +557,7 @@  discard block
 block discarded – undo
557 557
                 }
558 558
             }
559 559
 
560
-            $x1 = $xoff + (int) (($numer + ($xlim - $xoff) * $chunk) / $nchunks);
560
+            $x1 = $xoff + (int)(($numer + ($xlim - $xoff) * $chunk) / $nchunks);
561 561
 
562 562
             for (; $x < $x1; $x++) {
563 563
                 $line = $flip ? $this->yv[$x] : $this->xv[$x];
@@ -608,7 +608,7 @@  discard block
 block discarded – undo
608 608
         $ymid = $ymids[$this->lcs];
609 609
 
610 610
         for ($n = 0; $n < $nchunks - 1; $n++) {
611
-            $x1 = $xoff + (int) (($numer + ($xlim - $xoff) * $n) / $nchunks);
611
+            $x1 = $xoff + (int)(($numer + ($xlim - $xoff) * $n) / $nchunks);
612 612
 
613 613
             $y1 = $ymid[$n] + 1;
614 614
 
@@ -639,7 +639,7 @@  discard block
 block discarded – undo
639 639
         $beg = 1;
640 640
 
641 641
         while ($beg < $end) {
642
-            $mid = (int) (($beg + $end) / 2);
642
+            $mid = (int)(($beg + $end) / 2);
643 643
 
644 644
             if ($ypos > $this->seq[$mid]) {
645 645
                 $beg = $mid + 1;
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
-            require_once __DIR__ . '/adminmenu_functions.php';
58
+            require_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
-        require_once XOOPS_ROOT_PATH . '/modules/altsys/language/' . $mylang . '/' . $type . '.php';
78
-    } elseif (is_file(XOOPS_TRUST_PATH . '/libs/altsys/language/' . $mylang . '/' . $type . '.php')) {
79
-        require_once XOOPS_TRUST_PATH . '/libs/altsys/language/' . $mylang . '/' . $type . '.php';
80
-    } elseif (is_file(XOOPS_ROOT_PATH . '/modules/altsys/language/english/' . $type . '.php')) {
81
-        require_once XOOPS_ROOT_PATH . '/modules/altsys/language/english/' . $type . '.php';
82
-    } elseif (is_file(XOOPS_TRUST_PATH . '/libs/altsys/language/english/' . $type . '.php')) {
83
-        require_once XOOPS_TRUST_PATH . '/libs/altsys/language/english/' . $type . '.php';
76
+    if (is_file(XOOPS_ROOT_PATH.'/modules/altsys/language/'.$mylang.'/'.$type.'.php')) {
77
+        require_once XOOPS_ROOT_PATH.'/modules/altsys/language/'.$mylang.'/'.$type.'.php';
78
+    } elseif (is_file(XOOPS_TRUST_PATH.'/libs/altsys/language/'.$mylang.'/'.$type.'.php')) {
79
+        require_once XOOPS_TRUST_PATH.'/libs/altsys/language/'.$mylang.'/'.$type.'.php';
80
+    } elseif (is_file(XOOPS_ROOT_PATH.'/modules/altsys/language/english/'.$type.'.php')) {
81
+        require_once XOOPS_ROOT_PATH.'/modules/altsys/language/english/'.$type.'.php';
82
+    } elseif (is_file(XOOPS_TRUST_PATH.'/libs/altsys/language/english/'.$type.'.php')) {
83
+        require_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/autoupdate_from_theme.inc.php 1 patch
Spacing   +6 added lines, -6 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) && '.tpl' == mb_substr($file, -5)) {
15
-            $mtime = (int) (@filemtime($file_path));
15
+            $mtime = (int)(@filemtime($file_path));
16 16
 
17
-            [$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
+            [$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
-                require_once XOOPS_TRUST_PATH . '/libs/altsys/include/tpls_functions.php';
20
+                require_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/gtickets.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@  discard block
 block discarded – undo
27 27
             // language file
28 28
 
29 29
             if (defined('XOOPS_ROOT_PATH') && !empty($xoopsConfig['language']) && !mb_strstr($xoopsConfig['language'], '/')) {
30
-                if (is_file(dirname(__DIR__) . '/language/' . $xoopsConfig['language'] . '/gticket_messages.phtml')) {
31
-                    include dirname(__DIR__) . '/language/' . $xoopsConfig['language'] . '/gticket_messages.phtml';
30
+                if (is_file(dirname(__DIR__).'/language/'.$xoopsConfig['language'].'/gticket_messages.phtml')) {
31
+                    include dirname(__DIR__).'/language/'.$xoopsConfig['language'].'/gticket_messages.phtml';
32 32
                 }
33 33
             }
34 34
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
         public function getTicketHtml($salt = '', $timeout = 1800, $area = '')
61 61
         {
62
-            return '<input type="hidden" name="XOOPS_G_TICKET" value="' . $this->issue($salt, $timeout, $area) . '">';
62
+            return '<input type="hidden" name="XOOPS_G_TICKET" value="'.$this->issue($salt, $timeout, $area).'">';
63 63
         }
64 64
 
65 65
         // returns an object of XoopsFormHidden including theh ticket
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
 
117 117
         public function getTicketParamString($salt = '', $noamp = false, $timeout = 1800, $area = '')
118 118
         {
119
-            return ($noamp ? '' : '&amp;') . 'XOOPS_G_TICKET=' . $this->issue($salt, $timeout, $area);
119
+            return ($noamp ? '' : '&amp;').'XOOPS_G_TICKET='.$this->issue($salt, $timeout, $area);
120 120
         }
121 121
 
122 122
         // issue a ticket
@@ -134,9 +134,9 @@  discard block
 block discarded – undo
134 134
 
135 135
             if ('' === $salt) {
136 136
                 if (version_compare(PHP_VERSION, '7.0.0') >= 0 && function_exists('random_bytes')) {
137
-                    $salt = '$2y$07$' . str_replace('+', '.', base64_encode(random_bytes(self::PBKDF2_SALT_BYTES)));
137
+                    $salt = '$2y$07$'.str_replace('+', '.', base64_encode(random_bytes(self::PBKDF2_SALT_BYTES)));
138 138
                 } elseif (function_exists('mcrypt_create_iv')) {
139
-                    $salt = '$2y$07$' . str_replace('+', '.', base64_encode(mcrypt_create_iv(16, MCRYPT_DEV_URANDOM)));
139
+                    $salt = '$2y$07$'.str_replace('+', '.', base64_encode(mcrypt_create_iv(16, MCRYPT_DEV_URANDOM)));
140 140
                 }
141 141
             }
142 142
 
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 
147 147
             $appendix_salt = empty($_SERVER['PATH']) ? XOOPS_DB_NAME : $_SERVER['PATH'];
148 148
 
149
-            $token = crypt($salt . $usec . $appendix_salt . $sec, $salt);
149
+            $token = crypt($salt.$usec.$appendix_salt.$sec, $salt);
150 150
 
151 151
             $this->_latest_token = $token;
152 152
 
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
 
182 182
             // paid md5ed token as a ticket
183 183
 
184
-            return md5($token . XOOPS_DB_PREFIX);
184
+            return md5($token.XOOPS_DB_PREFIX);
185 185
         }
186 186
 
187 187
         // check a ticket
@@ -227,14 +227,14 @@  discard block
 block discarded – undo
227 227
                 // default lifetime 30min
228 228
 
229 229
                 if ($stub['expire'] >= time()) {
230
-                    if (md5($stub['token'] . XOOPS_DB_PREFIX) === $ticket) {
230
+                    if (md5($stub['token'].XOOPS_DB_PREFIX) === $ticket) {
231 231
                         $found_stub = $stub;
232 232
                     } else {
233 233
                         // store the other valid stubs into session
234 234
 
235 235
                         $_SESSION['XOOPS_G_STUBS'][] = $stub;
236 236
                     }
237
-                } elseif (md5($stub['token'] . XOOPS_DB_PREFIX) === $ticket) {
237
+                } elseif (md5($stub['token'].XOOPS_DB_PREFIX) === $ticket) {
238 238
                         // not CSRF but Time-Out
239 239
 
240 240
                         $timeout_flag = true;
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
 
319 319
             $table = '<table>';
320 320
 
321
-            $form = '<form action="?' . htmlspecialchars(@$_SERVER['QUERY_STRING'], ENT_QUOTES | ENT_HTML5) . '" method="post" >';
321
+            $form = '<form action="?'.htmlspecialchars(@$_SERVER['QUERY_STRING'], ENT_QUOTES | ENT_HTML5).'" method="post" >';
322 322
 
323 323
             foreach ($_POST as $key => $val) {
324 324
                 if ('XOOPS_G_TICKET' == $key) {
@@ -340,22 +340,22 @@  discard block
 block discarded – undo
340 340
                         $val = stripslashes($val);
341 341
                     }
342 342
 
343
-                    $table .= '<tr><th>' . htmlspecialchars($key, ENT_QUOTES | ENT_HTML5) . '</th><td>' . htmlspecialchars($val, ENT_QUOTES | ENT_HTML5) . '</td></tr>' . "\n";
343
+                    $table .= '<tr><th>'.htmlspecialchars($key, ENT_QUOTES | ENT_HTML5).'</th><td>'.htmlspecialchars($val, ENT_QUOTES | ENT_HTML5).'</td></tr>'."\n";
344 344
 
345
-                    $form .= '<input type="hidden" name="' . htmlspecialchars($key, ENT_QUOTES | ENT_HTML5) . '" value="' . htmlspecialchars($val, ENT_QUOTES | ENT_HTML5) . '">' . "\n";
345
+                    $form .= '<input type="hidden" name="'.htmlspecialchars($key, ENT_QUOTES | ENT_HTML5).'" value="'.htmlspecialchars($val, ENT_QUOTES | ENT_HTML5).'">'."\n";
346 346
                 }
347 347
             }
348 348
 
349 349
             $table .= '</table>';
350 350
 
351
-            $form .= $this->getTicketHtml(__LINE__, 300, $area) . '<input type="submit" value="' . $this->messages['btn_repost'] . '"></form>';
351
+            $form .= $this->getTicketHtml(__LINE__, 300, $area).'<input type="submit" value="'.$this->messages['btn_repost'].'"></form>';
352 352
 
353 353
             error_reporting(0);
354 354
 
355 355
             while (@ob_get_level() && @ob_end_clean()) {
356 356
             }
357 357
 
358
-            echo '<html><head><title>' . $this->messages['err_general'] . '</title><style>table,td,th {border:solid black 1px; border-collapse:collapse;}</style></head><body>' . sprintf($this->messages['fmt_prompt4repost'], $this->getErrors()) . $table . $form . '</body></html>';
358
+            echo '<html><head><title>'.$this->messages['err_general'].'</title><style>table,td,th {border:solid black 1px; border-collapse:collapse;}</style></head><body>'.sprintf($this->messages['fmt_prompt4repost'], $this->getErrors()).$table.$form.'</body></html>';
359 359
         }
360 360
 
361 361
         /**
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
                 }
377 377
 
378 378
                 if (is_array($val)) {
379
-                    [$tmp_table, $tmp_form] = $this->extract_post_recursive($key_name . '[' . htmlspecialchars($key, ENT_QUOTES | ENT_HTML5) . ']', $val);
379
+                    [$tmp_table, $tmp_form] = $this->extract_post_recursive($key_name.'['.htmlspecialchars($key, ENT_QUOTES | ENT_HTML5).']', $val);
380 380
 
381 381
                     $table .= $tmp_table;
382 382
 
@@ -386,9 +386,9 @@  discard block
 block discarded – undo
386 386
                         $val = stripslashes($val);
387 387
                     }
388 388
 
389
-                    $table .= '<tr><th>' . $key_name . '[' . htmlspecialchars($key, ENT_QUOTES | ENT_HTML5) . ']</th><td>' . htmlspecialchars($val, ENT_QUOTES | ENT_HTML5) . '</td></tr>' . "\n";
389
+                    $table .= '<tr><th>'.$key_name.'['.htmlspecialchars($key, ENT_QUOTES | ENT_HTML5).']</th><td>'.htmlspecialchars($val, ENT_QUOTES | ENT_HTML5).'</td></tr>'."\n";
390 390
 
391
-                    $form .= '<input type="hidden" name="' . $key_name . '[' . htmlspecialchars($key, ENT_QUOTES | ENT_HTML5) . ']" value="' . htmlspecialchars($val, ENT_QUOTES | ENT_HTML5) . '">' . "\n";
391
+                    $form .= '<input type="hidden" name="'.$key_name.'['.htmlspecialchars($key, ENT_QUOTES | ENT_HTML5).']" value="'.htmlspecialchars($val, ENT_QUOTES | ENT_HTML5).'">'."\n";
392 392
                 }
393 393
             }
394 394
 
@@ -448,8 +448,8 @@  discard block
 block discarded – undo
448 448
 
449 449
         public function errorHandler4FindOutput($errNo, $errStr, $errFile, $errLine)
450 450
         {
451
-            if (preg_match('?' . preg_quote(XOOPS_ROOT_PATH) . '([^:]+)\:(\d+)?', $errStr, $regs)) {
452
-                echo 'Irregular output! check the file ' . htmlspecialchars($regs[1], ENT_QUOTES | ENT_HTML5) . ' line ' . htmlspecialchars($regs[2], ENT_QUOTES | ENT_HTML5);
451
+            if (preg_match('?'.preg_quote(XOOPS_ROOT_PATH).'([^:]+)\:(\d+)?', $errStr, $regs)) {
452
+                echo 'Irregular output! check the file '.htmlspecialchars($regs[1], ENT_QUOTES | ENT_HTML5).' line '.htmlspecialchars($regs[2], ENT_QUOTES | ENT_HTML5);
453 453
             } else {
454 454
                 echo 'Irregular output! check language files etc.';
455 455
             }
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
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 /**
27 27
  * Parent
28 28
  */
29
-require_once XOOPS_ROOT_PATH . '/class/xoopsform/formcheckbox.php';
29
+require_once XOOPS_ROOT_PATH.'/class/xoopsform/formcheckbox.php';
30 30
 
31 31
 /**
32 32
  * A checkbox field with a choice of available groups
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
         }
59 59
 
60 60
         foreach ($options as $k => $v) {
61
-            $options[$k] = $v . '<br>';
61
+            $options[$k] = $v.'<br>';
62 62
         }
63 63
 
64 64
         $this->addOptionArray($options);
Please login to merge, or discard this patch.