Completed
Push — master ( bb1ebf...0d7d1b )
by Michael
02:07
created
header.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -6,11 +6,11 @@
 block discarded – undo
6 6
  * Licence: GNU
7 7
  */
8 8
 
9
-include __DIR__ . '/../../mainfile.php';
9
+include __DIR__.'/../../mainfile.php';
10 10
 
11
-require_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php';
12
-require_once XOOPS_ROOT_PATH . '/modules/smartfaq/class/category.php';
13
-require_once XOOPS_ROOT_PATH . '/modules/smartfaq/class/faq.php';
14
-require_once XOOPS_ROOT_PATH . '/modules/smartfaq/class/answer.php';
11
+require_once XOOPS_ROOT_PATH.'/modules/smartfaq/include/functions.php';
12
+require_once XOOPS_ROOT_PATH.'/modules/smartfaq/class/category.php';
13
+require_once XOOPS_ROOT_PATH.'/modules/smartfaq/class/faq.php';
14
+require_once XOOPS_ROOT_PATH.'/modules/smartfaq/class/answer.php';
15 15
 
16 16
 $myts = MyTextSanitizer::getInstance();
Please login to merge, or discard this patch.
comment_edit.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,5 +6,5 @@
 block discarded – undo
6 6
  * Licence: GNU
7 7
  */
8 8
 
9
-include __DIR__ . '/../../mainfile.php';
10
-require_once XOOPS_ROOT_PATH . '/include/comment_edit.php';
9
+include __DIR__.'/../../mainfile.php';
10
+require_once XOOPS_ROOT_PATH.'/include/comment_edit.php';
Please login to merge, or discard this patch.
answer.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 
9 9
 use Xmf\Request;
10 10
 
11
-require_once __DIR__ . '/header.php';
11
+require_once __DIR__.'/header.php';
12 12
 
13 13
 global $xoopsUser, $xoopsConfig, $xoopsModuleConfig, $xoopsModule;
14 14
 
@@ -129,12 +129,12 @@  discard block
 block discarded – undo
129 129
 
130 130
         // Storing the FAQ object in the database
131 131
         if (!$faqObj->store()) {
132
-            redirect_header('javascript:history.go(-1)', 3, _MD_SF_SUBMIT_ERROR . sf_formatErrors($faqObj->getErrors()));
132
+            redirect_header('javascript:history.go(-1)', 3, _MD_SF_SUBMIT_ERROR.sf_formatErrors($faqObj->getErrors()));
133 133
         }
134 134
 
135 135
         // Storing the answer object in the database
136 136
         if (!$newAnswerObj->store()) {
137
-            redirect_header('javascript:history.go(-1)', 3, _MD_SF_SUBMIT_ERROR . sf_formatErrors($newAnswerObj->getErrors()));
137
+            redirect_header('javascript:history.go(-1)', 3, _MD_SF_SUBMIT_ERROR.sf_formatErrors($newAnswerObj->getErrors()));
138 138
         }
139 139
 
140 140
         $notificationHandler = xoops_getHandler('notification');
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
             case 2:
151 151
                 // Answer for an open question submitted, auto-approved; became Q&A, need approbation
152 152
                 if (isset($_POST['notifypub']) && $_POST['notifypub'] == 1) {
153
-                    require_once XOOPS_ROOT_PATH . '/include/notification_constants.php';
153
+                    require_once XOOPS_ROOT_PATH.'/include/notification_constants.php';
154 154
                     $notificationHandler->subscribe('faq', $faqObj->faqid(), 'approved', XOOPS_NOTIFICATION_MODE_SENDONCETHENDELETE);
155 155
                 }
156 156
                 // Send notifications
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
             case 3:
161 161
                 // Answer submitted, needs approbation
162 162
                 if (isset($_POST['notifypub']) && $_POST['notifypub'] == 1) {
163
-                    require_once XOOPS_ROOT_PATH . '/include/notification_constants.php';
163
+                    require_once XOOPS_ROOT_PATH.'/include/notification_constants.php';
164 164
                     $notificationHandler->subscribe('question', $newAnswerObj->answerid(), 'approved', XOOPS_NOTIFICATION_MODE_SENDONCETHENDELETE);
165 165
                 }
166 166
                 // Send notifications
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
                 // New answer submitted for a published Q&A, need approbation
176 176
                 // Send notifications
177 177
                 if (isset($_POST['notifypub']) && $_POST['notifypub'] == 1) {
178
-                    require_once XOOPS_ROOT_PATH . '/include/notification_constants.php';
178
+                    require_once XOOPS_ROOT_PATH.'/include/notification_constants.php';
179 179
                     $notificationHandler->subscribe('faq', $newAnswerObj->answerid(), 'answer_approved', XOOPS_NOTIFICATION_MODE_SENDONCETHENDELETE);
180 180
                 }
181 181
 
@@ -212,20 +212,20 @@  discard block
 block discarded – undo
212 212
         }
213 213
 
214 214
         $GLOBALS['xoopsOption']['template_main'] = 'smartfaq_submit.tpl';
