Completed
Branch master (1b2f30)
by Michael
06:29 queued 03:22
created
admin/index.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -17,8 +17,8 @@  discard block
 block discarded – undo
17 17
  * @author       XOOPS Development Team
18 18
  */
19 19
 
20
-require_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php';
21
-include_once __DIR__ . '/admin_header.php';
20
+require_once dirname(dirname(dirname(__DIR__))).'/include/cp_header.php';
21
+include_once __DIR__.'/admin_header.php';
22 22
 
23 23
 xoops_cp_header();
24 24
 
@@ -72,34 +72,34 @@  discard block
 block discarded – undo
72 72
 $indexAdmin->addInfoBox(_AM_SF_INVENTORY);
73 73
 
74 74
 if ($totalcategories > 0) {
75
-    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>' . '<a href="category.php">' . _AM_SF_TOTALCAT . '</a><b>' . '</infolabel>', $totalcategories, 'Green');
75
+    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>'.'<a href="category.php">'._AM_SF_TOTALCAT.'</a><b>'.'</infolabel>', $totalcategories, 'Green');
76 76
 } else {
77
-    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>' . _AM_SF_TOTALCAT . '</infolabel>', $totalcategories, 'Green');
77
+    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>'._AM_SF_TOTALCAT.'</infolabel>', $totalcategories, 'Green');
78 78
 }
79 79
 if ($totalasked > 0) {
80
-    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>' . '<a href="main.php">' . _AM_SF_TOTALASKED . '</a><b>' . '</infolabel>', $totalasked, 'Green');
80
+    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>'.'<a href="main.php">'._AM_SF_TOTALASKED.'</a><b>'.'</infolabel>', $totalasked, 'Green');
81 81
 } else {
82
-    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>' . _AM_SF_TOTALASKED . '</infolabel>', $totalasked, 'Green');
82
+    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>'._AM_SF_TOTALASKED.'</infolabel>', $totalasked, 'Green');
83 83
 }
84 84
 if ($totalopened > 0) {
85
-    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>' . '<a href="question.php">' . _AM_SF_TOTALOPENED . '</a><b>' . '</infolabel>', $totalopened, 'Red');
85
+    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>'.'<a href="question.php">'._AM_SF_TOTALOPENED.'</a><b>'.'</infolabel>', $totalopened, 'Red');
86 86
 } else {
87
-    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>' . _AM_SF_TOTALOPENED . '</infolabel>', $totalopened, 'Green');
87
+    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>'._AM_SF_TOTALOPENED.'</infolabel>', $totalopened, 'Green');
88 88
 }
89 89
 if ($totalsubmitted > 0) {
90
-    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>' . '<a href="category.php">' . _AM_SF_TOTALSUBMITTED . '</a><b>' . '</infolabel>', $totalsubmitted, 'Green');
90
+    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>'.'<a href="category.php">'._AM_SF_TOTALSUBMITTED.'</a><b>'.'</infolabel>', $totalsubmitted, 'Green');
91 91
 } else {
92
-    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>' . _AM_SF_TOTALSUBMITTED . '</infolabel>', $totalsubmitted, 'Green');
92
+    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>'._AM_SF_TOTALSUBMITTED.'</infolabel>', $totalsubmitted, 'Green');
93 93
 }
94 94
 if ($totalpublished > 0) {
95
-    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>' . '<a href="faq.php">' . _AM_SF_TOTALPUBLISHED . '</a><b>' . '</infolabel>', $totalpublished, 'Green');
95
+    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>'.'<a href="faq.php">'._AM_SF_TOTALPUBLISHED.'</a><b>'.'</infolabel>', $totalpublished, 'Green');
96 96
 } else {
97
-    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>' . _AM_SF_TOTALPUBLISHED . '</infolabel>', $totalpublished, 'Green');
97
+    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>'._AM_SF_TOTALPUBLISHED.'</infolabel>', $totalpublished, 'Green');
98 98
 }
99 99
 if ($totalnewanswers > 0) {
100
-    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>' . '<a href="main.php">' . _AM_SF_TOTALNEWANSWERS . '</a><b>' . '</infolabel>', $totalnewanswers, 'Red');
100
+    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>'.'<a href="main.php">'._AM_SF_TOTALNEWANSWERS.'</a><b>'.'</infolabel>', $totalnewanswers, 'Red');
101 101
 } else {
102
-    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>' . _AM_SF_TOTALNEWANSWERS . '</infolabel>', $totalnewanswers, 'Green');
102
+    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>'._AM_SF_TOTALNEWANSWERS.'</infolabel>', $totalnewanswers, 'Green');
103 103
 }
104 104
 
105 105
 //----------------------
@@ -107,4 +107,4 @@  discard block
 block discarded – undo
107 107
 echo $indexAdmin->addNavigation(basename(__FILE__));
108 108
 echo $indexAdmin->renderIndex();
109 109
 
110
-include_once __DIR__ . '/admin_footer.php';
110
+include_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
admin/myblocksadmin.php 1 patch
Spacing   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -12,12 +12,12 @@  discard block
 block discarded – undo
12 12
 //                          GIJOE <http://www.peak.ne.jp/>                   //
13 13
 // ------------------------------------------------------------------------- //
14 14
 
15
-include_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php';
15
+include_once dirname(dirname(dirname(__DIR__))).'/include/cp_header.php';
16 16
 include_once 'mygrouppermform.php';
17
-include_once(XOOPS_ROOT_PATH . '/class/xoopsblock.php');
18
-include_once XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->dirname() . '/include/functions.php';
17
+include_once(XOOPS_ROOT_PATH.'/class/xoopsblock.php');
18
+include_once XOOPS_ROOT_PATH.'/modules/'.$xoopsModule->dirname().'/include/functions.php';
19 19
 
20
-$xoops_system_path = XOOPS_ROOT_PATH . '/modules/system';
20
+$xoops_system_path = XOOPS_ROOT_PATH.'/modules/system';
21 21
 
22 22
 // language files
23 23
 $language = $xoopsConfig['language'];
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 include_once("$xoops_system_path/constants.php");
31 31
 include_once("$xoops_system_path/language/$language/admin.php");
32 32
 include_once("$xoops_system_path/language/$language/admin/blocksadmin.php");
33
-include_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php';
33
+include_once XOOPS_ROOT_PATH.'/modules/smartfaq/include/functions.php';
34 34
 error_reporting($error_reporting_level);
35 35
 
36 36
 $group_defs = file("$xoops_system_path/language/$language/admin/groups.php");
@@ -42,13 +42,13 @@  discard block
 block discarded – undo
42 42
 
43 43
 // check $xoopsModule
44 44
 if (!is_object($xoopsModule)) {
45
-    redirect_header(XOOPS_URL . '/user.php', 1, _NOPERM);
45
+    redirect_header(XOOPS_URL.'/user.php', 1, _NOPERM);
46 46
 }
47 47
 
48 48
 // check access right (needs system_admin of BLOCK)
49 49
 $syspermHandler = xoops_getHandler('groupperm');
50 50
 if (!$syspermHandler->checkRight('system_admin', XOOPS_SYSTEM_BLOCK, $xoopsUser->getGroups())) {
51
-    redirect_header(XOOPS_URL . '/user.php', 1, _NOPERM);
51
+    redirect_header(XOOPS_URL.'/user.php', 1, _NOPERM);
52 52
 }
53 53
 
54 54
 // get blocks owned by the module
@@ -63,20 +63,20 @@  discard block
 block discarded – undo
63 63
 
64 64
     // displaying TH
65 65
     sf_collapsableBar('toptable', 'toptableicon');
