GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — 2.8 ( 03bafd...757b80 )
by Thorsten
19:17
created
phpmyfaq/admin/record.show.php 3 patches
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -1,22 +1,22 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Shows the list of records ordered by categories
4
- *
5
- * PHP Version 5.3
6
- *
7
- * This Source Code Form is subject to the terms of the Mozilla Public License,
8
- * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
- * obtain one at http://mozilla.org/MPL/2.0/.
10
- *
11
- * @category  phpMyFAQ
12
- * @package   Administration
13
- * @author    Thorsten Rinne <[email protected]>
14
- * @author    Minoru TODA <[email protected]>
15
- * @copyright 2003-2015 phpMyFAQ Team
16
- * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
17
- * @link      http://www.phpmyfaq.de
18
- * @since     2003-02-23
19
- */
3
+     * Shows the list of records ordered by categories
4
+     *
5
+     * PHP Version 5.3
6
+     *
7
+     * This Source Code Form is subject to the terms of the Mozilla Public License,
8
+     * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
+     * obtain one at http://mozilla.org/MPL/2.0/.
10
+     *
11
+     * @category  phpMyFAQ
12
+     * @package   Administration
13
+     * @author    Thorsten Rinne <[email protected]>
14
+     * @author    Minoru TODA <[email protected]>
15
+     * @copyright 2003-2015 phpMyFAQ Team
16
+     * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
17
+     * @link      http://www.phpmyfaq.de
18
+     * @since     2003-02-23
19
+     */
20 20
 
21 21
 if (!defined('IS_VALID_PHPMYFAQ')) {
22 22
     $protocol = 'http';
Please login to merge, or discard this patch.
Spacing   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -20,10 +20,10 @@  discard block
 block discarded – undo
20 20
 
21 21
 if (!defined('IS_VALID_PHPMYFAQ')) {
22 22
     $protocol = 'http';
23
-    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
+    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
24 24
         $protocol = 'https';
25 25
     }
26
-    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
+    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
27 27
     exit();
28 28
 }
29 29
 
@@ -144,13 +144,13 @@  discard block
 block discarded – undo
144 144
     $searchTerm     = PMF_Filter::filterInput(INPUT_POST, 'searchterm', FILTER_SANITIZE_STRIPPED);
145 145
 
146 146
     if (!is_null($linkState)) {
147
-        $cond[PMF_Db::getTablePrefix() . 'faqdata.links_state'] = 'linkbad';
147
+        $cond[PMF_Db::getTablePrefix().'faqdata.links_state'] = 'linkbad';
148 148
         $linkState                             = ' checked="checked" ';
149 149
         $internalSearch                       .= '&amp;linkstate=linkbad';
150 150
     }
151 151
     if (!is_null($searchCat)) {
152
-        $internalSearch .= "&amp;searchcat=" . $searchCat;
153
-        $cond[PMF_Db::getTablePrefix() . 'faqcategoryrelations.category_id'] = array_merge(
152
+        $internalSearch .= "&amp;searchcat=".$searchCat;
153
+        $cond[PMF_Db::getTablePrefix().'faqcategoryrelations.category_id'] = array_merge(
154 154
             array($searchCat),
155 155
             $category->getChildNodes($searchCat)
156 156
         );
@@ -200,30 +200,30 @@  discard block
 block discarded – undo
200 200
 
201 201
     } else {
202 202
 
203
-        $fdTable  = PMF_Db::getTablePrefix() . 'faqdata';
204
-        $fcrTable = PMF_Db::getTablePrefix() . 'faqcategoryrelations';
203
+        $fdTable  = PMF_Db::getTablePrefix().'faqdata';
204
+        $fcrTable = PMF_Db::getTablePrefix().'faqcategoryrelations';
205 205
         $search   = PMF_Search_Factory::create($faqConfig, array('database' => PMF_Db::getType()));
206 206
 
207 207
         $search->setTable($fdTable)
208 208
             ->setResultColumns(array(
209
-                    $fdTable . '.id AS id',
210
-                    $fdTable . '.lang AS lang',
211
-                    $fdTable . '.solution_id AS solution_id',
212
-                    $fcrTable . '.category_id AS category_id',
213
-                    $fdTable . '.sticky AS sticky',
214
-                    $fdTable . '.active AS active',
215
-                    $fdTable . '.thema AS thema',
216
-                    $fdTable . '.content AS content',
217
-                    $fdTable . '.datum AS date'))
209
+                    $fdTable.'.id AS id',
210
+                    $fdTable.'.lang AS lang',
211
+                    $fdTable.'.solution_id AS solution_id',
212
+                    $fcrTable.'.category_id AS category_id',
213
+                    $fdTable.'.sticky AS sticky',
214
+                    $fdTable.'.active AS active',
215
+                    $fdTable.'.thema AS thema',
216
+                    $fdTable.'.content AS content',
217
+                    $fdTable.'.datum AS date'))
218 218
             ->setJoinedTable($fcrTable)
