Completed
Branch master (5c4e1a)
by Michael
46s
created
xoops_trust_path/libs/altsys/include/mygrouppermform.php 2 patches
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -451,20 +451,20 @@
 block discarded – undo
451 451
         }
452 452
 
453 453
         $tree .= '>'
454
-                 . $option['name']
455
-                 . '<input type="hidden" name="'
456
-                 . $this->getName()
457
-                 . '[parents]['
458
-                 . $option['id']
459
-                 . ']" value="'
460
-                 . implode(':', $parentIds)
461
-                 . '"><input type="hidden" name="'
462
-                 . $this->getName()
463
-                 . '[itemname]['
464
-                 . $option['id']
465
-                 . ']" value="'
466
-                 . htmlspecialchars($option['name'], ENT_QUOTES | ENT_HTML5)
467
-                 . "\"><br>\n";
454
+                    . $option['name']
455
+                    . '<input type="hidden" name="'
456
+                    . $this->getName()
457
+                    . '[parents]['
458
+                    . $option['id']
459
+                    . ']" value="'
460
+                    . implode(':', $parentIds)
461
+                    . '"><input type="hidden" name="'
462
+                    . $this->getName()
463
+                    . '[itemname]['
464
+                    . $option['id']
465
+                    . ']" value="'
466
+                    . htmlspecialchars($option['name'], ENT_QUOTES | ENT_HTML5)
467
+                    . "\"><br>\n";
468 468
 
469 469
         if (isset($option['children'])) {
470 470
             foreach ($option['children'] as $child) {
Please login to merge, or discard this patch.
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -18,11 +18,11 @@  discard block
 block discarded – undo
18 18
     exit;
19 19
 }
20 20
 
21
-require_once XOOPS_ROOT_PATH . '/class/xoopsform/formelement.php';
22
-require_once XOOPS_ROOT_PATH . '/class/xoopsform/formhidden.php';
23
-require_once XOOPS_ROOT_PATH . '/class/xoopsform/formbutton.php';
24
-require_once XOOPS_ROOT_PATH . '/class/xoopsform/formelementtray.php';
25
-require_once XOOPS_ROOT_PATH . '/class/xoopsform/form.php';
21
+require_once XOOPS_ROOT_PATH.'/class/xoopsform/formelement.php';
22
+require_once XOOPS_ROOT_PATH.'/class/xoopsform/formhidden.php';
23
+require_once XOOPS_ROOT_PATH.'/class/xoopsform/formbutton.php';
24
+require_once XOOPS_ROOT_PATH.'/class/xoopsform/formelementtray.php';
25
+require_once XOOPS_ROOT_PATH.'/class/xoopsform/form.php';
26 26
 
27 27
 /**
28 28
  * Renders a form for setting module specific group permissions
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 
80 80
         parent::__construct($title, 'groupperm_form', '', 'post');
81 81
 
82
-        $this->_modid = (int) $modid;
82
+        $this->_modid = (int)$modid;
83 83
 
84 84
         $this->_permName = $permname;
85 85
 
@@ -171,13 +171,13 @@  discard block
 block discarded – undo
171 171
 
172 172
             $selected = $grouppermHandler->getItemIds($this->_permName, $i, $this->_modid);
173 173
 
174
-            $ele = new MyXoopsGroupFormCheckBox($glist[$i], 'perms[' . $this->_permName . ']', $i, $selected);
174
+            $ele = new MyXoopsGroupFormCheckBox($glist[$i], 'perms['.$this->_permName.']', $i, $selected);
175 175
 
176 176
             $ele->setOptionTree($this->_itemTree);
177 177
 
178 178
             // GIJ start
179 179
 
180
-            $ele->setDescription('<input type="checkbox" onclick="with(document.groupperm_form){for(i=0;i<length;i++){if(elements[i].name.match(/^perms\[(module_admin|module_read|block_read)\]\[groups\]\[' . $i . '\]/)){elements[i].checked=this.checked;}}};">');
180
+            $ele->setDescription('<input type="checkbox" onclick="with(document.groupperm_form){for(i=0;i<length;i++){if(elements[i].name.match(/^perms\[(module_admin|module_read|block_read)\]\[groups\]\['.$i.'\]/)){elements[i].checked=this.checked;}}};">');
181 181
 
182 182
             // GIJ_end
183 183
 
@@ -220,9 +220,9 @@  discard block
 block discarded – undo
220 220
 
221 221
         $this->addElement($tray);
222 222
 
223
-        $ret = '<h4>' . $this->getTitle() . '</h4>' . $this->_permDesc . '<br>';
223
+        $ret = '<h4>'.$this->getTitle().'</h4>'.$this->_permDesc.'<br>';
224 224
 
225
-        $ret .= "<form name='" . $this->getName() . "' id='" . $this->getName() . "' action='" . $this->getAction() . "' method='" . $this->getMethod() . "'" . $this->getExtra() . ">\n<table width='100%' class='outer' cellspacing='1'>\n";
225
+        $ret .= "<form name='".$this->getName()."' id='".$this->getName()."' action='".$this->getAction()."' method='".$this->getMethod()."'".$this->getExtra().">\n<table width='100%' class='outer' cellspacing='1'>\n";
226 226
 
227 227
         $elements = &$this->getElements();
228 228
 
@@ -232,21 +232,21 @@  discard block
 block discarded – undo
232 232
             } elseif (!$elements[$i]->isHidden()) {
233 233
                 // group name
234 234
 
235
-                $ret .= "<tr valign='top' align='" . _GLOBAL_LEFT . "'><td class='head'>" . $elements[$i]->getCaption();
235
+                $ret .= "<tr valign='top' align='"._GLOBAL_LEFT."'><td class='head'>".$elements[$i]->getCaption();
236 236
 
237 237
                 // group description
238 238
 
239 239
                 if ('' != $elements[$i]->getDescription()) {
240
-                    $ret .= '<br><br><span style="font-weight: normal;">' . $elements[$i]->getDescription() . '</span>';
240
+                    $ret .= '<br><br><span style="font-weight: normal;">'.$elements[$i]->getDescription().'</span>';
241 241
                 }
242 242
 
243
-                $ret .= "</td>\n<td class='even'>\n" . $elements[$i]->render() . "\n</td></tr>\n";
243
+                $ret .= "</td>\n<td class='even'>\n".$elements[$i]->render()."\n</td></tr>\n";
244 244
             } else {
245 245
                 $ret .= $elements[$i]->render();
246 246
             }
247 247
         }
248 248
 
249
-        $ret .= '</table>' . $xoopsGTicket->getTicketHtml(__LINE__, 1800, 'myblocksadmin') . '</form>';
249
+        $ret .= '</table>'.$xoopsGTicket->getTicketHtml(__LINE__, 1800, 'myblocksadmin').'</form>';
250 250
 
251 251
         return $ret;
252 252
     }
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
 
364 364
                 $checked = $append['selected'] ? 'checked' : '';
365 365
 
366
-                $name = 'perms[' . $append['permname'] . ']';
366
+                $name = 'perms['.$append['permname'].']';
367 367
 
368 368
                 $itemid = $append['itemid'];
369 369
 
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
 
396 396
                 $this->_renderOptionTree($tree, $this->_optionTree[$topitem], $prefix);
397 397
 
398
-                $ret .= $tree . '</td>';
398
+                $ret .= $tree.'</td>';
399 399
 
400 400
                 $cols++;
401 401
             }
@@ -416,7 +416,7 @@  discard block
 block discarded – undo
416 416
      */
417 417
     private function _renderOptionTree(&$tree, $option, $prefix, $parentIds = []): void
418 418
     {
419
-        $tree .= $prefix . '<input type="checkbox" name="' . $this->getName() . '[groups][' . $this->_groupId . '][' . $option['id'] . ']" id="' . $this->getName() . '[groups][' . $this->_groupId . '][' . $option['id'] . ']" onclick="';
419
+        $tree .= $prefix.'<input type="checkbox" name="'.$this->getName().'[groups]['.$this->_groupId.']['.$option['id'].']" id="'.$this->getName().'[groups]['.$this->_groupId.']['.$option['id'].']" onclick="';
420 420
 
421 421
         // If there are parent elements, add javascript that will
422 422
 
@@ -425,9 +425,9 @@  discard block
 block discarded – undo
425 425
         // sure permissions to parent items are added as well.
426 426
 
427 427
         foreach ($parentIds as $pid) {
428
-            $parent_ele = $this->getName() . '[groups][' . $this->_groupId . '][' . $pid . ']';
428
+            $parent_ele = $this->getName().'[groups]['.$this->_groupId.']['.$pid.']';
429 429
 
430
-            $tree .= "var ele = xoopsGetElementById('" . $parent_ele . "'); if(ele.checked !== true) {ele.checked = this.checked;}";
430
+            $tree .= "var ele = xoopsGetElementById('".$parent_ele."'); if(ele.checked !== true) {ele.checked = this.checked;}";
431 431
         }
432 432
 
433 433
         // If there are child elements, add javascript that will
@@ -439,9 +439,9 @@  discard block
 block discarded – undo
439 439
         // is no permission to this item.
440 440
 
441 441
         foreach ($option['allchild'] as $cid) {
442
-            $child_ele = $this->getName() . '[groups][' . $this->_groupId . '][' . $cid . ']';
442
+            $child_ele = $this->getName().'[groups]['.$this->_groupId.']['.$cid.']';
443 443
 
444
-            $tree .= "var ele = xoopsGetElementById('" . $child_ele . "'); if(this.checked !== true) {ele.checked = false;}";
444
+            $tree .= "var ele = xoopsGetElementById('".$child_ele."'); if(this.checked !== true) {ele.checked = false;}";
445 445
         }
446 446
 
447 447
         $tree .= '" value="1"';
@@ -470,7 +470,7 @@  discard block
 block discarded – undo
470 470
             foreach ($option['children'] as $child) {
471 471
                 $parentIds[] = $option['id'];
472 472
 
473
-                $this->_renderOptionTree($tree, $this->_optionTree[$child], $prefix . '&nbsp;-', $parentIds);
473
+                $this->_renderOptionTree($tree, $this->_optionTree[$child], $prefix.'&nbsp;-', $parentIds);
474 474
             }
475 475
         }
476 476
     }
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 declare(strict_types=1);
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/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 | ENT_HTML5),
169
-                          'xoops_sitename' => htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES | ENT_HTML5),
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 | ENT_HTML5),
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 | ENT_HTML5),
169
+                            'xoops_sitename' => htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES | ENT_HTML5),
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 | ENT_HTML5),
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
-    [$tmp_s, $tmp_after] = explode("<td width='1%' background='" . XOOPS_URL . "/modules/system/images/bg_content.gif'>", $tmp_s);
49
+    [$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
-        require_once dirname(__DIR__) . '/language/' . $xoopsConfig['language'] . '/admin_in_theme.php';
91
+    if (is_file(dirname(__DIR__).'/language/'.$xoopsConfig['language'].'/admin_in_theme.php')) {
92
+        require_once dirname(__DIR__).'/language/'.$xoopsConfig['language'].'/admin_in_theme.php';
93 93
     } else {
94
-        require_once dirname(__DIR__) . '/language/english/admin_in_theme.php';
94
+        require_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
-        require_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
-        require_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
+        require_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
+        require_once XOOPS_THEME_PATH.'/'.$xoopsConfig['theme_set'].'/language/english.php';
111 111
     }
112 112
 
113 113
     error_reporting($original_error_level);
114 114
 
115
-    require __DIR__ . '/admin_in_theme_header.inc.php';
115
+    require __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 | ENT_HTML5),
169 169
                           'xoops_sitename' => htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES | ENT_HTML5),
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 | ENT_HTML5),
@@ -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_unified.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,11 +29,11 @@  discard block
 block discarded – undo