66
-    echo "<img id='toptableicon' src=" . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . "/assets/images/icon/close12.gif alt='' /></a>&nbsp;" . _AM_SF_BLOCKS . '</h3>';
66
+    echo "<img id='toptableicon' src=".XOOPS_URL.'/modules/'.$xoopsModule->dirname()."/assets/images/icon/close12.gif alt='' /></a>&nbsp;"._AM_SF_BLOCKS.'</h3>';
67 67
     echo "<div id='toptable'>";
68
-    echo "<span style=\"color: #567; margin: 3px 0 12px 0; font-size: small; display: block; \">" . _AM_SF_BLOCKSTXT . '</span>';
68
+    echo "<span style=\"color: #567; margin: 3px 0 12px 0; font-size: small; display: block; \">"._AM_SF_BLOCKSTXT.'</span>';
69 69
 
70 70
     echo "
71 71
     <form action='admin.php' name='blockadmin' method='post'>
72 72
         <table width='100%' class='outer' cellpadding='4' cellspacing='1'>
73 73
         <tr valign='middle'>
74
-            <th>" . _AM_TITLE . "</th>
75
-            <th align='center' nowrap='nowrap'>" . _AM_SF_POSITION . "</th>
76
-            <th align='center'>" . _AM_WEIGHT . "</th>
77
-            <th align='center'>" . _AM_VISIBLEIN . "</th>
78
-            <th align='center'>" . _AM_BCACHETIME . "</th>
79
-            <th align='center'>" . _AM_ACTION . "</th>
74
+            <th>" . _AM_TITLE."</th>
75
+            <th align='center' nowrap='nowrap'>" . _AM_SF_POSITION."</th>
76
+            <th align='center'>" . _AM_WEIGHT."</th>
77
+            <th align='center'>" . _AM_VISIBLEIN."</th>
78
+            <th align='center'>" . _AM_BCACHETIME."</th>
79
+            <th align='center'>" . _AM_ACTION."</th>
80 80
         </tr>\n";
81 81
 
82 82
     // blocks displaying loop
@@ -126,10 +126,10 @@  discard block
 block discarded – undo
126 126
 
127 127
         // target modules
128 128
         $db            = XoopsDatabaseFactory::getDatabaseConnection();
129
-        $result        = $db->query('SELECT module_id FROM ' . $db->prefix('block_module_link') . " WHERE block_id='$bid'");
129
+        $result        = $db->query('SELECT module_id FROM '.$db->prefix('block_module_link')." WHERE block_id='$bid'");
130 130
         $selected_mids = array();
131 131
         while (list($selected_mid) = $db->fetchRow($result)) {
132
-            $selected_mids[] = (int)$selected_mid;
132
+            $selected_mids[] = (int) $selected_mid;
133 133
         }
134 134
         $moduleHandler = xoops_getHandler('module');
135 135
         $criteria      = new CriteriaCompo(new Criteria('hasmain', 1));
@@ -142,9 +142,9 @@  discard block
 block discarded – undo
142 142
         $myts           = MyTextSanitizer::getInstance();
143 143
         foreach ($module_list as $mid => $mname) {
144 144
             if (in_array($mid, $selected_mids)) {
145
-                $module_options .= "<option value='$mid' selected='selected'>" . $myts->displayTarea($mname) . "</option>\n";
145
+                $module_options .= "<option value='$mid' selected='selected'>".$myts->displayTarea($mname)."</option>\n";
146 146
             } else {
147
-                $module_options .= "<option value='$mid'>" . $myts->displayTarea($mname) . "</option>\n";
147
+                $module_options .= "<option value='$mid'>".$myts->displayTarea($mname)."</option>\n";
148 148
             }
149 149
         }
150 150
 
@@ -157,11 +157,11 @@  discard block
 block discarded – undo
157 157
                 <input type='text' name='title[$bid]' value='$title' size='20' />
158 158
             </td>
159 159
             <td class='$class' align='center' nowrap='nowrap'>
160
-                <input type='radio' name='side[$bid]' value='" . XOOPS_SIDEBLOCK_LEFT . "'$ssel0 />-<input type='radio' name='side[$bid]' value='" . XOOPS_CENTERBLOCK_LEFT . "'$ssel2 /><input type='radio' name='side[$bid]' value='" . XOOPS_CENTERBLOCK_CENTER . "'$ssel3 /><input type='radio' name='side[$bid]' value='" . XOOPS_CENTERBLOCK_RIGHT . "'$ssel4 />-<input type='radio' name='side[$bid]' value='" . XOOPS_SIDEBLOCK_RIGHT . "'$ssel1 />
160
+                <input type='radio' name='side[$bid]' value='".XOOPS_SIDEBLOCK_LEFT."'$ssel0 />-<input type='radio' name='side[$bid]' value='".XOOPS_CENTERBLOCK_LEFT."'$ssel2 /><input type='radio' name='side[$bid]' value='".XOOPS_CENTERBLOCK_CENTER."'$ssel3 /><input type='radio' name='side[$bid]' value='".XOOPS_CENTERBLOCK_RIGHT."'$ssel4 />-<input type='radio' name='side[$bid]' value='".XOOPS_SIDEBLOCK_RIGHT."'$ssel1 />
161 161
                 <br />
162 162
                 <br />
163 163
                 <input type='radio' name='side[$bid]' value='-1'$sseln />
164
-                " . _NONE . "
164
+                "._NONE."
165 165
             </td>
166 166
             <td class='$class' align='center'>
167 167
                 <input type='text' name=weight[$bid] value='$weight' size='5' maxlength='5' style='text-align:right;' />
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
                 </select>
178 178
             </td>
179 179
             <td class='$class' align='center'>
180
-                <a href='admin.php?fct=blocksadmin&amp;op=edit&amp;bid=$bid'>" . _EDIT . "</a>
180
+                <a href='admin.php?fct=blocksadmin&amp;op=edit&amp;bid=$bid'>"._EDIT."</a>
181 181
                 <input type='hidden' name='bid[$bid]' value='$bid' />
182 182
             </td>
183 183
         </tr>\n";
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
             <td class='foot' align='center' colspan='6'>
191 191
                 <input type='hidden' name='fct' value='blocksadmin' />
192 192
                 <input type='hidden' name='op' value='order' />
193
-                <input type='submit' name='submit' value='" . _SUBMIT . "' />
193
+                <input type='submit' name='submit' value='" . _SUBMIT."' />
194 194
             </td>
195 195
         </tr>
196 196
         </table>
@@ -209,9 +209,9 @@  discard block
 block discarded – undo
209 209
         $item_list[$block_arr[$i]->getVar('bid')] = $block_arr[$i]->getVar('title');
210 210
     }
211 211
 
212
-    $form = new MyXoopsGroupPermForm('', 1, 'block_read', "<img id='bottomtableicon' src=" . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . "/assets/images/icon/close12.gif alt='' /></a>&nbsp;" . _AM_SF_GROUPS . "</h3><div id='bottomtable'><span style=\"color: #567; margin: 3px 0 0 0; font-size: small; display: block; \">" . _AM_SF_GROUPSINFO . '</span>');
213
-    $form->addAppendix('module_admin', $xoopsModule->mid(), $xoopsModule->name() . ' ' . _AM_ACTIVERIGHTS);
214
-    $form->addAppendix('module_read', $xoopsModule->mid(), $xoopsModule->name() . ' ' . _AM_ACCESSRIGHTS);
212
+    $form = new MyXoopsGroupPermForm('', 1, 'block_read', "<img id='bottomtableicon' src=".XOOPS_URL.'/modules/'.$xoopsModule->dirname()."/assets/images/icon/close12.gif alt='' /></a>&nbsp;"._AM_SF_GROUPS."</h3><div id='bottomtable'><span style=\"color: #567; margin: 3px 0 0 0; font-size: small; display: block; \">"._AM_SF_GROUPSINFO.'</span>');
213
+    $form->addAppendix('module_admin', $xoopsModule->mid(), $xoopsModule->name().' '._AM_ACTIVERIGHTS);
214
+    $form->addAppendix('module_read', $xoopsModule->mid(), $xoopsModule->name().' '._AM_ACCESSRIGHTS);
215 215
     foreach ($item_list as $item_id => $item_name) {
216 216
         $form->addItem($item_id, $myts->displayTarea($item_name));
217 217
     }
@@ -220,9 +220,9 @@  discard block
 block discarded – undo
220 220
 }
221 221
 
222 222
 if (!empty($_POST['submit'])) {
223
-    include __DIR__ . '/mygroupperm.php';
223
+    include __DIR__.'/mygroupperm.php';
224 224
     include_once("$xoops_system_path/language/$language/admin.php");
225
-    redirect_header(XOOPS_URL . '/modules/' . $xoopsModule->dirname() . '/admin/myblocksadmin.php', 1, _AM_DBUPDATED);
225
+    redirect_header(XOOPS_URL.'/modules/'.$xoopsModule->dirname().'/admin/myblocksadmin.php', 1, _AM_DBUPDATED);
226 226
 }
227 227
 
228 228
 xoops_cp_header();
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
@@ -17,6 +17,6 @@
 block discarded – undo
17 17
  * @author       XOOPS Development Team
18 18
  */
19 19
 
20
-echo "<div class='adminfooter'>\n" . "  <div style='text-align: center;'>\n" . "    <a href='http://www.xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" . "  </div>\n" . '  ' . _AM_MODULEADMIN_ADMIN_FOOTER . "\n" . '</div>';
20
+echo "<div class='adminfooter'>\n"."  <div style='text-align: center;'>\n"."    <a href='http://www.xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n"."  </div>\n".'  '._AM_MODULEADMIN_ADMIN_FOOTER."\n".'</div>';
21 21
 
22 22
 xoops_cp_footer();
Please login to merge, or discard this patch.
admin/question.php 1 patch
Spacing   +38 added lines, -38 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
-include_once __DIR__ . '/admin_header.php';
9
+include_once __DIR__.'/admin_header.php';
10 10
 
11 11
 // Creating the faq handler object
12 12
 $faqHandler = sf_gethandler('faq');
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 }
24 24
 
25 25
 // Where shall we start?
26
-$startfaq = isset($_GET['startfaq']) ? (int)$_GET['startfaq'] : 0;
26
+$startfaq = isset($_GET['startfaq']) ? (int) $_GET['startfaq'] : 0;
27 27
 
28 28
 /**
29 29
  * @param bool $showmenu
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 {
34 34
     global $faqHandler, $categoryHandler, $xoopsUser, $xoopsUser, $xoopsConfig, $xoopsDB, $modify, $xoopsModuleConfig, $xoopsModule, $XOOPS_URL, $myts;
35 35
 
36
-    include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
36
+    include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
37 37
     // If there is a parameter, and the id exists, retrieve data: we're editing a faq
38 38
     if ($faqid != -1) {
39 39
         // Creating the FAQ object
@@ -65,12 +65,12 @@  discard block
 block discarded – undo
65 65
 
66 66
         echo "<br />\n";
67 67
         sf_collapsableBar('bottomtable', 'bottomtableicon');
68
-        echo "<img id='bottomtableicon' src=" . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . "/assets/images/icon/close12.gif alt='' /></a>&nbsp;" . $collapsableBar_title . '</h3>';
68
+        echo "<img id='bottomtableicon' src=".XOOPS_URL.'/modules/'.$xoopsModule->dirname()."/assets/images/icon/close12.gif alt='' /></a>&nbsp;".$collapsableBar_title.'</h3>';
69 69
         echo "<div id='bottomtable'>";
70
-        echo "<span style=\"color: #567; margin: 3px 0 12px 0; font-size: small; display: block; \">" . $collapsableBar_info . '</span>';
70
+        echo "<span style=\"color: #567; margin: 3px 0 12px 0; font-size: small; display: block; \">".$collapsableBar_info.'</span>';
71 71
     } else {
72 72
         // there's no parameter, so we're adding a faq
73
-        $faqObj =& $faqHandler->create();
73
+        $faqObj = & $faqHandler->create();
74 74
         $faqObj->setVar('uid', $xoopsUser->getVar('uid'));
75 75
         $categoryObj = $categoryHandler->create();
76 76
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         $button_caption    = _AM_SF_CREATE;
79 79
 
80 80
         sf_collapsableBar('bottomtable', 'bottomtableicon');
81
-        echo "<img id='bottomtableicon' src=" . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . "/assets/images/icon/close12.gif alt='' /></a>&nbsp;" . _AM_SF_CREATEQUESTION . '</h3>';
81
+        echo "<img id='bottomtableicon' src=".XOOPS_URL.'/modules/'.$xoopsModule->dirname()."/assets/images/icon/close12.gif alt='' /></a>&nbsp;"._AM_SF_CREATEQUESTION.'</h3>';
82 82
         echo "<div id='bottomtable'>";
83 83
     }
84 84
     $sform = new XoopsThemeForm(_AM_SF_OPEN_QUESTION, 'op', xoops_getenv('PHP_SELF'));
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
         $button_tray->addElement($butt_create);
153 153
 
154 154
         $butt_edit = new XoopsFormButton('', '', _AM_SF_OPEN_QUESTION_EDIT, 'button');
155
-        $butt_edit->setExtra("onclick=\"location='faq.php?op=mod&amp;faqid=" . $faqid . "'\"");
155
+        $butt_edit->setExtra("onclick=\"location='faq.php?op=mod&amp;faqid=".$faqid."'\"");
156 156
         $button_tray->addElement($butt_edit);
157 157
 
158 158
         $butt_cancel = new XoopsFormButton('', '', _AM_SF_CANCEL, 'button');
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
         xoops_cp_header();
185 185
 
186 186
         echo $indexAdmin->addNavigation(basename(__FILE__));
187
-        include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
187
+        include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
188 188
 
189 189
         editfaq(true, $faqid);
190 190
         break;
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
             $uid = $xoopsUser->uid();
203 203
         }
204 204
 
205
-        $faqid = isset($_POST['faqid']) ? (int)$_POST['faqid'] : -1;
205
+        $faqid = isset($_POST['faqid']) ? (int) $_POST['faqid'] : -1;
206 206
 
207 207
         // Creating the FAQ
208 208
         if ($faqid != -1) {
@@ -213,9 +213,9 @@  discard block
 block discarded – undo
213 213
 
214 214
         // Putting the values in the FAQ object
215 215
         $faqObj->setGroups_read(isset($_POST['groups']) ? $_POST['groups'] : array());
216
-        $faqObj->setVar('categoryid', isset($_POST['categoryid']) ? (int)$_POST['categoryid'] : 0);
216
+        $faqObj->setVar('categoryid', isset($_POST['categoryid']) ? (int) $_POST['categoryid'] : 0);
217 217
         $faqObj->setVar('question', $_POST['question']);
218
-        $faqObj->setVar('status', isset($_POST['status']) ? (int)$_POST['status'] : _SF_STATUS_ASKED);
218
+        $faqObj->setVar('status', isset($_POST['status']) ? (int) $_POST['status'] : _SF_STATUS_ASKED);
219 219
 
220 220
         $notifToDo = null;
221 221
 
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
 
248 248
         // Storing the FAQ
249 249
         if (!$faqObj->store()) {
250
-            redirect_header('javascript:history.go(-1)', 3, _AM_SF_ERROR . sf_formatErrors($faqObj->getErrors()));
250
+            redirect_header('javascript:history.go(-1)', 3, _AM_SF_ERROR.sf_formatErrors($faqObj->getErrors()));
251 251
         }
252 252
 
253 253
         // Send notifications
@@ -265,8 +265,8 @@  discard block
 block discarded – undo
265 265
         $module_id    = $xoopsModule->getVar('mid');
266 266
         $gpermHandler = xoops_getHandler('groupperm');
267 267
 
268
-        $faqid = isset($_POST['faqid']) ? (int)$_POST['faqid'] : 0;
269
-        $faqid = isset($_GET['faqid']) ? (int)$_GET['faqid'] : $faqid;
268
+        $faqid = isset($_POST['faqid']) ? (int) $_POST['faqid'] : 0;
269
+        $faqid = isset($_GET['faqid']) ? (int) $_GET['faqid'] : $faqid;
270 270
 
271 271
         $faqObj = new sfFaq($faqid);
272 272
 
@@ -281,9 +281,9 @@  discard block
 block discarded – undo
281 281
             redirect_header('question.php', 2, sprintf(_AM_SF_QUESTIONISDELETED, $faqObj->question()));
282 282
         } else {
283 283
             // no confirm: show deletion condition
284
-            $faqid = isset($_GET['faqid']) ? (int)$_GET['faqid'] : 0;
284
+            $faqid = isset($_GET['faqid']) ? (int) $_GET['faqid'] : 0;
285 285
             xoops_cp_header();
286
-            xoops_confirm(array('op' => 'del', 'faqid' => $faqObj->faqid(), 'confirm' => 1, 'name' => $faqObj->question()), 'question.php', _AM_SF_DELETETHISQUESTION . " <br />'" . $faqObj->question() . "'. <br /> <br />", _AM_SF_DELETE);
286
+            xoops_confirm(array('op' => 'del', 'faqid' => $faqObj->faqid(), 'confirm' => 1, 'name' => $faqObj->question()), 'question.php', _AM_SF_DELETETHISQUESTION." <br />'".$faqObj->question()."'. <br /> <br />", _AM_SF_DELETE);
287 287
             xoops_cp_footer();
288 288
         }
289 289
 
@@ -296,8 +296,8 @@  discard block
 block discarded – undo
296 296
         xoops_cp_header();
297 297
         echo $indexAdmin->addNavigation(basename(__FILE__));
298 298
 
299
-        include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
300
-        include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
299
+        include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
300
+        include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
301 301
 
302 302
         global $xoopsUser, $xoopsUser, $xoopsConfig, $xoopsDB, $xoopsModuleConfig, $xoopsModule, $smartModuleConfig;
303 303
 
@@ -305,9 +305,9 @@  discard block
 block discarded – undo
305 305
 
306 306
         sf_collapsableBar('toptable', 'toptableicon');
307 307
 
308
-        echo "<img id='toptableicon' src=" . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . "/assets/images/icon/close12.gif alt='' /></a>&nbsp;" . _AM_SF_OPENED_TITLE . '</h3>';
308
+        echo "<img id='toptableicon' src=".XOOPS_URL.'/modules/'.$xoopsModule->dirname()."/assets/images/icon/close12.gif alt='' /></a>&nbsp;"._AM_SF_OPENED_TITLE.'</h3>';
309 309
         echo "<div id='toptable'>";
310
-        echo "<span style=\"color: #567; margin: 3px 0 12px 0; font-size: small; display: block; \">" . _AM_SF_OPENED_DSC . '</span>';
310
+        echo "<span style=\"color: #567; margin: 3px 0 12px 0; font-size: small; display: block; \">"._AM_SF_OPENED_DSC.'</span>';
311 311
 
312 312
         // Get the total number of published FAQs
313 313
         $totalfaqs = $faqHandler->getFaqsCount(-1, array(_SF_STATUS_OPENED));
@@ -317,48 +317,48 @@  discard block
 block discarded – undo
317 317
         $allcats         = $categoryHandler->getObjects(null, true);
318 318
         echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>";
319 319
         echo '<tr>';
320
-        echo "<th width='40' class='bg3' align='center'><b>" . _AM_SF_ARTID . '</b></td>';
321
-        echo "<th width='20%' class='bg3' align='left'><b>" . _AM_SF_ARTCOLNAME . '</b></td>';
322
-        echo "<th class='bg3' align='left'><b>" . _AM_SF_QUESTION . '</b></td>';
320
+        echo "<th width='40' class='bg3' align='center'><b>"._AM_SF_ARTID.'</b></td>';
321
+        echo "<th width='20%' class='bg3' align='left'><b>"._AM_SF_ARTCOLNAME.'</b></td>';
322
+        echo "<th class='bg3' align='left'><b>"._AM_SF_QUESTION.'</b></td>';
323 323
 
324
-        echo "<th width='90' class='bg3' align='center'><b>" . _AM_SF_ASKED . '</b></td>';
324
+        echo "<th width='90' class='bg3' align='center'><b>"._AM_SF_ASKED.'</b></td>';
325 325
 
326
-        echo "<th width='90' class='bg3' align='center'><b>" . _AM_SF_CREATED . '</b></td>';
327
-        echo "<th width='60' class='bg3' align='center'><b>" . _AM_SF_ACTION . '</b></td>';
326
+        echo "<th width='90' class='bg3' align='center'><b>"._AM_SF_CREATED.'</b></td>';
327
+        echo "<th width='60' class='bg3' align='center'><b>"._AM_SF_ACTION.'</b></td>';
328 328
         echo '</tr>';
329 329
         //var_dump( $faqsObj);
330 330
         if ($totalfaqs > 0) {
331 331
             global $pathIcon16;
332 332
             foreach (array_keys($faqsObj) as $i) {
333
-                $categoryObj =& $allcats[$faqsObj[$i]->categoryid()];
333
+                $categoryObj = & $allcats[$faqsObj[$i]->categoryid()];
334 334
 
335
-                $modify = "<a href='question.php?op=mod&amp;faqid=" . $faqsObj[$i]->faqid() . "'><img src='" . $pathIcon16 . '/edit.png' . "' title='" . _AM_SF_EDITART . "' alt='" . _AM_SF_EDITART . "'></a>";
336
-                $delete = "<a href='question.php?op=del&amp;faqid=" . $faqsObj[$i]->faqid() . "'><img src='" . $pathIcon16 . '/delete.png' . "' title='" . _AM_SF_DELETEART . "' alt='" . _AM_SF_DELETEART . "'></a>";
335
+                $modify = "<a href='question.php?op=mod&amp;faqid=".$faqsObj[$i]->faqid()."'><img src='".$pathIcon16.'/edit.png'."' title='"._AM_SF_EDITART."' alt='"._AM_SF_EDITART."'></a>";
336
+                $delete = "<a href='question.php?op=del&amp;faqid=".$faqsObj[$i]->faqid()."'><img src='".$pathIcon16.'/delete.png'."' title='"._AM_SF_DELETEART."' alt='"._AM_SF_DELETEART."'></a>";
337 337
 
338 338
                 $requester = sf_getLinkedUnameFromId($faqsObj[$i]->uid(), $smartModuleConfig['userealname']);
339 339
 
340 340
                 echo '<tr>';
341
-                echo "<td class='head' align='center'>" . $faqsObj[$i]->faqid() . '</td>';
342
-                echo "<td class='even' align='left'>" . $categoryObj->name() . '</td>';
343
-                echo "<td class='even' align='left'><a href='" . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . '/answer.php?faqid=' . $faqsObj[$i]->faqid() . "'>" . $faqsObj[$i]->question(100) . '</a></td>';
341
+                echo "<td class='head' align='center'>".$faqsObj[$i]->faqid().'</td>';
342
+                echo "<td class='even' align='left'>".$categoryObj->name().'</td>';
343
+                echo "<td class='even' align='left'><a href='".XOOPS_URL.'/modules/'.$xoopsModule->dirname().'/answer.php?faqid='.$faqsObj[$i]->faqid()."'>".$faqsObj[$i]->question(100).'</a></td>';
344 344
 
345
-                echo "<td class='even' align='center'>" . $requester . '</td>';
345
+                echo "<td class='even' align='center'>".$requester.'</td>';
346 346
 
347
-                echo "<td class='even' align='center'>" . $faqsObj[$i]->datesub('s') . '</td>';
347
+                echo "<td class='even' align='center'>".$faqsObj[$i]->datesub('s').'</td>';
348 348
                 echo "<td class='even' align='center'> $modify $delete </td>";
349 349
                 echo '</tr>';
350 350
             }
351 351
         } else {
352 352
             $faqid = -1;
353 353
             echo '<tr>';
354
-            echo "<td class='head' align='center' colspan= '7'>" . _AM_SF_NOQUEUED . '</td>';
354
+            echo "<td class='head' align='center' colspan= '7'>"._AM_SF_NOQUEUED.'</td>';
355 355
             echo '</tr>';
356 356
         }
357 357
         echo "</table>\n";
358 358
         echo "<br />\n";
359 359
 
360 360
         $pagenav = new XoopsPageNav($totalfaqs, $xoopsModuleConfig['perpage'], $startfaq, 'startfaq');
361
-        echo '<div style="text-align:right;">' . $pagenav->renderNav() . '</div>';
361
+        echo '<div style="text-align:right;">'.$pagenav->renderNav().'</div>';
362 362
         echo '</div>';
363 363
 
364 364
         $totalcategories = $categoryHandler->getCategoriesCount(-1);
@@ -369,4 +369,4 @@  discard block
 block discarded – undo
369 369
         break;
370 370
 }
371 371
 
372
-include_once __DIR__ . '/admin_footer.php';
372
+include_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
admin/about2.php 1 patch
Spacing   +36 added lines, -36 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
-include_once __DIR__ . '/admin_header.php';
9
+include_once __DIR__.'/admin_header.php';
10 10
 $myts = MyTextSanitizer::getInstance();
11 11
 
12 12
 global $xoopsModule;
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 xoops_cp_header();
15 15
 
16 16
 $moduleHandler = xoops_getHandler('module');
17
-$versioninfo   =& $moduleHandler->get($xoopsModule->getVar('mid'));
17
+$versioninfo   = & $moduleHandler->get($xoopsModule->getVar('mid'));
18 18
 
19 19
 /*  Centered heading
20 20
 echo "<br />";
@@ -38,46 +38,46 @@  discard block
 block discarded – undo
38 38
 echo "</table>";
39 39
 */