215
-        require_once XOOPS_ROOT_PATH . '/header.php';
216
-        require_once __DIR__ . '/footer.php';
215
+        require_once XOOPS_ROOT_PATH.'/header.php';
216
+        require_once __DIR__.'/footer.php';
217 217
 
218 218
         $name = $xoopsUser ? ucwords($xoopsUser->getVar('uname')) : 'Anonymous';
219 219
 
220
-        $moduleName =& $myts->displayTarea($xoopsModule->getVar('name'));
220
+        $moduleName = & $myts->displayTarea($xoopsModule->getVar('name'));
221 221
         $xoopsTpl->assign('whereInSection', $moduleName);
222 222
         $xoopsTpl->assign('lang_submit', _MD_SF_SUBMITANSWER);
223 223
 
224 224
         $xoopsTpl->assign('lang_intro_title', sprintf(_MD_SF_SUBMITANSWERTO, ucwords($xoopsModule->name())));
225
-        $xoopsTpl->assign('lang_intro_text', _MD_SF_GOODDAY . "<b>$name</b>, " . _MD_SF_SUBMITANSWER_INTRO);
225
+        $xoopsTpl->assign('lang_intro_text', _MD_SF_GOODDAY."<b>$name</b>, "._MD_SF_SUBMITANSWER_INTRO);
226 226
 
227
-        require_once __DIR__ . '/include/answer.inc.php';
227
+        require_once __DIR__.'/include/answer.inc.php';
228 228
 
229
-        require_once XOOPS_ROOT_PATH . '/footer.php';
229
+        require_once XOOPS_ROOT_PATH.'/footer.php';
230 230
         break;
231 231
 }
Please login to merge, or discard this patch.
xoops_version.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 //$modversion['icons32']             = '../../Frameworks/moduleclasses/icons/32';
27 27
 $modversion['modicons16']          = 'assets/images/icons/16';
28 28
 $modversion['modicons32']          = 'assets/images/icons/32';
29
-$modversion['release_file']        = XOOPS_URL . '/modules/' . $modversion['dirname'] . '/docs/changelog.txt';
29
+$modversion['release_file']        = XOOPS_URL.'/modules/'.$modversion['dirname'].'/docs/changelog.txt';
30 30
 $modversion['module_website_url']  = 'www.xoops.org';
31 31
 $modversion['module_website_name'] = 'XOOPS';
32 32
 $modversion['min_php']             = '5.5';
@@ -96,9 +96,9 @@  discard block
 block discarded – undo
96 96
 
97 97
 // Tables created by sql file (without prefix!)
98 98
 $modversion['tables'] = [
99
-    $moduleDirName . '_' . 'categories',
100
-    $moduleDirName . '_' . 'faq',
101
-    $moduleDirName . '_' . 'answers'
99
+    $moduleDirName.'_'.'categories',
100
+    $moduleDirName.'_'.'faq',
101
+    $moduleDirName.'_'.'answers'
102 102
 ];
103 103
 
104 104
 // Search
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
             $modversion['sub'][2]['url']  = 'request.php?op=add';
151 151
         }
152 152
 
153
-        require_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php';
153
+        require_once XOOPS_ROOT_PATH.'/modules/smartfaq/include/functions.php';
154 154
 
155 155
         // Creating the FAQ handler object
156 156
         $faqHandler = sf_gethandler('faq');
Please login to merge, or discard this patch.
category.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -6,9 +6,9 @@  discard block
 block discarded – undo
6 6
  * Licence: GNU
7 7
  */
8 8
 
9
-require_once __DIR__ . '/header.php';
9
+require_once __DIR__.'/header.php';
10 10
 
11
-$categoryid = isset($_GET['categoryid']) ? (int)$_GET['categoryid'] : 0;
11
+$categoryid = isset($_GET['categoryid']) ? (int) $_GET['categoryid'] : 0;
12 12
 
13 13
 // Creating the category handler object
14 14
 $categoryHandler = sf_gethandler('category');
@@ -32,11 +32,11 @@  discard block
 block discarded – undo
32 32
 }
33 33
 $GLOBALS['xoopsOption']['template_main'] = 'smartfaq_category.tpl';
34 34
 
35
-require_once XOOPS_ROOT_PATH . '/header.php';
36
-require_once __DIR__ . '/footer.php';
35
+require_once XOOPS_ROOT_PATH.'/header.php';
36
+require_once __DIR__.'/footer.php';
37 37
 
38 38
 // At which record shall we start
39
-$start = isset($_GET['start']) ? (int)$_GET['start'] : 0;
39
+$start = isset($_GET['start']) ? (int) $_GET['start'] : 0;
40 40
 
41 41
 // Creating the faq handler object
42 42
 $faqHandler = sf_gethandler('faq');
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     // Get the last smartfaq
71 71
     $last_qnaObj = $faqHandler->getLastPublishedByCat();
72 72
 }
73
-$lastfaqsize = (int)$xoopsModuleConfig['lastfaqsize'];
73
+$lastfaqsize = (int) $xoopsModuleConfig['lastfaqsize'];
74 74
 // Creating the sub-categories objects that belong to the selected category