29 29
     public function _blockHeader($xbeg, $xlen, $ybeg, $ylen)
30 30
     {
31 31
         if (1 != $xlen) {
32
-            $xbeg .= ',' . $xlen;
32
+            $xbeg .= ','.$xlen;
33 33
         }
34 34
 
35 35
         if (1 != $ylen) {
36
-            $ybeg .= ',' . $ylen;
36
+            $ybeg .= ','.$ylen;
37 37
         }
38 38
 
39 39
         return "@@ -$xbeg +$ybeg @@";
@@ -64,6 +64,6 @@  discard block
 block discarded – undo
64 64
      */
65 65
     public function _changed($orig, $final)
66 66
     {
67
-        return $this->_deleted($orig) . $this->_added($final);
67
+        return $this->_deleted($orig).$this->_added($final);
68 68
     }
69 69
 }
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/include/adminmenu_functions.php 2 patches
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -106,14 +106,14 @@  discard block
 block discarded – undo
106 106
     // write back
107 107
 
108 108
     altsys_adminmenu_save_x20([
109
-                                  'xoops_admin_menu_js' => $xoops_admin_menu_js,
110
-                                  'xoops_admin_menu_ml' => $xoops_admin_menu_ml,
111
-                                  'xoops_admin_menu_sd' => $xoops_admin_menu_sd,
112
-                                  'xoops_admin_menu_ft' => $xoops_admin_menu_ft,
113
-                                  'xoops_admin_menu_dv' => $xoops_admin_menu_dv,
114
-                                  'altsys_adminmenu_ft_hacked' => (int) (@$altsys_adminmenu_ft_hacked),
115
-                                  'altsys_adminmenu_dv_updated' => true,
116
-                              ]);
109
+                                    'xoops_admin_menu_js' => $xoops_admin_menu_js,
110
+                                    'xoops_admin_menu_ml' => $xoops_admin_menu_ml,
111
+                                    'xoops_admin_menu_sd' => $xoops_admin_menu_sd,
112
+                                    'xoops_admin_menu_ft' => $xoops_admin_menu_ft,
113
+                                    'xoops_admin_menu_dv' => $xoops_admin_menu_dv,
114
+                                    'altsys_adminmenu_ft_hacked' => (int) (@$altsys_adminmenu_ft_hacked),
115
+                                    'altsys_adminmenu_dv_updated' => true,
116
+                                ]);
117 117
 }
118 118
 
119 119
 //
@@ -223,13 +223,13 @@  discard block
 block discarded – undo
223 223
     // write back
224 224
 
225 225
     altsys_adminmenu_save_x20([
226
-                                  'xoops_admin_menu_js' => $xoops_admin_menu_js,
227
-                                  'xoops_admin_menu_ml' => $xoops_admin_menu_ml,
228
-                                  'xoops_admin_menu_sd' => $xoops_admin_menu_sd,
229
-                                  'xoops_admin_menu_ft' => $xoops_admin_menu_ft,
230
-                                  'xoops_admin_menu_dv' => $xoops_admin_menu_dv,
231
-                                  'altsys_adminmenu_ft_hacked' => ALTSYS_ADMINMENU_HACK_2COL,
232
-                              ]);
226
+                                    'xoops_admin_menu_js' => $xoops_admin_menu_js,
227
+                                    'xoops_admin_menu_ml' => $xoops_admin_menu_ml,
228
+                                    'xoops_admin_menu_sd' => $xoops_admin_menu_sd,
229
+                                    'xoops_admin_menu_ft' => $xoops_admin_menu_ft,
230
+                                    'xoops_admin_menu_dv' => $xoops_admin_menu_dv,
231
+                                    'altsys_adminmenu_ft_hacked' => ALTSYS_ADMINMENU_HACK_2COL,
232
+                                ]);
233 233
 }
234 234
 
235 235
 function altsys_adminmenu_hack_ft_noimg_x20(): void
@@ -291,13 +291,13 @@  discard block
 block discarded – undo
291 291
     // write back
292 292
 
