@@ -1,30 +1,30 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * The main phpMyFAQ Setup. |
|
| 4 | - * |
|
| 5 | - * This script checks the complete environment, writes the database connection |
|
| 6 | - * parameters into the file config/database.php and the configuration into the database. |
|
| 7 | - * |
|
| 8 | - * PHP Version 5.5 |
|
| 9 | - * |
|
| 10 | - * This Source Code Form is subject to the terms of the Mozilla Public License, |
|
| 11 | - * v. 2.0. If a copy of the MPL was not distributed with this file, You can |
|
| 12 | - * obtain one at http://mozilla.org/MPL/2.0/. |
|
| 13 | - * |
|
| 14 | - * @category phpMyFAQ |
|
| 15 | - * |
|
| 16 | - * @author Thorsten Rinne <[email protected]> |
|
| 17 | - * @author Tom Rochester <[email protected]> |
|
| 18 | - * @author Johannes Schlüter <[email protected]> |
|
| 19 | - * @author Uwe Pries <[email protected]> |
|
| 20 | - * @author Matteo Scaramuccia <[email protected]> |
|
| 21 | - * @author Florian Anderiasch <[email protected]> |
|
| 22 | - * @copyright 2002-2016 phpMyFAQ Team |
|
| 23 | - * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
| 24 | - * |
|
| 25 | - * @link http://www.phpmyfaq.de |
|
| 26 | - * @since 2002-08-20 |
|
| 27 | - */ |
|
| 3 | + * The main phpMyFAQ Setup. |
|
| 4 | + * |
|
| 5 | + * This script checks the complete environment, writes the database connection |
|
| 6 | + * parameters into the file config/database.php and the configuration into the database. |
|
| 7 | + * |
|
| 8 | + * PHP Version 5.5 |
|
| 9 | + * |
|
| 10 | + * This Source Code Form is subject to the terms of the Mozilla Public License, |
|
| 11 | + * v. 2.0. If a copy of the MPL was not distributed with this file, You can |
|
| 12 | + * obtain one at http://mozilla.org/MPL/2.0/. |
|
| 13 | + * |
|
| 14 | + * @category phpMyFAQ |
|
| 15 | + * |
|
| 16 | + * @author Thorsten Rinne <[email protected]> |
|
| 17 | + * @author Tom Rochester <[email protected]> |
|
| 18 | + * @author Johannes Schlüter <[email protected]> |
|
| 19 | + * @author Uwe Pries <[email protected]> |
|
| 20 | + * @author Matteo Scaramuccia <[email protected]> |
|
| 21 | + * @author Florian Anderiasch <[email protected]> |
|
| 22 | + * @copyright 2002-2016 phpMyFAQ Team |
|
| 23 | + * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
| 24 | + * |
|
| 25 | + * @link http://www.phpmyfaq.de |
|
| 26 | + * @since 2002-08-20 |
|
| 27 | + */ |
|
| 28 | 28 | define('COPYRIGHT', '© 2001-2015 <a href="http://www.phpmyfaq.de/">phpMyFAQ Team</a> | Follow us on <a href="http://twitter.com/phpMyFAQ">Twitter</a> | All rights reserved.'); |
| 29 | 29 | define('PMF_ROOT_DIR', dirname(dirname(__FILE__))); |
| 30 | 30 | define('PMF_INCLUDE_DIR', PMF_ROOT_DIR.'/inc'); |
@@ -1,22 +1,22 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Main update script. |
|
| 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 Thomas Melchinger <[email protected]> |
|
| 14 | - * @author Matteo Scaramuccia <[email protected]> |
|
| 15 | - * @copyright 2002-2016 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 2002-01-10 |
|
| 19 | - */ |
|
| 3 | + * Main update script. |
|
| 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 Thomas Melchinger <[email protected]> |
|
| 14 | + * @author Matteo Scaramuccia <[email protected]> |
|
| 15 | + * @copyright 2002-2016 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 2002-01-10 |
|
| 19 | + */ |
|
| 20 | 20 | define('COPYRIGHT', '© 2001-2015 <a target="_blank" href="http://www.phpmyfaq.de/">phpMyFAQ Team</a>'); |
| 21 | 21 | define('PMF_ROOT_DIR', dirname(dirname(__FILE__))); |
| 22 | 22 | define('IS_VALID_PHPMYFAQ', null); |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | // 2.5 versions only |
| 161 | 161 | if (version_compare($version, '2.6.0-alpha', '<') && !is_writeable('../template')) { |
| 162 | 162 | echo '<p class="alert alert-danger text-center"><strong>Please change the directory ../template '. |
| 163 | - 'and its contents writable (777 on Linux/UNIX).</strong></p>'; |
|
| 163 | + 'and its contents writable (777 on Linux/UNIX).</strong></p>'; |
|
| 164 | 164 | } |
| 165 | 165 | |
| 166 | 166 | // We only support updates from 2.6+ |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | if (file_exists(PMF_ROOT_DIR.'/config/database.php')) { |
| 207 | 207 | if (!copy(PMF_ROOT_DIR.'/config/database.php', PMF_ROOT_DIR.'/config/database.bak.php')) { |
| 208 | 208 | echo '<p class="alert alert-danger"><strong>Error:</strong> The backup file ../config/database.bak.php '. |
| 209 | - 'could not be written. Please correct this!</p>'; |
|
| 209 | + 'could not be written. Please correct this!</p>'; |
|
| 210 | 210 | } else { |
| 211 | 211 | $checkDatabaseSetupFile = true; |
| 212 | 212 | $updateMessages[] = 'A backup of your database configuration file has been made.'; |
@@ -603,8 +603,8 @@ discard block |
||
| 603 | 603 | if (!$result) { |
| 604 | 604 | echo '</div>'; |
| 605 | 605 | echo '<p class="alert alert-danger"><strong>Error:</strong> Please update your version of phpMyFAQ '. |
| 606 | - 'once again or send us a <a href="http://bugs.phpmyfaq.de" target="_blank">bug report</a>.'. |
|
| 607 | - '</p>'; |
|
| 606 | + 'once again or send us a <a href="http://bugs.phpmyfaq.de" target="_blank">bug report</a>.'. |
|
| 607 | + '</p>'; |
|
| 608 | 608 | printf( |
| 609 | 609 | '<p class="alert alert-danger"><strong>DB error:</strong> %s</p>', |
| 610 | 610 | $faqConfig->getDb()->error() |
@@ -881,7 +881,7 @@ discard block |
||
| 881 | 881 | printf('<span title="%s"><i class="fa fa-circle"></i></span>', $executeQuery); |
| 882 | 882 | if (!$result) { |
| 883 | 883 | echo '<p class="alert alert-danger"><strong>Error:</strong> Please install your version of phpMyFAQ once again '. |
| 884 | - 'or send us a <a href="http://bugs.phpmyfaq.de" target="_blank">bug report</a>.</p>'; |
|
| 884 | + 'or send us a <a href="http://bugs.phpmyfaq.de" target="_blank">bug report</a>.</p>'; |
|
| 885 | 885 | printf('<p class="error"><strong>DB error:</strong> %s</p>', $faqConfig->getDb()->error()); |
| 886 | 886 | printf('<code>%s</code>', htmlentities($executeQuery)); |
| 887 | 887 | PMF_System::renderFooter(); |
@@ -1,22 +1,22 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Attachment migration script. |
|
| 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 Anatoliy Belsky <[email protected]> |
|
| 14 | - * @copyright 2009-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 2009-09-13 |
|
| 19 | - */ |
|
| 3 | + * Attachment migration script. |
|
| 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 Anatoliy Belsky <[email protected]> |
|
| 14 | + * @copyright 2009-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 2009-09-13 |
|
| 19 | + */ |
|
| 20 | 20 | set_time_limit(0); |
| 21 | 21 | |
| 22 | 22 | define('PMF_ROOT_DIR', dirname(__DIR__)); |
@@ -66,8 +66,8 @@ discard block |
||
| 66 | 66 | /* case PMF_Attachment_Migration::MIGRATION_TYPE3: |
| 67 | 67 | case PMF_Attachment_Migration::MIGRATION_TYPE4:*/ |
| 68 | 68 | $options['defaultKey'] = PMF_Filter::filterInput(INPUT_POST, |
| 69 | - 'defaultKey', |
|
| 70 | - FILTER_SANITIZE_STRING); |
|
| 69 | + 'defaultKey', |
|
| 70 | + FILTER_SANITIZE_STRING); |
|
| 71 | 71 | break; |
| 72 | 72 | |
| 73 | 73 | default: |