Completed
Branch master (5c4e1a)
by Michael
46s
created
html/modules/altsys/xoops_version.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,4 +9,4 @@
 block discarded – undo
9 9
 // require $mydirpath.'/mytrustdirname.php' ; // set $mytrustdirname
10 10
 $mytrustdirname = 'altsys';
11 11
 
12
-require XOOPS_TRUST_PATH . '/libs/' . $mytrustdirname . '/xoops_version.php';
12
+require XOOPS_TRUST_PATH.'/libs/'.$mytrustdirname.'/xoops_version.php';
Please login to merge, or discard this patch.
html/modules/altsys/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,6 +2,6 @@
 block discarded – undo
2 2
 
3 3
 $xoopsOption['nocommon'] = 1;
4 4
 define('_LEGACY_PREVENT_LOAD_CORE_', true);
5
-require_once \dirname(__DIR__, 2) . '/mainfile.php';
5
+require_once \dirname(__DIR__, 2).'/mainfile.php';
6 6
 
7
-header('Location: ' . XOOPS_URL . '/user.php');
7
+header('Location: '.XOOPS_URL.'/user.php');
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/language/ja_utf8/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/spanish/blocks_each.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -3,10 +3,10 @@
 block discarded – undo
3 3
 if (defined('FOR_XOOPS_LANG_CHECKER')) {
4 4
     $mydirname = 'd3forum';
5 5
 }
6
-$constpref = '_MB_' . mb_strtoupper($mydirname);
6
+$constpref = '_MB_'.mb_strtoupper($mydirname);
7 7
 
8
-if (defined('FOR_XOOPS_LANG_CHECKER') || !defined($constpref . '_LOADED')) {
9
-    define($constpref . '_LOADED', 1);
8
+if (defined('FOR_XOOPS_LANG_CHECKER') || !defined($constpref.'_LOADED')) {
9
+    define($constpref.'_LOADED', 1);
10 10
 
11 11
     // definitions for displaying blocks
12 12
     // Since altsys is a singleton moudle, this file has non-sense.
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/language/persian/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/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/mymenusub/mytplsadmin.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
 require_once XOOPS_TRUST_PATH . '/libs/altsys/class/D3Tpl.class.php';
53 53
 $tpl = new D3Tpl();
54 54
 $tpl->assign([
55
-                 'adminmenu' => $adminmenu,
56
-                 'mypage' => 'mytplsadmin',
57
-             ]);
55
+                    'adminmenu' => $adminmenu,
56
+                    'mypage' => 'mytplsadmin',
57
+                ]);
58 58
 $tpl->display('db:altsys_inc_mymenusub.tpl');
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 $db = XoopsDatabaseFactory::getDatabaseConnection();
10 10
 
11 11
 // get custom templates