293 293
     altsys_adminmenu_save_x20([
294
-                                  'xoops_admin_menu_js' => $xoops_admin_menu_js,
295
-                                  'xoops_admin_menu_ml' => $xoops_admin_menu_ml,
296
-                                  'xoops_admin_menu_sd' => $xoops_admin_menu_sd,
297
-                                  'xoops_admin_menu_ft' => $xoops_admin_menu_ft,
298
-                                  'xoops_admin_menu_dv' => $xoops_admin_menu_dv,
299
-                                  'altsys_adminmenu_ft_hacked' => ALTSYS_ADMINMENU_HACK_NOIMG,
300
-                              ]);
294
+                                    'xoops_admin_menu_js' => $xoops_admin_menu_js,
295
+                                    'xoops_admin_menu_ml' => $xoops_admin_menu_ml,
296
+                                    'xoops_admin_menu_sd' => $xoops_admin_menu_sd,
297
+                                    'xoops_admin_menu_ft' => $xoops_admin_menu_ft,
298
+                                    'xoops_admin_menu_dv' => $xoops_admin_menu_dv,
299
+                                    'altsys_adminmenu_ft_hacked' => ALTSYS_ADMINMENU_HACK_NOIMG,
300
+                                ]);
301 301
 }
302 302
 
303 303
 function altsys_adminmenu_hack_ft_xcsty_x20(): void
@@ -426,13 +426,13 @@  discard block
 block discarded – undo
426 426
     // write back
427 427
 
428 428
     altsys_adminmenu_save_x20([
429
-                                  'xoops_admin_menu_js' => $xoops_admin_menu_js,
430
-                                  'xoops_admin_menu_ml' => [],
431
-                                  'xoops_admin_menu_sd' => [],
432
-                                  'xoops_admin_menu_ft' => $xoops_admin_menu_ft,
433
-                                  'xoops_admin_menu_dv' => $xoops_admin_menu_dv,
434
-                                  'altsys_adminmenu_ft_hacked' => ALTSYS_ADMINMENU_HACK_XCSTY,
435
-                              ]);
429
+                                    'xoops_admin_menu_js' => $xoops_admin_menu_js,
430
+                                    'xoops_admin_menu_ml' => [],
431
+                                    'xoops_admin_menu_sd' => [],
432
+                                    'xoops_admin_menu_ft' => $xoops_admin_menu_ft,
433
+                                    'xoops_admin_menu_dv' => $xoops_admin_menu_dv,
434
+                                    'altsys_adminmenu_ft_hacked' => ALTSYS_ADMINMENU_HACK_XCSTY,
435
+                                ]);
436 436
 }
437 437
 
438 438
 //
Please login to merge, or discard this patch.
Spacing   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php declare(strict_types=1);
2
-require_once dirname(__DIR__) . '/class/altsysUtils.class.php';
2
+require_once dirname(__DIR__).'/class/altsysUtils.class.php';
3 3
 
4
-define('ALTSYS_ADMINMENU_FILE', XOOPS_CACHE_PATH . '/adminmenu.php');
4
+define('ALTSYS_ADMINMENU_FILE', XOOPS_CACHE_PATH.'/adminmenu.php');
5 5
 define('ALTSYS_ADMINMENU_HACK_NONE', 0);
6 6
 define('ALTSYS_ADMINMENU_HACK_2COL', 1);
7 7
 define('ALTSYS_ADMINMENU_HACK_NOIMG', 2);
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     // read
35 35
 
36 36
     if (!is_file(ALTSYS_ADMINMENU_FILE)) {
37
-        redirect_header(XOOPS_URL . '/admin.php', 1, 'Rebuild adminmenu');
37
+        redirect_header(XOOPS_URL.'/admin.php', 1, 'Rebuild adminmenu');
38 38
 
39 39
         exit;
40 40
     }
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 
48 48
     $mid = $module->getVar('mid');
49 49
 
50
-    $anchor = '<!-- ALTSYS ANCHOR ' . $dirname . ' -->';
50
+    $anchor = '<!-- ALTSYS ANCHOR '.$dirname.' -->';
51 51
 
52 52
     // fetch popup_no
53 53
 
@@ -59,17 +59,17 @@  discard block
 block discarded – undo
59 59
         return;
60 60
     }
61 61
 
62
-    $popup_no = (int) $regs[1];
62
+    $popup_no = (int)$regs[1];
63 63
 
64 64
     // replace
65 65
 
66
-    $search = '<img src=\'' . XOOPS_URL . '/images/pointer.gif\' width=\'8\' height=\'8\' alt=\'\'>&nbsp;<a href=\'' . XOOPS_URL . '/modules/system/admin.php?fct=preferences&amp;op=showmod&amp;mod=' . $mid . '\'';
66
+    $search = '<img src=\''.XOOPS_URL.'/images/pointer.gif\' width=\'8\' height=\'8\' alt=\'\'>&nbsp;<a href=\''.XOOPS_URL.'/modules/system/admin.php?fct=preferences&amp;op=showmod&amp;mod='.$mid.'\'';
67 67
 
68
-    $replace = $anchor . '<img src=\'' . XOOPS_URL . '/images/pointer.gif\' width=\'8\' height=\'8\' alt=\'\'>&nbsp;<a href=\'' . XOOPS_URL . '/modules/' . $dirname . '/admin/index.php?mode=admin&amp;lib=altsys&amp;page=mypreferences\'';
68
+    $replace = $anchor.'<img src=\''.XOOPS_URL.'/images/pointer.gif\' width=\'8\' height=\'8\' alt=\'\'>&nbsp;<a href=\''.XOOPS_URL.'/modules/'.$dirname.'/admin/index.php?mode=admin&amp;lib=altsys&amp;page=mypreferences\'';
69 69
 
70 70
     // do replacement
71 71
 
72
-    $new_xoops_admin_menu_dv = preg_replace('#' . preg_quote($search) . '#', $replace, $xoops_admin_menu_dv);
72
+    $new_xoops_admin_menu_dv = preg_replace('#'.preg_quote($search).'#', $replace, $xoops_admin_menu_dv);
73 73
 