40 40
 // Left headings...
41
-echo "<img src='" . XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/' . $versioninfo->getInfo('image') . "' alt='' hspace='0' vspace='0' align='left' style='margin-right: 10px;'/></a>";
42
-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>';
41
+echo "<img src='".XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/'.$versioninfo->getInfo('image')."' alt='' hspace='0' vspace='0' align='left' style='margin-right: 10px;'/></a>";
42
+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>';
43 43
 if ($versioninfo->getInfo('author_realname') != '') {
44
-    $author_name = $versioninfo->getInfo('author') . ' (' . $versioninfo->getInfo('author_realname') . ')';
44
+    $author_name = $versioninfo->getInfo('author').' ('.$versioninfo->getInfo('author_realname').')';
45 45
 } else {
46 46
     $author_name = $versioninfo->getInfo('author');
47 47
 }
48 48
 
49
-echo "<div style = 'line-height: 16px; font-weight: bold; display: block;'>" . _AM_SF_BY . ' ' . $author_name;
49
+echo "<div style = 'line-height: 16px; font-weight: bold; display: block;'>"._AM_SF_BY.' '.$author_name;
50 50
 echo '</div>';
51
-echo "<div style = 'line-height: 16px; display: block;'>" . $versioninfo->getInfo('license') . "</div>\n";
51
+echo "<div style = 'line-height: 16px; display: block;'>".$versioninfo->getInfo('license')."</div>\n";
52 52
 
53 53
 // Developers Information
54 54
 echo "<br /><table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>";
55 55
 echo '<tr>';
56
-echo "<td colspan='2' class='bg3' align='left'><b>" . _MI_SF_AUTHOR_INFO . '</b></td>';
56
+echo "<td colspan='2' class='bg3' align='left'><b>"._MI_SF_AUTHOR_INFO.'</b></td>';
57 57
 echo '</tr>';
58 58
 
59 59
 if ($versioninfo->getInfo('developer_lead') != '') {
60 60
     echo '<tr>';
61
-    echo "<td class='head' width = '150px' align='left'>" . _MI_SF_DEVELOPER_LEAD . '</td>';
62
-    echo "<td class='even' align='left'>" . $versioninfo->getInfo('developer_lead') . '</td>';
61
+    echo "<td class='head' width = '150px' align='left'>"._MI_SF_DEVELOPER_LEAD.'</td>';
62
+    echo "<td class='even' align='left'>".$versioninfo->getInfo('developer_lead').'</td>';
63 63
     echo '</tr>';
64 64
 }
65 65
 if ($versioninfo->getInfo('developer_contributor') != '') {
66 66
     echo '<tr>';
67
-    echo "<td class='head' width = '150px' align='left'>" . _MI_SF_DEVELOPER_CONTRIBUTOR . '</td>';
68
-    echo "<td class='even' align='left'>" . $versioninfo->getInfo('developer_contributor') . '</td>';
67
+    echo "<td class='head' width = '150px' align='left'>"._MI_SF_DEVELOPER_CONTRIBUTOR.'</td>';
68
+    echo "<td class='even' align='left'>".$versioninfo->getInfo('developer_contributor').'</td>';
69 69
     echo '</tr>';
70 70
 }
71 71
 if ($versioninfo->getInfo('developer_website_url') != '') {
72 72
     echo '<tr>';
73
-    echo "<td class='head' width = '150px' align='left'>" . _MI_SF_DEVELOPER_WEBSITE . '</td>';
74
-    echo "<td class='even' align='left'><a href='" . $versioninfo->getInfo('developer_website_url') . "' target='blank'>" . $versioninfo->getInfo('developer_website_name') . '</a></td>';
73
+    echo "<td class='head' width = '150px' align='left'>"._MI_SF_DEVELOPER_WEBSITE.'</td>';
74
+    echo "<td class='even' align='left'><a href='".$versioninfo->getInfo('developer_website_url')."' target='blank'>".$versioninfo->getInfo('developer_website_name').'</a></td>';
75 75
     echo '</tr>';
76 76
 }
