Completed
Push — master ( 6dab8b...b949bb )
by Michael
02:15 queued 11s
created
xoops_trust_path/libs/altsys/index.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@  discard block
 block discarded – undo
1 1
 <?php
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
     $moduleperm_handler = xoops_getHandler('module');
@@ -16,15 +16,15 @@  discard block
 block discarded – undo
16 16
     $xoopsModule = $moduleperm_handler->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 26
 $page = preg_replace('/[^a-zA-Z0-9_-]/', '', @$_GET['page']);
27
-require __DIR__ . '/controllers.php';
27
+require __DIR__.'/controllers.php';
28 28
 if (!in_array($page, $controllers, true)) {
29 29
     $_GET['page'] = $page = 'myblocksadmin';
30 30
 
@@ -45,8 +45,8 @@  discard block
 block discarded – undo
45 45
 
46 46
 // branch to each pages
47 47
 $mytrustdirpath = __DIR__;
48
-if (file_exists(XOOPS_TRUST_PATH . '/libs/altsys/' . $page . '.php')) {
49
-    include XOOPS_TRUST_PATH . '/libs/altsys/' . $page . '.php';
48
+if (file_exists(XOOPS_TRUST_PATH.'/libs/altsys/'.$page.'.php')) {
49
+    include XOOPS_TRUST_PATH.'/libs/altsys/'.$page.'.php';
50 50
 } else {
51 51
     die('wrong request');
52 52
 }
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/smarty_plugins/resource.db.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -123,12 +123,12 @@
 block discarded – undo
123 123
 
124 124
     // First, check for an overloaded version within the theme folder
125 125
 
126
-    $filepath = XOOPS_THEME_PATH . "/$theme/modules/$module/$blockpath$tpl_name";
126
+    $filepath = XOOPS_THEME_PATH."/$theme/modules/$module/$blockpath$tpl_name";
127 127
 
128 128
     if (!file_exists($filepath)) {
129 129
         // If no custom version exists, get the tpl from its default location
130 130
 
131
-        $filepath = XOOPS_ROOT_PATH . "/modules/$module/templates/$blockpath$tpl_name";
131
+        $filepath = XOOPS_ROOT_PATH."/modules/$module/templates/$blockpath$tpl_name";
132 132
 
133 133
         if (!file_exists($filepath)) {
134 134
             return $cache[$tpl_name] = $tplobj;
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/preload.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
 //admin page
7 7
 if ($root->mController->_mStrategy) {
8 8
     if (mb_strtolower(get_class($root->mController->_mStrategy)) == mb_strtolower('Legacy_AdminControllerStrategy')) {
9
-        include_once __DIR__ . '/include/altsys_functions.php';
9
+        include_once __DIR__.'/include/altsys_functions.php';
10 10
 
11 11
         // language file (modinfo.php)
12 12
 
@@ -14,4 +14,4 @@  discard block
 block discarded – undo
14 14
     }
15 15
 }
16 16
 // load altsys newly gticket class for other modules
17
-require_once XOOPS_TRUST_PATH . '/libs/altsys/include/gtickets.php';
17
+require_once XOOPS_TRUST_PATH.'/libs/altsys/include/gtickets.php';
Please login to merge, or discard this patch.
html/modules/altsys/include/onuninstall.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 . '/onuninstall.php';
12
+require XOOPS_TRUST_PATH.'/libs/'.$mytrustdirname.'/onuninstall.php';
Please login to merge, or discard this patch.
html/modules/altsys/include/oninstall.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 . '/oninstall.php';
12
+require XOOPS_TRUST_PATH.'/libs/'.$mytrustdirname.'/oninstall.php';
Please login to merge, or discard this patch.
html/modules/altsys/include/onupdate.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 . '/onupdate.php';
12
+require XOOPS_TRUST_PATH.'/libs/'.$mytrustdirname.'/onupdate.php';
Please login to merge, or discard this patch.
html/modules/altsys/include/Legacy_AltsysAdminRenderSystem.class.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 . '/include/Legacy_AltsysAdminRenderSystem.class.php';
12
+require XOOPS_TRUST_PATH.'/libs/'.$mytrustdirname.'/include/Legacy_AltsysAdminRenderSystem.class.php';
Please login to merge, or discard this patch.
html/modules/altsys/blocks/blocks.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 . '/blocks.php';
12
+require XOOPS_TRUST_PATH.'/libs/'.$mytrustdirname.'/blocks.php';
Please login to merge, or discard this patch.
html/modules/altsys/setup_xoops_trust_path.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@  discard block
 block discarded – undo
3 3
 $xoopsOption['nocommon'] = 1;
4 4
 define('_LEGACY_PREVENT_LOAD_CORE_', 1);
5 5
 
6
-require_once \dirname(__DIR__, 2) . '/mainfile.php';
6
+require_once \dirname(__DIR__, 2).'/mainfile.php';
7 7
 
8
-if (defined('XOOPS_TRUST_PATH') && XOOPS_TRUST_PATH !== '' && file_exists(XOOPS_TRUST_PATH . '/libs/altsys')) {
8
+if (defined('XOOPS_TRUST_PATH') && XOOPS_TRUST_PATH !== '' && file_exists(XOOPS_TRUST_PATH.'/libs/altsys')) {
9 9
     exit('No problem with your XOOPS_TRUST_PATH');
10 10
 }
11 11
 
@@ -22,11 +22,11 @@  discard block
 block discarded – undo
22 22
                 if ('.' == mb_substr($file, 0, 1)) {
23 23
                     continue;
24 24
                 }
25
-                $fullpath = $baseDir . '/' . $file;
25
+                $fullpath = $baseDir.'/'.$file;
26 26
                 if (!is_dir($fullpath)) {
27 27
                     continue;
28 28
                 }
29
-                if (is_dir($fullpath . '/libs/altsys')) {
29
+                if (is_dir($fullpath.'/libs/altsys')) {
30 30
                     $xoops_trust_path = $fullpath;
31 31
                     break 2;
32 32
                 }
@@ -35,13 +35,13 @@  discard block
 block discarded – undo
35 35
     }
36 36
     // fall back
37 37
     if (empty($xoops_trust_path)) {
38
-        $xoops_trust_path = dirname(XOOPS_ROOT_PATH) . '/xoops_trust_path';
38
+        $xoops_trust_path = dirname(XOOPS_ROOT_PATH).'/xoops_trust_path';
39 39
     }
40 40
     // create the hint
41 41
     if (!defined('XOOPS_TRUST_PATH')) {
42
-        $hint = "Insert the red line.<br>define('XOOPS_ROOT_PATH', '" . htmlspecialchars(XOOPS_ROOT_PATH, ENT_QUOTES) . "');<br><ins style='color:red;'>define('XOOPS_TRUST_PATH', '" . htmlspecialchars($xoops_trust_path, ENT_QUOTES) . "');</ins>";
42
+        $hint = "Insert the red line.<br>define('XOOPS_ROOT_PATH', '".htmlspecialchars(XOOPS_ROOT_PATH, ENT_QUOTES)."');<br><ins style='color:red;'>define('XOOPS_TRUST_PATH', '".htmlspecialchars($xoops_trust_path, ENT_QUOTES)."');</ins>";
43 43
     } else {
44
-        $hint = "<del>define('XOOPS_TRUST_PATH', '');</del><br><ins style='color:red;'>define('XOOPS_TRUST_PATH', '" . htmlspecialchars($xoops_trust_path, ENT_QUOTES) . "');</ins>";
44
+        $hint = "<del>define('XOOPS_TRUST_PATH', '');</del><br><ins style='color:red;'>define('XOOPS_TRUST_PATH', '".htmlspecialchars($xoops_trust_path, ENT_QUOTES)."');</ins>";
45 45
     }
46 46
 }
47 47
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     <input type="submit" value="next">
61 61
 </form>
62 62
 <?php if ($hint) {
63
-    echo 'Edit mainfile.php like this: <blockquote style="border: black solid 1px;">' . $hint . '</blockquote>';
63
+    echo 'Edit mainfile.php like this: <blockquote style="border: black solid 1px;">'.$hint.'</blockquote>';
64 64
 } ?>
65 65
 </body>
66 66
 </html>
Please login to merge, or discard this patch.