74 74
     if ($xoops_admin_menu_dv == $new_xoops_admin_menu_dv) {
75 75
         return;
@@ -84,24 +84,24 @@  discard block
 block discarded – undo
84 84
     if ('altsys' != $dirname) {
85 85
         $blocksadmin_title = defined('_MD_A_MYMENU_MYBLOCKSADMIN') ? _MD_A_MYMENU_MYBLOCKSADMIN : 'blocksadmin';
86 86
 
87
-        $insert .= '<img src=\'' . XOOPS_URL . '/images/pointer.gif\' width=\'8\' height=\'8\' alt=\'\'>&nbsp;<a href=\'' . XOOPS_URL . '/modules/' . $dirname . '/admin/index.php?mode=admin&amp;lib=altsys&amp;page=myblocksadmin\'>' . $blocksadmin_title . '</a><br>' . "\n";
87
+        $insert .= '<img src=\''.XOOPS_URL.'/images/pointer.gif\' width=\'8\' height=\'8\' alt=\'\'>&nbsp;<a href=\''.XOOPS_URL.'/modules/'.$dirname.'/admin/index.php?mode=admin&amp;lib=altsys&amp;page=myblocksadmin\'>'.$blocksadmin_title.'</a><br>'."\n";
88 88
     }
89 89
 
90 90
     // insert tplsadmin
91 91
 
92 92
     $db = XoopsDatabaseFactory::getDatabaseConnection();
93 93
 
94
-    [$count] = $db->fetchRow($db->query('SELECT COUNT(*) FROM ' . $db->prefix('tplfile') . " WHERE tpl_module='$dirname'"));
94
+    [$count] = $db->fetchRow($db->query('SELECT COUNT(*) FROM '.$db->prefix('tplfile')." WHERE tpl_module='$dirname'"));
95 95
 
96 96
     if ($count > 0) {
97 97
         $tplsadmin_title = defined('_MD_A_MYMENU_MYTPLSADMIN') ? _MD_A_MYMENU_MYTPLSADMIN : 'tplsadmin';
98 98
 
99
-        $insert = '<img src=\'' . XOOPS_URL . '/images/pointer.gif\' width=\'8\' height=\'8\' alt=\'\'>&nbsp;<a href=\'' . XOOPS_URL . '/modules/' . $dirname . '/admin/index.php?mode=admin&amp;lib=altsys&amp;page=mytplsadmin\'>' . $tplsadmin_title . '</a><br>' . "\n" . $insert;
99
+        $insert = '<img src=\''.XOOPS_URL.'/images/pointer.gif\' width=\'8\' height=\'8\' alt=\'\'>&nbsp;<a href=\''.XOOPS_URL.'/modules/'.$dirname.'/admin/index.php?mode=admin&amp;lib=altsys&amp;page=mytplsadmin\'>'.$tplsadmin_title.'</a><br>'."\n".$insert;
100 100
     }
101 101
 
102 102
     // do insertion
103 103
 
104
-    $xoops_admin_menu_dv = preg_replace('#' . preg_quote($anchor) . '#', $anchor . $insert, $xoops_admin_menu_dv);
104
+    $xoops_admin_menu_dv = preg_replace('#'.preg_quote($anchor).'#', $anchor.$insert, $xoops_admin_menu_dv);
105 105
 
106 106
     // write back
107 107
 
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
                                   'xoops_admin_menu_sd' => $xoops_admin_menu_sd,
112 112
                                   'xoops_admin_menu_ft' => $xoops_admin_menu_ft,
113 113
                                   'xoops_admin_menu_dv' => $xoops_admin_menu_dv,
114
-                                  'altsys_adminmenu_ft_hacked' => (int) (@$altsys_adminmenu_ft_hacked),
114
+                                  'altsys_adminmenu_ft_hacked' => (int)(@$altsys_adminmenu_ft_hacked),
115 115
                                   'altsys_adminmenu_dv_updated' => true,
116 116
                               ]);
117 117
 }
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
     // read
146 146
 
147 147
     if (!is_file(ALTSYS_ADMINMENU_FILE)) {
148
-        redirect_header(XOOPS_URL . '/admin.php', 1, 'Rebuild adminmenu');
148
+        redirect_header(XOOPS_URL.'/admin.php', 1, 'Rebuild adminmenu');
149 149
 
150 150
         exit;
151 151
     }
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
 
166 166
         // rebuild adminmenu
167 167
 
168
-        require_once XOOPS_ROOT_PATH . '/include/cp_functions.php';
168
+        require_once XOOPS_ROOT_PATH.'/include/cp_functions.php';
169 169
 
170 170
         xoops_module_write_admin_menu(xoops_module_get_admin_menu());
171 171
 
@@ -197,11 +197,11 @@  discard block
 block discarded – undo