77 77
 if ($versioninfo->getInfo('developer_email') != '') {
78 78
     echo '<tr>';
79
-    echo "<td class='head' width = '150px' align='left'>" . _MI_SF_DEVELOPER_EMAIL . '</td>';
80
-    echo "<td class='even' align='left'><a href='mailto:" . $versioninfo->getInfo('developer_email') . "'>" . $versioninfo->getInfo('developer_email') . '</a></td>';
79
+    echo "<td class='head' width = '150px' align='left'>"._MI_SF_DEVELOPER_EMAIL.'</td>';
80
+    echo "<td class='even' align='left'><a href='mailto:".$versioninfo->getInfo('developer_email')."'>".$versioninfo->getInfo('developer_email').'</a></td>';
81 81
     echo '</tr>';
82 82
 }
83 83
 
@@ -86,47 +86,47 @@  discard block
 block discarded – undo
86 86
 // Module Developpment information
87 87
 echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>";
88 88
 echo '<tr>';
89
-echo "<td colspan='2' class='bg3' align='left'><b>" . _MI_SF_MODULE_INFO . '</b></td>';
89
+echo "<td colspan='2' class='bg3' align='left'><b>"._MI_SF_MODULE_INFO.'</b></td>';
90 90
 echo '</tr>';
91 91
 
92 92
 if ($versioninfo->getInfo('date') != '') {
93 93
     echo '<tr>';
94
-    echo "<td class='head' width = '200' align='left'>" . _MI_SF_MODULE_RELEASE_DATE . '</td>';
95
-    echo "<td class='even' align='left'>" . $versioninfo->getInfo('date') . '</td>';
94
+    echo "<td class='head' width = '200' align='left'>"._MI_SF_MODULE_RELEASE_DATE.'</td>';
95
+    echo "<td class='even' align='left'>".$versioninfo->getInfo('date').'</td>';
96 96
     echo '</tr>';
97 97
 }
98 98
 
99 99
 if ($versioninfo->getInfo('status') != '') {
100 100
     echo '<tr>';
101
-    echo "<td class='head' width = '200' align='left'>" . _MI_SF_MODULE_STATUS . '</td>';
102
-    echo "<td class='even' align='left'>" . $versioninfo->getInfo('status') . '</td>';
101
+    echo "<td class='head' width = '200' align='left'>"._MI_SF_MODULE_STATUS.'</td>';
102
+    echo "<td class='even' align='left'>".$versioninfo->getInfo('status').'</td>';
103 103
     echo '</tr>';
104 104
 }
105 105
 
106 106
 if ($versioninfo->getInfo('demo_site_url') != '') {
107 107
     echo '<tr>';
108
-    echo "<td class='head' align='left'>" . _MI_SF_MODULE_DEMO . '</td>';
109
-    echo "<td class='even' align='left'><a href='" . $versioninfo->getInfo('demo_site_url') . "' target='blank'>" . $versioninfo->getInfo('demo_site_name') . '</a></td>';
108
+    echo "<td class='head' align='left'>"._MI_SF_MODULE_DEMO.'</td>';
109
+    echo "<td class='even' align='left'><a href='".$versioninfo->getInfo('demo_site_url')."' target='blank'>".$versioninfo->getInfo('demo_site_name').'</a></td>';
110 110
     echo '</tr>';
111 111
 }
112 112
 
113 113
 if ($versioninfo->getInfo('support_site_url') != '') {
114 114
     echo '<tr>';
115
-    echo "<td class='head' align='left'>" . _MI_SF_MODULE_SUPPORT . '</td>';
116
-    echo "<td class='even' align='left'><a href='" . $versioninfo->getInfo('support_site_url') . "' target='blank'>" . $versioninfo->getInfo('support_site_name') . '</a></td>';
115
+    echo "<td class='head' align='left'>"._MI_SF_MODULE_SUPPORT.'</td>';
116
+    echo "<td class='even' align='left'><a href='".$versioninfo->getInfo('support_site_url')."' target='blank'>".$versioninfo->getInfo('support_site_name').'</a></td>';
117 117
     echo '</tr>';
118 118
 }
119 119
 
120 120
 if ($versioninfo->getInfo('submit_bug') != '') {
121 121
     echo '<tr>';
122
-    echo "<td class='head' align='left'>" . _MI_SF_MODULE_BUG . '</td>';
123
-    echo "<td class='even' align='left'><a href='" . $versioninfo->getInfo('submit_bug') . "' target='blank'>" . 'Submit a Bug in SmartFAQ Bug Tracker' . '</a></td>';
122
+    echo "<td class='head' align='left'>"._MI_SF_MODULE_BUG.'</td>';
123
+    echo "<td class='even' align='left'><a href='".$versioninfo->getInfo('submit_bug')."' target='blank'>".'Submit a Bug in SmartFAQ Bug Tracker'.'</a></td>';
124 124
     echo '</tr>';
125 125
 }
126 126
 if ($versioninfo->getInfo('submit_feature') != '') {
127 127
     echo '<tr>';
128
-    echo "<td class='head' align='left'>" . _MI_SF_MODULE_FEATURE . '</td>';
129
-    echo "<td class='even' align='left'><a href='" . $versioninfo->getInfo('submit_feature') . "' target='blank'>" . 'Request a feature in the SmartFAQ Feature Tracker' . '</a></td>';
128
+    echo "<td class='head' align='left'>"._MI_SF_MODULE_FEATURE.'</td>';
129
+    echo "<td class='even' align='left'><a href='".$versioninfo->getInfo('submit_feature')."' target='blank'>".'Request a feature in the SmartFAQ Feature Tracker'.'</a></td>';
130 130
     echo '</tr>';
131 131
 }
132 132
 
@@ -136,11 +136,11 @@  discard block
 block discarded – undo
136 136
     echo "<br />\n";
137 137
     echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>";
138 138
     echo '<tr>';
139
-    echo "<td class='bg3' align='left'><b>" . _MI_SF_MODULE_DISCLAIMER . '</b></td>';
139
+    echo "<td class='bg3' align='left'><b>"._MI_SF_MODULE_DISCLAIMER.'</b></td>';
140 140
     echo '</tr>';
141 141
 
142 142
     echo '<tr>';
143
-    echo "<td class='even' align='left'>" . $versioninfo->getInfo('warning') . '</td>';
143
+    echo "<td class='even' align='left'>".$versioninfo->getInfo('warning').'</td>';
144 144
     echo '</tr>';
145 145
 
146 146
     echo '</table>';
@@ -150,11 +150,11 @@  discard block
 block discarded – undo
150 150
     echo "<br />\n";
151 151
     echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>";
152 152
     echo '<tr>';
153
-    echo "<td class='bg3' align='left'><b>" . _MI_SF_AUTHOR_WORD . '</b></td>';
153
+    echo "<td class='bg3' align='left'><b>"._MI_SF_AUTHOR_WORD.'</b></td>';
154 154
     echo '</tr>';
155 155
 
156 156
     echo '<tr>';
157
-    echo "<td class='even' align='left'>" . $versioninfo->getInfo('author_word') . '</td>';
157
+    echo "<td class='even' align='left'>".$versioninfo->getInfo('author_word').'</td>';
158 158
     echo '</tr>';
159 159
 
160 160
     echo '</table>';
@@ -165,11 +165,11 @@  discard block
 block discarded – undo
165 165
     echo "<br />\n";
166 166
     echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>";
167 167
     echo '<tr>';
168
-    echo "<td class='bg3' align='left'><b>" . _MI_SF_VERSION_HISTORY . '</b></td>';
168
+    echo "<td class='bg3' align='left'><b>"._MI_SF_VERSION_HISTORY.'</b></td>';
169 169
     echo '</tr>';
170 170
 
171 171
     echo '<tr>';
