@@ -1,20 +1,20 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Linkverifier Helper class for phpMyFAQ. |
|
| 4 | - * |
|
| 5 | - * PHP Version 5.5 |
|
| 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 | - * @author Thorsten Rinne <[email protected]> |
|
| 13 | - * @copyright 2012-2016 phpMyFAQ Team |
|
| 14 | - * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
| 15 | - * @link http://www.phpmyfaq.de |
|
| 16 | - * @since 2012-09-03 |
|
| 17 | - */ |
|
| 3 | + * Linkverifier Helper class for phpMyFAQ. |
|
| 4 | + * |
|
| 5 | + * PHP Version 5.5 |
|
| 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 | + * @author Thorsten Rinne <[email protected]> |
|
| 13 | + * @copyright 2012-2016 phpMyFAQ Team |
|
| 14 | + * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
| 15 | + * @link http://www.phpmyfaq.de |
|
| 16 | + * @since 2012-09-03 |
|
| 17 | + */ |
|
| 18 | 18 | if (!defined('IS_VALID_PHPMYFAQ')) { |
| 19 | 19 | exit(); |
| 20 | 20 | } |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | 'bool' => [ |
| 92 | 92 | 'must' => [ |
| 93 | 93 | [ |
| 94 | - 'terms' => [ 'category_id' => $this->getCategoryIds() ] |
|
| 94 | + 'terms' => ['category_id' => $this->getCategoryIds()] |
|
| 95 | 95 | ], |
| 96 | 96 | $languageFilter |
| 97 | 97 | ] |
@@ -100,9 +100,9 @@ discard block |
||
| 100 | 100 | 'query' => [ |
| 101 | 101 | 'bool' => [ |
| 102 | 102 | 'should' => [ |
| 103 | - [ 'match' => [ 'question' => $searchTerm ] ], |
|
| 104 | - [ 'match' => [ 'answer' => $searchTerm ] ], |
|
| 105 | - [ 'match' => [ 'keywords' => $searchTerm ] ] |
|
| 103 | + ['match' => ['question' => $searchTerm]], |
|
| 104 | + ['match' => ['answer' => $searchTerm]], |
|
| 105 | + ['match' => ['keywords' => $searchTerm]] |
|
| 106 | 106 | ] |
| 107 | 107 | ] |
| 108 | 108 | ] |
@@ -161,9 +161,9 @@ discard block |
||
| 161 | 161 | 'query' => [ |
| 162 | 162 | 'bool' => [ |
| 163 | 163 | 'should' => [ |
| 164 | - [ 'match' => [ 'question' => $searchTerm ] ], |
|
| 165 | - [ 'match' => [ 'answer' => $searchTerm ] ], |
|
| 166 | - [ 'match' => [ 'keywords' => $searchTerm ] ] |
|
| 164 | + ['match' => ['question' => $searchTerm]], |
|
| 165 | + ['match' => ['answer' => $searchTerm]], |
|
| 166 | + ['match' => ['keywords' => $searchTerm]] |
|
| 167 | 167 | ] |
| 168 | 168 | ] |
| 169 | 169 | ] |
@@ -1,23 +1,23 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * AJAX: lists the complete configuration items as text/html. |
|
| 4 | - * |
|
| 5 | - * PHP Version 5.5 |
|
| 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 | - * |
|
| 13 | - * @author Thorsten Rinne <[email protected]> |
|
| 14 | - * @author Thomas Zeithaml <[email protected]> |
|
| 15 | - * @copyright 2005-2016 phpMyFAQ Team |
|
| 16 | - * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
| 17 | - * |
|
| 18 | - * @link http://www.phpmyfaq.de |
|
| 19 | - * @since 2005-12-26 |
|
| 20 | - */ |
|
| 3 | + * AJAX: lists the complete configuration items as text/html. |
|
| 4 | + * |
|
| 5 | + * PHP Version 5.5 |
|
| 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 | + * |
|
| 13 | + * @author Thorsten Rinne <[email protected]> |
|
| 14 | + * @author Thomas Zeithaml <[email protected]> |
|
| 15 | + * @copyright 2005-2016 phpMyFAQ Team |
|
| 16 | + * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
| 17 | + * |
|
| 18 | + * @link http://www.phpmyfaq.de |
|
| 19 | + * @since 2005-12-26 |
|
| 20 | + */ |
|
| 21 | 21 | if (!defined('IS_VALID_PHPMYFAQ')) { |
| 22 | 22 | $protocol = 'http'; |
| 23 | 23 | if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
@@ -108,8 +108,8 @@ discard block |
||
| 108 | 108 | echo PMF_Language::languageOptions( |
| 109 | 109 | str_replace( |
| 110 | 110 | array( |
| 111 | - 'language_', |
|
| 112 | - '.php', |
|
| 111 | + 'language_', |
|
| 112 | + '.php', |
|
| 113 | 113 | ), |
| 114 | 114 | '', |
| 115 | 115 | $faqConfig->get('main.language') |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | } else { |
| 121 | 121 | echo '<option value="language_en.php">English</option>'; |
| 122 | 122 | } |
| 123 | - break; |
|
| 123 | + break; |
|
| 124 | 124 | |
| 125 | 125 | case 'records.orderby': |
| 126 | 126 | echo PMF_Configuration::sortingOptions($faqConfig->get($key)); |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | ? ' selected' |
| 158 | 158 | : ''; |
| 159 | 159 | printf('<option value="%d"%s>%s</option>', |
| 160 | - $i, $selected, $item); |
|
| 160 | + $i, $selected, $item); |
|
| 161 | 161 | } |
| 162 | 162 | break; |
| 163 | 163 | |
@@ -1,22 +1,22 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * The import function to import the phpMyFAQ backups. |
|
| 4 | - * |
|
| 5 | - * PHP Version 5.5 |
|
| 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 | - * |
|
| 13 | - * @author Thorsten Rinne <[email protected]> |
|
| 14 | - * @copyright 2003-2016 phpMyFAQ Team |
|
| 15 | - * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
| 16 | - * |
|
| 17 | - * @link http://www.phpmyfaq.de |
|
| 18 | - * @since 2003-02-24 |
|
| 19 | - */ |
|
| 3 | + * The import function to import the phpMyFAQ backups. |
|
| 4 | + * |
|
| 5 | + * PHP Version 5.5 |
|
| 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 | + * |
|
| 13 | + * @author Thorsten Rinne <[email protected]> |
|
| 14 | + * @copyright 2003-2016 phpMyFAQ Team |
|
| 15 | + * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
| 16 | + * |
|
| 17 | + * @link http://www.phpmyfaq.de |
|
| 18 | + * @since 2003-02-24 |
|
| 19 | + */ |
|
| 20 | 20 | if (!defined('IS_VALID_PHPMYFAQ')) { |
| 21 | 21 | $protocol = 'http'; |
| 22 | 22 | if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
@@ -1,22 +1,22 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Frontend for Backup and Restore. |
|
| 4 | - * |
|
| 5 | - * PHP Version 5.5 |
|
| 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 | - * |
|
| 13 | - * @author Thorsten Rinne <[email protected]> |
|
| 14 | - * @copyright 2003-2016 phpMyFAQ Team |
|
| 15 | - * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
| 16 | - * |
|
| 17 | - * @link http://www.phpmyfaq.de |
|
| 18 | - * @since 2003-02-24 |
|
| 19 | - */ |
|
| 3 | + * Frontend for Backup and Restore. |
|
| 4 | + * |
|
| 5 | + * PHP Version 5.5 |
|
| 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 | + * |
|
| 13 | + * @author Thorsten Rinne <[email protected]> |
|
| 14 | + * @copyright 2003-2016 phpMyFAQ Team |
|
| 15 | + * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
| 16 | + * |
|
| 17 | + * @link http://www.phpmyfaq.de |
|
| 18 | + * @since 2003-02-24 |
|
| 19 | + */ |
|
| 20 | 20 | if (!defined('IS_VALID_PHPMYFAQ')) { |
| 21 | 21 | $protocol = 'http'; |
| 22 | 22 | if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
@@ -1,22 +1,22 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Displays a form to add a glossary item. |
|
| 4 | - * |
|
| 5 | - * PHP Version 5.5 |
|
| 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 | - * |
|
| 13 | - * @author Thorsten Rinne <[email protected]> |
|
| 14 | - * @copyright 2005-2016 phpMyFAQ Team |
|
| 15 | - * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
| 16 | - * |
|
| 17 | - * @link http://www.phpmyfaq.de |
|
| 18 | - * @since 2005-09-15 |
|
| 19 | - */ |
|
| 3 | + * Displays a form to add a glossary item. |
|
| 4 | + * |
|
| 5 | + * PHP Version 5.5 |
|
| 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 | + * |
|
| 13 | + * @author Thorsten Rinne <[email protected]> |
|
| 14 | + * @copyright 2005-2016 phpMyFAQ Team |
|
| 15 | + * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
| 16 | + * |
|
| 17 | + * @link http://www.phpmyfaq.de |
|
| 18 | + * @since 2005-09-15 |
|
| 19 | + */ |
|
| 20 | 20 | if (!defined('IS_VALID_PHPMYFAQ')) { |
| 21 | 21 | $protocol = 'http'; |
| 22 | 22 | if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
@@ -1,22 +1,22 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * The main multi-site instances frontend. |
|
| 4 | - * |
|
| 5 | - * PHP Version 5.5 |
|
| 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 | - * |
|
| 13 | - * @author Thorsten Rinne <[email protected]> |
|
| 14 | - * @copyright 2012-2016 phpMyFAQ Team |
|
| 15 | - * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
| 16 | - * |
|
| 17 | - * @link http://www.phpmyfaq.de |
|
| 18 | - * @since 2012-03-16 |
|
| 19 | - */ |
|
| 3 | + * The main multi-site instances frontend. |
|
| 4 | + * |
|
| 5 | + * PHP Version 5.5 |
|
| 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 | + * |
|
| 13 | + * @author Thorsten Rinne <[email protected]> |
|
| 14 | + * @copyright 2012-2016 phpMyFAQ Team |
|
| 15 | + * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
| 16 | + * |
|
| 17 | + * @link http://www.phpmyfaq.de |
|
| 18 | + * @since 2012-03-16 |
|
| 19 | + */ |
|
| 20 | 20 | if (!defined('IS_VALID_PHPMYFAQ')) { |
| 21 | 21 | $protocol = 'http'; |
| 22 | 22 | if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
@@ -1,22 +1,22 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Shows all comments in the categories and provides a link to delete comments. |
|
| 4 | - * |
|
| 5 | - * PHP Version 5.5 |
|
| 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 | - * |
|
| 13 | - * @author Thorsten Rinne <[email protected]> |
|
| 14 | - * @copyright 2007-2016 phpMyFAQ Team |
|
| 15 | - * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
| 16 | - * |
|
| 17 | - * @link http://www.phpmyfaq.de |
|
| 18 | - * @since 2007-03-04 |
|
| 19 | - */ |
|
| 3 | + * Shows all comments in the categories and provides a link to delete comments. |
|
| 4 | + * |
|
| 5 | + * PHP Version 5.5 |
|
| 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 | + * |
|
| 13 | + * @author Thorsten Rinne <[email protected]> |
|
| 14 | + * @copyright 2007-2016 phpMyFAQ Team |
|
| 15 | + * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
| 16 | + * |
|
| 17 | + * @link http://www.phpmyfaq.de |
|
| 18 | + * @since 2007-03-04 |
|
| 19 | + */ |
|
| 20 | 20 | if (!defined('IS_VALID_PHPMYFAQ')) { |
| 21 | 21 | $protocol = 'http'; |
| 22 | 22 | if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
@@ -80,9 +80,9 @@ discard block |
||
| 80 | 80 | <?php print $date->format(date('Y-m-d H:i', $faqcomment['date'])); |
| 81 | 81 | ?> | |
| 82 | 82 | <a href="<?php printf('../?action=artikel&cat=%d&id=%d&artlang=%s', |
| 83 | - $faqcomment['category_id'], |
|
| 84 | - $faqcomment['record_id'], |
|
| 85 | - $LANGCODE); |
|
| 83 | + $faqcomment['category_id'], |
|
| 84 | + $faqcomment['record_id'], |
|
| 85 | + $LANGCODE); |
|
| 86 | 86 | ?>"> |
| 87 | 87 | <?php print $faq->getRecordTitle($faqcomment['record_id']); |
| 88 | 88 | ?> |
@@ -1,23 +1,23 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * The reporting page. |
|
| 4 | - * |
|
| 5 | - * PHP Version 5.5 |
|
| 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 | - * |
|
| 13 | - * @author Gustavo Solt <[email protected]> |
|
| 14 | - * @author Thorsten Rinne <[email protected]> |
|
| 15 | - * @copyright 2011-2016 phpMyFAQ Team |
|
| 16 | - * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
| 17 | - * |
|
| 18 | - * @link http://www.phpmyfaq.de |
|
| 19 | - * @since 2011-01-12 |
|
| 20 | - */ |
|
| 3 | + * The reporting page. |
|
| 4 | + * |
|
| 5 | + * PHP Version 5.5 |
|
| 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 | + * |
|
| 13 | + * @author Gustavo Solt <[email protected]> |
|
| 14 | + * @author Thorsten Rinne <[email protected]> |
|
| 15 | + * @copyright 2011-2016 phpMyFAQ Team |
|
| 16 | + * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
| 17 | + * |
|
| 18 | + * @link http://www.phpmyfaq.de |
|
| 19 | + * @since 2011-01-12 |
|
| 20 | + */ |
|
| 21 | 21 | if (!defined('IS_VALID_PHPMYFAQ')) { |
| 22 | 22 | $protocol = 'http'; |
| 23 | 23 | if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |