Completed
Push — master ( 6dab8b...b949bb )
by Michael
02:15 queued 11s
created
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
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/autoupdate_from_module.inc.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -14,21 +14,21 @@  discard block
 block discarded – undo
14 14
 foreach ($tplsadmin_autoupdate_dirnames as $dirname) {
15 15
     $dirname = preg_replace('/[^a-zA-Z0-9_-]/', '', $dirname);
16 16
 
17
-    $tplsadmin_autoupdate_path = XOOPS_ROOT_PATH . '/modules/' . $dirname . '/templates';
17
+    $tplsadmin_autoupdate_path = XOOPS_ROOT_PATH.'/modules/'.$dirname.'/templates';
18 18
 
19 19
     // modules
20 20
 
21
-    if ($handler = @opendir($tplsadmin_autoupdate_path . '/')) {
21
+    if ($handler = @opendir($tplsadmin_autoupdate_path.'/')) {
22 22
         while (false !== ($file = readdir($handler))) {
23
-            $file_path = $tplsadmin_autoupdate_path . '/' . $file;
23
+            $file_path = $tplsadmin_autoupdate_path.'/'.$file;
24 24
 
25 25
             if (is_file($file_path) && '.html' == mb_substr($file, -5)) {
26 26
                 $mtime = (int)(@filemtime($file_path));
27 27
 
28
-                list($count) = $xoopsDB->fetchRow($xoopsDB->query('SELECT COUNT(*) FROM ' . $xoopsDB->prefix('tplfile') . " WHERE tpl_tplset='" . addslashes($xoopsConfig['template_set']) . "' AND tpl_file='" . addslashes($file) . "' AND tpl_lastmodified >= $mtime"));
28
+                list($count) = $xoopsDB->fetchRow($xoopsDB->query('SELECT COUNT(*) FROM '.$xoopsDB->prefix('tplfile')." WHERE tpl_tplset='".addslashes($xoopsConfig['template_set'])."' AND tpl_file='".addslashes($file)."' AND tpl_lastmodified >= $mtime"));
29 29
 
30 30
                 if ($count <= 0) {
31
-                    include_once XOOPS_TRUST_PATH . '/libs/altsys/include/tpls_functions.php';
31
+                    include_once XOOPS_TRUST_PATH.'/libs/altsys/include/tpls_functions.php';
32 32
 
33 33
                     tplsadmin_import_data($xoopsConfig['template_set'], $file, implode('', file($file_path)), $mtime);
34 34
                 }
@@ -38,17 +38,17 @@  discard block
 block discarded – undo
38 38
 
39 39
     // blocks
40 40
 
41
-    if ($handler = @opendir($tplsadmin_autoupdate_path . '/blocks/')) {
41
+    if ($handler = @opendir($tplsadmin_autoupdate_path.'/blocks/')) {
42 42
         while (false !== ($file = readdir($handler))) {
43
-            $file_path = $tplsadmin_autoupdate_path . '/blocks/' . $file;
43
+            $file_path = $tplsadmin_autoupdate_path.'/blocks/'.$file;
44 44
 
45 45
             if (is_file($file_path) && '.html' == mb_substr($file, -5)) {
46 46
                 $mtime = (int)(@filemtime($file_path));
47 47
 
48
-                list($count) = $xoopsDB->fetchRow($xoopsDB->query('SELECT COUNT(*) FROM ' . $xoopsDB->prefix('tplfile') . " WHERE tpl_tplset='" . addslashes($xoopsConfig['template_set']) . "' AND tpl_file='" . addslashes($file) . "' AND tpl_lastmodified >= $mtime"));
48
+                list($count) = $xoopsDB->fetchRow($xoopsDB->query('SELECT COUNT(*) FROM '.$xoopsDB->prefix('tplfile')." WHERE tpl_tplset='".addslashes($xoopsConfig['template_set'])."' AND tpl_file='".addslashes($file)."' AND tpl_lastmodified >= $mtime"));
49 49
 
50 50
                 if ($count <= 0) {
51
-                    include_once XOOPS_TRUST_PATH . '/libs/altsys/include/tpls_functions.php';
51
+                    include_once XOOPS_TRUST_PATH.'/libs/altsys/include/tpls_functions.php';
52 52
 
53 53
                     tplsadmin_import_data($xoopsConfig['template_set'], $file, implode('', file($file_path)), $mtime);
54 54
                 }
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/include/lang_functions.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 
16 16
     $already_read = false;
17 17
 
18
-    $langfile_fingerprint = '_MYLANGADMIN_' . md5($langfile_unique_path);
18
+    $langfile_fingerprint = '_MYLANGADMIN_'.md5($langfile_unique_path);
19 19
 
20 20
     // for debug
21 21
 
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
     // modinfo.php of D3 module
43 43
 
44
-    if (empty($langfile_names) && file_exists(XOOPS_ROOT_PATH . '/modules/' . $mydirname . '/mytrustdirname.php') /* && substr( $langfile_unique_path , -11 ) == 'modinfo.php' */) {
44
+    if (empty($langfile_names) && file_exists(XOOPS_ROOT_PATH.'/modules/'.$mydirname.'/mytrustdirname.php') /* && substr( $langfile_unique_path , -11 ) == 'modinfo.php' */) {
45 45
         // get $constpref
46 46
 
47 47
         $constpref = '';
@@ -122,13 +122,13 @@  discard block
 block discarded – undo
122 122
 
123 123
     $breadcrumbsObj = AltsysBreadcrumbs::getInstance();
124 124
 
125
-    $breadcrumbsObj->appendPath(XOOPS_URL . '/modules/altsys/admin/index.php?mode=admin&amp;lib=altsys&amp;page=mylangadmin', _MI_ALTSYS_MENU_MYLANGADMIN);
125
+    $breadcrumbsObj->appendPath(XOOPS_URL.'/modules/altsys/admin/index.php?mode=admin&amp;lib=altsys&amp;page=mylangadmin', _MI_ALTSYS_MENU_MYLANGADMIN);
126 126
 
127 127
     $breadcrumbsObj->appendPath('', $target_mname);
128 128
 
129
-    echo '<h3>' . _MYLANGADMIN_H3_MODULE . ' : ' . $target_mname . '</h3>';
129
+    echo '<h3>'._MYLANGADMIN_H3_MODULE.' : '.$target_mname.'</h3>';
130 130
 
131
-    echo '<p>' . $message4disp . '</p>';
131
+    echo '<p>'.$message4disp.'</p>';
132 132
 
133 133
     xoops_cp_footer();
134 134
 
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/blocks/block_functions.php 1 patch
Spacing   +13 added lines, -13 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 dirname(__DIR__) . '/include/altsys_functions.php';
3
+require_once dirname(__DIR__).'/include/altsys_functions.php';
4 4
 
5 5
 /**
6 6
  * @param $options
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 
13 13
     $mydirname = empty($options[0]) ? 'altsys' : $options[0];
14 14
 
15
-    $this_template = empty($options[1]) ? 'db:' . $mydirname . '_block_admin_menu.html' : trim($options[1]);
15
+    $this_template = empty($options[1]) ? 'db:'.$mydirname.'_block_admin_menu.html' : trim($options[1]);
16 16
 
17 17
     if (preg_match('/[^0-9a-zA-Z_-]/', $mydirname)) {
18 18
         die('Invalid mydirname');
@@ -56,12 +56,12 @@  discard block
 block discarded – undo
56 56
 
57 57
     $admin_mids = $moduleperm_handler->getItemIds('module_admin', $xoopsUser->getGroups());
58 58
 
59
-    $modules = $module_handler->getObjects(new Criteria('mid', '(' . implode(',', $admin_mids) . ')', 'IN'), true);
59
+    $modules = $module_handler->getObjects(new Criteria('mid', '('.implode(',', $admin_mids).')', 'IN'), true);
60 60
 
61 61
     $block = [
62 62
         'mydirname' => $mydirname,
63
-        'mod_url' => XOOPS_URL . '/modules/' . $mydirname,
64
-        'mod_imageurl' => XOOPS_URL . '/modules/' . $mydirname . '/' . $current_configs['images_dir'],
63
+        'mod_url' => XOOPS_URL.'/modules/'.$mydirname,
64
+        'mod_imageurl' => XOOPS_URL.'/modules/'.$mydirname.'/'.$current_configs['images_dir'],
65 65
         'mod_config' => $current_configs,
66 66
     ];
67 67
 
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 
81 81
         unset($adminmenu_use_altsys);
82 82
 
83
-        @include XOOPS_ROOT_PATH . '/modules/' . $dirname . '/' . @$modinfo['adminmenu'];
83
+        @include XOOPS_ROOT_PATH.'/modules/'.$dirname.'/'.@$modinfo['adminmenu'];
84 84
 
85 85
         // from admin_menu.php etc.
86 86
 
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 
96 96
             $submenus4assign[] = [
97 97
                 'title' => htmlspecialchars($sub['title']),
98
-                'url' => XOOPS_URL . '/modules/' . $dirname . '/' . htmlspecialchars($link, ENT_QUOTES),
98
+                'url' => XOOPS_URL.'/modules/'.$dirname.'/'.htmlspecialchars($link, ENT_QUOTES),
99 99
             ];
100 100
         }
101 101
 
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
 
120 120
                 $submenus4assign[] = [
121 121
                     'title' => htmlspecialchars($sub['title']),
122
-                    'url' => 0 === strncmp($sub['link'], 'http', 4) ? htmlspecialchars($sub['link'], ENT_QUOTES) : XOOPS_URL . '/modules/' . $dirname . '/' . htmlspecialchars($sub['link'], ENT_QUOTES),
122
+                    'url' => 0 === strncmp($sub['link'], 'http', 4) ? htmlspecialchars($sub['link'], ENT_QUOTES) : XOOPS_URL.'/modules/'.$dirname.'/'.htmlspecialchars($sub['link'], ENT_QUOTES),
123 123
                 ];
124 124
             }
125 125
         } elseif (empty($adminmenu4altsys)) {
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
             if (defined('XOOPS_CUBE_LEGACY') && !empty($modinfo['help'])) {
138 138
                 $submenus4assign[] = [
139 139
                     'title' => _HELP,
140
-                    'url' => XOOPS_URL . '/modules/legacy/admin/index.php?action=Help&amp;dirname=' . $dirname,
140
+                    'url' => XOOPS_URL.'/modules/legacy/admin/index.php?action=Help&amp;dirname='.$dirname,
141 141
                 ];
142 142
             }
143 143
         }
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
         $block['modules'][] = $module4assign;
166 166
     }
167 167
 
168
-    require_once XOOPS_TRUST_PATH . '/libs/altsys/class/D3Tpl.class.php';
168
+    require_once XOOPS_TRUST_PATH.'/libs/altsys/class/D3Tpl.class.php';
169 169
 
170 170
     $tpl = new D3Tpl();
171 171
 
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
 {
185 185
     $mydirname = empty($options[0]) ? 'd3forum' : $options[0];
186 186
 
187
-    $this_template = empty($options[1]) ? 'db:' . $mydirname . '_block_admin_menu.html' : trim($options[1]);
187
+    $this_template = empty($options[1]) ? 'db:'.$mydirname.'_block_admin_menu.html' : trim($options[1]);
188 188
 
189 189
     if (preg_match('/[^0-9a-zA-Z_-]/', $mydirname)) {
190 190
         die('Invalid mydirname');
@@ -192,8 +192,8 @@  discard block
 block discarded – undo
192 192
 
193 193
     $form = "
194 194
         <input type='hidden' name='options[0]' value='$mydirname' />
195
-        <label for='this_template'>" . _MB_ALTSYS_THISTEMPLATE . "</label>&nbsp;:
196
-        <input type='text' size='60' name='options[1]' id='this_template' value='" . htmlspecialchars($this_template, ENT_QUOTES) . "' />
195
+        <label for='this_template'>"._MB_ALTSYS_THISTEMPLATE."</label>&nbsp;:
196
+        <input type='text' size='60' name='options[1]' id='this_template' value='" . htmlspecialchars($this_template, ENT_QUOTES)."' />
197 197
         <br />
198 198
     \n";
199 199
 
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/language/german/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/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
@@ -14,10 +14,10 @@
 block discarded – undo
14 14
 if (defined('FOR_XOOPS_LANG_CHECKER')) {
15 15
     $mydirname = 'd3forum';
16 16
 }
17
-$constpref = '_MB_' . mb_strtoupper($mydirname);
17
+$constpref = '_MB_'.mb_strtoupper($mydirname);
18 18
 
19
-if (defined('FOR_XOOPS_LANG_CHECKER') || !defined($constpref . '_LOADED')) {
20
-    define($constpref . '_LOADED', 1);
19
+if (defined('FOR_XOOPS_LANG_CHECKER') || !defined($constpref.'_LOADED')) {
20
+    define($constpref.'_LOADED', 1);
21 21
 
22 22
     // definitions for displaying blocks
23 23
     // 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/compilehookadmin.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,12 +18,12 @@  discard block
 block discarded – undo
18 18
 
19 19
 define('_TPLSADMIN_FMT_MSG_ENCLOSEBYBORDEREDDIV', '%d ذخیره‌سازِ الگو با تگ‌های "div" بسته شدند');
20 20
 define('_TPLSADMIN_DT_ENCLOSEBYBORDEREDDIV', 'القا کردن تگ‌های "div"');
21
-define('_TPLSADMIN_DD_ENCLOSEBYBORDEREDDIV', 'Each templates will be enclosed by black-bordered div tags. A link for editing controller of tplsadmin will be implanted into each templates. Though this often cause destructions in designing, you can edit each templates the most instictively and easily.') ;
21
+define('_TPLSADMIN_DD_ENCLOSEBYBORDEREDDIV', 'Each templates will be enclosed by black-bordered div tags. A link for editing controller of tplsadmin will be implanted into each templates. Though this often cause destructions in designing, you can edit each templates the most instictively and easily.');
22 22
 define('_TPLSADMIN_CNF_ENCLOSEBYBORDEREDDIV', 'Compiled template caches will be enclosed by div tags. Are you OK?');
23 23
 
24 24
 define('_TPLSADMIN_FMT_MSG_HOOKSAVEVARS', '%d template caches have been implanted hooking logics to collect template varibles');
25 25
 define('_TPLSADMIN_DT_HOOKSAVEVARS', 'Implant logics to collect template variables');
26
-define('_TPLSADMIN_DD_HOOKSAVEVARS', 'The first step of getting the informations of template variables in your site. The template vars infos will be collected when public sides of your site is displayed. If all templates you want to edit are displayed, get template vars info by underlying buttons.') ;
26
+define('_TPLSADMIN_DD_HOOKSAVEVARS', 'The first step of getting the informations of template variables in your site. The template vars infos will be collected when public sides of your site is displayed. If all templates you want to edit are displayed, get template vars info by underlying buttons.');
27 27
 define('_TPLSADMIN_CNF_HOOKSAVEVARS', 'Compiled template caches will be implanted the logics to collect template variables. Are you OK?');
28 28
 
29 29
 define('_TPLSADMIN_FMT_MSG_REMOVEHOOKS', '%d template caches have been normalized');
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 define('_TPLSADMIN_CNF_DELETEOK', 'آیا حذف شود؟');
38 38
 
39 39
 define('_TPLSADMIN_DT_GETTPLSVARSINFO_DW', 'Get info of template variables as DreamWeaver Extensions');
40
-define('_TPLSADMIN_DD_GETTPLSVARSINFO_DW', 'Open Macromedia Extension Manager, first.<br />Extract the download archive.<br />Execute the files which extensions are .mxi and you will meet installing dialogs.<br />The snippets for template variables of your site will be usable after restarting Dream Weaver.') ;
40
+define('_TPLSADMIN_DD_GETTPLSVARSINFO_DW', 'Open Macromedia Extension Manager, first.<br />Extract the download archive.<br />Execute the files which extensions are .mxi and you will meet installing dialogs.<br />The snippets for template variables of your site will be usable after restarting Dream Weaver.');
41 41
 
42 42
 define('_TPLSADMIN_DT_GETTEMPLATES', 'دریافت الگو');
43 43
 define('_TPLSADMIN_DD_GETTEMPLATES', 'پیش از کلیک بروی هرگونه دکمه، یک دسته را انتخاب کنید');
Please login to merge, or discard this patch.