12
-[$count] = $db->fetchRow($db->query('SELECT COUNT(t.tpl_module) AS tpl_count FROM ' . $db->prefix('tplfile') . " t WHERE t.tpl_type='custom'"));
12
+[$count] = $db->fetchRow($db->query('SELECT COUNT(t.tpl_module) AS tpl_count FROM '.$db->prefix('tplfile')." t WHERE t.tpl_type='custom'"));
13 13
 if ('_custom' == $current_dirname) {
14 14
     //  $GLOBALS['altsysXoopsBreadcrumbs'][] = array( 'name' => _MYTPLSADMIN_CUSTOMTEMPLATE ) ;
15 15
 
@@ -21,35 +21,35 @@  discard block
 block discarded – undo
21 21
 $adminmenu = [
22 22
     [
23 23
         'selected' => $custom_selected,
24
-        'title' => _MYTPLSADMIN_CUSTOMTEMPLATE . " ($count)",
24
+        'title' => _MYTPLSADMIN_CUSTOMTEMPLATE." ($count)",
25 25
         'link' => '?mode=admin&lib=altsys&page=mytplsadmin&dirname=_custom',
26 26
     ],
27 27
 ];
28 28
 
29 29
 // get modules/templates
30
-$mrs = $db->query('SELECT m.name,m.dirname,COUNT(t.tpl_module) AS tpl_count FROM ' . $db->prefix('modules') . ' m LEFT JOIN ' . $db->prefix('tplfile') . ' t ON m.dirname=t.tpl_module WHERE m.isactive GROUP BY m.mid HAVING tpl_count>0 ORDER BY m.weight,m.mid');
30
+$mrs = $db->query('SELECT m.name,m.dirname,COUNT(t.tpl_module) AS tpl_count FROM '.$db->prefix('modules').' m LEFT JOIN '.$db->prefix('tplfile').' t ON m.dirname=t.tpl_module WHERE m.isactive GROUP BY m.mid HAVING tpl_count>0 ORDER BY m.weight,m.mid');
31 31
 
32 32
 // module loop
33 33
 while ([$name, $dirname, $count] = $db->fetchRow($mrs)) {
34 34
     if ($dirname == $current_dirname) {
35 35
         $adminmenu[] = [
36 36
             'selected' => true,
37
-            'title' => $name . " ($count)",
38
-            'link' => '?mode=admin&lib=altsys&page=mytplsadmin&dirname=' . $dirname,
37
+            'title' => $name." ($count)",
38
+            'link' => '?mode=admin&lib=altsys&page=mytplsadmin&dirname='.$dirname,
39 39
         ];
40 40
 
41 41
     //$GLOBALS['altsysXoopsBreadcrumbs'][] = array( 'name' => htmlspecialchars( $name , ENT_QUOTES ) ) ;
42 42
     } else {
43 43
         $adminmenu[] = [
44 44
             'selected' => false,
45
-            'title' => $name . " ($count)",
46
-            'link' => '?mode=admin&lib=altsys&page=mytplsadmin&dirname=' . $dirname,
45
+            'title' => $name." ($count)",
46
+            'link' => '?mode=admin&lib=altsys&page=mytplsadmin&dirname='.$dirname,
47 47
         ];
48 48
     }
49 49
 }
50 50
 
51 51
 // display
52
-require_once XOOPS_TRUST_PATH . '/libs/altsys/class/D3Tpl.class.php';
52
+require_once XOOPS_TRUST_PATH.'/libs/altsys/class/D3Tpl.class.php';
53 53
 $tpl = new D3Tpl();
54 54
 $tpl->assign([
55 55
                  'adminmenu' => $adminmenu,
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/mymenusub/myblocksadmin.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
 require_once XOOPS_TRUST_PATH . '/libs/altsys/class/D3Tpl.class.php';
60 60
 $tpl = new D3Tpl();
61 61
 $tpl->assign([
62
-                 'adminmenu' => $adminmenu,
63
-                 'mypage' => 'myblocksadmin',
64
-             ]);
62
+                    'adminmenu' => $adminmenu,
63
+                    'mypage' => 'myblocksadmin',
64
+                ]);
65 65
 $tpl->display('db:altsys_inc_mymenusub.tpl');
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -27,9 +27,9 @@  discard block
 block discarded – undo
27 27
     // get block info
28 28
 
29 29
     if (ALTSYS_CORE_TYPE_X22 != $core_type) {
30
-        [$block_count_all] = $db->fetchRow($db->query('SELECT COUNT(*) FROM ' . $db->prefix('newblocks') . ' WHERE mid=' . $m4menu->getVar('mid')));
30
+        [$block_count_all] = $db->fetchRow($db->query('SELECT COUNT(*) FROM '.$db->prefix('newblocks').' WHERE mid='.$m4menu->getVar('mid')));
31 31
 
32
-        [$block_count_visible] = $db->fetchRow($db->query('SELECT COUNT(*) FROM ' . $db->prefix('newblocks') . ' WHERE mid=' . $m4menu->getVar('mid') . ' AND visible>0'));
32
+        [$block_count_visible] = $db->fetchRow($db->query('SELECT COUNT(*) FROM '.$db->prefix('newblocks').' WHERE mid='.$m4menu->getVar('mid').' AND visible>0'));
33 33
 
34 34
         // $block_desc = " $block_count_all($block_count_visible)" ;
35 35
 
@@ -41,22 +41,22 @@  discard block
 block discarded – undo
41 41
     if ($m4menu->getVar('dirname') == $current_dirname) {
42 42
         $adminmenu[] = [
43 43
             'selected' => true,
44
-            'title' => $m4menu->getVar('name', 'n') . $block_desc,
45
-            'link' => '?mode=admin&lib=altsys&page=myblocksadmin&dirname=' . $m4menu->getVar('dirname', 'n'),
44
+            'title' => $m4menu->getVar('name', 'n').$block_desc,
45
+            'link' => '?mode=admin&lib=altsys&page=myblocksadmin&dirname='.$m4menu->getVar('dirname', 'n'),
46 46
         ];
47 47
 
48 48
     //$GLOBALS['altsysXoopsBreadcrumbs'][] = array( 'name' => $m4menu->getVar('name') ) ;
49 49
     } else {
50 50
         $adminmenu[] = [
51 51
             'selected' => false,
52
-            'title' => $m4menu->getVar('name', 'n') . $block_desc,
53
-            'link' => '?mode=admin&lib=altsys&page=myblocksadmin&dirname=' . $m4menu->getVar('dirname', 'n'),
52
+            'title' => $m4menu->getVar('name', 'n').$block_desc,
53
+            'link' => '?mode=admin&lib=altsys&page=myblocksadmin&dirname='.$m4menu->getVar('dirname', 'n'),
54 54
         ];
55 55
     }
56 56
 }
57 57
 
58 58
 // display
59
-require_once XOOPS_TRUST_PATH . '/libs/altsys/class/D3Tpl.class.php';
59
+require_once XOOPS_TRUST_PATH.'/libs/altsys/class/D3Tpl.class.php';
60 60
 $tpl = new D3Tpl();
61 61
 $tpl->assign([
62 62
                  'adminmenu' => $adminmenu,
Please login to merge, or discard this patch.