75 75
 $subcatsObj    = $categoryHandler->getCategories(0, 0, $categoryid);
76 76
 $total_subcats = count($subcatsObj);
@@ -82,18 +82,18 @@  discard block
 block discarded – undo
82 82
         if (isset($totalQnas[$subcat_id]) && $totalQnas[$subcat_id] > 0) {
83 83
             if (isset($last_qnaObj[$subcat_id])) {
84 84
                 $subcatsObj[$i]->setVar('last_faqid', $last_qnaObj[$subcat_id]->getVar('faqid'));
85
-                $subcatsObj[$i]->setVar('last_question_link', "<a href='faq.php?faqid=" . $last_qnaObj[$subcat_id]->getVar('faqid') . "'>" . $last_qnaObj[$subcat_id]->question($lastfaqsize) . '</a>');
85
+                $subcatsObj[$i]->setVar('last_question_link', "<a href='faq.php?faqid=".$last_qnaObj[$subcat_id]->getVar('faqid')."'>".$last_qnaObj[$subcat_id]->question($lastfaqsize).'</a>');
86 86
             }
87 87
         }
88 88
         $subcatsObj[$i]->setVar('faqcount', $totalQnas[$subcat_id]);
89 89
         $subcats[$subcat_id] = $subcatsObj[$i]->toArray();
90
-        $total_faqs          += $totalQnas[$subcat_id];
90
+        $total_faqs += $totalQnas[$subcat_id];
91 91
         //}replacé ligne 92
92 92
     }
93 93
     $xoopsTpl->assign('subcats', $subcats);
94 94
 }
95 95
 $thiscategory_faqcount = isset($totalQnas[$categoryid]) ? $totalQnas[$categoryid] : 0;
96
-$category['total']     = $thiscategory_faqcount + $total_faqs;
96
+$category['total']     = $thiscategory_faqcount+$total_faqs;
97 97
 
98 98
 if (count($faqsObj) > 0) {
99 99
     $userids = array();
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
     }
110 110
 
111 111
     $memberHandler = xoops_getHandler('member');
112
-    $users         = $memberHandler->getUsers(new Criteria('uid', '(' . implode(',', array_keys($userids)) . ')', 'IN'), true);
112
+    $users         = $memberHandler->getUsers(new Criteria('uid', '('.implode(',', array_keys($userids)).')', 'IN'), true);
113 113
     // Adding the Q&As of the selected category
114 114
     for ($i = 0; $i < $totalQnasOnPage; ++$i) {
115 115
         $faq = $faqsObj[$i]->toArray(null, $categoryObj);
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 
136 136
     if (isset($last_qnaObj) && $last_qnaObj) {
137 137
         $category['last_faqid']         = $last_qnaObj[$categoryObj->getVar('categoryid')]->getVar('faqid');
138
-        $category['last_question_link'] = "<a href='faq.php?faqid=" . $last_qnaObj[$categoryObj->getVar('categoryid')]->getVar('faqid') . "'>" . $last_qnaObj[$categoryObj->getVar('categoryid')]->question($lastfaqsize) . '</a>';
138
+        $category['last_question_link'] = "<a href='faq.php?faqid=".$last_qnaObj[$categoryObj->getVar('categoryid')]->getVar('faqid')."'>".$last_qnaObj[$categoryObj->getVar('categoryid')]->question($lastfaqsize).'</a>';
139 139
     }
140 140
 }
141 141
 
@@ -160,26 +160,26 @@  discard block
 block discarded – undo
160 160
 $xoopsTpl->assign('lang_comments', _MD_SF_COMMENTS);
161 161
 
162 162
 // The Navigation Bar
163
-require_once XOOPS_ROOT_PATH . '/class/pagenav.php';
164
-$pagenav = new XoopsPageNav($thiscategory_faqcount, $xoopsModuleConfig['indexperpage'], $start, 'start', 'categoryid=' . $categoryObj->getVar('categoryid'));
163
+require_once XOOPS_ROOT_PATH.'/class/pagenav.php';
164
+$pagenav = new XoopsPageNav($thiscategory_faqcount, $xoopsModuleConfig['indexperpage'], $start, 'start', 'categoryid='.$categoryObj->getVar('categoryid'));
165 165
 if ($xoopsModuleConfig['useimagenavpage'] == 1) {
166
-    $xoopsTpl->assign('navbar', '<div style="text-align:right;">' . $pagenav->renderImageNav() . '</div>');
166
+    $xoopsTpl->assign('navbar', '<div style="text-align:right;">'.$pagenav->renderImageNav().'</div>');
167 167
 } else {
168
-    $xoopsTpl->assign('navbar', '<div style="text-align:right;">' . $pagenav->renderNav() . '</div>');
168
+    $xoopsTpl->assign('navbar', '<div style="text-align:right;">'.$pagenav->renderNav().'</div>');
169 169
 }
170 170
 
171 171
 $xoopsTpl->assign('category', $category);
172 172
 
173 173
 // Page Title Hack by marcan