219 219
             ->setJoinedColumns(array(
220
-                    $fdTable . '.id = ' . $fcrTable . '.record_id',
221
-                    $fdTable . '.lang = ' . $fcrTable . '.record_lang'));
220
+                    $fdTable.'.id = '.$fcrTable.'.record_id',
221
+                    $fdTable.'.lang = '.$fcrTable.'.record_lang'));
222 222
 
223 223
         if (is_numeric($searchTerm)) {
224
-            $search->setMatchingColumns(array($fdTable . '.solution_id'));
224
+            $search->setMatchingColumns(array($fdTable.'.solution_id'));
225 225
         } else {
226
-            $search->setMatchingColumns(array($fdTable . '.thema', $fdTable . '.content', $fdTable . '.keywords'));
226
+            $search->setMatchingColumns(array($fdTable.'.thema', $fdTable.'.content', $fdTable.'.keywords'));
227 227
         }
228 228
 
229 229
         $result         = $search->search($searchTerm);
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
         }
286 286
         
287 287
         foreach ($faq->faqRecords as $record) {
288
-            $catInfo =  '';
288
+            $catInfo = '';
289 289
             $cid     = $record['category_id'];
290 290
             
291 291
             if (isset($numRecordsByCat[$cid]) && ($numRecordsByCat[$cid] > 0)) {
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
         <p>
325 325
             <a class="btn showhideCategory" data-category-id="<?php echo $cid; ?>">
326 326
                 <i class="icon icon-arrow-right"></i>
327
-                <strong><?php echo $category->getPath($cid); ?></strong> <?php echo $catInfo;?>
327
+                <strong><?php echo $category->getPath($cid); ?></strong> <?php echo $catInfo; ?>
328 328
             </a>
329 329
         </p>
330 330
         <div id="category_<?php print $cid; ?>" class="categorybox <?php print ($selectedCategory == $cid) ? '' : 'hide'; ?>">
@@ -380,7 +380,7 @@  discard block
 block discarded – undo
380 380
 <?php
381 381
             }
382 382
 ?>
383
-        <tr id="record_<?php echo $record['id'] . '_' . $record['lang']; ?>">
383
+        <tr id="record_<?php echo $record['id'].'_'.$record['lang']; ?>">
384 384
             <td style="width: 24px; text-align: right;">
385 385
                 <a href="?action=editentry&amp;id=<?php print $record['id']; ?>&amp;lang=<?php print $record['lang']; ?>">
386 386
                     <?php print $record['id']; ?>
@@ -397,17 +397,17 @@  discard block
 block discarded – undo
397 397
             </td>
398 398
             <td style="width: 56px;">
399 399
                 <input type="checkbox" lang="<?php print $record['lang'] ?>"
400
-                       onclick="saveStatus(<?php print $cid . ', [' . $record['id'] . ']' ?>, 'sticky', '<?php echo $user->getCsrfTokenFromSession() ?>');"
401
-                       id="sticky_record_<?php print $cid . '_' . $record['id'] ?>"
400
+                       onclick="saveStatus(<?php print $cid.', ['.$record['id'].']' ?>, 'sticky', '<?php echo $user->getCsrfTokenFromSession() ?>');"
401
+                       id="sticky_record_<?php print $cid.'_'.$record['id'] ?>"
402 402
                     <?php $record['sticky'] ? print 'checked="checked"' : print '    ' ?> />
403 403
             </td>
404 404
             <td>
405 405
                 <?php if ($permission['approverec'] && isset($numVisits[$record['id']])) { ?>
406 406
                 <input type="checkbox" lang="<?php print $record['lang'] ?>"
407
-                       onclick="saveStatus(<?php print $cid . ', [' . $record['id'] . ']' ?>, 'active', '<?php echo $user->getCsrfTokenFromSession() ?>');"
408
-                       id="active_record_<?php print $cid . '_' . $record['id'] ?>"
407
+                       onclick="saveStatus(<?php print $cid.', ['.$record['id'].']' ?>, 'active', '<?php echo $user->getCsrfTokenFromSession() ?>');"
408
+                       id="active_record_<?php print $cid.'_'.$record['id'] ?>"
409 409
                     <?php 'yes' == $record['active'] ? print 'checked="checked"' : print '    ' ?> />
410
-                <?php }  else { ?>
410
+                <?php } else { ?>
411 411
                 <span class="label label-important"><i class="icon-white icon-ban-circle"></i></span>
412 412
                 <?php } ?>
413 413
             </td>
@@ -478,7 +478,7 @@  discard block
 block discarded – undo
478 478
     if ('' === $categoryId) {
479 479
         $categoryId = 0;
480 480
     }
481
-    echo "                id_map[" . $categoryId . "] = [" . implode(',', $recordIds) . "];\n";
481
+    echo "                id_map[".$categoryId."] = [".implode(',', $recordIds)."];\n";
482 482
 }
