@@ -22,10 +22,10 @@ discard block |
||
22 | 22 | |
23 | 23 | if (!defined('IS_VALID_PHPMYFAQ')) { |
24 | 24 | $protocol = 'http'; |
25 | - if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){ |
|
25 | + if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
|
26 | 26 | $protocol = 'https'; |
27 | 27 | } |
28 | - header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME'])); |
|
28 | + header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME'])); |
|
29 | 29 | exit(); |
30 | 30 | } |
31 | 31 | |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | if (!isset($_SESSION['phpmyfaq_csrf_token']) || $_SESSION['phpmyfaq_csrf_token'] !== $csrfToken) { |
57 | 57 | $csrfOkay = false; |
58 | 58 | } |
59 | - if (0 === (int) $userId || !$csrfOkay) { |
|
59 | + if (0 === (int)$userId || !$csrfOkay) { |
|
60 | 60 | $message .= sprintf('<p class="alert alert-error">%s</p>', $PMF_LANG['ad_user_error_noId']); |
61 | 61 | } else { |
62 | 62 | $user = new PMF_User($faqConfig); |
@@ -99,13 +99,13 @@ discard block |
||
99 | 99 | $stats = $user->getStatus(); |
100 | 100 | // set new password an send email if user is switched to active |
101 | 101 | if ($stats == 'blocked' && $userStatus == 'active') { |
102 | - $consonants = array("b","c","d","f","g","h","j","k","l","m","n","p","r","s","t","v","w","x","y","z"); |
|
103 | - $vowels = array("a","e","i","o","u"); |
|
102 | + $consonants = array("b", "c", "d", "f", "g", "h", "j", "k", "l", "m", "n", "p", "r", "s", "t", "v", "w", "x", "y", "z"); |
|
103 | + $vowels = array("a", "e", "i", "o", "u"); |
|
104 | 104 | $newPassword = ''; |
105 | 105 | srand((double)microtime()*1000000); |
106 | 106 | for ($i = 1; $i <= 4; $i++) { |
107 | - $newPassword .= $consonants[rand(0,19)]; |
|
108 | - $newPassword .= $vowels[rand(0,4)]; |
|
107 | + $newPassword .= $consonants[rand(0, 19)]; |
|
108 | + $newPassword .= $vowels[rand(0, 4)]; |
|
109 | 109 | } |
110 | 110 | $user->changePassword($newPassword); |
111 | 111 | |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | if (!isset($_SESSION['phpmyfaq_csrf_token']) || $_SESSION['phpmyfaq_csrf_token'] !== $csrfToken) { |
186 | 186 | $csrfOkay = false; |
187 | 187 | } |
188 | - if (0 === (int) $userId || !$csrfOkay) { |
|
188 | + if (0 === (int)$userId || !$csrfOkay) { |
|
189 | 189 | $message .= sprintf('<p class="alert alert-error">%s</p>', $PMF_LANG['ad_user_error_noId']); |
190 | 190 | } else { |
191 | 191 | if (!$user->getUserById($userId, true)) { |
@@ -281,7 +281,7 @@ discard block |
||
281 | 281 | $userAction = 'add'; |
282 | 282 | $message = '<p class="alert alert-error">'; |
283 | 283 | foreach ($messages as $err) { |
284 | - $message .= $err . '<br />'; |
|
284 | + $message .= $err.'<br />'; |
|
285 | 285 | } |
286 | 286 | $message .= '</p>'; |
287 | 287 | } |
@@ -521,7 +521,7 @@ discard block |
||
521 | 521 | |
522 | 522 | <?php |
523 | 523 | if (isset($_GET['user_id'])) { |
524 | - $userId = PMF_Filter::filterInput(INPUT_GET, 'user_id', FILTER_VALIDATE_INT, 0); |
|
524 | + $userId = PMF_Filter::filterInput(INPUT_GET, 'user_id', FILTER_VALIDATE_INT, 0); |
|
525 | 525 | echo '<script type="text/javascript">updateUser('.$userId.');</script>'; |
526 | 526 | } |
527 | 527 | } |
@@ -533,8 +533,8 @@ discard block |
||
533 | 533 | $numUsers = count($allUsers); |
534 | 534 | $page = PMF_Filter::filterInput(INPUT_GET, 'page', FILTER_VALIDATE_INT, 0); |
535 | 535 | $perPage = 10; |
536 | - $numPages = ceil($numUsers / $perPage); |
|
537 | - $lastPage = $page * $perPage; |
|
536 | + $numPages = ceil($numUsers/$perPage); |
|
537 | + $lastPage = $page*$perPage; |
|
538 | 538 | $firstPage = $lastPage - $perPage; |
539 | 539 | |
540 | 540 | $baseUrl = sprintf( |
@@ -602,7 +602,7 @@ discard block |
||
602 | 602 | <tr class="row_user_id_<?php print $user->getUserId() ?>"> |
603 | 603 | <td><?php print $user->getUserId() ?></td> |
604 | 604 | <td><i class="<?php |
605 | - switch($user->getStatus()) { |
|
605 | + switch ($user->getStatus()) { |
|
606 | 606 | case 'active': |
607 | 607 | echo "icon-ok"; |
608 | 608 | break; |
@@ -1,22 +1,22 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Frontend for search log statistics |
|
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 Anatoliy Belsky <[email protected]> |
|
14 | - * @author Thorsten Rinne <[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-03-30 |
|
19 | - */ |
|
3 | + * Frontend for search log statistics |
|
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 Anatoliy Belsky <[email protected]> |
|
14 | + * @author Thorsten Rinne <[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-03-30 |
|
19 | + */ |
|
20 | 20 | |
21 | 21 | if (!defined('IS_VALID_PHPMYFAQ')) { |
22 | 22 | $protocol = 'http'; |
@@ -20,10 +20,10 @@ discard block |
||
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 | |
@@ -33,17 +33,17 @@ discard block |
||
33 | 33 | |
34 | 34 | $perpage = 15; |
35 | 35 | $pages = PMF_Filter::filterInput(INPUT_GET, 'pages', FILTER_VALIDATE_INT); |
36 | - $page = PMF_Filter::filterInput(INPUT_GET, 'page' , FILTER_VALIDATE_INT, 1); |
|
36 | + $page = PMF_Filter::filterInput(INPUT_GET, 'page', FILTER_VALIDATE_INT, 1); |
|
37 | 37 | |
38 | 38 | $search = new PMF_Search($faqConfig); |
39 | 39 | $searchesCount = $search->getSearchesCount(); |
40 | 40 | $searchesList = $search->getMostPopularSearches($searchesCount + 1, true); |
41 | 41 | |
42 | 42 | if (is_null($pages)) { |
43 | - $pages = round((count($searchesList) + ($perpage / 3)) / $perpage, 0); |
|
43 | + $pages = round((count($searchesList) + ($perpage/3))/$perpage, 0); |
|
44 | 44 | } |
45 | 45 | |
46 | - $start = ($page - 1) * $perpage; |
|
46 | + $start = ($page - 1)*$perpage; |
|
47 | 47 | $ende = $start + $perpage; |
48 | 48 | |
49 | 49 | $baseUrl = sprintf( |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | $counter = $displayedCounter = 0; |
84 | 84 | $self = substr(__FILE__, strlen($_SERVER['DOCUMENT_ROOT'])); |
85 | 85 | |
86 | - foreach($searchesList as $searchItem) { |
|
86 | + foreach ($searchesList as $searchItem) { |
|
87 | 87 | |
88 | 88 | if ($displayedCounter >= $perpage) { |
89 | 89 | $displayedCounter++; |
@@ -96,10 +96,10 @@ discard block |
||
96 | 96 | } |
97 | 97 | $displayedCounter++; |
98 | 98 | |
99 | - $num = round(($searchItem['number']*100 / $searchesCount), 2); |
|
99 | + $num = round(($searchItem['number']*100/$searchesCount), 2); |
|
100 | 100 | ?> |
101 | 101 | <tr class="row_search_id_<?php echo $searchItem['id'] ?>"> |
102 | - <td><?php echo PMF_String::htmlspecialchars($searchItem['searchterm']); ?></td> |
|
102 | + <td><?php echo PMF_String::htmlspecialchars($searchItem['searchterm']); ?></td> |
|
103 | 103 | <td><?php echo $searchItem['number'] ?></td> |
104 | 104 | <td><?php echo $languageCodes[PMF_String::strtoupper($searchItem['lang'])] ?></td> |
105 | 105 | <td> |
@@ -1,21 +1,21 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * The export 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 2009-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 2009-08-18 |
|
18 | - */ |
|
3 | + * The export 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 2009-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 2009-08-18 |
|
18 | + */ |
|
19 | 19 | |
20 | 20 | define('PMF_ROOT_DIR', dirname(__DIR__)); |
21 | 21 |
@@ -27,13 +27,13 @@ discard block |
||
27 | 27 | // |
28 | 28 | // Bootstrapping |
29 | 29 | // |
30 | -require PMF_ROOT_DIR . '/inc/Bootstrap.php'; |
|
30 | +require PMF_ROOT_DIR.'/inc/Bootstrap.php'; |
|
31 | 31 | |
32 | 32 | $action = PMF_Filter::filterInput(INPUT_GET, 'action', FILTER_SANITIZE_STRING); |
33 | 33 | |
34 | 34 | $auth = false; |
35 | 35 | $user = PMF_User_CurrentUser::getFromCookie($faqConfig); |
36 | -if (! $user instanceof PMF_User_CurrentUser) { |
|
36 | +if (!$user instanceof PMF_User_CurrentUser) { |
|
37 | 37 | $user = PMF_User_CurrentUser::getFromSession($faqConfig); |
38 | 38 | } |
39 | 39 | if ($user) { |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | if ($permission['backup']) { |
68 | 68 | |
69 | 69 | $tables = $tableNames = $faqConfig->getDb()->getTableNames(PMF_Db::getTablePrefix()); |
70 | - $tablePrefix = (PMF_Db::getTablePrefix() !== '') ? PMF_Db::getTablePrefix() . '.phpmyfaq' : 'phpmyfaq'; |
|
70 | + $tablePrefix = (PMF_Db::getTablePrefix() !== '') ? PMF_Db::getTablePrefix().'.phpmyfaq' : 'phpmyfaq'; |
|
71 | 71 | $tableNames = ''; |
72 | 72 | $majorVersion = substr($faqConfig->get('main.currentVersion'), 0, 3); |
73 | 73 | $dbHelper = new PMF_DB_Helper($faqConfig); |
@@ -75,24 +75,24 @@ discard block |
||
75 | 75 | switch ($action) { |
76 | 76 | case 'backup_content' : |
77 | 77 | foreach ($tables as $table) { |
78 | - if ((PMF_Db::getTablePrefix() . 'faqadminlog' == trim($table)) || (PMF_Db::getTablePrefix() . 'faqsessions' == trim($table))) { |
|
78 | + if ((PMF_Db::getTablePrefix().'faqadminlog' == trim($table)) || (PMF_Db::getTablePrefix().'faqsessions' == trim($table))) { |
|
79 | 79 | continue; |
80 | 80 | } |
81 | - $tableNames .= $table . ' '; |
|
81 | + $tableNames .= $table.' '; |
|
82 | 82 | } |
83 | 83 | break; |
84 | 84 | case 'backup_logs' : |
85 | 85 | foreach ($tables as $table) { |
86 | - if ((PMF_Db::getTablePrefix() . 'faqadminlog' == trim($table)) || (PMF_Db::getTablePrefix() . 'faqsessions' == trim($table))) { |
|
87 | - $tableNames .= $table . ' '; |
|
86 | + if ((PMF_Db::getTablePrefix().'faqadminlog' == trim($table)) || (PMF_Db::getTablePrefix().'faqsessions' == trim($table))) { |
|
87 | + $tableNames .= $table.' '; |
|
88 | 88 | } |
89 | 89 | } |
90 | 90 | break; |
91 | 91 | } |
92 | 92 | |
93 | - $text[] = "-- pmf" . $majorVersion . ": " . $tableNames; |
|
93 | + $text[] = "-- pmf".$majorVersion.": ".$tableNames; |
|
94 | 94 | $text[] = "-- DO NOT REMOVE THE FIRST LINE!"; |
95 | - $text[] = "-- pmftableprefix: " . PMF_Db::getTablePrefix(); |
|
95 | + $text[] = "-- pmftableprefix: ".PMF_Db::getTablePrefix(); |
|
96 | 96 | $text[] = "-- DO NOT REMOVE THE LINES ABOVE!"; |
97 | 97 | $text[] = "-- Otherwise this backup will be broken."; |
98 | 98 | |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | header($header); |
107 | 107 | foreach (explode(' ', $tableNames) as $table) { |
108 | 108 | print implode("\r\n", $text); |
109 | - $text = $dbHelper->buildInsertQueries("SELECT * FROM " . $table, $table); |
|
109 | + $text = $dbHelper->buildInsertQueries("SELECT * FROM ".$table, $table); |
|
110 | 110 | } |
111 | 111 | break; |
112 | 112 | case 'backup_logs' : |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | header($header); |
119 | 119 | foreach (explode(' ', $tableNames) as $table) { |
120 | 120 | print implode("\r\n", $text); |
121 | - $text = $dbHelper->buildInsertQueries("SELECT * FROM " . $table, $table); |
|
121 | + $text = $dbHelper->buildInsertQueries("SELECT * FROM ".$table, $table); |
|
122 | 122 | } |
123 | 123 | break; |
124 | 124 | } |
@@ -75,8 +75,9 @@ |
||
75 | 75 | // check user rights, set them TRUE |
76 | 76 | $allUserRights = $user->perm->getAllUserRights($user->getUserId()); |
77 | 77 | foreach ($allRights as $right) { |
78 | - if (in_array($right['right_id'], $allUserRights)) |
|
79 | - $permission[$right['name']] = true; |
|
78 | + if (in_array($right['right_id'], $allUserRights)) { |
|
79 | + $permission[$right['name']] = true; |
|
80 | + } |
|
80 | 81 | } |
81 | 82 | } |
82 | 83 |
@@ -1,22 +1,22 @@ |
||
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'; |
@@ -20,10 +20,10 @@ discard block |
||
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 |
||
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 .= '&linkstate=linkbad'; |
150 | 150 | } |
151 | 151 | if (!is_null($searchCat)) { |
152 | - $internalSearch .= "&searchcat=" . $searchCat; |
|
153 | - $cond[PMF_Db::getTablePrefix() . 'faqcategoryrelations.category_id'] = array_merge( |
|
152 | + $internalSearch .= "&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 |
||
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 |
||
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 |
||
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 |
||
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&id=<?php print $record['id']; ?>&lang=<?php print $record['lang']; ?>"> |
386 | 386 | <?php print $record['id']; ?> |
@@ -397,17 +397,17 @@ discard block |
||
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 |
||
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 |
||
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", |
@@ -407,7 +407,7 @@ |
||
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> |
@@ -1,30 +1,30 @@ |
||
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'; |
@@ -20,10 +20,10 @@ |
||
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 |
@@ -20,10 +20,10 @@ discard block |
||
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 |
||
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> |
@@ -1,22 +1,22 @@ |
||
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'; |
@@ -20,10 +20,10 @@ discard block |
||
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 |
||
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 | } |
@@ -1,21 +1,21 @@ |
||
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'; |
@@ -20,10 +20,10 @@ |
||
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 |
@@ -1,21 +1,21 @@ |
||
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'; |
@@ -19,10 +19,10 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 | } |