Completed
Push — master ( 6dab8b...b949bb )
by Michael
02:15 queued 11s
created
xoops_trust_path/libs/altsys/language/english/blocks_each.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -3,10 +3,10 @@
 block discarded – undo
3 3
 if (defined('FOR_XOOPS_LANG_CHECKER')) {
4 4
     $mydirname = 'd3forum';
5 5
 }
6
-$constpref = '_MB_' . mb_strtoupper($mydirname);
6
+$constpref = '_MB_'.mb_strtoupper($mydirname);
7 7
 
8
-if (defined('FOR_XOOPS_LANG_CHECKER') || !defined($constpref . '_LOADED')) {
9
-    define($constpref . '_LOADED', 1);
8
+if (defined('FOR_XOOPS_LANG_CHECKER') || !defined($constpref.'_LOADED')) {
9
+    define($constpref.'_LOADED', 1);
10 10
 
11 11
     // definitions for displaying blocks
12 12
     // Since altsys is a singleton moudle, this file has non-sense.
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/language/french/blocks_each.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -3,10 +3,10 @@
 block discarded – undo
3 3
 if (defined('FOR_XOOPS_LANG_CHECKER')) {
4 4
     $mydirname = 'd3forum';
5 5
 }
6
-$constpref = '_MB_' . mb_strtoupper($mydirname);
6
+$constpref = '_MB_'.mb_strtoupper($mydirname);
7 7
 
8
-if (defined('FOR_XOOPS_LANG_CHECKER') || !defined($constpref . '_LOADED')) {
9
-    define($constpref . '_LOADED', 1);
8
+if (defined('FOR_XOOPS_LANG_CHECKER') || !defined($constpref.'_LOADED')) {
9
+    define($constpref.'_LOADED', 1);
10 10
 
11 11
     // definitions for displaying blocks
12 12
     // Since altsys is a singleton moudle, this file has non-sense.
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/language/portuguese/blocks_each.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,9 +4,9 @@
 block discarded – undo
4 4
 if (defined('FOR_XOOPS_LANG_CHECKER')) {
5 5
     $mydirname = 'd3forum';
6 6
 }
7
-$constpref = '_MB_' . mb_strtoupper($mydirname);
8
-if (defined('FOR_XOOPS_LANG_CHECKER') || !defined($constpref . '_LOADED')) {
9
-    define($constpref . '_LOADED', 1);
7
+$constpref = '_MB_'.mb_strtoupper($mydirname);
8
+if (defined('FOR_XOOPS_LANG_CHECKER') || !defined($constpref.'_LOADED')) {
9
+    define($constpref.'_LOADED', 1);
10 10
 
11 11
     // DEFINITIONS FOR DISPLAYING BLOCKS
12 12
     // SINCE ALTSYS IS A SINGLETON MODULE, THIS FILE HAS NON-SENSE.
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/admin_menu.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
 
43 43
 $adminmenu4altsys = [
44 44
     [
45
-        'title' => 'ALTSYS ' . _PREFERENCES,
45
+        'title' => 'ALTSYS '._PREFERENCES,
46 46
         'link' => 'admin/index.php?mode=admin&lib=altsys&page=mypreferences',
47 47
     ],
48 48
 ];
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/onuninstall.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-eval(' function xoops_module_uninstall_' . $mydirname . '( $module ) { return altsys_onuninstall_base( $module , "' . $mydirname . '" ) ; } ');
3
+eval(' function xoops_module_uninstall_'.$mydirname.'( $module ) { return altsys_onuninstall_base( $module , "'.$mydirname.'" ) ; } ');
4 4
 
5 5
 if (!function_exists('altsys_onuninstall_base')) {
6 6
     /**
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
         if (defined('XOOPS_CUBE_LEGACY')) {
21 21
             $root = XCube_Root::getSingleton();
22 22
 
23
-            $root->mDelegateManager->add('Legacy.Admin.Event.ModuleUninstall.' . ucfirst($mydirname) . '.Success', 'altsys_message_append_onuninstall');
23
+            $root->mDelegateManager->add('Legacy.Admin.Event.ModuleUninstall.'.ucfirst($mydirname).'.Success', 'altsys_message_append_onuninstall');
24 24
 
25 25
             $ret = [];
26 26
         } else {
@@ -35,23 +35,23 @@  discard block
 block discarded – undo
35 35
 
36 36
         // TABLES (loading mysql.sql)
37 37
 
38
-        $sql_file_path = __DIR__ . '/sql/mysql.sql';
38
+        $sql_file_path = __DIR__.'/sql/mysql.sql';
39 39
 
40
-        $prefix_mod = $db->prefix() . '_' . $mydirname;
40
+        $prefix_mod = $db->prefix().'_'.$mydirname;
41 41
 
42 42
         if (is_file($sql_file_path)) {
43
-            $ret[] = 'SQL file found at <b>' . htmlspecialchars($sql_file_path, ENT_QUOTES | ENT_HTML5) . '</b>.<br  /> Deleting tables...<br />';
43
+            $ret[] = 'SQL file found at <b>'.htmlspecialchars($sql_file_path, ENT_QUOTES | ENT_HTML5).'</b>.<br  /> Deleting tables...<br />';
44 44
 
45 45
             $sql_lines = file($sql_file_path);
46 46
 
47 47
             foreach ($sql_lines as $sql_line) {
48 48
                 if (preg_match('/^CREATE TABLE \`?([a-zA-Z0-9_-]+)\`? /i', $sql_line, $regs)) {
49
-                    $sql = 'DROP TABLE ' . addslashes($prefix_mod . '_' . $regs[1]);
49
+                    $sql = 'DROP TABLE '.addslashes($prefix_mod.'_'.$regs[1]);
50 50
 
51 51
                     if (!$db->query($sql)) {
52
-                        $ret[] = '<span style="color:#ff0000;">ERROR: Could not drop table <b>' . htmlspecialchars($prefix_mod . '_' . $regs[1], ENT_QUOTES | ENT_HTML5) . '<b>.</span><br />';
52
+                        $ret[] = '<span style="color:#ff0000;">ERROR: Could not drop table <b>'.htmlspecialchars($prefix_mod.'_'.$regs[1], ENT_QUOTES | ENT_HTML5).'<b>.</span><br />';
53 53
                     } else {
54
-                        $ret[] = 'Table <b>' . htmlspecialchars($prefix_mod . '_' . $regs[1], ENT_QUOTES | ENT_HTML5) . '</b> dropped.<br />';
54
+                        $ret[] = 'Table <b>'.htmlspecialchars($prefix_mod.'_'.$regs[1], ENT_QUOTES | ENT_HTML5).'</b> dropped.<br />';
55 55
                     }
56 56
                 }
57 57
             }
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/mytplsadmin.php 1 patch
Spacing   +51 added lines, -51 removed lines patch added patch discarded remove patch
@@ -5,10 +5,10 @@  discard block
 block discarded – undo
5 5
 //                      GIJOE <http://www.peak.ne.jp/>                       //
6 6
 // ------------------------------------------------------------------------- //
7 7
 
8
-require_once __DIR__ . '/class/AltsysBreadcrumbs.class.php';
9
-include_once __DIR__ . '/include/gtickets.php';
10
-include_once __DIR__ . '/include/altsys_functions.php';
11
-include_once __DIR__ . '/include/tpls_functions.php';
8
+require_once __DIR__.'/class/AltsysBreadcrumbs.class.php';
9
+include_once __DIR__.'/include/gtickets.php';
10
+include_once __DIR__.'/include/altsys_functions.php';
11
+include_once __DIR__.'/include/tpls_functions.php';
12 12
 
13 13
 // only groups have 'module_admin' of 'altsys' can do that.
14 14
 $module_handler = xoops_getHandler('module');
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
 // check $xoopsModule
32 32
 if (!is_object($xoopsModule)) {
33
-    redirect_header(XOOPS_URL . '/user.php', 1, _NOPERM);
33
+    redirect_header(XOOPS_URL.'/user.php', 1, _NOPERM);
34 34
 }
35 35
 
36 36
 // set target_module if specified by $_GET['dirname']
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
     $target_dirname4sql = addslashes($target_dirname);
52 52
 
53
-    $target_mname = $target_module->getVar('name') . '&nbsp;' . sprintf('(%2.2f)', $target_module->getVar('version') / 100.0);
53
+    $target_mname = $target_module->getVar('name').'&nbsp;'.sprintf('(%2.2f)', $target_module->getVar('version') / 100.0);
54 54
 
55 55
 //$query4redirect = '?dirname='.urlencode(strip_tags($_GET['dirname'])) ;
56 56
 } elseif ('_custom' == @$_GET['dirname']) {
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     // Ticket Check
89 89
 
90 90
     if (!$xoopsGTicket->check()) {
91
-        redirect_header(XOOPS_URL . '/', 3, $xoopsGTicket->getErrors());
91
+        redirect_header(XOOPS_URL.'/', 3, $xoopsGTicket->getErrors());
92 92
     }
93 93
 
94 94
     $tplset_from = ($_POST['clone_tplset_from']);
@@ -105,13 +105,13 @@  discard block
 block discarded – undo
105 105
         tplsadmin_die(_MYTPLSADMIN_ERR_INVALIDSETNAME, $target_dirname);
106 106
     }
107 107
 
108
-    list($is_exist) = $db->fetchRow($db->query('SELECT COUNT(*) FROM ' . $db->prefix('tplfile') . " WHERE tpl_tplset='" . addslashes($tplset_to) . "'"));
108
+    list($is_exist) = $db->fetchRow($db->query('SELECT COUNT(*) FROM '.$db->prefix('tplfile')." WHERE tpl_tplset='".addslashes($tplset_to)."'"));
109 109
 
110 110
     if ($is_exist) {
111 111
         tplsadmin_die(_MYTPLSADMIN_ERR_DUPLICATEDSETNAME, $target_dirname);
112 112
     }
113 113
 
114
-    list($is_exist) = $db->fetchRow($db->query('SELECT COUNT(*) FROM ' . $db->prefix('tplset') . " WHERE tplset_name='" . addslashes($tplset_to) . "'"));
114
+    list($is_exist) = $db->fetchRow($db->query('SELECT COUNT(*) FROM '.$db->prefix('tplset')." WHERE tplset_name='".addslashes($tplset_to)."'"));
115 115
 
116 116
     if ($is_exist) {
117 117
         tplsadmin_die(_MYTPLSADMIN_ERR_DUPLICATEDSETNAME, $target_dirname);
@@ -119,11 +119,11 @@  discard block
 block discarded – undo
119 119
 
120 120
     // insert tplset table
121 121
 
122
-    $db->query('INSERT INTO ' . $db->prefix('tplset') . " SET tplset_name='" . addslashes($tplset_to) . "', tplset_desc='Created by tplsadmin', tplset_created=UNIX_TIMESTAMP()");
122
+    $db->query('INSERT INTO '.$db->prefix('tplset')." SET tplset_name='".addslashes($tplset_to)."', tplset_desc='Created by tplsadmin', tplset_created=UNIX_TIMESTAMP()");
123 123
 
124 124
     tplsadmin_copy_templates_db2db($tplset_from, $tplset_to, "tpl_module='$target_dirname4sql'");
125 125
 
126
-    redirect_header('?mode=admin&lib=altsys&page=mytplsadmin&dirname=' . $target_dirname, 1, _MYTPLSADMIN_DBUPDATED);
126
+    redirect_header('?mode=admin&lib=altsys&page=mytplsadmin&dirname='.$target_dirname, 1, _MYTPLSADMIN_DBUPDATED);
127 127
 
128 128
     exit;
129 129
 }
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
             // Ticket Check
136 136
 
137 137
             if (!$xoopsGTicket->check()) {
138
-                redirect_header(XOOPS_URL . '/', 3, $xoopsGTicket->getErrors());
138
+                redirect_header(XOOPS_URL.'/', 3, $xoopsGTicket->getErrors());
139 139
             }
140 140
 
141 141
             $tplset_from = ($tplset_from_tmp);
@@ -157,10 +157,10 @@  discard block
 block discarded – undo
157 157
 
158 158
                 $tplfile = ($tplfile_tmp);
159 159
 
160
-                tplsadmin_copy_templates_db2db($tplset_from, $tplset_to, "tpl_file='" . addslashes($tplfile) . "'");
160
+                tplsadmin_copy_templates_db2db($tplset_from, $tplset_to, "tpl_file='".addslashes($tplfile)."'");
161 161
             }
162 162
 
163
-            redirect_header('?mode=admin&lib=altsys&page=mytplsadmin&dirname=' . $target_dirname, 1, _MYTPLSADMIN_DBUPDATED);
163
+            redirect_header('?mode=admin&lib=altsys&page=mytplsadmin&dirname='.$target_dirname, 1, _MYTPLSADMIN_DBUPDATED);
164 164
 
165 165
             exit;
166 166
         }
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
     // Ticket Check
173 173
 
174 174
     if (!$xoopsGTicket->check()) {
175
-        redirect_header(XOOPS_URL . '/', 3, $xoopsGTicket->getErrors());
175
+        redirect_header(XOOPS_URL.'/', 3, $xoopsGTicket->getErrors());
176 176
     }
177 177
 
178 178
     if (empty($_POST['copyf2db_to'])) {
@@ -192,10 +192,10 @@  discard block
 block discarded – undo
192 192
 
193 193
         $tplfile = ($tplfile_tmp);
194 194
 
195
-        tplsadmin_copy_templates_f2db($tplset_to, "tpl_file='" . addslashes($tplfile) . "'");
195
+        tplsadmin_copy_templates_f2db($tplset_to, "tpl_file='".addslashes($tplfile)."'");
196 196
     }
197 197
 
198
-    redirect_header('?mode=admin&lib=altsys&page=mytplsadmin&dirname=' . $target_dirname, 1, _MYTPLSADMIN_DBUPDATED);
198
+    redirect_header('?mode=admin&lib=altsys&page=mytplsadmin&dirname='.$target_dirname, 1, _MYTPLSADMIN_DBUPDATED);
199 199
 
200 200
     exit;
201 201
 }
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
             // Ticket Check
208 208
 
209 209
             if (!$xoopsGTicket->check()) {
210
-                redirect_header(XOOPS_URL . '/', 3, $xoopsGTicket->getErrors());
210
+                redirect_header(XOOPS_URL.'/', 3, $xoopsGTicket->getErrors());
211 211
             }
212 212
 
213 213
             $tplset_from = ($tplset_from_tmp);
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
                 tplsadmin_die(_MYTPLSADMIN_ERR_NOTPLFILE, $target_dirname);
221 221
             }
222 222
 
223
-            require_once XOOPS_ROOT_PATH . '/class/template.php';
223
+            require_once XOOPS_ROOT_PATH.'/class/template.php';
224 224
 
225 225
             $tpl = new XoopsTpl();
226 226
 
@@ -233,24 +233,24 @@  discard block
 block discarded – undo
233 233
 
234 234
                 $tplfile = ($tplfile_tmp);
235 235
 
236
-                $result = $db->query('SELECT tpl_id FROM ' . $db->prefix('tplfile') . " WHERE tpl_tplset='" . addslashes($tplset_from) . "' AND tpl_file='" . addslashes($tplfile) . "'");
236
+                $result = $db->query('SELECT tpl_id FROM '.$db->prefix('tplfile')." WHERE tpl_tplset='".addslashes($tplset_from)."' AND tpl_file='".addslashes($tplfile)."'");
237 237
 
238 238
                 while (list($tpl_id) = $db->fetchRow($result)) {
239 239
                     $tpl_id = (int)$tpl_id;
240 240
 
241
-                    $db->query('DELETE FROM ' . $db->prefix('tplfile') . " WHERE tpl_id=$tpl_id");
241
+                    $db->query('DELETE FROM '.$db->prefix('tplfile')." WHERE tpl_id=$tpl_id");
242 242
 
243
-                    $db->query('DELETE FROM ' . $db->prefix('tplsource') . " WHERE tpl_id=$tpl_id");
243
+                    $db->query('DELETE FROM '.$db->prefix('tplsource')." WHERE tpl_id=$tpl_id");
244 244
                 }
245 245
 
246 246
                 // remove templates_c
247 247
 
248
-                $tpl->clear_cache('db:' . $tplfile);
248
+                $tpl->clear_cache('db:'.$tplfile);
249 249
 
250
-                $tpl->clear_compiled_tpl('db:' . $tplfile);
250
+                $tpl->clear_compiled_tpl('db:'.$tplfile);
251 251
             }
252 252
 
253
-            redirect_header('?mode=admin&lib=altsys&page=mytplsadmin&dirname=' . $target_dirname, 1, _MYTPLSADMIN_DBUPDATED);
253
+            redirect_header('?mode=admin&lib=altsys&page=mytplsadmin&dirname='.$target_dirname, 1, _MYTPLSADMIN_DBUPDATED);
254 254
 
255 255
             exit;
256 256
         }
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
 // get tplsets
294 294
 $tplset_handler = xoops_getHandler('tplset');
295 295
 $tplsets = array_keys($tplset_handler->getList());
296
-$sql = 'SELECT DISTINCT tpl_tplset FROM ' . $db->prefix('tplfile') . " ORDER BY tpl_tplset='default' DESC,tpl_tplset";
296
+$sql = 'SELECT DISTINCT tpl_tplset FROM '.$db->prefix('tplfile')." ORDER BY tpl_tplset='default' DESC,tpl_tplset";
297 297
 $srs = $db->query($sql);
298 298
 while (list($tplset) = $db->fetchRow($srs)) {
299 299
     if (!in_array($tplset, $tplsets, true)) {
@@ -322,13 +322,13 @@  discard block
 block discarded – undo
322 322
 }
323 323
 
324 324
 // get tpl_file owned by the module
325
-$sql = 'SELECT tpl_file,tpl_desc,tpl_type,COUNT(tpl_id) FROM ' . $db->prefix('tplfile') . " WHERE tpl_module='$target_dirname4sql' GROUP BY tpl_file ORDER BY tpl_type, tpl_file";
325
+$sql = 'SELECT tpl_file,tpl_desc,tpl_type,COUNT(tpl_id) FROM '.$db->prefix('tplfile')." WHERE tpl_module='$target_dirname4sql' GROUP BY tpl_file ORDER BY tpl_type, tpl_file";
326 326
 $frs = $db->query($sql);
327 327
 
328 328
 xoops_cp_header();
329 329
 
330 330
 // css display
331
-require_once XOOPS_TRUST_PATH . '/libs/altsys/class/D3Tpl.class.php';
331
+require_once XOOPS_TRUST_PATH.'/libs/altsys/class/D3Tpl.class.php';
332 332
 $tpl = new D3Tpl();
333 333
 echo '<style scoped="scoped">';
334 334
 $tpl->display('db:altsys_inc_mytplsadmin.css');
@@ -343,27 +343,27 @@  discard block
 block discarded – undo
343 343
 // breadcrumbs
344 344
 $breadcrumbsObj = AltsysBreadcrumbs::getInstance();
345 345
 if ($breadcrumbsObj->hasPaths()) {
346
-    $breadcrumbsObj->appendPath(XOOPS_URL . '/modules/altsys/admin/index.php?mode=admin&amp;lib=altsys&amp;page=mytplsadmin', _MI_ALTSYS_MENU_MYTPLSADMIN);
346
+    $breadcrumbsObj->appendPath(XOOPS_URL.'/modules/altsys/admin/index.php?mode=admin&amp;lib=altsys&amp;page=mytplsadmin', _MI_ALTSYS_MENU_MYTPLSADMIN);
347 347
 
348 348
     $breadcrumbsObj->appendPath('', $target_mname);
349 349
 }
350 350
 
351
-echo "<h3 style='text-align:" . _GLOBAL_LEFT . ";'>" . _MYTPLSADMIN_H3_MODULE . " : $target_mname</h3>\n";
351
+echo "<h3 style='text-align:"._GLOBAL_LEFT.";'>"._MYTPLSADMIN_H3_MODULE." : $target_mname</h3>\n";
352 352
 
353 353
 // link to create a new custom template
354 354
 if ('_custom' == $target_dirname) {
355
-    echo "<a href='index.php?mode=admin&lib=altsys&page=mytplsform&tpl_tplset=default'>" . _MYTPLSADMIN_CREATENEWCUSTOMTEMPLATE . "</a>\n";
355
+    echo "<a href='index.php?mode=admin&lib=altsys&page=mytplsform&tpl_tplset=default'>"._MYTPLSADMIN_CREATENEWCUSTOMTEMPLATE."</a>\n";
356 356
 }
357 357
 
358 358
 // beggining of table & form
359 359
 echo "
360
-    <form name='MainForm' action='?mode=admin&amp;lib=altsys&amp;page=mytplsadmin&amp;dirname=" . htmlspecialchars($target_dirname, ENT_QUOTES) . "' method='post'>
361
-    " . $xoopsGTicket->getTicketHtml(__LINE__) . "
360
+    <form name='MainForm' action='?mode=admin&amp;lib=altsys&amp;page=mytplsadmin&amp;dirname=" . htmlspecialchars($target_dirname, ENT_QUOTES)."' method='post'>
361
+    " . $xoopsGTicket->getTicketHtml(__LINE__)."
362 362
     <table class='outer altsys_mytplsadmin'>
363 363
         <tr>
364
-            <th>" . _MYTPLSADMIN_TH_NAME . '</th>
365
-            <th>' . _MYTPLSADMIN_TH_TYPE . "</th>
366
-            <th><input type='checkbox' title=" . _MYTPLSADMIN_TITLE_CHECKALL . " onclick=\"with(document.MainForm){for(i=0;i<length;i++){if(elements[i].type==='checkbox'&&elements[i].name.indexOf('basecheck')>=0){elements[i].checked=this.checked;}}}\" />" . _MYTPLSADMIN_TH_FILE . "</th>
364
+            <th>" . _MYTPLSADMIN_TH_NAME.'</th>
365
+            <th>' . _MYTPLSADMIN_TH_TYPE."</th>
366
+            <th><input type='checkbox' title=" . _MYTPLSADMIN_TITLE_CHECKALL." onclick=\"with(document.MainForm){for(i=0;i<length;i++){if(elements[i].type==='checkbox'&&elements[i].name.indexOf('basecheck')>=0){elements[i].checked=this.checked;}}}\" />"._MYTPLSADMIN_TH_FILE."</th>
367 367
             $tplsets_th4disp
368 368
         </tr>\n";
369 369
 
@@ -382,11 +382,11 @@  discard block
 block discarded – undo
382 382
         <tr>
383 383
             <td class='$evenodd'>
384 384
                 <dl>
385
-                    <dt>" . htmlspecialchars($tpl_file, ENT_QUOTES) . '</dt>
386
-                    <dd>' . htmlspecialchars($tpl_desc, ENT_QUOTES) . "</dd>
385
+                    <dt>".htmlspecialchars($tpl_file, ENT_QUOTES).'</dt>
386
+                    <dd>' . htmlspecialchars($tpl_desc, ENT_QUOTES)."</dd>
387 387
                 </dl>
388 388
             </td>
389
-            <td class='$evenodd'>" . $type . '<br />(' . $count . ")</td>\n";
389
+            <td class='$evenodd'>".$type.'<br />('.$count.")</td>\n";
390 390
 
391 391
     // the base file template column
392 392
 
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
 
398 398
         $fingerprints[$fingerprint] = '';
399 399
 
400
-        echo "<td class='$evenodd'>" . formatTimestamp(filemtime($basefilepath), 'm') . '<br />' . mb_substr($fingerprint, 0, 16) . "<br /><input type='checkbox' name='basecheck[$tpl_file]' value='1' /></td>\n";
400
+        echo "<td class='$evenodd'>".formatTimestamp(filemtime($basefilepath), 'm').'<br />'.mb_substr($fingerprint, 0, 16)."<br /><input type='checkbox' name='basecheck[$tpl_file]' value='1' /></td>\n";
401 401
 
402 402
         $fingerprint_class_count = 0;
403 403
     } else {
@@ -413,7 +413,7 @@  discard block
 block discarded – undo
413 413
 
414 414
         // query for templates in db
415 415
 
416
-        $drs = $db->query('SELECT * FROM ' . $db->prefix('tplfile') . ' f NATURAL LEFT JOIN ' . $db->prefix('tplsource') . " s WHERE tpl_file='" . addslashes($tpl_file) . "' AND tpl_tplset='" . addslashes($tplset) . "'");
416
+        $drs = $db->query('SELECT * FROM '.$db->prefix('tplfile').' f NATURAL LEFT JOIN '.$db->prefix('tplsource')." s WHERE tpl_file='".addslashes($tpl_file)."' AND tpl_tplset='".addslashes($tplset)."'");
417 417
 
418 418
         $numrows = $db->getRowsNum($drs);
419 419
 
@@ -457,23 +457,23 @@  discard block
 block discarded – undo
457 457
 echo "
458 458
     <tr>
459 459
         <td class='head'>
460
-            " . _MYTPLSADMIN_CREATE_NEW_TPLSET . ': <br />
461
-            ' . _MYTPLSADMIN_CAPTION_BASE . ":
460
+            " . _MYTPLSADMIN_CREATE_NEW_TPLSET.': <br />
461
+            ' . _MYTPLSADMIN_CAPTION_BASE.":
462 462
             <select name='clone_tplset_from'>
463 463
                 $tplset_options
464
-                <option value='_blank_'>" . _MYTPLSADMIN_OPT_BLANKSET . '</option>
464
+                <option value='_blank_'>"._MYTPLSADMIN_OPT_BLANKSET.'</option>
465 465
             </select>
466 466
             <br />
467
-            ' . _MYTPLSADMIN_CAPTION_SETNAME . ": <input type='text' name='clone_tplset_to' size='8' maxlength='16' /> <input type='submit' name='clone_tplset_do' value='" . _MYTPLSADMIN_BTN_NEWTPLSET . "' />
467
+            ' . _MYTPLSADMIN_CAPTION_SETNAME.": <input type='text' name='clone_tplset_to' size='8' maxlength='16' /> <input type='submit' name='clone_tplset_do' value='"._MYTPLSADMIN_BTN_NEWTPLSET."' />
468 468
         </td>
469 469
         <td class='head'></td>
470 470
         <td class='head'>
471
-            " . _MYTPLSADMIN_CAPTION_COPYTO . ":
471
+            " . _MYTPLSADMIN_CAPTION_COPYTO.":
472 472
             <select name='copyf2db_to'>
473 473
                 $tplset_options
474 474
             </select>
475 475
             <br />
476
-            <input name='copyf2db_do' type='submit' value='" . _MYTPLSADMIN_BTN_COPY . "' onclick='return altsys_mytpladmin_check_copy_submit(\"" . _MYTPLSADMIN_CNF_COPY_SELECTED_TEMPLATES . "\", \"base\", true);' />
476
+            <input name='copyf2db_do' type='submit' value='"._MYTPLSADMIN_BTN_COPY."' onclick='return altsys_mytpladmin_check_copy_submit(\""._MYTPLSADMIN_CNF_COPY_SELECTED_TEMPLATES."\", \"base\", true);' />
477 477
         </td>\n";
478 478
 
479 479
 foreach ($tplsets as $tplset) {
@@ -484,12 +484,12 @@  discard block
 block discarded – undo
484 484
                                                                              . _DELETE
485 485
                                                                              . "' onclick='return altsys_mytpladmin_check_copy_submit(\""
486 486
                                                                              . _MYTPLSADMIN_CNF_DELETE_SELECTED_TEMPLATES
487
-                                                                             . "\", \"{$tplset4disp}_\", false);' /><br /><br />") . '
488
-            ' . _MYTPLSADMIN_CAPTION_COPYTO . ":
487
+                                                                             . "\", \"{$tplset4disp}_\", false);' /><br /><br />").'
488
+            ' . _MYTPLSADMIN_CAPTION_COPYTO.":
489 489
             <select name='copy_to[{$tplset4disp}]'>
490
-                " . str_replace('<option value=\'' . $tplset4disp . '\'>' . $tplset4disp . '</option>', '', $tplset_options) . "
490
+                ".str_replace('<option value=\''.$tplset4disp.'\'>'.$tplset4disp.'</option>', '', $tplset_options)."
491 491
             </select>
492
-            <input name='copy_do[{$tplset4disp}]' type='submit' value='" . _MYTPLSADMIN_BTN_COPY . "' onclick='return altsys_mytpladmin_check_copy_submit(\"" . _MYTPLSADMIN_CNF_COPY_SELECTED_TEMPLATES . "\", \"{$tplset4disp}_\", true);' />
492
+            <input name='copy_do[{$tplset4disp}]' type='submit' value='"._MYTPLSADMIN_BTN_COPY."' onclick='return altsys_mytpladmin_check_copy_submit(\""._MYTPLSADMIN_CNF_COPY_SELECTED_TEMPLATES."\", \"{$tplset4disp}_\", true);' />
493 493
         </td>\n";
494 494
 }
495 495
 
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/class/MyBlocksAdmin.class.php 1 patch
Spacing   +45 added lines, -45 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 
118 118
             $moduleHandler = xoops_getHandler('module');
119 119
 
120
-         if (! empty($_GET['dirname'])) {
120
+         if (!empty($_GET['dirname'])) {
121 121
                 $dirname = preg_replace('/[^0-9a-zA-Z_-]/', '', \Xmf\Request::getString('dirname', '', 'GET'));
122 122
 
123 123
                 $target_module = $moduleHandler->getByDirname($dirname);
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 
129 129
                 $this->target_mid = $target_module->getVar('mid');
130 130
 
131
-                $this->target_mname = $target_module->getVar('name') . '&nbsp;' . sprintf('(%2.2f)', $target_module->getVar('version') / 100.0);
131
+                $this->target_mname = $target_module->getVar('name').'&nbsp;'.sprintf('(%2.2f)', $target_module->getVar('version') / 100.0);
132 132
 
133 133
                 $this->target_dirname = $target_module->getVar('dirname');
134 134
 
@@ -138,9 +138,9 @@  discard block
 block discarded – undo
138 138
 
139 139
                 $breadcrumbsObj = AltsysBreadcrumbs::getInstance();
140 140
 
141
-                $breadcrumbsObj->appendPath(XOOPS_URL . '/modules/altsys/admin/index.php?mode=admin&amp;lib=altsys&amp;page=myblocksadmin', '_MI_ALTSYS_MENU_MYBLOCKSADMIN');
141
+                $breadcrumbsObj->appendPath(XOOPS_URL.'/modules/altsys/admin/index.php?mode=admin&amp;lib=altsys&amp;page=myblocksadmin', '_MI_ALTSYS_MENU_MYBLOCKSADMIN');
142 142
 
143
-                $breadcrumbsObj->appendPath(XOOPS_URL . '/modules/altsys/admin/index.php?mode=admin&amp;lib=altsys&amp;page=myblocksadmin&amp;dirname=' . $this->target_dirname, $this->target_mname);
143
+                $breadcrumbsObj->appendPath(XOOPS_URL.'/modules/altsys/admin/index.php?mode=admin&amp;lib=altsys&amp;page=myblocksadmin&amp;dirname='.$this->target_dirname, $this->target_mname);
144 144
             } else {
145 145
                 // custom blocks
146 146
 
@@ -154,28 +154,28 @@  discard block
 block discarded – undo
154 154
 
155 155
                 $breadcrumbsObj = AltsysBreadcrumbs::getInstance();
156 156
 
157
-                $breadcrumbsObj->appendPath(XOOPS_URL . '/modules/altsys/admin/index.php?mode=admin&amp;lib=altsys&amp;page=myblocksadmin', '_MI_ALTSYS_MENU_MYBLOCKSADMIN');
157
+                $breadcrumbsObj->appendPath(XOOPS_URL.'/modules/altsys/admin/index.php?mode=admin&amp;lib=altsys&amp;page=myblocksadmin', '_MI_ALTSYS_MENU_MYBLOCKSADMIN');
158 158
 
159
-                $breadcrumbsObj->appendPath(XOOPS_URL . '/modules/altsys/admin/index.php?mode=admin&amp;lib=altsys&amp;page=myblocksadmin&amp;dirname=' . $this->target_dirname, '_MI_ALTSYS_MENU_CUSTOMBLOCKS');
159
+                $breadcrumbsObj->appendPath(XOOPS_URL.'/modules/altsys/admin/index.php?mode=admin&amp;lib=altsys&amp;page=myblocksadmin&amp;dirname='.$this->target_dirname, '_MI_ALTSYS_MENU_CUSTOMBLOCKS');
160 160
             }
161 161
         } else {
162 162
             // myblocksadmin as a library
163 163
 
164 164
             $this->target_mid = $xoopsModule->getVar('mid');
165 165
 
166
-            $this->target_mname = $xoopsModule->getVar('name') . '&nbsp;' . sprintf('(%2.2f)', $xoopsModule->getVar('version') / 100.0);
166
+            $this->target_mname = $xoopsModule->getVar('name').'&nbsp;'.sprintf('(%2.2f)', $xoopsModule->getVar('version') / 100.0);
167 167
 
168 168
             $this->target_dirname = $xoopsModule->getVar('dirname');
169 169
 
170
-            $mod_url = XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname');
170
+            $mod_url = XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname');
171 171
 
172 172
             $modinfo = $xoopsModule->getInfo();
173 173
 
174 174
             $breadcrumbsObj = AltsysBreadcrumbs::getInstance();
175 175
 
176
-            $breadcrumbsObj->appendPath($mod_url . '/' . @$modinfo['adminindex'], $this->target_mname);
176
+            $breadcrumbsObj->appendPath($mod_url.'/'.@$modinfo['adminindex'], $this->target_mname);
177 177
 
178
-            $breadcrumbsObj->appendPath($mod_url . '/admin/index.php?mode=admin&amp;lib=altsys&amp;page=myblocksadmin', _MD_A_MYBLOCKSADMIN_BLOCKADMIN);
178
+            $breadcrumbsObj->appendPath($mod_url.'/admin/index.php?mode=admin&amp;lib=altsys&amp;page=myblocksadmin', _MD_A_MYBLOCKSADMIN_BLOCKADMIN);
179 179
         }
180 180
 
181 181
         // read xoops_version.php of the target
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
         } else {
302 302
             // origined from the table of `block_module_link`
303 303
 
304
-            $result = $this->db->query('SELECT module_id FROM ' . $this->db->prefix('block_module_link') . " WHERE block_id='$bid'");
304
+            $result = $this->db->query('SELECT module_id FROM '.$this->db->prefix('block_module_link')." WHERE block_id='$bid'");
305 305
 
306 306
             $selected_mids = [];
307 307
 
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
         } else {
371 371
             // origined from the table of `group_perm`
372 372
 
373
-            $result = $this->db->query('SELECT gperm_groupid FROM ' . $this->db->prefix('group_permission') . " WHERE gperm_itemid='$bid' AND gperm_name='block_read'");
373
+            $result = $this->db->query('SELECT gperm_groupid FROM '.$this->db->prefix('group_permission')." WHERE gperm_itemid='$bid' AND gperm_name='block_read'");
374 374
 
375 375
             $selected_gids = [];
376 376
 
@@ -473,31 +473,31 @@  discard block
 block discarded – undo
473 473
 
474 474
         return "
475 475
                 <div class='blockposition $scol0'>
476
-                    <input type='radio' name='sides[$bid]' value='" . XOOPS_SIDEBLOCK_LEFT . "' class='blockposition' $ssel0 onclick='document.getElementById(\"extra_side_$bid\").value=" . XOOPS_SIDEBLOCK_LEFT . ";' />
476
+                    <input type='radio' name='sides[$bid]' value='".XOOPS_SIDEBLOCK_LEFT."' class='blockposition' $ssel0 onclick='document.getElementById(\"extra_side_$bid\").value=".XOOPS_SIDEBLOCK_LEFT.";' />
477 477
                 </div>
478
-                <div style='float:" . _GLOBAL_LEFT . ";'>-</div>
478
+                <div style='float:" . _GLOBAL_LEFT.";'>-</div>
479 479
                 <div class='blockposition $scol2'>
480
-                    <input type='radio' name='sides[$bid]' value='" . XOOPS_CENTERBLOCK_LEFT . "' class='blockposition' $ssel2 onclick='document.getElementById(\"extra_side_$bid\").value=" . XOOPS_CENTERBLOCK_LEFT . ";' />
480
+                    <input type='radio' name='sides[$bid]' value='".XOOPS_CENTERBLOCK_LEFT."' class='blockposition' $ssel2 onclick='document.getElementById(\"extra_side_$bid\").value=".XOOPS_CENTERBLOCK_LEFT.";' />
481 481
                 </div>
482 482
                 <div class='blockposition $scol3'>
483
-                    <input type='radio' name='sides[$bid]' value='" . XOOPS_CENTERBLOCK_CENTER . "' class='blockposition' $ssel3 onclick='document.getElementById(\"extra_side_$bid\").value=" . XOOPS_CENTERBLOCK_CENTER . ";' />
483
+                    <input type='radio' name='sides[$bid]' value='".XOOPS_CENTERBLOCK_CENTER."' class='blockposition' $ssel3 onclick='document.getElementById(\"extra_side_$bid\").value=".XOOPS_CENTERBLOCK_CENTER.";' />
484 484
                 </div>
485 485
                 <div class='blockposition $scol4'>
486
-                    <input type='radio' name='sides[$bid]' value='" . XOOPS_CENTERBLOCK_RIGHT . "' class='blockposition' $ssel4 onclick='document.getElementById(\"extra_side_$bid\").value=" . XOOPS_CENTERBLOCK_RIGHT . ";' />
486
+                    <input type='radio' name='sides[$bid]' value='".XOOPS_CENTERBLOCK_RIGHT."' class='blockposition' $ssel4 onclick='document.getElementById(\"extra_side_$bid\").value=".XOOPS_CENTERBLOCK_RIGHT.";' />
487 487
                 </div>
488
-                <div style='float:" . _GLOBAL_LEFT . ";'>-</div>
488
+                <div style='float:" . _GLOBAL_LEFT.";'>-</div>
489 489
                 <div class='blockposition $scol1'>
490
-                    <input type='radio' name='sides[$bid]' value='" . XOOPS_SIDEBLOCK_RIGHT . "' class='blockposition' $ssel1 onclick='document.getElementById(\"extra_side_$bid\").value=" . XOOPS_SIDEBLOCK_RIGHT . ";' />
490
+                    <input type='radio' name='sides[$bid]' value='".XOOPS_SIDEBLOCK_RIGHT."' class='blockposition' $ssel1 onclick='document.getElementById(\"extra_side_$bid\").value=".XOOPS_SIDEBLOCK_RIGHT.";' />
491 491
                 </div>
492 492
                 <br />
493 493
                 <br />
494
-                <div style='float:" . _GLOBAL_LEFT . ";width:50px;' class='$stextbox'>
495
-                    <input type='text' name='extra_sides[$bid]' value='" . $value4extra_side . "' style='width:20px;' id='extra_side_$bid' />
494
+                <div style='float:" . _GLOBAL_LEFT.";width:50px;' class='$stextbox'>
495
+                    <input type='text' name='extra_sides[$bid]' value='".$value4extra_side."' style='width:20px;' id='extra_side_$bid' />
496 496
                 </div>
497 497
                 <div class='blockposition $scoln'>
498 498
                     <input type='radio' name='sides[$bid]' value='-1' class='blockposition' $sseln onclick='document.getElementById(\"extra_side_$bid\").value=-1;' />
499 499
                 </div>
500
-                <div style='float:" . _GLOBAL_LEFT . ";'>" . _NONE . '</div>
500
+                <div style='float:"._GLOBAL_LEFT.";'>"._NONE.'</div>
501 501
     ';
502 502
     }
503 503
 
@@ -509,7 +509,7 @@  discard block
 block discarded – undo
509 509
 
510 510
         // main query
511 511
 
512
-        $sql = 'SELECT * FROM ' . $this->db->prefix('newblocks') . " WHERE mid='$this->target_mid' ORDER BY visible DESC,side,weight";
512
+        $sql = 'SELECT * FROM '.$this->db->prefix('newblocks')." WHERE mid='$this->target_mid' ORDER BY visible DESC,side,weight";
513 513
 
514 514
         $result = $this->db->query($sql);
515 515
 
@@ -568,7 +568,7 @@  discard block
 block discarded – undo
568 568
 
569 569
         // display
570 570
 
571
-        require_once XOOPS_TRUST_PATH . '/libs/altsys/class/D3Tpl.class.php';
571
+        require_once XOOPS_TRUST_PATH.'/libs/altsys/class/D3Tpl.class.php';
572 572
 
573 573
         $tpl = new D3Tpl();
574 574
 
@@ -595,7 +595,7 @@  discard block
 block discarded – undo
595 595
             return [];
596 596
         }
597 597
 
598
-        include XOOPS_ROOT_PATH . '/modules/' . $this->target_dirname . '/xoops_version.php';
598
+        include XOOPS_ROOT_PATH.'/modules/'.$this->target_dirname.'/xoops_version.php';
599 599
 
600 600
         if (empty($modversion['blocks'])) {
601 601
             return [];
@@ -608,7 +608,7 @@  discard block
 block discarded – undo
608 608
     {
609 609
         // query for getting blocks
610 610
 
611
-        $sql = 'SELECT * FROM ' . $this->db->prefix('newblocks') . " WHERE mid='$this->target_mid' ORDER BY visible DESC,side,weight";
611
+        $sql = 'SELECT * FROM '.$this->db->prefix('newblocks')." WHERE mid='$this->target_mid' ORDER BY visible DESC,side,weight";
612 612
 
613 613
         $result = $this->db->query($sql);
614 614
 
@@ -645,9 +645,9 @@  discard block
 block discarded – undo
645 645
         // skip system (TODO)
646 646
 
647 647
         if ($this->target_mid > 1) {
648
-            $form->addAppendix('module_admin', $this->target_mid, $this->target_mname . ' ' . _MD_A_MYBLOCKSADMIN_PERM_MADMIN);
648
+            $form->addAppendix('module_admin', $this->target_mid, $this->target_mname.' '._MD_A_MYBLOCKSADMIN_PERM_MADMIN);
649 649
 
650
-            $form->addAppendix('module_read', $this->target_mid, $this->target_mname . ' ' . _MD_A_MYBLOCKSADMIN_PERM_MREAD);
650
+            $form->addAppendix('module_read', $this->target_mid, $this->target_mname.' '._MD_A_MYBLOCKSADMIN_PERM_MREAD);
651 651
         }
652 652
 
653 653
         foreach ($item_list as $item_id => $item_name) {
@@ -719,27 +719,27 @@  discard block
 block discarded – undo
719 719
         $msg = _MD_A_MYBLOCKSADMIN_DBUPDATED;
720 720
 
721 721
         if (false != $block->store()) {
722
-            include_once XOOPS_ROOT_PATH . '/class/template.php';
722
+            include_once XOOPS_ROOT_PATH.'/class/template.php';
723 723
 
724 724
             $xoopsTpl = new XoopsTpl();
725 725
 
726 726
             $xoopsTpl->xoops_setCaching(2);
727 727
 
728 728
             if ('' != $block->getVar('template')) {
729
-                if ($xoopsTpl->is_cached('db:' . $block->getVar('template'))) {
730
-                    if (!$xoopsTpl->clear_cache('db:' . $block->getVar('template'))) {
731
-                        $msg = 'Unable to clear cache for block ID' . $bid;
729
+                if ($xoopsTpl->is_cached('db:'.$block->getVar('template'))) {
730
+                    if (!$xoopsTpl->clear_cache('db:'.$block->getVar('template'))) {
731
+                        $msg = 'Unable to clear cache for block ID'.$bid;
732 732
                     }
733 733
                 }
734 734
             } else {
735
-                if ($xoopsTpl->is_cached('db:system_dummy.html', 'blk_' . $bid)) {
736
-                    if (!$xoopsTpl->clear_cache('db:system_dummy.html', 'blk_' . $bid)) {
737
-                        $msg = 'Unable to clear cache for block ID' . $bid;
735
+                if ($xoopsTpl->is_cached('db:system_dummy.html', 'blk_'.$bid)) {
736
+                    if (!$xoopsTpl->clear_cache('db:system_dummy.html', 'blk_'.$bid)) {
737
+                        $msg = 'Unable to clear cache for block ID'.$bid;
738 738
                     }
739 739
                 }
740 740
             }
741 741
         } else {
742
-            $msg = 'Failed update of block. ID:' . $bid;
742
+            $msg = 'Failed update of block. ID:'.$bid;
743 743
         }
744 744
 
745 745
         return $msg;
@@ -1078,7 +1078,7 @@  discard block
 block discarded – undo
1078 1078
         do {
1079 1079
             $func_num--;
1080 1080
 
1081
-            list($count) = $this->db->fetchRow($this->db->query('SELECT COUNT(*) FROM ' . $this->db->prefix('newblocks') . ' WHERE mid=' . (int)$mid . ' AND func_num=' . $func_num));
1081
+            list($count) = $this->db->fetchRow($this->db->query('SELECT COUNT(*) FROM '.$this->db->prefix('newblocks').' WHERE mid='.(int)$mid.' AND func_num='.$func_num));
1082 1082
         } while ($count > 0);
1083 1083
 
1084 1084
         return $func_num > 128 ? $func_num : 255;
@@ -1121,7 +1121,7 @@  discard block
 block discarded – undo
1121 1121
             // permission copy
1122 1122
 
1123 1123
             foreach ($GLOBALS['xoopsUser']->getGroups() as $gid) {
1124
-                $sql = 'INSERT INTO ' . $this->db->prefix('group_permission') . " (gperm_groupid, gperm_itemid, gperm_modid, gperm_name) VALUES ($gid, $bid, 1, 'block_read')";
1124
+                $sql = 'INSERT INTO '.$this->db->prefix('group_permission')." (gperm_groupid, gperm_itemid, gperm_modid, gperm_name) VALUES ($gid, $bid, 1, 'block_read')";
1125 1125
 
1126 1126
                 $this->db->query($sql);
1127 1127
             }
@@ -1259,7 +1259,7 @@  discard block
 block discarded – undo
1259 1259
 
1260 1260
         // display
1261 1261
 
1262
-        require_once XOOPS_TRUST_PATH . '/libs/altsys/class/D3Tpl.class.php';
1262
+        require_once XOOPS_TRUST_PATH.'/libs/altsys/class/D3Tpl.class.php';
1263 1263
 
1264 1264
         $tpl = new D3Tpl();
1265 1265
 
@@ -1268,7 +1268,7 @@  discard block
 block discarded – undo
1268 1268
         if (defined('XOOPS_CUBE_LEGACY')) {
1269 1269
             $tpl->assign('xoops_cube_legacy', true);
1270 1270
 
1271
-            include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
1271
+            include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
1272 1272
         } else {
1273 1273
             $tpl->assign('xoops_cube_legacy', false);
1274 1274
         }
@@ -1300,7 +1300,7 @@  discard block
 block discarded – undo
1300 1300
 
1301 1301
     public function checkFck()
1302 1302
     {
1303
-        return file_exists(XOOPS_ROOT_PATH . '/common/fckeditor/fckeditor.js');
1303
+        return file_exists(XOOPS_ROOT_PATH.'/common/fckeditor/fckeditor.js');
1304 1304
     }
1305 1305
 
1306 1306
     /**
@@ -1373,14 +1373,14 @@  discard block
 block discarded – undo
1373 1373
         // Ticket Check
1374 1374
 
1375 1375
         if (!$GLOBALS['xoopsSecurity']->check(true, 'myblocksadmin')) {
1376
-            redirect_header(XOOPS_URL . '/', 3, $GLOBALS['xoopsSecurity']->getErrors());
1376
+            redirect_header(XOOPS_URL.'/', 3, $GLOBALS['xoopsSecurity']->getErrors());
1377 1377
         }
1378 1378
 
1379 1379
         $msg = '';
1380 1380
 
1381 1381
         $bid = (int)(@$_GET['bid']);
1382 1382
 
1383
-        if (! empty($_POST['preview'])) {
1383
+        if (!empty($_POST['preview'])) {
1384 1384
             // preview
1385 1385
 
1386 1386
             $this->preview_request = $this->fetchRequest4Block($bid);
@@ -1407,12 +1407,12 @@  discard block
 block discarded – undo
1407 1407
         } elseif (!empty($_POST['submit'])) {
1408 1408
             // update module_admin,module_read,block_read
1409 1409
 
1410
-            include dirname(__DIR__) . '/include/mygroupperm.php';
1410
+            include dirname(__DIR__).'/include/mygroupperm.php';
1411 1411
 
1412 1412
             $msg = _MD_A_MYBLOCKSADMIN_PERMUPDATED;
1413 1413
         }
1414 1414
 
1415
-        redirect_header('?mode=admin&lib=altsys&page=myblocksadmin&dirname=' . $this->target_dirname, 1, $msg);
1415
+        redirect_header('?mode=admin&lib=altsys&page=myblocksadmin&dirname='.$this->target_dirname, 1, $msg);
1416 1416
 
1417 1417
         exit;
1418 1418
     }
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/class/MyBlocksAdminForX20S.class.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-require_once __DIR__ . '/MyBlocksAdmin.class.php';
3
+require_once __DIR__.'/MyBlocksAdmin.class.php';
4 4
 
5 5
 /**
6 6
  * Class MyBlocksAdminForX20S
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     {
18 18
         parent::construct();
19 19
 
20
-        @include_once XOOPS_ROOT_PATH . '/modules/system/language/' . $this->lang . '/admin/blocksadmin.php';
20
+        @include_once XOOPS_ROOT_PATH.'/modules/system/language/'.$this->lang.'/admin/blocksadmin.php';
21 21
 
22 22
         $this->block_positions = [
23 23
             -1 => _NONE,
@@ -67,19 +67,19 @@  discard block
 block discarded – undo
67 67
         return "
68 68
     <table style='width:80px;'>
69 69
         <tr>
70
-            <td rowspan='2'>" . $this->renderRadio4BlockPosition(0, $block_data) . '</td>
71
-            <td>' . $this->renderRadio4BlockPosition(3, $block_data) . '</td>
72
-            <td>' . $this->renderRadio4BlockPosition(5, $block_data) . '</td>
73
-            <td>' . $this->renderRadio4BlockPosition(4, $block_data) . "</td>
74
-            <td rowspan='2'>" . $this->renderRadio4BlockPosition(1, $block_data) . '</td>
70
+            <td rowspan='2'>" . $this->renderRadio4BlockPosition(0, $block_data).'</td>
71
+            <td>' . $this->renderRadio4BlockPosition(3, $block_data).'</td>
72
+            <td>' . $this->renderRadio4BlockPosition(5, $block_data).'</td>
73
+            <td>' . $this->renderRadio4BlockPosition(4, $block_data)."</td>
74
+            <td rowspan='2'>" . $this->renderRadio4BlockPosition(1, $block_data).'</td>
75 75
         </tr>
76 76
         <tr>
77
-            <td>' . $this->renderRadio4BlockPosition(7, $block_data) . '</td>
78
-            <td>' . $this->renderRadio4BlockPosition(9, $block_data) . '</td>
79
-            <td>' . $this->renderRadio4BlockPosition(8, $block_data) . "</td>
77
+            <td>' . $this->renderRadio4BlockPosition(7, $block_data).'</td>
78
+            <td>' . $this->renderRadio4BlockPosition(9, $block_data).'</td>
79
+            <td>' . $this->renderRadio4BlockPosition(8, $block_data)."</td>
80 80
         </tr>
81 81
         <tr>
82
-            <td colspan='5'>" . $this->renderRadio4BlockPosition(-1, $block_data) . _NONE . '</td>
82
+            <td colspan='5'>" . $this->renderRadio4BlockPosition(-1, $block_data)._NONE.'</td>
83 83
         </tr>
84 84
     </table>';
85 85
     }
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/class/MyBlocksAdminForICMS.class.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-require_once __DIR__ . '/MyBlocksAdmin.class.php';
3
+require_once __DIR__.'/MyBlocksAdmin.class.php';
4 4
 
5 5
 /**
6 6
  * Class MyBlocksAdminForICMS
@@ -17,9 +17,9 @@  discard block
 block discarded – undo
17 17
     {
18 18
         parent::construct();
19 19
 
20
-        @include_once XOOPS_ROOT_PATH . '/modules/system/language/' . $this->lang . '/admin/blocksadmin.php';
20
+        @include_once XOOPS_ROOT_PATH.'/modules/system/language/'.$this->lang.'/admin/blocksadmin.php';
21 21
 
22
-        $result = $this->db->query('SELECT id,pname,title FROM ' . $this->db->prefix('block_positions'));
22
+        $result = $this->db->query('SELECT id,pname,title FROM '.$this->db->prefix('block_positions'));
23 23
 
24 24
         while (list($id, $pname, $title) = $this->db->fetchRow($result)) {
25 25
             $this->block_positions[$id] = defined($title) ? constant($title) : $title;
@@ -71,12 +71,12 @@  discard block
 block discarded – undo
71 71
         } else {
72 72
             // origined from the table of `block_module_link`
73 73
 
74
-            $result = $this->db->query('SELECT module_id,page_id FROM ' . $this->db->prefix('block_module_link') . " WHERE block_id='$bid'");
74
+            $result = $this->db->query('SELECT module_id,page_id FROM '.$this->db->prefix('block_module_link')." WHERE block_id='$bid'");
75 75
 
76 76
             $selected_pages = [];
77 77
 
78 78
             while (list($mid, $pid) = $this->db->fetchRow($result)) {
79
-                $selected_pages[] = (int)$mid . '-' . (int)$pid;
79
+                $selected_pages[] = (int)$mid.'-'.(int)$pid;
80 80
             }
81 81
         }
82 82
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 
85 85
         $ret = "
86 86
                 <select name='bmodules[$bid][]' size='5' multiple='multiple'>
87
-                    " . $page_handler->getPageSelOptions($selected_pages) . '
87
+                    ".$page_handler->getPageSelOptions($selected_pages).'
88 88
                 </select>';
89 89
 
90 90
         return $ret;
@@ -104,19 +104,19 @@  discard block
 block discarded – undo
104 104
         return "
105 105
     <table>
106 106
         <tr>
107
-            <td rowspan='2'>" . $this->renderRadio4BlockPosition(1, $block_data) . '</td>
108
-            <td>' . $this->renderRadio4BlockPosition(3, $block_data) . '</td>
109
-            <td>' . $this->renderRadio4BlockPosition(4, $block_data) . '</td>
110
-            <td>' . $this->renderRadio4BlockPosition(5, $block_data) . "</td>
111
-            <td rowspan='2'>" . $this->renderRadio4BlockPosition(2, $block_data) . '</td>
107
+            <td rowspan='2'>" . $this->renderRadio4BlockPosition(1, $block_data).'</td>
108
+            <td>' . $this->renderRadio4BlockPosition(3, $block_data).'</td>
109
+            <td>' . $this->renderRadio4BlockPosition(4, $block_data).'</td>
110
+            <td>' . $this->renderRadio4BlockPosition(5, $block_data)."</td>
111
+            <td rowspan='2'>" . $this->renderRadio4BlockPosition(2, $block_data).'</td>
112 112
         </tr>
113 113
         <tr>
114
-            <td>' . $this->renderRadio4BlockPosition(6, $block_data) . '</td>
115
-            <td>' . $this->renderRadio4BlockPosition(7, $block_data) . '</td>
116
-            <td>' . $this->renderRadio4BlockPosition(8, $block_data) . "</td>
114
+            <td>' . $this->renderRadio4BlockPosition(6, $block_data).'</td>
115
+            <td>' . $this->renderRadio4BlockPosition(7, $block_data).'</td>
116
+            <td>' . $this->renderRadio4BlockPosition(8, $block_data)."</td>
117 117
         </tr>
118 118
         <tr>
119
-            <td colspan='5'>" . $this->renderRadio4BlockPositions($block_data, [1, 2, 3, 4, 5, 6, 7, 8]) . '</td>
119
+            <td colspan='5'>" . $this->renderRadio4BlockPositions($block_data, [1, 2, 3, 4, 5, 6, 7, 8]).'</td>
120 120
         </tr>
121 121
     </table>';
122 122
     }
Please login to merge, or discard this patch.