@@ -1,29 +1,29 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * AJAX: onDemandURL. |
|
| 4 | - * |
|
| 5 | - * Usage: |
|
| 6 | - * index.php?action=ajax&ajax=onDemandURL&id=<id>&artlang=<lang>[&lookup=1] |
|
| 7 | - * |
|
| 8 | - * Performs link verification at demand of the user. |
|
| 9 | - * |
|
| 10 | - * PHP Version 5.5 |
|
| 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 | - * @author Minoru TODA <[email protected]> |
|
| 21 | - * @author Thorsten Rinne <[email protected]> |
|
| 22 | - * @copyright 2005-2016 NetJapan, Inc. |
|
| 23 | - * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
| 24 | - * @link http://www.phpmyfaq.de |
|
| 25 | - * @since 2005-09-30 |
|
| 26 | - */ |
|
| 3 | + * AJAX: onDemandURL. |
|
| 4 | + * |
|
| 5 | + * Usage: |
|
| 6 | + * index.php?action=ajax&ajax=onDemandURL&id=<id>&artlang=<lang>[&lookup=1] |
|
| 7 | + * |
|
| 8 | + * Performs link verification at demand of the user. |
|
| 9 | + * |
|
| 10 | + * PHP Version 5.5 |
|
| 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 | + * @author Minoru TODA <[email protected]> |
|
| 21 | + * @author Thorsten Rinne <[email protected]> |
|
| 22 | + * @copyright 2005-2016 NetJapan, Inc. |
|
| 23 | + * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
| 24 | + * @link http://www.phpmyfaq.de |
|
| 25 | + * @since 2005-09-30 |
|
| 26 | + */ |
|
| 27 | 27 | if (!defined('IS_VALID_PHPMYFAQ')) { |
| 28 | 28 | $protocol = 'http'; |
| 29 | 29 | if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
@@ -1,22 +1,22 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Header of the admin area. |
|
| 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-26 |
|
| 19 | - */ |
|
| 3 | + * Header of the admin area. |
|
| 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-26 |
|
| 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 | - * Edits a category. |
|
| 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-03-10 |
|
| 19 | - */ |
|
| 3 | + * Edits a category. |
|
| 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-03-10 |
|
| 19 | + */ |
|
| 20 | 20 | if (!defined('IS_VALID_PHPMYFAQ')) { |
| 21 | 21 | $protocol = 'http'; |
| 22 | 22 | if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
@@ -490,8 +490,8 @@ |
||
| 490 | 490 | $this->headers['X-Mailer'] = $this->_mailer; |
| 491 | 491 | |
| 492 | 492 | // X-MSMail-Priority |
| 493 | - if (isset($this->priorities[(int) $this->priority])) { |
|
| 494 | - $this->headers['X-MSMail-Priority'] = $this->priorities[(int) $this->priority]; |
|
| 493 | + if (isset($this->priorities[(int)$this->priority])) { |
|
| 494 | + $this->headers['X-MSMail-Priority'] = $this->priorities[(int)$this->priority]; |
|
| 495 | 495 | } |
| 496 | 496 | |
| 497 | 497 | // X-Originating-IP |
@@ -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)); |
@@ -1,21 +1,21 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Adds a record in the database, handles the preview and checks for missing |
|
| 4 | - * category entries. |
|
| 5 | - * |
|
| 6 | - * PHP Version 5.5 |
|
| 7 | - * |
|
| 8 | - * This Source Code Form is subject to the terms of the Mozilla Public License, |
|
| 9 | - * v. 2.0. If a copy of the MPL was not distributed with this file, You can |
|
| 10 | - * obtain one at http://mozilla.org/MPL/2.0/. |
|
| 11 | - * |
|
| 12 | - * @category phpMyFAQ |
|
| 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 | - * @link http://www.phpmyfaq.de |
|
| 17 | - * @since 2003-02-23 |
|
| 18 | - */ |
|
| 3 | + * Adds a record in the database, handles the preview and checks for missing |
|
| 4 | + * category entries. |
|
| 5 | + * |
|
| 6 | + * PHP Version 5.5 |
|
| 7 | + * |
|
| 8 | + * This Source Code Form is subject to the terms of the Mozilla Public License, |
|
| 9 | + * v. 2.0. If a copy of the MPL was not distributed with this file, You can |
|
| 10 | + * obtain one at http://mozilla.org/MPL/2.0/. |
|
| 11 | + * |
|
| 12 | + * @category phpMyFAQ |
|
| 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 | + * @link http://www.phpmyfaq.de |
|
| 17 | + * @since 2003-02-23 |
|
| 18 | + */ |
|
| 19 | 19 | if (!defined('IS_VALID_PHPMYFAQ')) { |
| 20 | 20 | $protocol = 'http'; |
| 21 | 21 | if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
@@ -1,20 +1,20 @@ |
||
| 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 | - * @author Thorsten Rinne <[email protected]> |
|
| 13 | - * @copyright 2003-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 2003-02-24 |
|
| 17 | - */ |
|
| 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 | + * @author Thorsten Rinne <[email protected]> |
|
| 13 | + * @copyright 2003-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 2003-02-24 |
|
| 17 | + */ |
|
| 18 | 18 | if (!defined('IS_VALID_PHPMYFAQ')) { |
| 19 | 19 | $protocol = 'http'; |
| 20 | 20 | if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
@@ -1,21 +1,21 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * The main statistics 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 | - * @author Thorsten Rinne <[email protected]> |
|
| 13 | - * @author Matteo Scaramuccia <[email protected]> |
|
| 14 | - * @copyright 2003-2016 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 main statistics 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 | + * @author Thorsten Rinne <[email protected]> |
|
| 13 | + * @author Matteo Scaramuccia <[email protected]> |
|
| 14 | + * @copyright 2003-2016 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 | if (!defined('IS_VALID_PHPMYFAQ')) { |
| 20 | 20 | $protocol = 'http'; |
| 21 | 21 | if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
@@ -134,7 +134,7 @@ |
||
| 134 | 134 | </tr> |
| 135 | 135 | <tr> |
| 136 | 136 | <td><?php echo $PMF_LANG['ad_stat_vpd'] ?>:</td> |
| 137 | - <td><?php echo ($danz != 0) ? round(($vanz / $danz), 2) : 0 ?></td> |
|
| 137 | + <td><?php echo ($danz != 0) ? round(($vanz/$danz), 2) : 0 ?></td> |
|
| 138 | 138 | </tr> |
| 139 | 139 | <tr> |
| 140 | 140 | <td><?php echo $PMF_LANG['ad_stat_fien'] ?>:</td> |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | 'writeNumberOfArticles' => $plr->getMsg('plmsgHomeArticlesOnline', $faq->getNumberOfRecords($LANGCODE)), |
| 65 | 65 | 'writeSendAdress' => '?'.$sids.'action=search', |
| 66 | 66 | 'searchBox' => $PMF_LANG['msgSearch'], |
| 67 | - 'categoryId' => ($cat === 0) ? '%' : (int) $cat, |
|
| 67 | + 'categoryId' => ($cat === 0) ? '%' : (int)$cat, |
|
| 68 | 68 | 'msgSearch' => sprintf( |
| 69 | 69 | '<a class="help" href="%sindex.php?action=search">%s</a>', |
| 70 | 70 | $faqSystem->getSystemUri($faqConfig), |