172
-    echo "<td class='even' align='left'>" . $versioninfo->getInfo('version_history') . '</td>';
172
+    echo "<td class='even' align='left'>".$versioninfo->getInfo('version_history').'</td>';
173 173
     echo '</tr>';
174 174
 
175 175
     echo '</table>';
@@ -179,4 +179,4 @@  discard block
 block discarded – undo
179 179
 //$modfooter = sf_modFooter();
180 180
 //echo "<div align='center'>" . $modfooter . "</div>";
181 181
 //xoops_cp_footer();
182
-include_once __DIR__ . '/admin_footer.php';
182
+include_once __DIR__.'/admin_footer.php';
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($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 (isset($gperm_name)) {
20 20
         $criteria->add(new Criteria('gperm_name', $gperm_name));
21 21
         if (isset($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,18 +31,18 @@  discard block
 block discarded – undo
31 31
 }
32 32
 
33 33
 // include_once dirname(dirname(dirname(__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
 $moduleHandler = xoops_getHandler('module');
40 40
 $module        = $moduleHandler->get($modid);
41 41
 if (!is_object($module) || !$module->getVar('isactive')) {
42
-    redirect_header(XOOPS_URL . '/admin.php', 1, _MODULENOEXIST);
42
+    redirect_header(XOOPS_URL.'/admin.php', 1, _MODULENOEXIST);
43 43
 }
44 44
 $memberHandler = xoops_getHandler('member');
45
-$group_list    =& $memberHandler->getGroupList();
45
+$group_list    = & $memberHandler->getGroupList();
46 46
 if (is_array($HTTP_POST_VARS['perms']) && !empty($HTTP_POST_VARS['perms'])) {
47 47
     $gpermHandler = xoops_getHandler('groupperm');
48 48
     foreach ($HTTP_POST_VARS['perms'] as $perm_name => $perm_data) {
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
                             foreach ($parent_ids as $pid) {
66 66
                                 if ($pid != 0 && !in_array($pid, array_keys($item_ids))) {
67 67
                                     // one of the parent items were not selected, so skip this item
68
-                                    $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 . ')';
68
+                                    $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 69
                                     continue 2;
70 70
                                 }
71 71
                             }
@@ -76,9 +76,9 @@  discard block
 block discarded – undo
76 76
                         $gperm->setVar('gperm_modid', $modid);
77 77
                         $gperm->setVar('gperm_itemid', $item_id);
78 78
                         if (!$gpermHandler->insert($gperm)) {
79
-                            $msg[] = sprintf(_MD_AM_PERMADDNG, '<b>' . $perm_name . '</b>', '<b>' . $perm_data['itemname'][$item_id] . '</b>', '<b>' . $group_list[$group_id] . '</b>');
79
+                            $msg[] = sprintf(_MD_AM_PERMADDNG, '<b>'.$perm_name.'</b>', '<b>'.$perm_data['itemname'][$item_id].'</b>', '<b>'.$group_list[$group_id].'</b>');
80 80
                         } else {
81
-                            $msg[] = sprintf(_MD_AM_PERMADDOK, '<b>' . $perm_name . '</b>', '<b>' . $perm_data['itemname'][$item_id] . '</b>', '<b>' . $group_list[$group_id] . '</b>');
81
+                            $msg[] = sprintf(_MD_AM_PERMADDOK, '<b>'.$perm_name.'</b>', '<b>'.$perm_data['itemname'][$item_id].'</b>', '<b>'.$group_list[$group_id].'</b>');
82 82
                         }
83 83
                         unset($gperm);
84 84
                     }
Please login to merge, or discard this patch.
admin/menu.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -9,17 +9,17 @@  discard block
 block discarded – undo
9 9
 // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined');
10 10
 
11 11
 $path = dirname(dirname(dirname(__DIR__)));
12
-include_once $path . '/mainfile.php';
12
+include_once $path.'/mainfile.php';
13 13
 
14 14
 $dirname         = basename(dirname(__DIR__));
15 15
 $moduleHandler   = xoops_getHandler('module');
16 16
 $module          = $moduleHandler->getByDirname($dirname);
17 17
 $pathIcon32      = $module->getInfo('icons32');
18 18
 $pathModuleAdmin = $module->getInfo('dirmoduleadmin');
19
-$pathLanguage    = $path . $pathModuleAdmin;
19
+$pathLanguage    = $path.$pathModuleAdmin;
20 20
 
21
-if (!file_exists($fileinc = $pathLanguage . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/' . 'main.php')) {
22
-    $fileinc = $pathLanguage . '/language/english/main.php';
21
+if (!file_exists($fileinc = $pathLanguage.'/language/'.$GLOBALS['xoopsConfig']['language'].'/'.'main.php')) {
22
+    $fileinc = $pathLanguage.'/language/english/main.php';
23 23
 }
24 24
 
25 25
 include_once $fileinc;
@@ -28,36 +28,36 @@  discard block
 block discarded – undo
28 28
 $i                      = 0;
29 29
 $adminmenu[$i]['title'] = _AM_MODULEADMIN_HOME;
30 30
 $adminmenu[$i]['link']  = 'admin/index.php';
31
-$adminmenu[$i]['icon']  = $pathIcon32 . '/home.png';
31
+$adminmenu[$i]['icon']  = $pathIcon32.'/home.png';
32 32
 ++$i;
33 33
 $adminmenu[$i]['title'] = _MI_SF_ADMENU1;
34 34
 $adminmenu[$i]['link']  = 'admin/main.php';
35
-$adminmenu[$i]['icon']  = $pathIcon32 . '/manage.png';
35
+$adminmenu[$i]['icon']  = $pathIcon32.'/manage.png';
36 36
 
37 37
 ++$i;
38 38
 $adminmenu[$i]['title'] = _MI_SF_ADMENU2;
39 39
 $adminmenu[$i]['link']  = 'admin/category.php';
40
-$adminmenu[$i]['icon']  = $pathIcon32 . '/category.png';
40
+$adminmenu[$i]['icon']  = $pathIcon32.'/category.png';
41 41
 ++$i;
42 42
 $adminmenu[$i]['title'] = _MI_SF_ADMENU3;
43 43
 $adminmenu[$i]['link']  = 'admin/faq.php';
44
-$adminmenu[$i]['icon']  = $pathIcon32 . '/search.png';
44
+$adminmenu[$i]['icon']  = $pathIcon32.'/search.png';
45 45
 ++$i;
46 46
 $adminmenu[$i]['title'] = _MI_SF_ADMENU4;
47 47
 $adminmenu[$i]['link']  = 'admin/question.php';
48
-$adminmenu[$i]['icon']  = $pathIcon32 . '/faq.png';
48
+$adminmenu[$i]['icon']  = $pathIcon32.'/faq.png';
49 49
 ++$i;
50 50
 $adminmenu[$i]['title'] = _MI_SF_ADMENU5;
51 51
 $adminmenu[$i]['link']  = 'admin/permissions.php';
52
-$adminmenu[$i]['icon']  = $pathIcon32 . '/permissions.png';
52
+$adminmenu[$i]['icon']  = $pathIcon32.'/permissions.png';
53 53
 ++$i;
54 54
 $adminmenu[$i]['title'] = _MI_SF_ADMENU8;
55 55
 $adminmenu[$i]['link']  = 'admin/import.php';
56
-$adminmenu[$i]['icon']  = $pathIcon32 . '/download.png';
56
+$adminmenu[$i]['icon']  = $pathIcon32.'/download.png';
57 57
 ++$i;
58 58
 $adminmenu[$i]['title'] = _AM_MODULEADMIN_ABOUT;
59 59
 $adminmenu[$i]['link']  = 'admin/about.php';
60
-$adminmenu[$i]['icon']  = $pathIcon32 . '/about.png';
60
+$adminmenu[$i]['icon']  = $pathIcon32.'/about.png';
61 61
 //++$i;
62 62
 //$adminmenu[$i]['title'] = _AM_MODULEADMIN_ABOUT;
63 63
 //$adminmenu[$i]["link"]  = "admin/about2.php";
Please login to merge, or discard this patch.
admin/admin_header2.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -6,17 +6,17 @@
 block discarded – undo
6 6
  * Licence: GNU
7 7
  */
8 8
 
9
-include_once dirname(dirname(dirname(__DIR__))) . '/mainfile.php';
10
-include_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php';
11
-include_once XOOPS_ROOT_PATH . '/kernel/module.php';
12
-include_once XOOPS_ROOT_PATH . '/class/xoopstree.php';
13
-include_once XOOPS_ROOT_PATH . '/class/xoopslists.php';
14
-include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
15
-include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
9
+include_once dirname(dirname(dirname(__DIR__))).'/mainfile.php';
10
+include_once dirname(dirname(dirname(__DIR__))).'/include/cp_header.php';
11
+include_once XOOPS_ROOT_PATH.'/kernel/module.php';
12
+include_once XOOPS_ROOT_PATH.'/class/xoopstree.php';
13
+include_once XOOPS_ROOT_PATH.'/class/xoopslists.php';
14
+include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
15
+include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
16 16
 
17
-include_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php';
18
-include_once XOOPS_ROOT_PATH . '/modules/smartfaq/class/category.php';
19
-include_once XOOPS_ROOT_PATH . '/modules/smartfaq/class/faq.php';
20
-include_once XOOPS_ROOT_PATH . '/modules/smartfaq/class/answer.php';
17
+include_once XOOPS_ROOT_PATH.'/modules/smartfaq/include/functions.php';
18
+include_once XOOPS_ROOT_PATH.'/modules/smartfaq/class/category.php';
19
+include_once XOOPS_ROOT_PATH.'/modules/smartfaq/class/faq.php';
20
+include_once XOOPS_ROOT_PATH.'/modules/smartfaq/class/answer.php';
21 21
 
22 22
 $myts = MyTextSanitizer::getInstance();
Please login to merge, or discard this patch.
admin/docbook_export.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -6,16 +6,16 @@  discard block
 block discarded – undo
6 6
  * Licence: GNU
7 7
  */
8 8
 
9
-include_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php';
9
+include_once dirname(dirname(dirname(__DIR__))).'/include/cp_header.php';
10 10
 
11
-$op = 'go';//'start';
11
+$op = 'go'; //'start';
12 12
 
13 13
 if (isset($HTTP_POST_VARS['op']) && ($HTTP_POST_VARS['op'] === 'go')) {
14 14
     $op = $HTTP_POST_VARS['op'];
15 15
 }
16 16
 
17 17
 if ($op === 'start') {
18
-    include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
18
+    include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
19 19
 
20 20
     xoops_cp_header();
21 21
 
@@ -44,41 +44,41 @@  discard block
 block discarded – undo
44 44
 
45 45
     echo "  <title>{module title}</title>\r\n";
46 46
 
47
-    $resultC = $xoopsDB->query('select * from ' . $xoopsDB->prefix('smartfaq_categories'));
47
+    $resultC = $xoopsDB->query('select * from '.$xoopsDB->prefix('smartfaq_categories'));
48 48
     while ($arrC = $xoopsDB->fetchArray($resultC)) {
49 49
         extract($arrC, EXTR_PREFIX_ALL, 'c');
50 50
 
51 51
         echo "  <qandadiv ID=\"c$c_categoryid\" Revision=\"$c_created\">\r\n";
52
-        echo '    <title>' . encodeText($c_name) . "</title>\r\n";
53
-        echo '    <para>' . encodeText($c_description) . "</para>\r\n";
52
+        echo '    <title>'.encodeText($c_name)."</title>\r\n";
53
+        echo '    <para>'.encodeText($c_description)."</para>\r\n";
54 54
 
55
-        $resultQ = $xoopsDB->query('select * from ' . $xoopsDB->prefix('smartfaq_faq') . " where categoryid=$c_categoryid");
55
+        $resultQ = $xoopsDB->query('select * from '.$xoopsDB->prefix('smartfaq_faq')." where categoryid=$c_categoryid");
56 56
         while ($arrQ = $xoopsDB->fetchArray($resultQ)) {
57 57
             extract($arrQ, EXTR_PREFIX_ALL, 'q');
58 58
 
59
-            echo "    <qandaentry ID=\"q$q_faqid\" Revision=\"$q_datesub\" Condition=\"$q_html $q_smiley $q_xcodes\" XrefLabel=\"$q_modulelink $q_contextpage\" Vendor=\"" . getUserFullName($q_uid) . "\">\r\n";
59
+            echo "    <qandaentry ID=\"q$q_faqid\" Revision=\"$q_datesub\" Condition=\"$q_html $q_smiley $q_xcodes\" XrefLabel=\"$q_modulelink $q_contextpage\" Vendor=\"".getUserFullName($q_uid)."\">\r\n";
60 60
             echo "      <question>\r\n";
61
-            echo '        <para>' . encodeText($q_question) . "</para>\r\n";
61
+            echo '        <para>'.encodeText($q_question)."</para>\r\n";
62 62
             if (!empty($q_howdoi)) {
63 63
                 echo "        <note Conformance=\"howdoi\">\r\n";
64 64
                 echo "          <title>{'How do I' from language file}</title>\r\n";
65
-                echo '          <para>' . encodeText($q_howdoi) . "</para>\r\n";
65
+                echo '          <para>'.encodeText($q_howdoi)."</para>\r\n";
66 66
                 echo "        </note>\r\n";
67 67
             }
68 68
             if (!empty($q_diduno)) {
69 69
                 echo "        <note Conformance=\"diduno\">\r\n";
70 70
                 echo "          <title>{'Did you know' from language file}</title>\r\n";
71
-                echo '          <para>' . encodeText($q_diduno) . "</para>\r\n";
71
+                echo '          <para>'.encodeText($q_diduno)."</para>\r\n";
72 72
                 echo "        </note>\r\n";
73 73
             }
74 74
             echo "      </question>\r\n";
75 75
 
76
-            $resultA = $xoopsDB->query('select * from ' . $xoopsDB->prefix('smartfaq_answers') . " where answerid=$q_answerid");
76
+            $resultA = $xoopsDB->query('select * from '.$xoopsDB->prefix('smartfaq_answers')." where answerid=$q_answerid");
77 77
             while ($arrA = $xoopsDB->fetchArray($resultA)) {
78 78
                 extract($arrA, EXTR_PREFIX_ALL, 'a');
79 79
 
80
-                echo "      <answer ID=\"a$a_answerid\" Revision=\"$a_datesub\" Vendor=\"" . getUserFullName($a_uid) . "\">\r\n";
81
-                echo '        <para>' . encodeText($a_answer) . "</para>\r\n";
80
+                echo "      <answer ID=\"a$a_answerid\" Revision=\"$a_datesub\" Vendor=\"".getUserFullName($a_uid)."\">\r\n";
81
+                echo '        <para>'.encodeText($a_answer)."</para>\r\n";
82 82
                 echo "      </answer>\r\n";
83 83
             }
84 84
             mysqli_free_result($resultA);
Please login to merge, or discard this patch.