197 197
     foreach ($mids as $mid) {
198 198
         $module = $moduleHandler->get($mid);
199 199
 
200
-        $new_menu_ft = preg_replace('#' . preg_quote($search) . '#', sprintf($replace_fmt, $module->getVar('name')), $xoops_admin_menu_ft[$mid]);
200
+        $new_menu_ft = preg_replace('#'.preg_quote($search).'#', sprintf($replace_fmt, $module->getVar('name')), $xoops_admin_menu_ft[$mid]);
201 201
 
202 202
         if ($is_left) {
203 203
             if ($mid == $last_mid) {
204
-                $xoops_admin_menu_ft[$mid] = $new_menu_ft . '</td><td>';
204
+                $xoops_admin_menu_ft[$mid] = $new_menu_ft.'</td><td>';
205 205
             } else {
206 206
                 $left_body = $new_menu_ft;
207 207
 
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
                 $xoops_admin_menu_ml[$mid] = str_replace(',105);', ',85);', $xoops_admin_menu_ml[$mid]);
211 211
             }
212 212
         } else {
213
-            $xoops_admin_menu_ft[$mid] = $left_body . '</td><td>' . $new_menu_ft;
213
+            $xoops_admin_menu_ft[$mid] = $left_body.'</td><td>'.$new_menu_ft;
214 214
 
215 215
             unset($xoops_admin_menu_ft[$left_key]);
216 216
 
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
     // read
238 238
 
239 239
     if (!is_file(ALTSYS_ADMINMENU_FILE)) {
240
-        redirect_header(XOOPS_URL . '/admin.php', 1, 'Rebuild adminmenu');
240
+        redirect_header(XOOPS_URL.'/admin.php', 1, 'Rebuild adminmenu');
241 241
 
242 242
         exit;
243 243
     }
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
 
258 258
         // rebuild adminmenu
259 259
 
260
-        require_once XOOPS_ROOT_PATH . '/include/cp_functions.php';
260
+        require_once XOOPS_ROOT_PATH.'/include/cp_functions.php';
261 261
 
262 262
         xoops_module_write_admin_menu(xoops_module_get_admin_menu());
263 263
 
@@ -281,9 +281,9 @@  discard block
 block discarded – undo
281 281
     foreach ($mids as $mid) {
282 282
         $module = $moduleHandler->get($mid);
283 283
 
284
-        $xoops_admin_menu_ft[$mid] = preg_replace('/\<img src\=.*$/', $module->getVar('name') . '</a>', $xoops_admin_menu_ft[$mid]);
284
+        $xoops_admin_menu_ft[$mid] = preg_replace('/\<img src\=.*$/', $module->getVar('name').'</a>', $xoops_admin_menu_ft[$mid]);
285 285
 
286
-        $xoops_admin_menu_ft[$mid] = '<div style="text-align:' . _GLOBAL_LEFT . ';background-color:#CCC;" title="' . $module->getVar('dirname') . '">' . $xoops_admin_menu_ft[$mid] . '</div>';
286
+        $xoops_admin_menu_ft[$mid] = '<div style="text-align:'._GLOBAL_LEFT.';background-color:#CCC;" title="'.$module->getVar('dirname').'">'.$xoops_admin_menu_ft[$mid].'</div>';
287 287
 
288 288
         $xoops_admin_menu_ml[$mid] = str_replace(',105);', ',45);', $xoops_admin_menu_ml[$mid]);
289 289
     }
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
     // read
306 306
 
307 307
     if (!is_file(ALTSYS_ADMINMENU_FILE)) {
308
-        redirect_header(XOOPS_URL . '/admin.php', 1, 'Rebuild adminmenu');
308
+        redirect_header(XOOPS_URL.'/admin.php', 1, 'Rebuild adminmenu');
309 309
 
310 310
         exit;
311 311
     }
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
 
326 326
         // rebuild adminmenu
327 327
 
328
-        require_once XOOPS_ROOT_PATH . '/include/cp_functions.php';
328
+        require_once XOOPS_ROOT_PATH.'/include/cp_functions.php';
329 329
 
330 330
         $fp = fopen(ALTSYS_ADMINMENU_FILE, 'wb');
331 331
 
@@ -358,10 +358,10 @@  discard block
 block discarded – undo
358 358
         if (preg_match('/popUpL\d+/', $xoops_admin_menu_ft[$mid], $regs)) {
359 359
             $popup = $regs[0];
360 360
 
361
-            preg_match_all('#\<a href.*' . $popup . '\(\).*\</a>#U', $xoops_admin_menu_dv, $regs);
361
+            preg_match_all('#\<a href.*'.$popup.'\(\).*\</a>#U', $xoops_admin_menu_dv, $regs);
362 362
 
363 363
             foreach ($regs[0] as $submenuitem) {
364
-                $submenuitems[] = str_replace($popup . '();', '', $submenuitem);
364
+                $submenuitems[] = str_replace($popup.'();', '', $submenuitem);
365 365
             }
366 366
         } else {
367 367
             return;
@@ -370,14 +370,14 @@  discard block
 block discarded – undo
370 370
         // module icon
371 371
 
372 372
         if (preg_match('#\<img .*/\>#U', $xoops_admin_menu_ft[$mid], $regs)) {
373
-            $icon_img = str_replace("alt=''", 'alt="' . $module->getVar('name') . '"', $regs[0]);
373
+            $icon_img = str_replace("alt=''", 'alt="'.$module->getVar('name').'"', $regs[0]);
374 374
         } else {
375 375
             $icon_img = '';
376 376
         }
377 377
 
378 378
         // version number
379 379
 
380
-        $icon_img .= '<span class="version" style="">' . sprintf('%.2f', $module->getVar('version') / 100.0) . '</span>';
380
+        $icon_img .= '<span class="version" style="">'.sprintf('%.2f', $module->getVar('version') / 100.0).'</span>';
381 381
 
382 382
         $newline = preg_replace('/ onmouseover.*$/', '', $xoops_admin_menu_ft[$mid]);
383 383
 
@@ -403,10 +403,10 @@  discard block
 block discarded – undo
403 403
                     . '" style="display:none;"><ul>';
404 404
 
405 405
         foreach ($submenuitems as $submenuitem) {
406
-            $newline .= '<li>' . $submenuitem . '</li>';
406
+            $newline .= '<li>'.$submenuitem.'</li>';
407 407
         }
408 408
 
409
-        $newline .= '</ul>' . $icon_img . '</div>';
409
+        $newline .= '</ul>'.$icon_img.'</div>';
410 410
 
411 411
         $xoops_admin_menu_ft[$mid] = $newline;
412 412
     }
@@ -451,7 +451,7 @@  discard block
 block discarded – undo
451 451
     echo "<?php\n// modified by altsys\nif( ! defined('XOOPS_ROOT_PATH') ) exit ;\n";
452 452
 
453 453
     foreach ($xoops_admin_vars as $key => $val) {
454
-        echo '$' . $key . " = \n";
454
+        echo '$'.$key." = \n";
455 455
 
456 456
         @var_export($val);
457 457
 
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/index.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@  discard block
 block discarded – undo
1 1
 <?php declare(strict_types=1);
2 2
 
3 3
 if (!defined('XOOPS_MODULE_PATH')) {
4
-    define('XOOPS_MODULE_PATH', XOOPS_ROOT_PATH . '/modules');
4
+    define('XOOPS_MODULE_PATH', XOOPS_ROOT_PATH.'/modules');
5 5
 }
6 6
 if (!defined('XOOPS_MODULE_URL')) {
7
-    define('XOOPS_MODULE_URL', XOOPS_URL . '/modules');
7
+    define('XOOPS_MODULE_URL', XOOPS_URL.'/modules');
8 8
 }
9 9
 
10
-require_once __DIR__ . '/class/AltsysBreadcrumbs.class.php';
11
-require_once __DIR__ . '/include/altsys_functions.php';
10
+require_once __DIR__.'/class/AltsysBreadcrumbs.class.php';
11
+require_once __DIR__.'/include/altsys_functions.php';
12 12
 
13 13
 if (empty($xoopsModule)) {
14 14
     $grouppermHandler = xoops_getHandler('module');
@@ -16,15 +16,15 @@  discard block
 block discarded – undo
16 16
     $xoopsModule = $grouppermHandler->getByDirname('altsys');
17 17
 }
18 18
 
19
-require XOOPS_ROOT_PATH . '/include/cp_functions.php';
19
+require XOOPS_ROOT_PATH.'/include/cp_functions.php';
20 20
 
21 21
 // breadcrumbs
22 22
 $breadcrumbsObj = AltsysBreadcrumbs::getInstance();
23
-$breadcrumbsObj->appendPath(XOOPS_URL . '/modules/altsys/admin/index.php', $GLOBALS['xoopsModule']->getVar('name'));
23
+$breadcrumbsObj->appendPath(XOOPS_URL.'/modules/altsys/admin/index.php', $GLOBALS['xoopsModule']->getVar('name'));
24 24
 
25 25
 // get page
26
-$page = preg_replace('/[^a-zA-Z0-9_-]/', '', @$_GET['page']??'');
27
-require __DIR__ . '/controllers.php';
26
+$page = preg_replace('/[^a-zA-Z0-9_-]/', '', @$_GET['page'] ?? '');
27
+require __DIR__.'/controllers.php';
28 28
 if (!in_array($page, $controllers, true)) {
29 29
     $_GET['page'] = $page = 'myblocksadmin';
30 30
 
@@ -46,8 +46,8 @@  discard block
 block discarded – undo
46 46
 
47 47
 // branch to each pages
48 48
 $mytrustdirpath = __DIR__;
49
-if (file_exists(XOOPS_TRUST_PATH . '/libs/altsys/' . $page . '.php')) {
50
-    include XOOPS_TRUST_PATH . '/libs/altsys/' . $page . '.php';
49
+if (file_exists(XOOPS_TRUST_PATH.'/libs/altsys/'.$page.'.php')) {
50
+    include XOOPS_TRUST_PATH.'/libs/altsys/'.$page.'.php';
51 51
 } else {
52 52
     die('wrong request');
53 53
 }
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/xoops_version.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php declare(strict_types=1);
2 2
 
3
-require_once __DIR__ . '/include/altsys_functions.php';
3
+require_once __DIR__.'/include/altsys_functions.php';
4 4
 
5 5
 // language file (modinfo.php)
6 6
 altsys_include_language_file('modinfo');
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     'description' => '',
39 39
     'show_func'   => 'b_altsys_admin_menu_show',
40 40
     'edit_func'   => 'b_altsys_admin_menu_edit',
41
-    'options'     => (string) $mydirname,
41
+    'options'     => (string)$mydirname,
42 42
     'template'    => '', // use "module" template instead
43 43
 ];
44 44
 
@@ -112,5 +112,5 @@  discard block
 block discarded – undo
112 112
 
113 113
 // keep block's options
114 114
 if (!defined('XOOPS_CUBE_LEGACY') && mb_substr(XOOPS_VERSION, 6, 3) < 2.1 && !empty($_POST['fct']) && !empty($_POST['op']) && 'modulesadmin' == $_POST['fct'] && 'update_ok' == $_POST['op'] && $_POST['dirname'] == $modversion['dirname']) {
115
-    require __DIR__ . '/include/x20_keepblockoptions.inc.php';
115
+    require __DIR__.'/include/x20_keepblockoptions.inc.php';
116 116
 }
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/get_templates.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -7,8 +7,8 @@  discard block
 block discarded – undo
7 7
 
8 8
 error_reporting(0);
9 9
 
10
-require_once __DIR__ . '/include/gtickets.php';
11
-require_once __DIR__ . '/include/altsys_functions.php';
10
+require_once __DIR__.'/include/gtickets.php';
11
+require_once __DIR__.'/include/altsys_functions.php';
12 12
 
13 13
 // this page can be called only from altsys
14 14
 if ('altsys' != $xoopsModule->getVar('dirname')) {
@@ -19,13 +19,13 @@  discard block
 block discarded – undo
19 19
 altsys_include_language_file('compilehookadmin');
20 20
 
21 21
 if (!empty($_POST['download_zip'])) {
22
-    require_once XOOPS_ROOT_PATH . '/class/zipdownloader.php';
22
+    require_once XOOPS_ROOT_PATH.'/class/zipdownloader.php';
23 23
 
24 24
     $downloader = new \XoopsZipDownloader();
25 25
 
26 26
     $do_download = true;
27 27
 } elseif (!empty($_POST['download_tgz'])) {
28
-    require_once XOOPS_ROOT_PATH . '/class/tardownloader.php';
28
+    require_once XOOPS_ROOT_PATH.'/class/tardownloader.php';
29 29
 
30 30
     $downloader = new \XoopsTarDownloader();
31 31
 
@@ -51,13 +51,13 @@  discard block
 block discarded – undo
51 51
         break;
52 52
     }
53 53
 }
54
-$trs = $xoopsDB->query('SELECT DISTINCT tpl_file,tpl_source,tpl_lastmodified FROM ' . $xoopsDB->prefix('tplfile') . ' NATURAL LEFT JOIN ' . $xoopsDB->prefix('tplsource') . " WHERE tpl_tplset='" . addslashes($tplset) . "' ORDER BY tpl_file");
54
+$trs = $xoopsDB->query('SELECT DISTINCT tpl_file,tpl_source,tpl_lastmodified FROM '.$xoopsDB->prefix('tplfile').' NATURAL LEFT JOIN '.$xoopsDB->prefix('tplsource')." WHERE tpl_tplset='".addslashes($tplset)."' ORDER BY tpl_file");
55 55
 if ($xoopsDB->getRowsNum($trs) <= 0) {
56 56
     die(_TPLSADMIN_ERR_INVALIDTPLSET);
57 57
 }
58 58
 
59 59
 while ([$tpl_file, $tpl_source, $tpl_lastmodified] = $xoopsDB->fetchRow($trs)) {
60
-    $downloader->addFileData($tpl_source, $tplset . '/' . $tpl_file, $tpl_lastmodified);
60
+    $downloader->addFileData($tpl_source, $tplset.'/'.$tpl_file, $tpl_lastmodified);
61 61
 }
62 62
 //bugfix by nao-pon ,echo is not necessary for downloader
63
-$downloader->download('template_' . $tplset, true);
63
+$downloader->download('template_'.$tplset, true);
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/mymenu.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,8 +65,8 @@
 block discarded – undo
65 65
 require_once XOOPS_TRUST_PATH . '/libs/altsys/class/D3Tpl.class.php';
66 66
 $tpl = new D3Tpl();
67 67
 $tpl->assign([
68
-                 'adminmenu' => $adminmenu,
69
-             ]);
68
+                    'adminmenu' => $adminmenu,
69
+                ]);
70 70
 $tpl->display('db:altsys_inc_mymenu.tpl');
71 71
 //$tpl->display('db:inc_mymenu.tpl');
72 72
 
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 // language files (modinfo.php)
21 21
 altsys_include_language_file('modinfo');
22 22
 
23
-require __DIR__ . '/admin_menu.php';
23
+require __DIR__.'/admin_menu.php';
24 24
 
25 25
 $adminmenu = array_merge($adminmenu, $adminmenu4altsys);
26 26
 
@@ -57,12 +57,12 @@  discard block
 block discarded – undo
57 57
 // link conversion from relative to absolute
58 58
 foreach (array_keys($adminmenu) as $i) {
59 59
     if (false === mb_stristr($adminmenu[$i]['link'], XOOPS_URL)) {
60
-        $adminmenu[$i]['link'] = XOOPS_URL . "/modules/$mydirname/" . $adminmenu[$i]['link'];
60
+        $adminmenu[$i]['link'] = XOOPS_URL."/modules/$mydirname/".$adminmenu[$i]['link'];
61 61
     }
62 62
 }
63 63
 
64 64
 // display
65
-require_once XOOPS_TRUST_PATH . '/libs/altsys/class/D3Tpl.class.php';
65
+require_once XOOPS_TRUST_PATH.'/libs/altsys/class/D3Tpl.class.php';
66 66
 $tpl = new D3Tpl();
67 67
 $tpl->assign([
68 68
                  'adminmenu' => $adminmenu,
@@ -72,6 +72,6 @@  discard block
 block discarded – undo
72 72
 
73 73
 // submenu
74 74
 $page = preg_replace('/[^0-9a-zA-Z_-]/', '', @$_GET['page']);
75
-if (file_exists(__DIR__ . '/mymenusub/' . $page . '.php')) {
76
-    require __DIR__ . '/mymenusub/' . $page . '.php';
75
+if (file_exists(__DIR__.'/mymenusub/'.$page.'.php')) {
76
+    require __DIR__.'/mymenusub/'.$page.'.php';
77 77
 }
Please login to merge, or discard this patch.