174 174
 $module_name = $myts->htmlSpecialChars($xoopsModule->getVar('name'));
175
-$xoopsTpl->assign('xoops_pagetitle', $module_name . ' - ' . $category['name']);
175
+$xoopsTpl->assign('xoops_pagetitle', $module_name.' - '.$category['name']);
176 176
 // End Page Title Hack by marcan
177 177
 
178 178
 //code to include smartie
179
-if (file_exists(XOOPS_ROOT_PATH . '/modules/smarttie/smarttie_links.php')) {
180
-    require_once XOOPS_ROOT_PATH . '/modules/smarttie/smarttie_links.php';
179
+if (file_exists(XOOPS_ROOT_PATH.'/modules/smarttie/smarttie_links.php')) {
180
+    require_once XOOPS_ROOT_PATH.'/modules/smarttie/smarttie_links.php';
181 181
     $xoopsTpl->assign('smarttie', 1);
182 182
 }
183 183
 //end code for smarttie
184 184
 
185
-require_once XOOPS_ROOT_PATH . '/footer.php';
185
+require_once XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
admin/admin_header.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
  * @author       XOOPS Development Team
18 18
  */
19 19
 
20
-require_once __DIR__ . '/../../../include/cp_header.php';
20
+require_once __DIR__.'/../../../include/cp_header.php';
21 21
 //require_once $GLOBALS['xoops']->path('www/class/xoopsformloader.php');
22 22
 
23 23
 //require_once __DIR__ . '/../class/utility.php';
@@ -26,16 +26,16 @@  discard block
 block discarded – undo
26 26
 $moduleDirName = basename(dirname(__DIR__));
27 27
 
28 28
 $path = dirname(dirname(dirname(__DIR__)));
29
-require_once $path . '/kernel/module.php';
30
-require_once $path . '/class/xoopstree.php';
31
-require_once $path . '/class/xoopslists.php';
32
-require_once $path . '/class/pagenav.php';
33
-require_once $path . '/class/xoopsformloader.php';
34
-
35
-require_once __DIR__ . '/../include/functions.php';
36
-require_once __DIR__ . '/../class/category.php';
37
-require_once __DIR__ . '/../class/faq.php';
38
-require_once __DIR__ . '/../class/answer.php';
29
+require_once $path.'/kernel/module.php';
30
+require_once $path.'/class/xoopstree.php';
31
+require_once $path.'/class/xoopslists.php';
32
+require_once $path.'/class/pagenav.php';
33
+require_once $path.'/class/xoopsformloader.php';
34
+
35
+require_once __DIR__.'/../include/functions.php';
36
+require_once __DIR__.'/../class/category.php';
37
+require_once __DIR__.'/../class/faq.php';
38
+require_once __DIR__.'/../class/answer.php';
39 39
 //require_once __DIR__ . '/../class/utility.php';
40 40
 //require_once __DIR__ . '/../include/common.php';
41 41
 
Please login to merge, or discard this patch.
admin/admin.php 1 patch
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -28,46 +28,46 @@  discard block
 block discarded – undo
28 28
 if (empty($fct)) {
29 29
     $fct = 'preferences';
30 30
 }
31
-include __DIR__ . '/../../../mainfile.php';
32
-include XOOPS_ROOT_PATH . '/include/cp_functions.php';
31
+include __DIR__.'/../../../mainfile.php';
32
+include XOOPS_ROOT_PATH.'/include/cp_functions.php';
33 33
 
34
-require_once XOOPS_ROOT_PATH . '/kernel/module.php';
34
+require_once XOOPS_ROOT_PATH.'/kernel/module.php';
35 35
 
36 36
 $admintest = 0;
37 37
 
38 38
 if (is_object($xoopsUser)) {
39 39
     $xoopsModule = XoopsModule::getByDirname('system');
40 40
     if (!$xoopsUser->isAdmin($xoopsModule->mid())) {
41
-        redirect_header(XOOPS_URL . '/user.php', 3, _NOPERM);
41
+        redirect_header(XOOPS_URL.'/user.php', 3, _NOPERM);
42 42
     }
43 43
     $admintest = 1;
44 44
 } else {
45
-    redirect_header(XOOPS_URL . '/user.php', 3, _NOPERM);
45
+    redirect_header(XOOPS_URL.'/user.php', 3, _NOPERM);
46 46
 }
47 47
 
48 48
 // include system category definitions
49
-require_once XOOPS_ROOT_PATH . '/modules/system/constants.php';
49
+require_once XOOPS_ROOT_PATH.'/modules/system/constants.php';
50 50
 $error = false;
51 51
 if ($admintest != 0) {
52 52
     if (isset($fct) && $fct != '') {
53
-        if (file_exists(XOOPS_ROOT_PATH . '/modules/system/admin/' . $fct . '/xoops_version.php')) {
54
-            require_once XOOPS_ROOT_PATH . '/modules/system/language/' . $xoopsConfig['language'] . '/admin.php';
53
+        if (file_exists(XOOPS_ROOT_PATH.'/modules/system/admin/'.$fct.'/xoops_version.php')) {
54
+            require_once XOOPS_ROOT_PATH.'/modules/system/language/'.$xoopsConfig['language'].'/admin.php';
55 55
 
56
-            if (file_exists(XOOPS_ROOT_PATH . '/modules/system/language/' . $xoopsConfig['language'] . '/admin/' . $fct . '.php')) {
57
-                include XOOPS_ROOT_PATH . '/modules/system/language/' . $xoopsConfig['language'] . '/admin/' . $fct . '.php';
58
-            } elseif (file_exists(XOOPS_ROOT_PATH . '/modules/system/language/english/admin/' . $fct . '.php')) {
59
-                include XOOPS_ROOT_PATH . '/modules/system/language/english/admin/' . $fct . '.php';
56
+            if (file_exists(XOOPS_ROOT_PATH.'/modules/system/language/'.$xoopsConfig['language'].'/admin/'.$fct.'.php')) {
57
+                include XOOPS_ROOT_PATH.'/modules/system/language/'.$xoopsConfig['language'].'/admin/'.$fct.'.php';
58
+            } elseif (file_exists(XOOPS_ROOT_PATH.'/modules/system/language/english/admin/'.$fct.'.php')) {
59
+                include XOOPS_ROOT_PATH.'/modules/system/language/english/admin/'.$fct.'.php';
60 60
             }
61
-            include XOOPS_ROOT_PATH . '/modules/system/admin/' . $fct . '/xoops_version.php';
61
+            include XOOPS_ROOT_PATH.'/modules/system/admin/'.$fct.'/xoops_version.php';
62 62
             $syspermHandler = xoops_getHandler('groupperm');
63
-            $category       = !empty($modversion['category']) ? (int)$modversion['category'] : 0;
63
+            $category       = !empty($modversion['category']) ? (int) $modversion['category'] : 0;
64 64
             unset($modversion);
65 65
             if ($category > 0) {
66
-                $groups =& $xoopsUser->getGroups();
66
+                $groups = & $xoopsUser->getGroups();
67 67
                 if (in_array(XOOPS_GROUP_ADMIN, $groups)
68 68
                     || false !== $syspermHandler->checkRight('system_admin', $category, $groups, $xoopsModule->getVar('mid'))) {
69 69
                     if (file_exists("../include/{$fct}.inc.php")) {
70
-                        require_once __DIR__ . "/../include/{$fct}.inc.php";
70
+                        require_once __DIR__."/../include/{$fct}.inc.php";
71 71
                     } else {
72 72
                         $error = true;
73 73
                     }
@@ -75,8 +75,8 @@  discard block
 block discarded – undo
75 75
                     $error = true;
76 76
                 }
77 77
             } elseif ($fct === 'version') {
78
-                if (file_exists(XOOPS_ROOT_PATH . '/modules/system/admin/version/main.php')) {
79
-                    require_once XOOPS_ROOT_PATH . '/modules/system/admin/version/main.php';
78
+                if (file_exists(XOOPS_ROOT_PATH.'/modules/system/admin/version/main.php')) {
79
+                    require_once XOOPS_ROOT_PATH.'/modules/system/admin/version/main.php';
80 80
                 } else {
81 81
                     $error = true;
82 82
                 }
@@ -100,22 +100,22 @@  discard block
 block discarded – undo
100 100
     $all_ok = false;
101 101
     if (!in_array(XOOPS_GROUP_ADMIN, $groups)) {
102 102
         $syspermHandler = xoops_getHandler('groupperm');
103
-        $ok_syscats     =& $syspermHandler->getItemIds('system_admin', $groups);
103
+        $ok_syscats     = & $syspermHandler->getItemIds('system_admin', $groups);
104 104
     } else {
105 105
         $all_ok = true;
106 106
     }
107
-    $admin_dir = XOOPS_ROOT_PATH . '/modules/system/admin';
107
+    $admin_dir = XOOPS_ROOT_PATH.'/modules/system/admin';
108 108
     $handle    = opendir($admin_dir);
109 109
     $counter   = 0;
110 110
     $class     = 'even';
111 111
     while ($file = readdir($handle)) {
112
-        if (strtolower($file) !== 'cvs' && !preg_match('/[.]/', $file) && is_dir($admin_dir . '/' . $file)) {
113
-            include $admin_dir . '/' . $file . '/xoops_version.php';
112
+        if (strtolower($file) !== 'cvs' && !preg_match('/[.]/', $file) && is_dir($admin_dir.'/'.$file)) {
113
+            include $admin_dir.'/'.$file.'/xoops_version.php';
114 114
             if ($modversion['hasAdmin']) {
115
-                $category = isset($modversion['category']) ? (int)$modversion['category'] : 0;
115
+                $category = isset($modversion['category']) ? (int) $modversion['category'] : 0;
116 116
                 if (false !== $all_ok || in_array($modversion['category'], $ok_syscats)) {
117 117
                     echo "<td class='$class' align='center' valign='bottom' width='19%'>";
118
-                    echo "<a href='" . XOOPS_URL . '/modules/system/admin.php?fct=' . $file . "'><b>" . trim($modversion['name']) . "</b></a>\n";
118
+                    echo "<a href='".XOOPS_URL.'/modules/system/admin.php?fct='.$file."'><b>".trim($modversion['name'])."</b></a>\n";
119 119
                     echo '</td>';
120 120
                     ++$counter;
121 121
                     $class = ($class === 'even') ? 'odd' : 'even';
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
         }
131 131
     }
132 132
     while ($counter < 5) {
133
-        echo '<td class="' . $class . '">&nbsp;</td>';
133
+        echo '<td class="'.$class.'">&nbsp;</td>';
134 134
         $class = ($class === 'even') ? 'odd' : 'even';
135 135
         ++$counter;
136 136
     }
Please login to merge, or discard this patch.
admin/about2.php 1 patch
Spacing   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
  * Licence: GNU
7 7
  */
8 8
 
9
-require_once __DIR__ . '/admin_header.php';
9
+require_once __DIR__.'/admin_header.php';
10 10
 $myts = MyTextSanitizer::getInstance();
11 11
 
12 12
 global $xoopsModule;
@@ -39,46 +39,46 @@  discard block
 block discarded – undo
39 39
 echo "</table>";
40 40
 */
41 41
 // Left headings...
42
-echo "<img src='" . XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/' . $versioninfo->getInfo('image') . "' alt='' hspace='0' vspace='0' align='left' style='margin-right: 10px;'></a>";
43
-echo "<div style='margin-top: 10px; color: #33538e; margin-bottom: 4px; font-size: 18px; line-height: 18px; font-weight: bold; display: block;'>" . $versioninfo->getInfo('name') . ' version ' . $versioninfo->getInfo('version') . ' (' . $versioninfo->getInfo('status_version') . ')</div>';
42
+echo "<img src='".XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/'.$versioninfo->getInfo('image')."' alt='' hspace='0' vspace='0' align='left' style='margin-right: 10px;'></a>";
43
+echo "<div style='margin-top: 10px; color: #33538e; margin-bottom: 4px; font-size: 18px; line-height: 18px; font-weight: bold; display: block;'>".$versioninfo->getInfo('name').' version '.$versioninfo->getInfo('version').' ('.$versioninfo->getInfo('status_version').')</div>';
44 44
 if ($versioninfo->getInfo('author_realname') != '') {
45
-    $author_name = $versioninfo->getInfo('author') . ' (' . $versioninfo->getInfo('author_realname') . ')';
45
+    $author_name = $versioninfo->getInfo('author').' ('.$versioninfo->getInfo('author_realname').')';
46 46
 } else {
47 47
     $author_name = $versioninfo->getInfo('author');
48 48
 }
49 49
 
50
-echo "<div style = 'line-height: 16px; font-weight: bold; display: block;'>" . _AM_SF_BY . ' ' . $author_name;
50
+echo "<div style = 'line-height: 16px; font-weight: bold; display: block;'>"._AM_SF_BY.' '.$author_name;
51 51
 echo '</div>';
52
-echo "<div style = 'line-height: 16px; display: block;'>" . $versioninfo->getInfo('license') . "</div>\n";
52
+echo "<div style = 'line-height: 16px; display: block;'>".$versioninfo->getInfo('license')."</div>\n";
53 53
 
54 54
 // Developers Information
55 55
 echo "<br><table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>";
56 56
 echo '<tr>';
57
-echo "<td colspan='2' class='bg3' align='left'><b>" . _MI_SF_AUTHOR_INFO . '</b></td>';
57
+echo "<td colspan='2' class='bg3' align='left'><b>"._MI_SF_AUTHOR_INFO.'</b></td>';
58 58
 echo '</tr>';
59 59
 
60 60
 if ($versioninfo->getInfo('developer_lead') != '') {
61 61
     echo '<tr>';
62
-    echo "<td class='head' width = '150px' align='left'>" . _MI_SF_DEVELOPER_LEAD . '</td>';
63
-    echo "<td class='even' align='left'>" . $versioninfo->getInfo('developer_lead') . '</td>';
62
+    echo "<td class='head' width = '150px' align='left'>"._MI_SF_DEVELOPER_LEAD.'</td>';
63
+    echo "<td class='even' align='left'>".$versioninfo->getInfo('developer_lead').'</td>';
64 64
     echo '</tr>';
65 65
 }
66 66
 if ($versioninfo->getInfo('developer_contributor') != '') {
67 67
     echo '<tr>';
68
-    echo "<td class='head' width = '150px' align='left'>" . _MI_SF_DEVELOPER_CONTRIBUTOR . '</td>';
69
-    echo "<td class='even' align='left'>" . $versioninfo->getInfo('developer_contributor') . '</td>';
68
+    echo "<td class='head' width = '150px' align='left'>"._MI_SF_DEVELOPER_CONTRIBUTOR.'</td>';
69
+    echo "<td class='even' align='left'>".$versioninfo->getInfo('developer_contributor').'</td>';
70 70
     echo '</tr>';
71 71
 }
72 72
 if ($versioninfo->getInfo('developer_website_url') != '') {
73 73
     echo '<tr>';
74
-    echo "<td class='head' width = '150px' align='left'>" . _MI_SF_DEVELOPER_WEBSITE . '</td>';
75
-    echo "<td class='even' align='left'><a href='" . $versioninfo->getInfo('developer_website_url') . "' target='blank'>" . $versioninfo->getInfo('developer_website_name') . '</a></td>';
74
+    echo "<td class='head' width = '150px' align='left'>"._MI_SF_DEVELOPER_WEBSITE.'</td>';
75
+    echo "<td class='even' align='left'><a href='".$versioninfo->getInfo('developer_website_url')."' target='blank'>".$versioninfo->getInfo('developer_website_name').'</a></td>';
76 76
     echo '</tr>';
77 77
 }
78 78
 if ($versioninfo->getInfo('developer_email') != '') {
79 79
     echo '<tr>';
80
-    echo "<td class='head' width = '150px' align='left'>" . _MI_SF_DEVELOPER_EMAIL . '</td>';
81
-    echo "<td class='even' align='left'><a href='mailto:" . $versioninfo->getInfo('developer_email') . "'>" . $versioninfo->getInfo('developer_email') . '</a></td>';
80
+    echo "<td class='head' width = '150px' align='left'>"._MI_SF_DEVELOPER_EMAIL.'</td>';
81
+    echo "<td class='even' align='left'><a href='mailto:".$versioninfo->getInfo('developer_email')."'>".$versioninfo->getInfo('developer_email').'</a></td>';
82 82
     echo '</tr>';
83 83
 }
84 84
 
@@ -87,47 +87,47 @@  discard block
 block discarded – undo
87 87
 // Module Developpment information
88 88
 echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>";
89 89
 echo '<tr>';
90
-echo "<td colspan='2' class='bg3' align='left'><b>" . _MI_SF_MODULE_INFO . '</b></td>';
90
+echo "<td colspan='2' class='bg3' align='left'><b>"._MI_SF_MODULE_INFO.'</b></td>';
91 91
 echo '</tr>';
92 92
 
93 93
 if ($versioninfo->getInfo('date') != '') {
94 94
     echo '<tr>';
95
-    echo "<td class='head' width = '200' align='left'>" . _MI_SF_MODULE_RELEASE_DATE . '</td>';
96
-    echo "<td class='even' align='left'>" . $versioninfo->getInfo('date') . '</td>';
95
+    echo "<td class='head' width = '200' align='left'>"._MI_SF_MODULE_RELEASE_DATE.'</td>';
96
+    echo "<td class='even' align='left'>".$versioninfo->getInfo('date').'</td>';
97 97
     echo '</tr>';
98 98
 }
99 99
 
100 100
 if ($versioninfo->getInfo('status') != '') {
101 101
     echo '<tr>';
102
-    echo "<td class='head' width = '200' align='left'>" . _MI_SF_MODULE_STATUS . '</td>';
103
-    echo "<td class='even' align='left'>" . $versioninfo->getInfo('status') . '</td>';
102
+    echo "<td class='head' width = '200' align='left'>"._MI_SF_MODULE_STATUS.'</td>';
103
+    echo "<td class='even' align='left'>".$versioninfo->getInfo('status').'</td>';
104 104
     echo '</tr>';
105 105
 }
106 106
 
107 107
 if ($versioninfo->getInfo('demo_site_url') != '') {
108 108
     echo '<tr>';
109
-    echo "<td class='head' align='left'>" . _MI_SF_MODULE_DEMO . '</td>';
110
-    echo "<td class='even' align='left'><a href='" . $versioninfo->getInfo('demo_site_url') . "' target='blank'>" . $versioninfo->getInfo('demo_site_name') . '</a></td>';
109
+    echo "<td class='head' align='left'>"._MI_SF_MODULE_DEMO.'</td>';
110
+    echo "<td class='even' align='left'><a href='".$versioninfo->getInfo('demo_site_url')."' target='blank'>".$versioninfo->getInfo('demo_site_name').'</a></td>';
111 111
     echo '</tr>';
112 112
 }
113 113
 
114 114
 if ($versioninfo->getInfo('support_site_url') != '') {
115 115
     echo '<tr>';
116
-    echo "<td class='head' align='left'>" . _MI_SF_MODULE_SUPPORT . '</td>';
117
-    echo "<td class='even' align='left'><a href='" . $versioninfo->getInfo('support_site_url') . "' target='blank'>" . $versioninfo->getInfo('support_site_name') . '</a></td>';
116
+    echo "<td class='head' align='left'>"._MI_SF_MODULE_SUPPORT.'</td>';
117
+    echo "<td class='even' align='left'><a href='".$versioninfo->getInfo('support_site_url')."' target='blank'>".$versioninfo->getInfo('support_site_name').'</a></td>';
118 118
     echo '</tr>';
119 119
 }
120 120
 
121 121
 if ($versioninfo->getInfo('submit_bug') != '') {
122 122
     echo '<tr>';
123
-    echo "<td class='head' align='left'>" . _MI_SF_MODULE_BUG . '</td>';
124
-    echo "<td class='even' align='left'><a href='" . $versioninfo->getInfo('submit_bug') . "' target='blank'>" . 'Submit a Bug in SmartFAQ Bug Tracker' . '</a></td>';
123
+    echo "<td class='head' align='left'>"._MI_SF_MODULE_BUG.'</td>';
124
+    echo "<td class='even' align='left'><a href='".$versioninfo->getInfo('submit_bug')."' target='blank'>".'Submit a Bug in SmartFAQ Bug Tracker'.'</a></td>';
125 125
     echo '</tr>';
126 126
 }
127 127
 if ($versioninfo->getInfo('submit_feature') != '') {
128 128
     echo '<tr>';
129
-    echo "<td class='head' align='left'>" . _MI_SF_MODULE_FEATURE . '</td>';
130
-    echo "<td class='even' align='left'><a href='" . $versioninfo->getInfo('submit_feature') . "' target='blank'>" . 'Request a feature in the SmartFAQ Feature Tracker' . '</a></td>';
129
+    echo "<td class='head' align='left'>"._MI_SF_MODULE_FEATURE.'</td>';
130
+    echo "<td class='even' align='left'><a href='".$versioninfo->getInfo('submit_feature')."' target='blank'>".'Request a feature in the SmartFAQ Feature Tracker'.'</a></td>';
131 131
     echo '</tr>';
132 132
 }
133 133
 
@@ -137,11 +137,11 @@  discard block
 block discarded – undo
137 137
     echo "<br>\n";
138 138
     echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>";
139 139
     echo '<tr>';
140
-    echo "<td class='bg3' align='left'><b>" . _MI_SF_MODULE_DISCLAIMER . '</b></td>';
140
+    echo "<td class='bg3' align='left'><b>"._MI_SF_MODULE_DISCLAIMER.'</b></td>';
141 141
     echo '</tr>';
142 142
 
143 143
     echo '<tr>';
144
-    echo "<td class='even' align='left'>" . $versioninfo->getInfo('warning') . '</td>';
144
+    echo "<td class='even' align='left'>".$versioninfo->getInfo('warning').'</td>';
145 145
     echo '</tr>';
146 146
 
147 147
     echo '</table>';
@@ -151,11 +151,11 @@  discard block
 block discarded – undo
151 151
     echo "<br>\n";
152 152
     echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>";
153 153
     echo '<tr>';
154
-    echo "<td class='bg3' align='left'><b>" . _MI_SF_AUTHOR_WORD . '</b></td>';
154
+    echo "<td class='bg3' align='left'><b>"._MI_SF_AUTHOR_WORD.'</b></td>';
155 155
     echo '</tr>';
156 156
 
157 157
     echo '<tr>';
158
-    echo "<td class='even' align='left'>" . $versioninfo->getInfo('author_word') . '</td>';
158
+    echo "<td class='even' align='left'>".$versioninfo->getInfo('author_word').'</td>';
159 159
     echo '</tr>';
160 160
 
161 161
     echo '</table>';
@@ -166,11 +166,11 @@  discard block
 block discarded – undo
166 166
     echo "<br>\n";
167 167
     echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>";
168 168
     echo '<tr>';
169
-    echo "<td class='bg3' align='left'><b>" . _MI_SF_VERSION_HISTORY . '</b></td>';
169
+    echo "<td class='bg3' align='left'><b>"._MI_SF_VERSION_HISTORY.'</b></td>';
170 170
     echo '</tr>';
171 171
 
172 172
     echo '<tr>';
173
-    echo "<td class='even' align='left'>" . $versioninfo->getInfo('version_history') . '</td>';
173
+    echo "<td class='even' align='left'>".$versioninfo->getInfo('version_history').'</td>';
174 174
     echo '</tr>';
175 175
 
176 176
     echo '</table>';
@@ -180,4 +180,4 @@  discard block
 block discarded – undo
180 180
 //$modfooter = sf_modFooter();
181 181
 //echo "<div align='center'>" . $modfooter . "</div>";
182 182
 //xoops_cp_footer();
183
-require_once __DIR__ . '/admin_footer.php';
183
+require_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
admin/admin_footer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,6 +18,6 @@
 block discarded – undo
18 18
  */
19 19
 
20 20
 $pathIcon32 = \Xmf\Module\Admin::iconUrl('', 32);
21
-echo "<div class='adminfooter'>\n" . "  <div style='text-align: center;'>\n" . "    <a href='https://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" . "  </div>\n" . '  ' . _AM_MODULEADMIN_ADMIN_FOOTER . "\n" . '</div>';
21
+echo "<div class='adminfooter'>\n"."  <div style='text-align: center;'>\n"."    <a href='https://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n"."  </div>\n".'  '._AM_MODULEADMIN_ADMIN_FOOTER."\n".'</div>';
22 22
 
23 23
 xoops_cp_footer();
Please login to merge, or discard this patch.