Completed
Push — master ( 8e5652...4e30dc )
by Michael
02:28
created
admin/admin.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -28,42 +28,42 @@  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 (0 != $admintest) {
52 52
     if (isset($fct) && '' != $fct) {
53
-        if (file_exists(XOOPS_ROOT_PATH . '/modules/system/admin/' . $fct . '/xoops_version.php')) {
53
+        if (file_exists(XOOPS_ROOT_PATH.'/modules/system/admin/'.$fct.'/xoops_version.php')) {
54 54
             xoops_loadLanguage('admin', 'system');
55
-            xoops_loadLanguage('admin/' . $fct, 'system');
55
+            xoops_loadLanguage('admin/'.$fct, 'system');
56 56
 
57
-            include XOOPS_ROOT_PATH . '/modules/system/admin/' . $fct . '/xoops_version.php';
57
+            include XOOPS_ROOT_PATH.'/modules/system/admin/'.$fct.'/xoops_version.php';
58 58
             $syspermHandler = xoops_getHandler('groupperm');
59
-            $category       = !empty($modversion['category']) ? (int)$modversion['category'] : 0;
59
+            $category       = !empty($modversion['category']) ? (int) $modversion['category'] : 0;
60 60
             unset($modversion);
61 61
             if ($category > 0) {
62
-                $groups =& $xoopsUser->getGroups();
62
+                $groups = & $xoopsUser->getGroups();
63 63
                 if (in_array(XOOPS_GROUP_ADMIN, $groups)
64 64
                     || false !== $syspermHandler->checkRight('system_admin', $category, $groups, $xoopsModule->getVar('mid'))) {
65 65
                     if (file_exists("../include/{$fct}.inc.php")) {
66
-                        require_once __DIR__ . "/../include/{$fct}.inc.php";
66
+                        require_once __DIR__."/../include/{$fct}.inc.php";
67 67
                     } else {
68 68
                         $error = true;
69 69
                     }
@@ -71,8 +71,8 @@  discard block
 block discarded – undo
71 71
                     $error = true;
72 72
                 }
73 73
             } elseif ('version' === $fct) {
74
-                if (file_exists(XOOPS_ROOT_PATH . '/modules/system/admin/version/main.php')) {
75
-                    require_once XOOPS_ROOT_PATH . '/modules/system/admin/version/main.php';
74
+                if (file_exists(XOOPS_ROOT_PATH.'/modules/system/admin/version/main.php')) {
75
+                    require_once XOOPS_ROOT_PATH.'/modules/system/admin/version/main.php';
76 76
                 } else {
77 77
                     $error = true;
78 78
                 }
@@ -92,26 +92,26 @@  discard block
 block discarded – undo
92 92
     echo '<h4>System Configuration</h4>';
93 93
     echo '<table class="outer" cellpadding="4" cellspacing="1">';
94 94
     echo '<tr>';
95
-    $groups =& $xoopsUser->getGroups();
95
+    $groups = & $xoopsUser->getGroups();
96 96
     $all_ok = false;
97 97
     if (!in_array(XOOPS_GROUP_ADMIN, $groups)) {
98 98
         $syspermHandler = xoops_getHandler('groupperm');
99
-        $ok_syscats     =& $syspermHandler->getItemIds('system_admin', $groups);
99
+        $ok_syscats     = & $syspermHandler->getItemIds('system_admin', $groups);
100 100
     } else {
101 101
         $all_ok = true;
102 102
     }
103
-    $admin_dir = XOOPS_ROOT_PATH . '/modules/system/admin';
103
+    $admin_dir = XOOPS_ROOT_PATH.'/modules/system/admin';
104 104
     $handle    = opendir($admin_dir);
105 105
     $counter   = 0;
106 106
     $class     = 'even';
107 107
     while ($file = readdir($handle)) {
108
-        if ('cvs' !== strtolower($file) && !preg_match('/[.]/', $file) && is_dir($admin_dir . '/' . $file)) {
109
-            include $admin_dir . '/' . $file . '/xoops_version.php';
108
+        if ('cvs' !== strtolower($file) && !preg_match('/[.]/', $file) && is_dir($admin_dir.'/'.$file)) {
109
+            include $admin_dir.'/'.$file.'/xoops_version.php';
110 110
             if ($modversion['hasAdmin']) {
111
-                $category = isset($modversion['category']) ? (int)$modversion['category'] : 0;
111
+                $category = isset($modversion['category']) ? (int) $modversion['category'] : 0;
112 112
                 if (false !== $all_ok || in_array($modversion['category'], $ok_syscats)) {
113 113
                     echo "<td class='$class' align='center' valign='bottom' width='19%'>";
114
-                    echo "<a href='" . XOOPS_URL . '/modules/system/admin.php?fct=' . $file . "'><b>" . trim($modversion['name']) . "</b></a>\n";
114
+                    echo "<a href='".XOOPS_URL.'/modules/system/admin.php?fct='.$file."'><b>".trim($modversion['name'])."</b></a>\n";
115 115
                     echo '</td>';
116 116
                     ++$counter;
117 117
                     $class = ('even' === $class) ? 'odd' : 'even';
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
         }
127 127
     }
128 128
     while ($counter < 5) {
129
-        echo '<td class="' . $class . '">&nbsp;</td>';
129
+        echo '<td class="'.$class.'">&nbsp;</td>';
130 130
         $class = ('even' === $class) ? 'odd' : 'even';
131 131
         ++$counter;
132 132
     }
Please login to merge, or discard this patch.
admin/answer.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -114,18 +114,18 @@
 block discarded – undo
114 114
     foreach ($proposed_answers as $proposed_answer) {
115 115
         if (Constants::SF_STATUS_NEW_ANSWER == $faqObj->status()) {
116 116
             $merge   = "<a href='faq.php?op=merge&amp;faqid="
117
-                       . $faqObj->faqid()
118
-                       . '&amp;answerid='
119
-                       . $proposed_answer->answerid()
120
-                       . "'><img src='"
121
-                       . XOOPS_URL
122
-                       . '/modules/'
123
-                       . $xoopsModule->dirname()
124
-                       . "/assets/images/icon/merge.gif' title='"
125
-                       . _AM_SF_FAQ_MERGE
126
-                       . "' alt='"
127
-                       . _AM_SF_FAQ_MERGE
128
-                       . "'></a>&nbsp;";
117
+                        . $faqObj->faqid()
118
+                        . '&amp;answerid='
119
+                        . $proposed_answer->answerid()
120
+                        . "'><img src='"
121
+                        . XOOPS_URL
122
+                        . '/modules/'
123
+                        . $xoopsModule->dirname()
124
+                        . "/assets/images/icon/merge.gif' title='"
125
+                        . _AM_SF_FAQ_MERGE
126
+                        . "' alt='"
127
+                        . _AM_SF_FAQ_MERGE
128
+                        . "'></a>&nbsp;";
129 129
             $approve = "<a href='answer.php?op=selectanswer&amp;faqid=" . $faqid . '&amp;answerid=' . $proposed_answer->answerid() . "'><img src='" . $pathIcon16 . '/on.png' . "' title='" . _AM_SF_FAQ_APPROVE_NEW_ANSWER . "' alt='" . _AM_SF_APPROVESUB . "'></a>";
130 130
         }
131 131
         $modify = "<a href='faq.php?op=mod&amp;faqid=" . $faqObj->faqid() . '&amp;answerid=' . $proposed_answer->answerid() . "'><img src='" . $pathIcon16 . '/edit.png' . "' title='" . _AM_SF_FAQ_REVIEW . "' alt='" . _AM_SF_FAQ_REVIEW . "'></a>&nbsp;";
Please login to merge, or discard this patch.
Spacing   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 use XoopsModules\Smartfaq;
10 10
 use XoopsModules\Smartfaq\Constants;
11 11
 
12
-require_once __DIR__ . '/admin_header.php';
12
+require_once __DIR__.'/admin_header.php';
13 13
 
14 14
 $op = '';
15 15
 
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 {
33 33
     global $answerHandler, $xoopsUser, $xoopsUser, $xoopsConfig, $xoopsDB, $modify, $xoopsModuleConfig, $xoopsModule, $XOOPS_URL, $myts, $pathIcon16, $smartModuleConfig;
34 34
 
35
-    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
35
+    require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
36 36
 
37 37
     // Creating the FAQ object
38 38
     $faqObj = new Smartfaq\Faq($faqid);
@@ -69,9 +69,9 @@  discard block
 block discarded – undo
69 69
     $official_answer = $faqObj->answer();
70 70
 
71 71
     Smartfaq\Utility::collapsableBar('bottomtable', 'bottomtableicon');
72
-    echo "<img id='bottomtableicon' src=" . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . "/assets/images/icon/close12.gif alt=''></a>&nbsp;" . _AM_SF_SUBMITTED_ANSWER . '</h3>';
72
+    echo "<img id='bottomtableicon' src=".XOOPS_URL.'/modules/'.$xoopsModule->dirname()."/assets/images/icon/close12.gif alt=''></a>&nbsp;"._AM_SF_SUBMITTED_ANSWER.'</h3>';
73 73
     echo "<div id='bottomtable'>";
74
-    echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">' . _AM_SF_SUBMITTED_ANSWER_INFO . '</span>';
74
+    echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">'._AM_SF_SUBMITTED_ANSWER_INFO.'</span>';
75 75
 
76 76
     $proposed_answers = $answerHandler->getAllAnswers($faqid, Constants::SF_AN_STATUS_PROPOSED);
77 77
 
@@ -81,31 +81,31 @@  discard block
 block discarded – undo
81 81
 
82 82
     echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>
83 83
             <tr>
84
-              <td class='head' width='100px'>" . _AM_SF_CATEGORY . "</td>
85
-              <td class='even'>" . $categoryObj->name() . "</td>
84
+              <td class='head' width='100px'>" . _AM_SF_CATEGORY."</td>
85
+              <td class='even'>" . $categoryObj->name()."</td>
86 86
             </tr>
87 87
             <tr>
88
-              <td class='head' width='100px'>" . _AM_SF_QUESTION . "</td>
89
-              <td class='even'>" . $faqObj->question() . '</td>
88
+              <td class='head' width='100px'>" . _AM_SF_QUESTION."</td>
89
+              <td class='even'>" . $faqObj->question().'</td>
90 90
             </tr>';
91 91
     if ($official_answer) {
92 92
         echo "
93 93
             <tr>
94
-              <td class='head' width='100px'>" . _AM_SF_ANSWER_OFFICIAL . "</td>
95
-              <td class='even'>" . $official_answer->answer() . '</td>
94
+              <td class='head' width='100px'>" . _AM_SF_ANSWER_OFFICIAL."</td>
95
+              <td class='even'>" . $official_answer->answer().'</td>
96 96
             </tr>';
97 97
     }
98 98
     echo "</table><br>\n";
99 99
 
100 100
     echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>";
101 101
     echo '<tr>';
102
-    echo "<th width='40' class='bg3' align='center'><b>" . _AM_SF_ARTID . '</b></td>';
103
-    echo "<th class='bg3' class='bg3' align='center'><b>" . _AM_SF_ANSWER . '</b></td>';
102
+    echo "<th width='40' class='bg3' align='center'><b>"._AM_SF_ARTID.'</b></td>';
103
+    echo "<th class='bg3' class='bg3' align='center'><b>"._AM_SF_ANSWER.'</b></td>';
104 104
 
105
-    echo "<th width='90' class='bg3' align='center'><b>" . _AM_SF_ANSWERED . '</b></td>';
105
+    echo "<th width='90' class='bg3' align='center'><b>"._AM_SF_ANSWERED.'</b></td>';
106 106
 
107
-    echo "<th width='180' class='bg3' align='center'><b>" . _AM_SF_CREATED . '</b></td>';
108
-    echo "<th width='120' class='bg3' align='center'><b>" . _AM_SF_ACTION . '</b></td>';
107
+    echo "<th width='180' class='bg3' align='center'><b>"._AM_SF_CREATED.'</b></td>';
108
+    echo "<th width='120' class='bg3' align='center'><b>"._AM_SF_ACTION.'</b></td>';
109 109
     echo '</tr>';
110 110
 
111 111
     $merge   = '';
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
     $approve = '';
114 114
     foreach ($proposed_answers as $proposed_answer) {
115 115
         if (Constants::SF_STATUS_NEW_ANSWER == $faqObj->status()) {
116
-            $merge   = "<a href='faq.php?op=merge&amp;faqid="
116
+            $merge = "<a href='faq.php?op=merge&amp;faqid="
117 117
                        . $faqObj->faqid()
118 118
                        . '&amp;answerid='
119 119
                        . $proposed_answer->answerid()
@@ -126,19 +126,19 @@  discard block
 block discarded – undo
126 126
                        . "' alt='"
127 127
                        . _AM_SF_FAQ_MERGE
128 128
                        . "'></a>&nbsp;";
129
-            $approve = "<a href='answer.php?op=selectanswer&amp;faqid=" . $faqid . '&amp;answerid=' . $proposed_answer->answerid() . "'><img src='" . $pathIcon16 . '/on.png' . "' title='" . _AM_SF_FAQ_APPROVE_NEW_ANSWER . "' alt='" . _AM_SF_APPROVESUB . "'></a>";
129
+            $approve = "<a href='answer.php?op=selectanswer&amp;faqid=".$faqid.'&amp;answerid='.$proposed_answer->answerid()."'><img src='".$pathIcon16.'/on.png'."' title='"._AM_SF_FAQ_APPROVE_NEW_ANSWER."' alt='"._AM_SF_APPROVESUB."'></a>";
130 130
         }
131
-        $modify = "<a href='faq.php?op=mod&amp;faqid=" . $faqObj->faqid() . '&amp;answerid=' . $proposed_answer->answerid() . "'><img src='" . $pathIcon16 . '/edit.png' . "' title='" . _AM_SF_FAQ_REVIEW . "' alt='" . _AM_SF_FAQ_REVIEW . "'></a>&nbsp;";
132
-        $delete = "<a href='answer.php?op=del&amp;faqid=" . $faqObj->faqid() . '&amp;answerid=' . $proposed_answer->answerid() . "'><img src='" . $pathIcon16 . '/delete.png' . "' title='" . _AM_SF_DELETESUBM . "' alt='" . _AM_SF_DELETESUBM . "'></a>";
131
+        $modify = "<a href='faq.php?op=mod&amp;faqid=".$faqObj->faqid().'&amp;answerid='.$proposed_answer->answerid()."'><img src='".$pathIcon16.'/edit.png'."' title='"._AM_SF_FAQ_REVIEW."' alt='"._AM_SF_FAQ_REVIEW."'></a>&nbsp;";
132
+        $delete = "<a href='answer.php?op=del&amp;faqid=".$faqObj->faqid().'&amp;answerid='.$proposed_answer->answerid()."'><img src='".$pathIcon16.'/delete.png'."' title='"._AM_SF_DELETESUBM."' alt='"._AM_SF_DELETESUBM."'></a>";
133 133
         echo '<tr>';
134
-        echo "<td class='head' align='center'>" . $proposed_answer->answerid() . '</td>';
135
-        echo "<td class='even' align='left'>" . $proposed_answer->answer() . '</td>';
134
+        echo "<td class='head' align='center'>".$proposed_answer->answerid().'</td>';
135
+        echo "<td class='even' align='left'>".$proposed_answer->answer().'</td>';
136 136
 
137 137
         //show name of the answer submitter
138 138
         $submitter = Smartfaq\Utility::getLinkedUnameFromId($proposed_answer->uid(), $smartModuleConfig['userealname']);
139
-        echo "<td class='even' align='center'>" . $submitter . '</td>';
139
+        echo "<td class='even' align='center'>".$submitter.'</td>';
140 140
 
141
-        echo "<td class='even' align='center'>" . $proposed_answer->datesub() . '</td>';
141
+        echo "<td class='even' align='center'>".$proposed_answer->datesub().'</td>';
142 142
         echo "<td class='even' align='center'> $merge $modify $approve $delete </td>";
143 143
         echo '</tr>';
144 144
     }
@@ -150,17 +150,17 @@  discard block
 block discarded – undo
150 150
 switch ($op) {
151 151
     case 'mod':
152 152
         xoops_cp_header();
153
-        require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
153
+        require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
154 154
         global $xoopsUser, $xoopsUser, $xoopsConfig, $xoopsDB, $xoopsModuleConfig, $xoopsModule, $modify, $myts;
155
-        $faqid = isset($_GET['faqid']) ? (int)$_GET['faqid'] : 0;
155
+        $faqid = isset($_GET['faqid']) ? (int) $_GET['faqid'] : 0;
156 156
         editfaq($faqid);
157 157
         break;
158 158
 
159 159
     case 'selectanswer':
160 160
         global $xoopsUser, $_GET, $xoopsModuleConfig;
161 161
 
162
-        $faqid    = isset($_GET['faqid']) ? (int)$_GET['faqid'] : 0;
163
-        $answerid = isset($_GET['answerid']) ? (int)$_GET['answerid'] : 0;
162
+        $faqid    = isset($_GET['faqid']) ? (int) $_GET['faqid'] : 0;
163
+        $answerid = isset($_GET['answerid']) ? (int) $_GET['answerid'] : 0;
164 164
 
165 165
         // Creating the FAQ object
166 166
         $faqObj = new Smartfaq\Faq($faqid);
@@ -234,11 +234,11 @@  discard block
 block discarded – undo
234 234
     case 'del':
235 235
         global $xoopsUser, $xoopsUser, $xoopsConfig, $xoopsDB;
236 236
 
237
-        $faqid     = isset($_POST['faqid']) ? (int)$_POST['faqid'] : 0;
238
-        $faqid     = isset($_GET['faqid']) ? (int)$_GET['faqid'] : $faqid;
239
-        $answerid  = isset($_POST['answerid']) ? (int)$_POST['answerid'] : 0;
240
-        $answerid  = isset($_GET['answerid']) ? (int)$_GET['answerid'] : $answerid;
241
-        $confirm   = isset($_POST['confirm']) ? (int)$_POST['confirm'] : 0;
237
+        $faqid     = isset($_POST['faqid']) ? (int) $_POST['faqid'] : 0;
238
+        $faqid     = isset($_GET['faqid']) ? (int) $_GET['faqid'] : $faqid;
239
+        $answerid  = isset($_POST['answerid']) ? (int) $_POST['answerid'] : 0;
240
+        $answerid  = isset($_GET['answerid']) ? (int) $_GET['answerid'] : $answerid;
241
+        $confirm   = isset($_POST['confirm']) ? (int) $_POST['confirm'] : 0;
242 242
         $faqObj    = new Smartfaq\Faq($faqid);
243 243
         $answerObj = new Smartfaq\Answer($answerid);
244 244
         if ($confirm) {
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
                     $proposed_answers = $answerHandler->getAllAnswers($faqid, Constants::SF_AN_STATUS_PROPOSED);
258 258
                     if (count($proposed_answers) > 0) {
259 259
                         // This question has other proposed answer
260
-                        $redirect_page = 'answer.php?op=mod&faqid=' . $faqid;
260
+                        $redirect_page = 'answer.php?op=mod&faqid='.$faqid;
261 261
                         $redirect_msg  = _AM_SF_ANSWER_REJECTED;
262 262
                     } else {
263 263
                         // The question has no other proposed answer
@@ -281,11 +281,11 @@  discard block
 block discarded – undo
281 281
     default:
282 282
         xoops_cp_header();
283 283
 
284
-        require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
284
+        require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
285 285
         global $xoopsUser, $xoopsUser, $xoopsConfig, $xoopsDB, $xoopsModuleConfig, $xoopsModule;
286 286
 
287 287
         editfaq();
288 288
         break;
289 289
 }
290 290
 
291
-require_once __DIR__ . '/admin_footer.php';
291
+require_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
admin/xoopsfaq.php 1 patch
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 use XoopsModules\Smartfaq;
15 15
 use XoopsModules\Smartfaq\Constants;
16 16
 
17
-require_once __DIR__ . '/admin_header.php';
17
+require_once __DIR__.'/admin_header.php';
18 18
 
19 19
 $importFromModuleName = 'XoopsFAQ';
20 20
 $scriptname           = 'xoopsfaq.php';
@@ -27,33 +27,33 @@  discard block
 block discarded – undo
27 27
 
28 28
 if ('start' === $op) {
29 29
     xoops_cp_header();
30
-    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
30
+    require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
31 31
 
32
-    $result = $xoopsDB->queryF('SELECT count(*) FROM ' . $xoopsDB->prefix('xoopsfaq_categories'));
32
+    $result = $xoopsDB->queryF('SELECT count(*) FROM '.$xoopsDB->prefix('xoopsfaq_categories'));
33 33
     list($totalCat) = $xoopsDB->fetchRow($result);
34 34
 
35 35
     Smartfaq\Utility::collapsableBar('bottomtable', 'bottomtableicon');
36
-    echo "<img id='bottomtableicon' src=" . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . "/assets/images/icon/close12.gif alt=''></a>&nbsp;" . sprintf(_AM_SF_IMPORT_FROM, $importFromModuleName) . '</h3>';
36
+    echo "<img id='bottomtableicon' src=".XOOPS_URL.'/modules/'.$xoopsModule->dirname()."/assets/images/icon/close12.gif alt=''></a>&nbsp;".sprintf(_AM_SF_IMPORT_FROM, $importFromModuleName).'</h3>';
37 37
     echo "<div id='bottomtable'>";
38 38
 
39 39
     if (0 == $totalCat) {
40
-        echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">' . _AM_SF_IMPORT_NO_CATEGORY . '</span>';
40
+        echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">'._AM_SF_IMPORT_NO_CATEGORY.'</span>';
41 41
     } else {
42
-        require_once XOOPS_ROOT_PATH . '/class/xoopstree.php';
42
+        require_once XOOPS_ROOT_PATH.'/class/xoopstree.php';
43 43
 
44
-        $result = $xoopsDB->queryF('SELECT count(*) FROM ' . $xoopsDB->prefix('xoopsfaq_contents'));
44
+        $result = $xoopsDB->queryF('SELECT count(*) FROM '.$xoopsDB->prefix('xoopsfaq_contents'));
45 45
         list($totalFAQ) = $xoopsDB->fetchRow($result);
46 46
 
47 47
         if (0 == $totalFAQ) {
48
-            echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">' . sprintf(_AM_SF_IMPORT_MODULE_FOUND_NO_FAQ, $importFromModuleName, $totalCat) . '</span>';
48
+            echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">'.sprintf(_AM_SF_IMPORT_MODULE_FOUND_NO_FAQ, $importFromModuleName, $totalCat).'</span>';
49 49
         } else {
50
-            echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">' . sprintf(_AM_SF_IMPORT_MODULE_FOUND, $importFromModuleName, $totalCat, $totalFAQ) . '</span>';
50
+            echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">'.sprintf(_AM_SF_IMPORT_MODULE_FOUND, $importFromModuleName, $totalCat, $totalFAQ).'</span>';
51 51
 
52
-            $form = new \XoopsThemeForm(_AM_SF_IMPORT_SETTINGS, 'import_form', XOOPS_URL . '/modules/smartfaq/admin/' . $scriptname);
52
+            $form = new \XoopsThemeForm(_AM_SF_IMPORT_SETTINGS, 'import_form', XOOPS_URL.'/modules/smartfaq/admin/'.$scriptname);
53 53
 
54 54
             // Categories to be imported
55 55
             $cat_cbox = new \XoopsFormCheckBox(sprintf(_AM_SF_IMPORT_CATEGORIES, $importFromModuleName), 'import_category', -1);
56
-            $result   = $xoopsDB->queryF('SELECT c.category_id, c.category_title, count(q.contents_id) FROM ' . $xoopsDB->prefix('xoopsfaq_categories') . ' AS c, ' . $xoopsDB->prefix('xoopsfaq_contents') . ' AS q WHERE c.category_id=q.category_id GROUP BY c.category_id ORDER BY category_order');
56
+            $result   = $xoopsDB->queryF('SELECT c.category_id, c.category_title, count(q.contents_id) FROM '.$xoopsDB->prefix('xoopsfaq_categories').' AS c, '.$xoopsDB->prefix('xoopsfaq_contents').' AS q WHERE c.category_id=q.category_id GROUP BY c.category_id ORDER BY category_order');
57 57
 
58 58
             while (list($cid, $cat_title, $count) = $xoopsDB->fetchRow($result)) {
59 59
                 $cat_cbox->addOption($cid, "$cat_title ($count)<br\>");
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
             ob_end_clean();
69 69
 
70 70
             // Auto-Approve
71
-            $form->addElement(new \XoopsFormRadioYN(_AM_SF_IMPORT_AUTOAPPROVE, 'autoaprove', 1, ' ' . _AM_SF_YES . '', ' ' . _AM_SF_NO . ''));
71
+            $form->addElement(new \XoopsFormRadioYN(_AM_SF_IMPORT_AUTOAPPROVE, 'autoaprove', 1, ' '._AM_SF_YES.'', ' '._AM_SF_NO.''));
72 72
 
73 73
             // Submitted and answered by
74 74
             $memberHandler = xoops_getHandler('member');
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
             $form->addElement($user_select);
82 82
 
83 83
             // Q&As can be commented?
84
-            $form->addElement(new \XoopsFormRadioYN(_AM_SF_IMPORT_ALLOWCOMMENTS, 'cancomment', 1, ' ' . _AM_SF_YES . '', ' ' . _AM_SF_NO . ''));
84
+            $form->addElement(new \XoopsFormRadioYN(_AM_SF_IMPORT_ALLOWCOMMENTS, 'cancomment', 1, ' '._AM_SF_YES.'', ' '._AM_SF_NO.''));
85 85
 
86 86
             $group_list      = $memberHandler->getGroupList();
87 87
             $groups_selected = [];
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 }
106 106
 
107 107
 if ('go' === $op) {
108
-    require_once __DIR__ . '/admin_header.php';
108
+    require_once __DIR__.'/admin_header.php';
109 109
 
110 110
     $import_category = (isset($_POST['import_category']) ? $_POST['import_category'] : null);
111 111
     if (!$import_category) {
@@ -115,9 +115,9 @@  discard block
 block discarded – undo
115 115
     xoops_cp_header();
116 116
 
117 117
     Smartfaq\Utility::collapsableBar('bottomtable', 'bottomtableicon');
118
-    echo "<img id='bottomtableicon' src=" . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . "/assets/images/icon/close12.gif alt=''></a>&nbsp;" . sprintf(_AM_SF_IMPORT_FROM, $importFromModuleName) . '</h3>';
118
+    echo "<img id='bottomtableicon' src=".XOOPS_URL.'/modules/'.$xoopsModule->dirname()."/assets/images/icon/close12.gif alt=''></a>&nbsp;".sprintf(_AM_SF_IMPORT_FROM, $importFromModuleName).'</h3>';
119 119
     echo "<div id='bottomtable'>";
120
-    echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">' . _AM_SF_IMPORT_RESULT . '</span>';
120
+    echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">'._AM_SF_IMPORT_RESULT.'</span>';
121 121
 
122 122
     $cnt_imported_cat = 0;
123 123
     $cnt_imported_faq = 0;
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
     echo "Can Comment: $cancomment<br>";
147 147
     echo "Auto aprove: $autoaprove<br>";*/
148 148
 
149
-    $resultCat = $xoopsDB->queryF('select * from ' . $xoopsDB->prefix('xoopsfaq_categories') . " where category_id in ($import_category_list) order by category_order");
149
+    $resultCat = $xoopsDB->queryF('select * from '.$xoopsDB->prefix('xoopsfaq_categories')." where category_id in ($import_category_list) order by category_order");
150 150
 
151 151
     while ($arrCat = $xoopsDB->fetchArray($resultCat)) {
152 152
         extract($arrCat, EXTR_PREFIX_ALL, 'xcat');
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
         $categoryObj->setVar('name', $xcat_category_title);
161 161
 
162 162
         if (!$categoryObj->store(false)) {
163
-            echo sprintf(_AM_SF_IMPORT_CATEGORY_ERROR, $xcat_name) . '<br>';
163
+            echo sprintf(_AM_SF_IMPORT_CATEGORY_ERROR, $xcat_name).'<br>';
164 164
             continue;
165 165
         }
166 166
 
@@ -168,9 +168,9 @@  discard block
 block discarded – undo
168 168
 
169 169
         ++$cnt_imported_cat;
170 170
 
171
-        echo sprintf(_AM_SF_IMPORT_CATEGORY_SUCCESS, $xcat_category_title) . "<br\>";
171
+        echo sprintf(_AM_SF_IMPORT_CATEGORY_SUCCESS, $xcat_category_title)."<br\>";
172 172
 
173
-        $resultFAQ = $xoopsDB->queryF('select * from ' . $xoopsDB->prefix('xoopsfaq_contents') . " where category_id=$xcat_category_id order by contents_order");
173
+        $resultFAQ = $xoopsDB->queryF('select * from '.$xoopsDB->prefix('xoopsfaq_contents')." where category_id=$xcat_category_id order by contents_order");
174 174
         while ($arrFAQ = $xoopsDB->fetchArray($resultFAQ)) {
175 175
             extract($arrFAQ, EXTR_PREFIX_ALL, 'xfaq');
176 176
 
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
             $faqObj->setVar('cancomment', $cancomment);
199 199
 
200 200
             if (!$faqObj->store(false)) {
201
-                echo sprintf('  ' . _AM_SF_IMPORT_FAQ_ERROR, $xfaq_contents_title) . '<br>';
201
+                echo sprintf('  '._AM_SF_IMPORT_FAQ_ERROR, $xfaq_contents_title).'<br>';
202 202
                 continue;
203 203
             } else {
204 204
                 $answerObj->setVar('faqid', $faqObj->faqid());
@@ -207,10 +207,10 @@  discard block
 block discarded – undo
207 207
                 $answerObj->setVar('status', Constants::SF_AN_STATUS_APPROVED);
208 208
 
209 209
                 if (!$answerObj->store()) {
210
-                    echo sprintf('  ' . _AM_SF_IMPORT_FAQ_ERROR) . '<br>';
210
+                    echo sprintf('  '._AM_SF_IMPORT_FAQ_ERROR).'<br>';
211 211
                     continue;
212 212
                 } else {
213
-                    echo '&nbsp;&nbsp;' . sprintf(_AM_SF_IMPORTED_QUESTION, $faqObj->question(50)) . '<br>';
213
+                    echo '&nbsp;&nbsp;'.sprintf(_AM_SF_IMPORTED_QUESTION, $faqObj->question(50)).'<br>';
214 214
                     ++$cnt_imported_faq;
215 215
                 }
216 216
             }
@@ -220,8 +220,8 @@  discard block
 block discarded – undo
220 220
     }
221 221
 
222 222
     echo 'Done.<br>';
223
-    echo sprintf(_AM_SF_IMPORTED_CATEGORIES, $cnt_imported_cat) . '<br>';
224
-    echo sprintf(_AM_SF_IMPORTED_QUESTIONS, $cnt_imported_faq) . '<br>';
223
+    echo sprintf(_AM_SF_IMPORTED_CATEGORIES, $cnt_imported_cat).'<br>';
224
+    echo sprintf(_AM_SF_IMPORTED_QUESTIONS, $cnt_imported_faq).'<br>';
225 225
 
226 226
     exit();
227 227
 }
Please login to merge, or discard this patch.
admin/menu.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -19,47 +19,47 @@
 block discarded – undo
19 19
 $adminmenu[] = [
20 20
     'title' => _MI_SF_HOME,
21 21
     'link'  => 'admin/index.php',
22
-    'icon'  => $pathIcon32 . '/home.png',
22
+    'icon'  => $pathIcon32.'/home.png',
23 23
 ];
24 24
 
25 25
 $adminmenu[] = [
26 26
     'title' => _MI_SF_ADMENU1,
27 27
     'link'  => 'admin/main.php',
28
-    'icon'  => $pathIcon32 . '/manage.png',
28
+    'icon'  => $pathIcon32.'/manage.png',
29 29
 ];
30 30
 
31 31
 $adminmenu[] = [
32 32
     'title' => _MI_SF_ADMENU2,
33 33
     'link'  => 'admin/category.php',
34
-    'icon'  => $pathIcon32 . '/category.png',
34
+    'icon'  => $pathIcon32.'/category.png',
35 35
 ];
36 36
 
37 37
 $adminmenu[] = [
38 38
     'title' => _MI_SF_ADMENU3,
39 39
     'link'  => 'admin/faq.php',
40
-    'icon'  => $pathIcon32 . '/search.png',
40
+    'icon'  => $pathIcon32.'/search.png',
41 41
 ];
42 42
 
43 43
 $adminmenu[] = [
44 44
     'title' => _MI_SF_ADMENU4,
45 45
     'link'  => 'admin/question.php',
46
-    'icon'  => $pathIcon32 . '/faq.png',
46
+    'icon'  => $pathIcon32.'/faq.png',
47 47
 ];
48 48
 
49 49
 $adminmenu[] = [
50 50
     'title' => _MI_SF_ADMENU5,
51 51
     'link'  => 'admin/permissions.php',
52
-    'icon'  => $pathIcon32 . '/permissions.png',
52
+    'icon'  => $pathIcon32.'/permissions.png',
53 53
 ];
54 54
 
55 55
 $adminmenu[] = [
56 56
     'title' => _MI_SF_ADMENU8,
57 57
     'link'  => 'admin/import.php',
58
-    'icon'  => $pathIcon32 . '/download.png',
58
+    'icon'  => $pathIcon32.'/download.png',
59 59
 ];
60 60
 
61 61
 $adminmenu[] = [
62 62
     'title' => _MI_SF_ABOUT,
63 63
     'link'  => 'admin/about.php',
64
-    'icon'  => $pathIcon32 . '/about.png',
64
+    'icon'  => $pathIcon32.'/about.png',
65 65
 ];
Please login to merge, or discard this patch.
admin/import.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 
9 9
 use XoopsModules\Smartfaq;
10 10
 
11
-require_once __DIR__ . '/admin_header.php';
11
+require_once __DIR__.'/admin_header.php';
12 12
 
13 13
 $op = 'none';
14 14
 
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     case 'importExecute':
26 26
 
27 27
         $importfile      = isset($_POST['importfile']) ? $_POST['importfile'] : 'nonselected';
28
-        $importfile_path = XOOPS_ROOT_PATH . '/modules/smartfaq/admin/' . $importfile . '.php';
28
+        $importfile_path = XOOPS_ROOT_PATH.'/modules/smartfaq/admin/'.$importfile.'.php';
29 29
         if (!file_exists($importfile_path)) {
30 30
             $errs[] = sprintf(_AM_SF_IMPORT_FILE_NOT_FOUND, $importfile_path);
31 31
             $error  = true;
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
             require_once $importfile_path;
34 34
         }
35 35
         foreach ($msgs as $m) {
36
-            echo $m . '<br>';
36
+            echo $m.'<br>';
37 37
         }
38 38
         echo '<br>';
39 39
         $endMsg = _AM_SF_IMPORT_SUCCESS;
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 
44 44
         echo $endMsg;
45 45
         echo '<br><br>';
46
-        echo "<a href='import.php'>" . _AM_SF_IMPORT_BACK . '</a>';
46
+        echo "<a href='import.php'>"._AM_SF_IMPORT_BACK.'</a>';
47 47
         echo '<br><br>';
48 48
         break;
49 49
 
@@ -55,13 +55,13 @@  discard block
 block discarded – undo
55 55
         xoops_cp_header();
56 56
 
57 57
         Smartfaq\Utility::collapsableBar('bottomtable', 'bottomtableicon');
58
-        echo "<img id='bottomtableicon' src=" . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . "/assets/images/icon/close12.gif alt=''></a>&nbsp;" . _AM_SF_IMPORT_TITLE . '</h3>';
58
+        echo "<img id='bottomtableicon' src=".XOOPS_URL.'/modules/'.$xoopsModule->dirname()."/assets/images/icon/close12.gif alt=''></a>&nbsp;"._AM_SF_IMPORT_TITLE.'</h3>';
59 59
         echo "<div id='bottomtable'>";
60
-        echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">' . _AM_SF_IMPORT_INFO . '</span>';
60
+        echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">'._AM_SF_IMPORT_INFO.'</span>';
61 61
 
62 62
         global $xoopsUser, $xoopsUser, $xoopsConfig, $xoopsDB, $modify, $xoopsModuleConfig, $xoopsModule, $XOOPS_URL, $myts;
63 63
 
64
-        require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
64
+        require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
65 65
 
66 66
         /** @var XoopsModuleHandler $moduleHandler */
67 67
         $moduleHandler = xoops_getHandler('module');
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
             $sform->display();
102 102
             unset($hidden);
103 103
         } else {
104
-            echo '<span style="color: #567; margin: 3px 0 12px 0; font-weight: bold; font-size: small; display: block; ">' . _AM_SF_IMPORT_NO_MODULE . '</span>';
104
+            echo '<span style="color: #567; margin: 3px 0 12px 0; font-weight: bold; font-size: small; display: block; ">'._AM_SF_IMPORT_NO_MODULE.'</span>';
105 105
         }
106 106
 
107 107
         // End of collapsable bar
@@ -110,4 +110,4 @@  discard block
 block discarded – undo
110 110
         break;
111 111
 }
112 112
 
113
-require_once __DIR__ . '/admin_footer.php';
113
+require_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
admin/wffaq.php 1 patch
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 use XoopsModules\Smartfaq;
14 14
 use XoopsModules\Smartfaq\Constants;
15 15
 
16
-require_once __DIR__ . '/admin_header.php';
16
+require_once __DIR__.'/admin_header.php';
17 17
 
18 18
 $importFromModuleName = 'WF-FAQ';
19 19
 $scriptname           = 'wffaq.php';
@@ -25,33 +25,33 @@  discard block
 block discarded – undo
25 25
 }
26 26
 
27 27
 if ('start' === $op) {
28
-    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
28
+    require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
29 29
     xoops_cp_header();
30
-    $result = $xoopsDB->queryF('SELECT count(*) FROM ' . $xoopsDB->prefix('faqcategories'));
30
+    $result = $xoopsDB->queryF('SELECT count(*) FROM '.$xoopsDB->prefix('faqcategories'));
31 31
     list($totalCat) = $xoopsDB->fetchRow($result);
32 32
 
33 33
     Smartfaq\Utility::collapsableBar('bottomtable', 'bottomtableicon');
34
-    echo "<img id='bottomtableicon' src=" . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . "/assets/images/icon/close12.gif alt=''></a>&nbsp;" . sprintf(_AM_SF_IMPORT_FROM, $importFromModuleName) . '</h3>';
34
+    echo "<img id='bottomtableicon' src=".XOOPS_URL.'/modules/'.$xoopsModule->dirname()."/assets/images/icon/close12.gif alt=''></a>&nbsp;".sprintf(_AM_SF_IMPORT_FROM, $importFromModuleName).'</h3>';
35 35
     echo "<div id='bottomtable'>";
36 36
 
37 37
     if (0 == $totalCat) {
38
-        echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">' . _AM_SF_IMPORT_NO_CATEGORY . '</span>';
38
+        echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">'._AM_SF_IMPORT_NO_CATEGORY.'</span>';
39 39
     } else {
40
-        require_once XOOPS_ROOT_PATH . '/class/xoopstree.php';
40
+        require_once XOOPS_ROOT_PATH.'/class/xoopstree.php';
41 41
 
42
-        $result = $xoopsDB->queryF('SELECT count(*) FROM ' . $xoopsDB->prefix('faqtopics'));
42
+        $result = $xoopsDB->queryF('SELECT count(*) FROM '.$xoopsDB->prefix('faqtopics'));
43 43
         list($totalFAQ) = $xoopsDB->fetchRow($result);
44 44
 
45 45
         if (0 == $totalFAQ) {
46
-            echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">' . sprintf(_AM_SF_IMPORT_MODULE_FOUND_NO_FAQ, $importFromModuleName, $totalCat) . '</span>';
46
+            echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">'.sprintf(_AM_SF_IMPORT_MODULE_FOUND_NO_FAQ, $importFromModuleName, $totalCat).'</span>';
47 47
         } else {
48
-            echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">' . sprintf(_AM_SF_IMPORT_MODULE_FOUND, $importFromModuleName, $totalCat, $totalFAQ) . '</span>';
48
+            echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">'.sprintf(_AM_SF_IMPORT_MODULE_FOUND, $importFromModuleName, $totalCat, $totalFAQ).'</span>';
49 49
 
50
-            $form = new \XoopsThemeForm(_AM_SF_IMPORT_SETTINGS, 'import_form', XOOPS_URL . '/modules/smartfaq/admin/' . $scriptname);
50
+            $form = new \XoopsThemeForm(_AM_SF_IMPORT_SETTINGS, 'import_form', XOOPS_URL.'/modules/smartfaq/admin/'.$scriptname);
51 51
 
52 52
             // Categories to be imported
53 53
             $cat_cbox = new \XoopsFormCheckBox(sprintf(_AM_SF_IMPORT_CATEGORIES, $importFromModuleName), 'import_category', -1);
54
-            $result   = $xoopsDB->queryF('SELECT c.catID, c.name, count(t.topicID) FROM ' . $xoopsDB->prefix('faqcategories') . ' AS c, ' . $xoopsDB->prefix('faqtopics') . ' AS t WHERE c.catID=t.catID GROUP BY t.catID ORDER BY c.weight');
54
+            $result   = $xoopsDB->queryF('SELECT c.catID, c.name, count(t.topicID) FROM '.$xoopsDB->prefix('faqcategories').' AS c, '.$xoopsDB->prefix('faqtopics').' AS t WHERE c.catID=t.catID GROUP BY t.catID ORDER BY c.weight');
55 55
             while (list($cid, $cat_title, $count) = $xoopsDB->fetchRow($result)) {
56 56
                 $cat_cbox->addOption($cid, "$cat_title ($count)<br\>");
57 57
             }
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
             ob_end_clean();
66 66
 
67 67
             // Auto-Approve
68
-            $form->addElement(new \XoopsFormRadioYN(_AM_SF_IMPORT_AUTOAPPROVE, 'autoaprove', 1, ' ' . _AM_SF_YES . '', ' ' . _AM_SF_NO . ''));
68
+            $form->addElement(new \XoopsFormRadioYN(_AM_SF_IMPORT_AUTOAPPROVE, 'autoaprove', 1, ' '._AM_SF_YES.'', ' '._AM_SF_NO.''));
69 69
 
70 70
             // Submitted and answered by
71 71
             $memberHandler = xoops_getHandler('member');
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
             $form->addElement($user_select);
79 79
 
80 80
             // Q&As can be commented?
81
-            $form->addElement(new \XoopsFormRadioYN(_AM_SF_IMPORT_ALLOWCOMMENTS, 'cancomment', 1, ' ' . _AM_SF_YES . '', ' ' . _AM_SF_NO . ''));
81
+            $form->addElement(new \XoopsFormRadioYN(_AM_SF_IMPORT_ALLOWCOMMENTS, 'cancomment', 1, ' '._AM_SF_YES.'', ' '._AM_SF_NO.''));
82 82
             $group_list      = $memberHandler->getGroupList();
83 83
             $groups_selected = [];
84 84
             $groups_checkbox = new \XoopsFormCheckBox(_AM_SF_IMPORT_PERMISSIONS, 'groups_read');
@@ -107,13 +107,13 @@  discard block
 block discarded – undo
107 107
         redirect_header($scriptname, 2, _AM_SF_NOCATSELECTED);
108 108
     }
109 109
 
110
-    require_once __DIR__ . '/admin_header.php';
110
+    require_once __DIR__.'/admin_header.php';
111 111
     xoops_cp_header();
112 112
 
113 113
     Smartfaq\Utility::collapsableBar('bottomtable', 'bottomtableicon');
114
-    echo "<img id='bottomtableicon' src=" . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . "/assets/images/icon/close12.gif alt=''></a>&nbsp;" . sprintf(_AM_SF_IMPORT_FROM, $importFromModuleName) . '</h3>';
114
+    echo "<img id='bottomtableicon' src=".XOOPS_URL.'/modules/'.$xoopsModule->dirname()."/assets/images/icon/close12.gif alt=''></a>&nbsp;".sprintf(_AM_SF_IMPORT_FROM, $importFromModuleName).'</h3>';
115 115
     echo "<div id='bottomtable'>";
116
-    echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">' . _AM_SF_IMPORT_RESULT . '</span>';
116
+    echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">'._AM_SF_IMPORT_RESULT.'</span>';
117 117
 
118 118
     $cnt_imported_cat = 0;
119 119
     $cnt_imported_faq = 0;
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
     echo "Can Comment: $cancomment<br>";
143 143
     echo "Auto aprove: $autoaprove<br>";*/
144 144
 
145
-    $resultCat = $xoopsDB->queryF('select * from ' . $xoopsDB->prefix('faqcategories') . " where catID in ($import_category_list) order by weight");
145
+    $resultCat = $xoopsDB->queryF('select * from '.$xoopsDB->prefix('faqcategories')." where catID in ($import_category_list) order by weight");
146 146
 
147 147
     while ($arrCat = $xoopsDB->fetchArray($resultCat)) {
148 148
         extract($arrCat, EXTR_PREFIX_ALL, 'wfc');
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
         $categoryObj->setVar('description', $wfc_description);
158 158
 
159 159
         if (!$categoryObj->store(false)) {
160
-            echo sprintf(_AM_SF_IMPORT_CATEGORY_ERROR, $xcat_name) . '<br>';
160
+            echo sprintf(_AM_SF_IMPORT_CATEGORY_ERROR, $xcat_name).'<br>';
161 161
             continue;
162 162
         }
163 163
 
@@ -165,9 +165,9 @@  discard block
 block discarded – undo
165 165
 
166 166
         ++$cnt_imported_cat;
167 167
 
168
-        echo sprintf(_AM_SF_IMPORT_CATEGORY_SUCCESS, $wfc_name) . "<br\>";
168
+        echo sprintf(_AM_SF_IMPORT_CATEGORY_SUCCESS, $wfc_name)."<br\>";
169 169
 
170
-        $resultFAQ = $xoopsDB->queryF('select * from ' . $xoopsDB->prefix('faqtopics') . " where catID=$wfc_catID order by weight");
170
+        $resultFAQ = $xoopsDB->queryF('select * from '.$xoopsDB->prefix('faqtopics')." where catID=$wfc_catID order by weight");
171 171
         while ($arrFAQ = $xoopsDB->fetchArray($resultFAQ)) {
172 172
             extract($arrFAQ, EXTR_PREFIX_ALL, 'wft');
173 173
 
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
             $faqObj->setVar('exacturl', 0);
200 200
 
201 201
             if (!$faqObj->store(false)) {
202
-                echo sprintf('  ' . _AM_SF_IMPORT_FAQ_ERROR, $wft_question) . '<br>';
202
+                echo sprintf('  '._AM_SF_IMPORT_FAQ_ERROR, $wft_question).'<br>';
203 203
                 continue;
204 204
             } else {
205 205
                 $answerObj->setVar('faqid', $faqObj->faqid());
@@ -208,10 +208,10 @@  discard block
 block discarded – undo
208 208
                 $answerObj->setVar('status', Constants::SF_AN_STATUS_APPROVED);
209 209
 
210 210
                 if (!$answerObj->store()) {
211
-                    echo sprintf('  ' . _AM_SF_IMPORT_FAQ_ERROR) . '<br>';
211
+                    echo sprintf('  '._AM_SF_IMPORT_FAQ_ERROR).'<br>';
212 212
                     continue;
213 213
                 } else {
214
-                    echo '&nbsp;&nbsp;' . sprintf(_AM_SF_IMPORTED_QUESTION, $faqObj->question(50)) . '<br>';
214
+                    echo '&nbsp;&nbsp;'.sprintf(_AM_SF_IMPORTED_QUESTION, $faqObj->question(50)).'<br>';
215 215
                     ++$cnt_imported_faq;
216 216
                 }
217 217
             }
@@ -221,8 +221,8 @@  discard block
 block discarded – undo
221 221
     }
222 222
 
223 223
     echo 'Done.<br>';
224
-    echo sprintf(_AM_SF_IMPORTED_CATEGORIES, $cnt_imported_cat) . '<br>';
225
-    echo sprintf(_AM_SF_IMPORTED_QUESTIONS, $cnt_imported_faq) . '<br>';
224
+    echo sprintf(_AM_SF_IMPORTED_CATEGORIES, $cnt_imported_cat).'<br>';
225
+    echo sprintf(_AM_SF_IMPORTED_QUESTIONS, $cnt_imported_faq).'<br>';
226 226
 
227 227
     exit();
228 228
 }
Please login to merge, or discard this patch.
admin/mygroupperm.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -15,14 +15,14 @@  discard block
 block discarded – undo
15 15
 
16 16
 function myDeleteByModule(\XoopsDatabase $db, $gperm_modid, $gperm_name = null, $gperm_itemid = null)
17 17
 {
18
-    $criteria = new \CriteriaCompo(new \Criteria('gperm_modid', (int)$gperm_modid));
18
+    $criteria = new \CriteriaCompo(new \Criteria('gperm_modid', (int) $gperm_modid));
19 19
     if (null !== $gperm_name) {
20 20
         $criteria->add(new \Criteria('gperm_name', $gperm_name));
21 21
         if (null !== $gperm_itemid) {
22
-            $criteria->add(new \Criteria('gperm_itemid', (int)$gperm_itemid));
22
+            $criteria->add(new \Criteria('gperm_itemid', (int) $gperm_itemid));
23 23
         }
24 24
     }
25
-    $sql = 'DELETE FROM ' . $db->prefix('group_permission') . ' ' . $criteria->renderWhere();
25
+    $sql = 'DELETE FROM '.$db->prefix('group_permission').' '.$criteria->renderWhere();
26 26
     if (!$result = $db->query($sql)) {
27 27
         return false;
28 28
     }
@@ -31,19 +31,19 @@  discard block
 block discarded – undo
31 31
 }
32 32
 
33 33
 // require_once __DIR__ . '/../../../include/cp_header.php'; GIJ
34
-$modid = isset($HTTP_POST_VARS['modid']) ? (int)$HTTP_POST_VARS['modid'] : 1;
34
+$modid = isset($HTTP_POST_VARS['modid']) ? (int) $HTTP_POST_VARS['modid'] : 1;
35 35
 // we dont want system module permissions to be changed here ( 1 -> 0 GIJ)
36 36
 if ($modid <= 0 || !is_object($xoopsUser) || !$xoopsUser->isAdmin($modid)) {
37
-    redirect_header(XOOPS_URL . '/user.php', 1, _NOPERM);
37
+    redirect_header(XOOPS_URL.'/user.php', 1, _NOPERM);
38 38
 }
39 39
 /** @var XoopsModuleHandler $moduleHandler */
40 40
 $moduleHandler = xoops_getHandler('module');
41 41
 $module        = $moduleHandler->get($modid);
42 42
 if (!is_object($module) || !$module->getVar('isactive')) {
43
-    redirect_header(XOOPS_URL . '/admin.php', 1, _MODULENOEXIST);
43
+    redirect_header(XOOPS_URL.'/admin.php', 1, _MODULENOEXIST);
44 44
 }
45 45
 $memberHandler = xoops_getHandler('member');
46
-$group_list    =& $memberHandler->getGroupList();
46
+$group_list    = & $memberHandler->getGroupList();
47 47
 if (is_array($HTTP_POST_VARS['perms']) && !empty($HTTP_POST_VARS['perms'])) {
48 48
     $gpermHandler = xoops_getHandler('groupperm');
49 49
     foreach ($HTTP_POST_VARS['perms'] as $perm_name => $perm_data) {
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
                             foreach ($parent_ids as $pid) {
67 67
                                 if (0 != $pid && !in_array($pid, array_keys($item_ids))) {
68 68
                                     // one of the parent items were not selected, so skip this item
69
-                                    $msg[] = sprintf(_MD_AM_PERMADDNG, '<b>' . $perm_name . '</b>', '<b>' . $perm_data['itemname'][$item_id] . '</b>', '<b>' . $group_list[$group_id] . '</b>') . ' (' . _MD_AM_PERMADDNGP . ')';
69
+                                    $msg[] = sprintf(_MD_AM_PERMADDNG, '<b>'.$perm_name.'</b>', '<b>'.$perm_data['itemname'][$item_id].'</b>', '<b>'.$group_list[$group_id].'</b>').' ('._MD_AM_PERMADDNGP.')';
70 70
                                     continue 2;
71 71
                                 }
72 72
                             }
@@ -77,9 +77,9 @@  discard block
 block discarded – undo
77 77
                         $gperm->setVar('gperm_modid', $modid);
78 78
                         $gperm->setVar('gperm_itemid', $item_id);
79 79
                         if (!$gpermHandler->insert($gperm)) {
80
-                            $msg[] = sprintf(_MD_AM_PERMADDNG, '<b>' . $perm_name . '</b>', '<b>' . $perm_data['itemname'][$item_id] . '</b>', '<b>' . $group_list[$group_id] . '</b>');
80
+                            $msg[] = sprintf(_MD_AM_PERMADDNG, '<b>'.$perm_name.'</b>', '<b>'.$perm_data['itemname'][$item_id].'</b>', '<b>'.$group_list[$group_id].'</b>');
81 81
                         } else {
82
-                            $msg[] = sprintf(_MD_AM_PERMADDOK, '<b>' . $perm_name . '</b>', '<b>' . $perm_data['itemname'][$item_id] . '</b>', '<b>' . $group_list[$group_id] . '</b>');
82
+                            $msg[] = sprintf(_MD_AM_PERMADDOK, '<b>'.$perm_name.'</b>', '<b>'.$perm_data['itemname'][$item_id].'</b>', '<b>'.$group_list[$group_id].'</b>');
83 83
                         }
84 84
                         unset($gperm);
85 85
                     }
Please login to merge, or discard this patch.
admin/admin_header2.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -6,13 +6,13 @@
 block discarded – undo
6 6
  * Licence: GNU
7 7
  */
8 8
 
9
-require_once __DIR__ . '/../../../mainfile.php';
10
-require_once __DIR__ . '/../../../include/cp_header.php';
11
-require_once XOOPS_ROOT_PATH . '/kernel/module.php';
12
-require_once XOOPS_ROOT_PATH . '/class/xoopstree.php';
13
-require_once XOOPS_ROOT_PATH . '/class/xoopslists.php';
14
-require_once XOOPS_ROOT_PATH . '/class/pagenav.php';
15
-require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
9
+require_once __DIR__.'/../../../mainfile.php';
10
+require_once __DIR__.'/../../../include/cp_header.php';
11
+require_once XOOPS_ROOT_PATH.'/kernel/module.php';
12
+require_once XOOPS_ROOT_PATH.'/class/xoopstree.php';
13
+require_once XOOPS_ROOT_PATH.'/class/xoopslists.php';
14
+require_once XOOPS_ROOT_PATH.'/class/pagenav.php';
15
+require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
16 16
 
17 17
 //require_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php';
18 18
 //require_once XOOPS_ROOT_PATH . '/modules/smartfaq/class/category.php';
Please login to merge, or discard this patch.
admin/myblocksadmin.php 2 patches
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -173,22 +173,22 @@  discard block
 block discarded – undo
173 173
             </td>
174 174
             <td class='$class' align='center' nowrap='nowrap'>
175 175
                 <input type='radio' name='side[$bid]' value='"
176
-             . XOOPS_SIDEBLOCK_LEFT
177
-             . "'$ssel0>-<input type='radio' name='side[$bid]' value='"
178
-             . XOOPS_CENTERBLOCK_LEFT
179
-             . "'$ssel2><input type='radio' name='side[$bid]' value='"
180
-             . XOOPS_CENTERBLOCK_CENTER
181
-             . "'$ssel3><input type='radio' name='side[$bid]' value='"
182
-             . XOOPS_CENTERBLOCK_RIGHT
183
-             . "'$ssel4>-<input type='radio' name='side[$bid]' value='"
184
-             . XOOPS_SIDEBLOCK_RIGHT
185
-             . "'$ssel1>
176
+                . XOOPS_SIDEBLOCK_LEFT
177
+                . "'$ssel0>-<input type='radio' name='side[$bid]' value='"
178
+                . XOOPS_CENTERBLOCK_LEFT
179
+                . "'$ssel2><input type='radio' name='side[$bid]' value='"
180
+                . XOOPS_CENTERBLOCK_CENTER
181
+                . "'$ssel3><input type='radio' name='side[$bid]' value='"
182
+                . XOOPS_CENTERBLOCK_RIGHT
183
+                . "'$ssel4>-<input type='radio' name='side[$bid]' value='"
184
+                . XOOPS_SIDEBLOCK_RIGHT
185
+                . "'$ssel1>
186 186
                 <br>
187 187
                 <br>
188 188
                 <input type='radio' name='side[$bid]' value='-1'$sseln>
189 189
                 "
190
-             . _NONE
191
-             . "
190
+                . _NONE
191
+                . "
192 192
             </td>
193 193
             <td class='$class' align='center'>
194 194
                 <input type='text' name=weight[$bid] value='$weight' size='5' maxlength='5' style='text-align:right;'>
@@ -205,8 +205,8 @@  discard block
 block discarded – undo
205 205
             </td>
206 206
             <td class='$class' align='center'>
207 207
                 <a href='admin.php?fct=blocksadmin&amp;op=edit&amp;bid=$bid'>"
208
-             . _EDIT
209
-             . "</a>
208
+                . _EDIT
209
+                . "</a>
210 210
                 <input type='hidden' name='bid[$bid]' value='$bid'>
211 211
             </td>
212 212
         </tr>\n";
@@ -239,14 +239,14 @@  discard block
 block discarded – undo
239 239
     }
240 240
 
241 241
     $form = new GroupPermForm('', 1, 'block_read', "<img id='bottomtableicon' src="
242
-                                                          . XOOPS_URL
243
-                                                          . '/modules/'
244
-                                                          . $xoopsModule->dirname()
245
-                                                          . "/assets/images/icon/close12.gif alt=''></a>&nbsp;"
246
-                                                          . _AM_SF_GROUPS
247
-                                                          . "</h3><div id='bottomtable'><span style=\"color: #567; margin: 3px 0 0 0; font-size: small; display: block; \">"
248
-                                                          . _AM_SF_GROUPSINFO
249
-                                                          . '</span>');
242
+                                                            . XOOPS_URL
243
+                                                            . '/modules/'
244
+                                                            . $xoopsModule->dirname()
245
+                                                            . "/assets/images/icon/close12.gif alt=''></a>&nbsp;"
246
+                                                            . _AM_SF_GROUPS
247
+                                                            . "</h3><div id='bottomtable'><span style=\"color: #567; margin: 3px 0 0 0; font-size: small; display: block; \">"
248
+                                                            . _AM_SF_GROUPSINFO
249
+                                                            . '</span>');
250 250
     $form->addAppendix('module_admin', $xoopsModule->mid(), $xoopsModule->name() . ' ' . _AM_ACTIVERIGHTS);
251 251
     $form->addAppendix('module_read', $xoopsModule->mid(), $xoopsModule->name() . ' ' . _AM_ACCESSRIGHTS);
252 252
     foreach ($item_list as $item_id => $item_name) {
Please login to merge, or discard this patch.
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -14,12 +14,12 @@  discard block
 block discarded – undo
14 14
 
15 15
 use XoopsModules\Smartfaq;
16 16
 
17
-require_once __DIR__ . '/../../../include/cp_header.php';
18
-require_once __DIR__ . '/mygrouppermform.php';
19
-require_once XOOPS_ROOT_PATH . '/class/xoopsblock.php';
17
+require_once __DIR__.'/../../../include/cp_header.php';
18
+require_once __DIR__.'/mygrouppermform.php';
19
+require_once XOOPS_ROOT_PATH.'/class/xoopsblock.php';
20 20
 //require_once XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->dirname() . '/include/functions.php';
21 21
 
22
-$xoops_system_path = XOOPS_ROOT_PATH . '/modules/system';
22
+$xoops_system_path = XOOPS_ROOT_PATH.'/modules/system';
23 23
 
24 24
 // language files
25 25
 $language = $xoopsConfig['language'];
@@ -29,9 +29,9 @@  discard block
 block discarded – undo
29 29
 
30 30
 // to prevent from notice that constants already defined
31 31
 $error_reporting_level = error_reporting(0);
32
-require_once __DIR__ . '/../../system/constants.php';
33
-require_once __DIR__ . "/../../language/$language/admin.php";
34
-require_once __DIR__ . "/../../language/$language/admin/blocksadmin.php";
32
+require_once __DIR__.'/../../system/constants.php';
33
+require_once __DIR__."/../../language/$language/admin.php";
34
+require_once __DIR__."/../../language/$language/admin/blocksadmin.php";
35 35
 //require_once __DIR__ . '/../include/functions.php';
36 36
 error_reporting($error_reporting_level);
37 37
 
@@ -44,13 +44,13 @@  discard block
 block discarded – undo
44 44
 
45 45
 // check $xoopsModule
46 46
 if (!is_object($xoopsModule)) {
47
-    redirect_header(XOOPS_URL . '/user.php', 1, _NOPERM);
47
+    redirect_header(XOOPS_URL.'/user.php', 1, _NOPERM);
48 48
 }
49 49
 
50 50
 // check access right (needs system_admin of BLOCK)
51 51
 $syspermHandler = xoops_getHandler('groupperm');
52 52
 if (!$syspermHandler->checkRight('system_admin', XOOPS_SYSTEM_BLOCK, $xoopsUser->getGroups())) {
53
-    redirect_header(XOOPS_URL . '/user.php', 1, _NOPERM);
53
+    redirect_header(XOOPS_URL.'/user.php', 1, _NOPERM);
54 54
 }
55 55
 
56 56
 // get blocks owned by the module
@@ -77,20 +77,20 @@  discard block
 block discarded – undo
77 77
 
78 78
     // displaying TH
79 79
     Smartfaq\Utility::collapsableBar('toptable', 'toptableicon');
80
-    echo "<img id='toptableicon' src=" . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . "/assets/images/icon/close12.gif alt=''></a>&nbsp;" . _AM_SF_BLOCKS . '</h3>';
80
+    echo "<img id='toptableicon' src=".XOOPS_URL.'/modules/'.$xoopsModule->dirname()."/assets/images/icon/close12.gif alt=''></a>&nbsp;"._AM_SF_BLOCKS.'</h3>';
81 81
     echo "<div id='toptable'>";
82
-    echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">' . _AM_SF_BLOCKSTXT . '</span>';
82
+    echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">'._AM_SF_BLOCKSTXT.'</span>';
83 83
 
84 84
     echo "
85 85
     <form action='admin.php' name='blockadmin' method='post'>
86 86
         <table width='100%' class='outer' cellpadding='4' cellspacing='1'>
87 87
         <tr valign='middle'>
88
-            <th>" . _AM_TITLE . "</th>
89
-            <th align='center' nowrap='nowrap'>" . _AM_SF_POSITION . "</th>
90
-            <th align='center'>" . _AM_WEIGHT . "</th>
91
-            <th align='center'>" . _AM_VISIBLEIN . "</th>
92
-            <th align='center'>" . _AM_BCACHETIME . "</th>
93
-            <th align='center'>" . _AM_ACTION . "</th>
88
+            <th>" . _AM_TITLE."</th>
89
+            <th align='center' nowrap='nowrap'>" . _AM_SF_POSITION."</th>
90
+            <th align='center'>" . _AM_WEIGHT."</th>
91
+            <th align='center'>" . _AM_VISIBLEIN."</th>
92
+            <th align='center'>" . _AM_BCACHETIME."</th>
93
+            <th align='center'>" . _AM_ACTION."</th>
94 94
         </tr>\n";
95 95
 
96 96
     // blocks displaying loop
@@ -140,10 +140,10 @@  discard block
 block discarded – undo
140 140
 
141 141
         // target modules
142 142
         $db            = \XoopsDatabaseFactory::getDatabaseConnection();
143
-        $result        = $db->query('SELECT module_id FROM ' . $db->prefix('block_module_link') . " WHERE block_id='$bid'");
143
+        $result        = $db->query('SELECT module_id FROM '.$db->prefix('block_module_link')." WHERE block_id='$bid'");
144 144
         $selected_mids = [];
145 145
         while (list($selected_mid) = $db->fetchRow($result)) {
146
-            $selected_mids[] = (int)$selected_mid;
146
+            $selected_mids[] = (int) $selected_mid;
147 147
         }
148 148
         /** @var XoopsModuleHandler $moduleHandler */
149 149
         $moduleHandler = xoops_getHandler('module');
@@ -157,9 +157,9 @@  discard block
 block discarded – undo
157 157
         $myts           = \MyTextSanitizer::getInstance();
158 158
         foreach ($module_list as $mid => $mname) {
159 159
             if (in_array($mid, $selected_mids)) {
160
-                $module_options .= "<option value='$mid' selected>" . $myts->displayTarea($mname) . "</option>\n";
160
+                $module_options .= "<option value='$mid' selected>".$myts->displayTarea($mname)."</option>\n";
161 161
             } else {
162
-                $module_options .= "<option value='$mid'>" . $myts->displayTarea($mname) . "</option>\n";
162
+                $module_options .= "<option value='$mid'>".$myts->displayTarea($mname)."</option>\n";
163 163
             }
164 164
         }
165 165
 
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
             <td class='foot' align='center' colspan='6'>
220 220
                 <input type='hidden' name='fct' value='blocksadmin'>
221 221
                 <input type='hidden' name='op' value='order'>
222
-                <input type='submit' name='submit' value='" . _SUBMIT . "'>
222
+                <input type='submit' name='submit' value='" . _SUBMIT."'>
223 223
             </td>
224 224
         </tr>
225 225
         </table>
@@ -247,8 +247,8 @@  discard block
 block discarded – undo
247 247
                                                           . "</h3><div id='bottomtable'><span style=\"color: #567; margin: 3px 0 0 0; font-size: small; display: block; \">"
248 248
                                                           . _AM_SF_GROUPSINFO
249 249
                                                           . '</span>');
250
-    $form->addAppendix('module_admin', $xoopsModule->mid(), $xoopsModule->name() . ' ' . _AM_ACTIVERIGHTS);
251
-    $form->addAppendix('module_read', $xoopsModule->mid(), $xoopsModule->name() . ' ' . _AM_ACCESSRIGHTS);
250
+    $form->addAppendix('module_admin', $xoopsModule->mid(), $xoopsModule->name().' '._AM_ACTIVERIGHTS);
251
+    $form->addAppendix('module_read', $xoopsModule->mid(), $xoopsModule->name().' '._AM_ACCESSRIGHTS);
252 252
     foreach ($item_list as $item_id => $item_name) {
253 253
         $form->addItem($item_id, $myts->displayTarea($item_name));
254 254
     }
@@ -257,14 +257,14 @@  discard block
 block discarded – undo
257 257
 }
258 258
 
259 259
 if (!empty($_POST['submit'])) {
260
-    include __DIR__ . '/mygroupperm.php';
260
+    include __DIR__.'/mygroupperm.php';
261 261
     require_once "$xoops_system_path/language/$language/admin.php";
262
-    redirect_header(XOOPS_URL . '/modules/' . $xoopsModule->dirname() . '/admin/myblocksadmin.php', 1, _AM_DBUPDATED);
262
+    redirect_header(XOOPS_URL.'/modules/'.$xoopsModule->dirname().'/admin/myblocksadmin.php', 1, _AM_DBUPDATED);
263 263
 }
264 264
 
265 265
 xoops_cp_header();
266 266
 if (file_exists('./mymenu.php')) {
267
-    include __DIR__ . '/mymenu.php';
267
+    include __DIR__.'/mymenu.php';
268 268
 }
269 269
 
270 270
 list_blocks();
Please login to merge, or discard this patch.