@@ -1,24 +1,24 @@ 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 | - * |
|
| 13 | - * @author Thorsten Rinne <[email protected]> |
|
| 14 | - * @author Thomas Melchinger <[email protected]> |
|
| 15 | - * @author Matteo Scaramuccia <[email protected]> |
|
| 16 | - * @copyright 2002-2015 phpMyFAQ Team |
|
| 17 | - * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
| 18 | - * |
|
| 19 | - * @link http://www.phpmyfaq.de |
|
| 20 | - * @since 2002-01-10 |
|
| 21 | - */ |
|
| 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 | + * |
|
| 13 | + * @author Thorsten Rinne <[email protected]> |
|
| 14 | + * @author Thomas Melchinger <[email protected]> |
|
| 15 | + * @author Matteo Scaramuccia <[email protected]> |
|
| 16 | + * @copyright 2002-2015 phpMyFAQ Team |
|
| 17 | + * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
| 18 | + * |
|
| 19 | + * @link http://www.phpmyfaq.de |
|
| 20 | + * @since 2002-01-10 |
|
| 21 | + */ |
|
| 22 | 22 | 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.'); |
| 23 | 23 | define('PMF_ROOT_DIR', dirname(dirname(__FILE__))); |
| 24 | 24 | define('IS_VALID_PHPMYFAQ', null); |
@@ -101,8 +101,8 @@ discard block |
||
| 101 | 101 | if (version_compare($version, '2.8.0-alpha2', '>=')) { |
| 102 | 102 | if (!$faqConfig->get('main.maintenanceMode')) { |
| 103 | 103 | echo '<p class="alert alert-warning"><strong>Warning!</strong> Your phpMyFAQ installation is '. |
| 104 | - 'not in maintenance mode, you should enable the maintenance mode in your administration '. |
|
| 105 | - 'backend before running the update!</p>'; |
|
| 104 | + 'not in maintenance mode, you should enable the maintenance mode in your administration '. |
|
| 105 | + 'backend before running the update!</p>'; |
|
| 106 | 106 | } |
| 107 | 107 | } |
| 108 | 108 | ?> |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | // 2.5 versions only |
| 169 | 169 | if (version_compare($version, '2.6.0-alpha', '<') && !is_writeable('../template')) { |
| 170 | 170 | echo '<p class="alert alert-danger text-center"><strong>Please change the directory ../template '. |
| 171 | - 'and its contents writable (777 on Linux/UNIX).</strong></p>'; |
|
| 171 | + 'and its contents writable (777 on Linux/UNIX).</strong></p>'; |
|
| 172 | 172 | } |
| 173 | 173 | |
| 174 | 174 | // We only support updates from 2.6+ |
@@ -214,7 +214,7 @@ discard block |
||
| 214 | 214 | if (file_exists(PMF_ROOT_DIR.'/config/database.php')) { |
| 215 | 215 | if (!copy(PMF_ROOT_DIR.'/config/database.php', PMF_ROOT_DIR.'/config/database.bak.php')) { |
| 216 | 216 | echo '<p class="alert alert-danger"><strong>Error:</strong> The backup file ../config/database.bak.php '. |
| 217 | - 'could not be written. Please correct this!</p>'; |
|
| 217 | + 'could not be written. Please correct this!</p>'; |
|
| 218 | 218 | } else { |
| 219 | 219 | $checkDatabaseSetupFile = true; |
| 220 | 220 | } |
@@ -574,8 +574,8 @@ discard block |
||
| 574 | 574 | if (!$result) { |
| 575 | 575 | echo '</div>'; |
| 576 | 576 | echo '<p class="alert alert-danger"><strong>Error:</strong> Please update your version of phpMyFAQ '. |
| 577 | - 'once again or send us a <a href="http://bugs.phpmyfaq.de" target="_blank">bug report</a>.'. |
|
| 578 | - '</p>'; |
|
| 577 | + 'once again or send us a <a href="http://bugs.phpmyfaq.de" target="_blank">bug report</a>.'. |
|
| 578 | + '</p>'; |
|
| 579 | 579 | printf( |
| 580 | 580 | '<p class="alert alert-danger"><strong>DB error:</strong> %s</p>', |
| 581 | 581 | $faqConfig->getDb()->error() |
@@ -851,7 +851,7 @@ discard block |
||
| 851 | 851 | printf('<span title="%s">.</span>', $executeQuery); |
| 852 | 852 | if (!$result) { |
| 853 | 853 | echo '<p class="alert alert-danger"><strong>Error:</strong> Please install your version of phpMyFAQ once again '. |
| 854 | - 'or send us a <a href="http://bugs.phpmyfaq.de" target="_blank">bug report</a>.</p>'; |
|
| 854 | + 'or send us a <a href="http://bugs.phpmyfaq.de" target="_blank">bug report</a>.</p>'; |
|
| 855 | 855 | printf('<p class="error"><strong>DB error:</strong> %s</p>', $faqConfig->getDb()->error()); |
| 856 | 856 | printf('<code>%s</code>', htmlentities($executeQuery)); |
| 857 | 857 | PMF_System::renderFooter(); |