483 483
 ?>
484 484
             for (var i = 0; i < id_map[id].length; i++) {
@@ -560,7 +560,7 @@  discard block
 block discarded – undo
560 560
          */
561 561
         function deleteRecord(record_id, record_lang, csrf_token)
562 562
         {
563
-            if (confirm('<?php echo addslashes($PMF_LANG["ad_entry_del_1"] . " " . $PMF_LANG["ad_entry_del_3"]); ?>')) {
563
+            if (confirm('<?php echo addslashes($PMF_LANG["ad_entry_del_1"]." ".$PMF_LANG["ad_entry_del_3"]); ?>')) {
564 564
                 $('#saving_data_indicator').html('<img src="images/indicator.gif" /> deleting ...');
565 565
                 $.ajax({
566 566
                     type:    "POST",
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -407,7 +407,7 @@
 block discarded – undo
407 407
                        onclick="saveStatus(<?php print $cid . ', [' . $record['id'] . ']' ?>, 'active', '<?php echo $user->getCsrfTokenFromSession() ?>');"
408 408
                        id="active_record_<?php print $cid . '_' . $record['id'] ?>"
409 409
                     <?php 'yes' == $record['active'] ? print 'checked="checked"' : print '    ' ?> />
410
-                <?php }  else { ?>
410
+                <?php } else { ?>
411 411
                 <span class="label label-important"><i class="icon-white icon-ban-circle"></i></span>
412 412
                 <?php } ?>
413 413
             </td>
Please login to merge, or discard this patch.
phpmyfaq/admin/ajax.verifyurl.php 2 patches
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -1,30 +1,30 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * AJAX: verifyurl
4
- *
5
- * Usage:
6
- *   index.php?uin=<uin>&action=ajax&ajax=verifyURL&id=<id>&artlang=<lang>
7
- *
8
- * Performs link verification when entries are shown in record.show.php
9
- *
10
- * PHP Version 5.3
11
- *
12
- * This Source Code Form is subject to the terms of the Mozilla Public License,
13
- * v. 2.0. If a copy of the MPL was not distributed with this file, You can
14
- * obtain one at http://mozilla.org/MPL/2.0/.
15
- *
16
- * The Initial Developer of the Original Code is released for external use
17
- * with permission from NetJapan, Inc. IT Administration Group.
18
- *
19
- * @category  phpMyFAQ
20
- * @package   Administration
21
- * @author    Minoru TODA <[email protected]>
22
- * @author    Thorsten Rinne <[email protected]>
23
- * @copyright 2005-2015 NetJapan, Inc. and phpMyFAQ Team
24
- * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
25
- * @link      http://www.phpmyfaq.de
26
- * @since     2005-09-30
27
- */
3
+     * AJAX: verifyurl
4
+     *
5
+     * Usage:
6
+     *   index.php?uin=<uin>&action=ajax&ajax=verifyURL&id=<id>&artlang=<lang>
7
+     *
8
+     * Performs link verification when entries are shown in record.show.php
9
+     *
10
+     * PHP Version 5.3
11
+     *
12
+     * This Source Code Form is subject to the terms of the Mozilla Public License,
13
+     * v. 2.0. If a copy of the MPL was not distributed with this file, You can
14
+     * obtain one at http://mozilla.org/MPL/2.0/.
15
+     *
16
+     * The Initial Developer of the Original Code is released for external use
17
+     * with permission from NetJapan, Inc. IT Administration Group.
18
+     *
19
+     * @category  phpMyFAQ
20
+     * @package   Administration
21
+     * @author    Minoru TODA <[email protected]>
22
+     * @author    Thorsten Rinne <[email protected]>
23
+     * @copyright 2005-2015 NetJapan, Inc. and phpMyFAQ Team
24
+     * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
25
+     * @link      http://www.phpmyfaq.de
26
+     * @since     2005-09-30
27
+     */
28 28
 
29 29
 if (!defined('IS_VALID_PHPMYFAQ')) {
30 30
     $protocol = 'http';
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,10 +28,10 @@
 block discarded – undo
28 28
 
29 29
 if (!defined('IS_VALID_PHPMYFAQ')) {
30 30
     $protocol = 'http';
31
-    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
31
+    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
32 32
         $protocol = 'https';
33 33
     }
34
-    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
34
+    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
35 35
     exit();
36 36
 }
37 37
 
Please login to merge, or discard this patch.
phpmyfaq/admin/report.view.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -20,10 +20,10 @@  discard block
 block discarded – undo
20 20
 
21 21
 if (!defined('IS_VALID_PHPMYFAQ')) {
22 22
     $protocol = 'http';
23
-    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
+    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
24 24
         $protocol = 'https';
25 25
     }
26
-    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
+    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
27 27
     exit();
28 28
 }
29 29
 
@@ -48,18 +48,18 @@  discard block
 block discarded – undo
48 48
         <thead>
49 49
             <tr>
50 50
 <?php
51
-    ($useCategory)     ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_category']) : '';
52
-    ($useSubcategory)  ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_sub_category']) : '';
53
-    ($useTranslation)  ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_translations']) : '';
54
-    ($useLanguage)     ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_language']) : '';
55
-    ($useId)           ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_id']) : '';
56
-    ($useSticky)       ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_sticky']) : '';
57
-    ($useTitle)        ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_title']) : '';
51
+    ($useCategory) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_category']) : '';
52
+    ($useSubcategory) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_sub_category']) : '';
53
+    ($useTranslation) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_translations']) : '';
54
+    ($useLanguage) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_language']) : '';
55
+    ($useId) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_id']) : '';
56
+    ($useSticky) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_sticky']) : '';
57
+    ($useTitle) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_title']) : '';
58 58
     ($useCreationDate) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_creation_date']) : '';
59
-    ($useOwner)        ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_owner']) : '';
59
+    ($useOwner) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_owner']) : '';
60 60
     ($useLastModified) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_last_modified_person']) : '';
61
-    ($useUrl)          ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_url']) : '';
62
-    ($useVisits)       ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_visits']) : '';
61
+    ($useUrl) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_url']) : '';
62
+    ($useVisits) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_visits']) : '';
63 63
 ?>
64 64
             </tr>
65 65
         </thead>
Please login to merge, or discard this patch.
phpmyfaq/admin/configuration.php 2 patches
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -1,22 +1,22 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The main configuration frontend
4
- *
5
- * PHP 5.3
6
- *
7
- * This Source Code Form is subject to the terms of the Mozilla Public License,
8
- * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
- * obtain one at http://mozilla.org/MPL/2.0/.
10
- *
11
- * @category  phpMyFAQ
12
- * @package   Administration
13
- * @author    Thorsten Rinne <[email protected]>
14
- * @author    Matteo Scaramuccia <[email protected]>
15
- * @copyright 2005-2015 phpMyFAQ Team
16
- * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
17
- * @link      http://www.phpmyfaq.de
18
- * @since     2005-12-26
19
- */
3
+     * The main configuration frontend
4
+     *
5
+     * PHP 5.3
6
+     *
7
+     * This Source Code Form is subject to the terms of the Mozilla Public License,
8
+     * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
+     * obtain one at http://mozilla.org/MPL/2.0/.
10
+     *
11
+     * @category  phpMyFAQ
12
+     * @package   Administration
13
+     * @author    Thorsten Rinne <[email protected]>
14
+     * @author    Matteo Scaramuccia <[email protected]>
15
+     * @copyright 2005-2015 phpMyFAQ Team
16
+     * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
17
+     * @link      http://www.phpmyfaq.de
18
+     * @since     2005-12-26
19
+     */
20 20
 
21 21
 if (!defined('IS_VALID_PHPMYFAQ')) {
22 22
     $protocol = 'http';
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,10 +20,10 @@  discard block
 block discarded – undo
20 20
 
21 21
 if (!defined('IS_VALID_PHPMYFAQ')) {
22 22
     $protocol = 'http';
23
-    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
+    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
24 24
         $protocol = 'https';
25 25
     }
26
-    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
+    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
27 27
     exit();
28 28
 }
29 29
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
             }
77 77
         }
78 78
 
79
-        if (! is_null($editData)) {
79
+        if (!is_null($editData)) {
80 80
             $faqConfig->update($newConfigValues);
81 81
         }
82 82
     }
Please login to merge, or discard this patch.
phpmyfaq/admin/category.delete.php 2 patches
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -1,21 +1,21 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Deletes a category
4
- *
5
- * PHP Version 5.3
6
- *
7
- * This Source Code Form is subject to the terms of the Mozilla Public License,
8
- * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
- * obtain one at http://mozilla.org/MPL/2.0/.
10
- *
11
- * @category  phpMyFAQ
12
- * @package   Administration
13
- * @author    Thorsten Rinne <[email protected]>
14
- * @copyright 2003-2015 phpMyFAQ Team
15
- * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
16
- * @link      http://www.phpmyfaq.de
17
- * @since     2003-12-20
18
- */
3
+     * Deletes a category
4
+     *
5
+     * PHP Version 5.3
6
+     *
7
+     * This Source Code Form is subject to the terms of the Mozilla Public License,
8
+     * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
+     * obtain one at http://mozilla.org/MPL/2.0/.
10
+     *
11
+     * @category  phpMyFAQ
12
+     * @package   Administration
13
+     * @author    Thorsten Rinne <[email protected]>
14
+     * @copyright 2003-2015 phpMyFAQ Team
15
+     * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
16
+     * @link      http://www.phpmyfaq.de
17
+     * @since     2003-12-20
18
+     */
19 19
 
20 20
 if (!defined('IS_VALID_PHPMYFAQ')) {
21 21
     $protocol = 'http';
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,10 +19,10 @@
 block discarded – undo
19 19
 
20 20
 if (!defined('IS_VALID_PHPMYFAQ')) {
21 21
     $protocol = 'http';
22
-    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
22
+    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
23 23
         $protocol = 'https';
24 24
     }
25
-    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
25
+    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
26 26
     exit();
27 27
 }
28 28
 
Please login to merge, or discard this patch.
phpmyfaq/admin/backup.import.php 2 patches
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -1,21 +1,21 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The import function to import the phpMyFAQ backups
4
- *
5
- * PHP Version 5.3
6
- *
7
- * This Source Code Form is subject to the terms of the Mozilla Public License,
8
- * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
- * obtain one at http://mozilla.org/MPL/2.0/.
10
- *
11
- * @category  phpMyFAQ 
12
- * @package   Administration
13
- * @author    Thorsten Rinne <[email protected]>
14
- * @copyright 2003-2015 phpMyFAQ Team
15
- * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
16
- * @link      http://www.phpmyfaq.de
17
- * @since     2003-02-24
18
- */
3
+     * The import function to import the phpMyFAQ backups
4
+     *
5
+     * PHP Version 5.3
6
+     *
7
+     * This Source Code Form is subject to the terms of the Mozilla Public License,
8
+     * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
+     * obtain one at http://mozilla.org/MPL/2.0/.
10
+     *
11
+     * @category  phpMyFAQ 
12
+     * @package   Administration
13
+     * @author    Thorsten Rinne <[email protected]>
14
+     * @copyright 2003-2015 phpMyFAQ Team
15
+     * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
16
+     * @link      http://www.phpmyfaq.de
17
+     * @since     2003-02-24
18
+     */
19 19
 
20 20
 if (!defined('IS_VALID_PHPMYFAQ')) {
21 21
     $protocol = 'http';
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -19,10 +19,10 @@  discard block
 block discarded – undo
19 19
 
20 20
 if (!defined('IS_VALID_PHPMYFAQ')) {
21 21
     $protocol = 'http';
22
-    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
22
+    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
23 23
         $protocol = 'https';
24 24
     }
25
-    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
25
+    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
26 26
     exit();
27 27
 }
28 28
 
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 
44 44
     if (isset($_FILES['userfile']) && 0 == $_FILES['userfile']['error']) {
45 45
         
46
-        $ok  = 1;
46
+        $ok = 1;
47 47
         $finfo = new finfo(FILEINFO_MIME_ENCODING);
48 48
         if ('utf-8' == $finfo->file($_FILES['userfile']['tmp_name'])) {
49 49
             print 'This file is not UTF_8 encoded.';
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         $handle          = fopen($_FILES['userfile']['tmp_name'], 'r');
53 53
         $dat             = fgets($handle, 65536);
54 54
         $versionFound    = PMF_String::substr($dat, 0, 9);
55
-        $versionExpected = '-- pmf' . substr($faqConfig->get('main.currentVersion'), 0, 3);
55
+        $versionExpected = '-- pmf'.substr($faqConfig->get('main.currentVersion'), 0, 3);
56 56
 
57 57
         if ($versionFound !== $versionExpected) {
58 58
             printf('%s (Version check failure: "%s" found, "%s" expected)',
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
                 if (PMF_String::substr($dat, 0, $backup_prefix_pattern_len) == $backup_prefix_pattern) {
83 83
                     $table_prefix = trim(PMF_String::substr($dat, $backup_prefix_pattern_len));
84 84
                 }
85
-                if ( (PMF_String::substr($dat, 0, 2) != '--') && ($dat != '') ) {
85
+                if ((PMF_String::substr($dat, 0, 2) != '--') && ($dat != '')) {
86 86
                     $mquery[] = trim(PMF_String::substr($dat, 0, -1));
87 87
                 }
88 88
             }
Please login to merge, or discard this patch.
phpmyfaq/admin/header.php 3 patches
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -1,21 +1,21 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Header of the admin area
4
- *
5
- * PHP Version 5.3
6
- *
7
- * This Source Code Form is subject to the terms of the Mozilla Public License,
8
- * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
- * obtain one at http://mozilla.org/MPL/2.0/.
10
- *
11
- * @category  phpMyFAQ
12
- * @package   Administraion
13
- * @author    Thorsten Rinne <[email protected]>
14
- * @copyright 2003-2015 phpMyFAQ Team
15
- * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
16
- * @link      http://www.phpmyfaq.de
17
- * @since     2003-02-26
18
- */
3
+     * Header of the admin area
4
+     *
5
+     * PHP Version 5.3
6
+     *
7
+     * This Source Code Form is subject to the terms of the Mozilla Public License,
8
+     * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
+     * obtain one at http://mozilla.org/MPL/2.0/.
10
+     *
11
+     * @category  phpMyFAQ
12
+     * @package   Administraion
13
+     * @author    Thorsten Rinne <[email protected]>
14
+     * @copyright 2003-2015 phpMyFAQ Team
15
+     * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
16
+     * @link      http://www.phpmyfaq.de
17
+     * @since     2003-02-26
18
+     */
19 19
 
20 20
 if (!defined('IS_VALID_PHPMYFAQ')) {
21 21
     $protocol = 'http';
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,10 +19,10 @@  discard block
 block discarded – undo
19 19
 
20 20
 if (!defined('IS_VALID_PHPMYFAQ')) {
21 21
     $protocol = 'http';
22
-    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
22
+    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
23 23
         $protocol = 'https';
24 24
     }
25
-    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
25
+    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
26 26
     exit();
27 27
 }
28 28
 
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
                 <ul class="nav pull-right">
258 258
                     <li class="dropdown">
259 259
                         <a class="dropdown-toggle" data-toggle="dropdown" href="#">
260
-                            <span title="<?php echo $PMF_LANG['ad_user_loggedin'] . $user->getLogin(); ?>">
260
+                            <span title="<?php echo $PMF_LANG['ad_user_loggedin'].$user->getLogin(); ?>">
261 261
                             <?php echo $user->getUserData('display_name'); ?>
262 262
                             </span>
263 263
                             <b class="caret"></b>
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -277,9 +277,12 @@
 block discarded – undo
277 277
                         </ul>
278 278
                     </li>
279 279
                 </ul>
280
-                <?php else: ?>
280
+                <?php else {
281
+    : ?>
281 282
                 <ul class="nav">
282
-                    <li><a href="../index.php?action=password"><?php echo $PMF_LANG["lostPassword"]; ?></a></li>
283
+                    <li><a href="../index.php?action=password"><?php echo $PMF_LANG["lostPassword"];
284
+}
285
+?></a></li>
283 286
                 </ul>
284 287
                 <?php endif; ?>
285 288
             </div>
Please login to merge, or discard this patch.
phpmyfaq/admin/group.php 3 patches
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -1,22 +1,22 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Displays the group management frontend
4
- *
5
- * PHP Version 5.3
6
- *
7
- * This Source Code Form is subject to the terms of the Mozilla Public License,
8
- * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
- * obtain one at http://mozilla.org/MPL/2.0/.
10
- *
11
- * @category  phpMyFAQ
12
- * @package   Administration
13
- * @author    Lars Tiedemann <[email protected]>
14
- * @author    Thorsten Rinne <[email protected]>
15
- * @copyright 2005-2015 phpMyFAQ Team
16
- * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
17
- * @link      http://www.phpmyfaq.de
18
- * @since     2005-12-15
19
- */
3
+                     * Displays the group management frontend
4
+                     *
5
+                     * PHP Version 5.3
6
+                     *
7
+                     * This Source Code Form is subject to the terms of the Mozilla Public License,
8
+                     * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
+                     * obtain one at http://mozilla.org/MPL/2.0/.
10
+                     *
11
+                     * @category  phpMyFAQ
12
+                     * @package   Administration
13
+                     * @author    Lars Tiedemann <[email protected]>
14
+                     * @author    Thorsten Rinne <[email protected]>
15
+                     * @copyright 2005-2015 phpMyFAQ Team
16
+                     * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
17
+                     * @link      http://www.phpmyfaq.de
18
+                     * @since     2005-12-15
19
+                     */
20 20
 
21 21
 if (!defined('IS_VALID_PHPMYFAQ')) {
22 22
     $protocol = 'http';
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,10 +20,10 @@  discard block
 block discarded – undo
20 20
 
21 21
 if (!defined('IS_VALID_PHPMYFAQ')) {
22 22
     $protocol = 'http';
23
-    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
+    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
24 24
         $protocol = 'https';
25 25
     }
26
-    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
+    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
27 27
     exit();
28 28
 }
29 29
 
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
         $groupAction = 'add';
223 223
         $message = '<p class="alert alert-error">';
224 224
         foreach ($messages as $err) {
225
-            $message .= $err . '<br />';
225
+            $message .= $err.'<br />';
226 226
         }
227 227
         $message .= '</p>';
228 228
     }
Please login to merge, or discard this patch.
Braces   +5 added lines, -3 removed lines patch added patch discarded remove patch
@@ -210,8 +210,9 @@  discard block
 block discarded – undo
210 210
             'auto_join'   => $group_auto_join
211 211
         );
212 212
 
213
-        if ($user->perm->addGroup($group_data) <= 0)
214
-            $messages[] = $PMF_LANG['ad_adus_dberr'];
213
+        if ($user->perm->addGroup($group_data) <= 0) {
214
+                    $messages[] = $PMF_LANG['ad_adus_dberr'];
215
+        }
215 216
     }
216 217
     // no errors, show list
217 218
     if (count($messages) == 0) {
@@ -228,8 +229,9 @@  discard block
 block discarded – undo
228 229
     }
229 230
 }
230 231
 
231
-if (!isset($message))
232
+if (!isset($message)) {
232 233
     $message = '';
234
+}
233 235
 
234 236
 // show new group form
235 237
 if ($groupAction == 'add' && $permission['addgroup']) {
Please login to merge, or discard this patch.
phpmyfaq/admin/backup.main.php 2 patches
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -1,21 +1,21 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Frontend for Backup and Restore
4
- *
5
- * PHP Version 5.3
6
- *
7
- * This Source Code Form is subject to the terms of the Mozilla Public License,
8
- * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
- * obtain one at http://mozilla.org/MPL/2.0/.
10
- *
11
- * @category  phpMyFAQ
12
- * @package   Administration
13
- * @author    Thorsten Rinne <[email protected]>
14
- * @copyright 2003-2015 phpMyFAQ Team
15
- * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
16
- * @link      http://www.phpmyfaq.de
17
- * @since     2003-02-24
18
- */
3
+                                                  * Frontend for Backup and Restore
4
+                                                  *
5
+                                                  * PHP Version 5.3
6
+                                                  *
7
+                                                  * This Source Code Form is subject to the terms of the Mozilla Public License,
8
+                                                  * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
+                                                  * obtain one at http://mozilla.org/MPL/2.0/.
10
+                                                  *
11
+                                                  * @category  phpMyFAQ
12
+                                                  * @package   Administration
13
+                                                  * @author    Thorsten Rinne <[email protected]>
14
+                                                  * @copyright 2003-2015 phpMyFAQ Team
15
+                                                  * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
16
+                                                  * @link      http://www.phpmyfaq.de
17
+                                                  * @since     2003-02-24
18
+                                                  */
19 19
 
20 20
 if (!defined('IS_VALID_PHPMYFAQ')) {
21 21
     $protocol = 'http';
@@ -59,5 +59,5 @@  discard block
 block discarded – undo
59 59
         </form>
60 60
 <?php
61 61
 } else {
62
-	print $PMF_LANG["err_NotAuth"];
62
+    print $PMF_LANG["err_NotAuth"];
63 63
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,10 +19,10 @@
 block discarded – undo
19 19
 
20 20
 if (!defined('IS_VALID_PHPMYFAQ')) {
21 21
     $protocol = 'http';
22
-    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
22
+    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
23 23
         $protocol = 'https';
24 24
     }
25
-    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
25
+    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
26 26
     exit();
27 27
 }
28 28
 
Please login to merge, or discard this patch.