@@ -1,23 +1,23 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * CREATE TABLE instruction for PostgreSQL database |
|
| 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 Setup |
|
| 13 | - * @author Thorsten Rinne <[email protected]> |
|
| 14 | - * @author Tom Rochester <[email protected]> |
|
| 15 | - * @author Matteo Scaramuccia <[email protected]> |
|
| 16 | - * @copyright 2004-2016 phpMyFAQ Team |
|
| 17 | - * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
| 18 | - * @link http://www.phpmyfaq.de |
|
| 19 | - * @since 2004-09-18 |
|
| 20 | - */ |
|
| 3 | + * CREATE TABLE instruction for PostgreSQL database |
|
| 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 Setup |
|
| 13 | + * @author Thorsten Rinne <[email protected]> |
|
| 14 | + * @author Tom Rochester <[email protected]> |
|
| 15 | + * @author Matteo Scaramuccia <[email protected]> |
|
| 16 | + * @copyright 2004-2016 phpMyFAQ Team |
|
| 17 | + * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
| 18 | + * @link http://www.phpmyfaq.de |
|
| 19 | + * @since 2004-09-18 |
|
| 20 | + */ |
|
| 21 | 21 | |
| 22 | 22 | $uninst[] = "DROP TABLE IF EXISTS ".$sqltblpre."faqadminlog CASCADE"; |
| 23 | 23 | $uninst[] = "DROP TABLE IF EXISTS ".$sqltblpre."faqattachment CASCADE"; |
@@ -1,23 +1,23 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * CREATE TABLE instruction for MySQL database |
|
| 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 Setup |
|
| 13 | - * @author Thorsten Rinne <[email protected]> |
|
| 14 | - * @author Tom Rochester <[email protected]> |
|
| 15 | - * @author Lars Tiedemann <[email protected]> |
|
| 16 | - * @copyright 2004-2016 phpMyFAQ Team |
|
| 17 | - * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
| 18 | - * @link http://www.phpmyfaq.de |
|
| 19 | - * @since 2004-09-18 |
|
| 20 | - */ |
|
| 3 | + * CREATE TABLE instruction for MySQL database |
|
| 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 Setup |
|
| 13 | + * @author Thorsten Rinne <[email protected]> |
|
| 14 | + * @author Tom Rochester <[email protected]> |
|
| 15 | + * @author Lars Tiedemann <[email protected]> |
|
| 16 | + * @copyright 2004-2016 phpMyFAQ Team |
|
| 17 | + * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
| 18 | + * @link http://www.phpmyfaq.de |
|
| 19 | + * @since 2004-09-18 |
|
| 20 | + */ |
|
| 21 | 21 | |
| 22 | 22 | $uninst[] = "DROP TABLE ".$sqltblpre."faqadminlog"; |
| 23 | 23 | $uninst[] = "DROP TABLE ".$sqltblpre."faqattachment"; |
@@ -1,24 +1,24 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * UTF-8 Migration SQL queries for MySQL (ext/mysql) |
|
| 4 | - * |
|
| 5 | - * Example solution: |
|
| 6 | - * ALTER TABLE `name` MODIFY COLUMN `title` VARCHAR(255) CHARACTER SET utf8; |
|
| 7 | - * |
|
| 8 | - * PHP Version 5.3.0 |
|
| 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 | - * @package Installation |
|
| 16 | - * @author Thorsten Rinne <[email protected]> |
|
| 17 | - * @copyright 2009-2016 phpMyFAQ Team |
|
| 18 | - * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
| 19 | - * @link http://www.phpmyfaq.de |
|
| 20 | - * @since 2009-05-14 |
|
| 21 | - */ |
|
| 3 | + * UTF-8 Migration SQL queries for MySQL (ext/mysql) |
|
| 4 | + * |
|
| 5 | + * Example solution: |
|
| 6 | + * ALTER TABLE `name` MODIFY COLUMN `title` VARCHAR(255) CHARACTER SET utf8; |
|
| 7 | + * |
|
| 8 | + * PHP Version 5.3.0 |
|
| 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 | + * @package Installation |
|
| 16 | + * @author Thorsten Rinne <[email protected]> |
|
| 17 | + * @copyright 2009-2016 phpMyFAQ Team |
|
| 18 | + * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
| 19 | + * @link http://www.phpmyfaq.de |
|
| 20 | + * @since 2009-05-14 |
|
| 21 | + */ |
|
| 22 | 22 | |
| 23 | 23 | // Table faqadminlog |
| 24 | 24 | $query[] = "ALTER TABLE ".PMF_Db::getTablePrefix()."faqadminlog MODIFY COLUMN text VARCHAR(255) CHARACTER SET utf8"; |
@@ -1,22 +1,22 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Clears PHP sessions and redirects to the connect page. |
|
| 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 Services |
|
| 13 | - * @author Thorsten Rinne <[email protected]> |
|
| 14 | - * @author Thomas Zeithaml <[email protected]> |
|
| 15 | - * @copyright 2010-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 2010-09-18 |
|
| 19 | - */ |
|
| 3 | + * Clears PHP sessions and redirects to the connect page. |
|
| 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 Services |
|
| 13 | + * @author Thorsten Rinne <[email protected]> |
|
| 14 | + * @author Thomas Zeithaml <[email protected]> |
|
| 15 | + * @copyright 2010-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 2010-09-18 |
|
| 19 | + */ |
|
| 20 | 20 | |
| 21 | 21 | // |
| 22 | 22 | // Prepend and start the PHP session |
@@ -1,22 +1,22 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Clears PHP sessions and redirects to the connect page. |
|
| 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 Services |
|
| 13 | - * @author Thorsten Rinne <[email protected]> |
|
| 14 | - * @author Thomas Zeithaml <[email protected]> |
|
| 15 | - * @copyright 2010-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 2010-09-18 |
|
| 19 | - */ |
|
| 3 | + * Clears PHP sessions and redirects to the connect page. |
|
| 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 Services |
|
| 13 | + * @author Thorsten Rinne <[email protected]> |
|
| 14 | + * @author Thomas Zeithaml <[email protected]> |
|
| 15 | + * @copyright 2010-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 2010-09-18 |
|
| 19 | + */ |
|
| 20 | 20 | |
| 21 | 21 | // |
| 22 | 22 | // Prepend and start the PHP session |
@@ -1,22 +1,22 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Take the user when they return from Twitter. Get access tokens. |
|
| 4 | - * Verify credentials and redirect to based on response from Twitter. |
|
| 5 | - * |
|
| 6 | - * PHP Version 5.3 |
|
| 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 | - * @package Services |
|
| 14 | - * @author Thorsten Rinne <[email protected]> |
|
| 15 | - * @copyright 2010-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 2010-09-18 |
|
| 19 | - */ |
|
| 3 | + * Take the user when they return from Twitter. Get access tokens. |
|
| 4 | + * Verify credentials and redirect to based on response from Twitter. |
|
| 5 | + * |
|
| 6 | + * PHP Version 5.3 |
|
| 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 | + * @package Services |
|
| 14 | + * @author Thorsten Rinne <[email protected]> |
|
| 15 | + * @copyright 2010-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 2010-09-18 |
|
| 19 | + */ |
|
| 20 | 20 | |
| 21 | 21 | // |
| 22 | 22 | // Prepend and start the PHP session |
@@ -34,8 +34,8 @@ discard block |
||
| 34 | 34 | $oAuthVerifier = PMF_Filter::filterInput(INPUT_GET, 'oauth_verifier', FILTER_SANITIZE_STRING); |
| 35 | 35 | |
| 36 | 36 | if (!is_null($oAuthToken) && $_SESSION['oauth_token'] !== $oAuthToken) { |
| 37 | - $_SESSION['oauth_status'] = 'oldtoken'; |
|
| 38 | - header('Location: ./clearsessions.php'); |
|
| 37 | + $_SESSION['oauth_status'] = 'oldtoken'; |
|
| 38 | + header('Location: ./clearsessions.php'); |
|
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | $connection = new TwitterOAuth( |
@@ -52,8 +52,8 @@ discard block |
||
| 52 | 52 | unset($_SESSION['oauth_token_secret']); |
| 53 | 53 | |
| 54 | 54 | if (200 === $connection->http_code) { |
| 55 | - $_SESSION['status'] = 'verified'; |
|
| 56 | - header('Location: ./index.php'); |
|
| 55 | + $_SESSION['status'] = 'verified'; |
|
| 56 | + header('Location: ./index.php'); |
|
| 57 | 57 | } else { |
| 58 | - header('Location: ./clearsessions.php'); |
|
| 58 | + header('Location: ./clearsessions.php'); |
|
| 59 | 59 | } |
| 60 | 60 | \ No newline at end of file |
@@ -1,21 +1,21 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Clears PHP sessions and redirects to the connect page. |
|
| 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 Services |
|
| 13 | - * @author Thorsten Rinne <[email protected]> |
|
| 14 | - * @copyright 2010-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 2010-09-18 |
|
| 18 | - */ |
|
| 3 | + * Clears PHP sessions and redirects to the connect page. |
|
| 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 Services |
|
| 13 | + * @author Thorsten Rinne <[email protected]> |
|
| 14 | + * @copyright 2010-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 2010-09-18 |
|
| 18 | + */ |
|
| 19 | 19 | |
| 20 | 20 | // |
| 21 | 21 | // Prepend and start the PHP session |
@@ -1,25 +1,25 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * PDF export |
|
| 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 Frontend |
|
| 13 | - * @author Thorsten Rinne <[email protected]> |
|
| 14 | - * @author Peter Beauvain <[email protected]> |
|
| 15 | - * @author Olivier Plathey <[email protected]> |
|
| 16 | - * @author Krzysztof Kruszynski <[email protected]> |
|
| 17 | - * @author Matteo Scaramuccia <[email protected]> |
|
| 18 | - * @copyright 2003-2016 phpMyFAQ Team |
|
| 19 | - * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
| 20 | - * @link http://www.phpmyfaq.de |
|
| 21 | - * @since 2003-02-12 |
|
| 22 | - */ |
|
| 3 | + * PDF export |
|
| 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 Frontend |
|
| 13 | + * @author Thorsten Rinne <[email protected]> |
|
| 14 | + * @author Peter Beauvain <[email protected]> |
|
| 15 | + * @author Olivier Plathey <[email protected]> |
|
| 16 | + * @author Krzysztof Kruszynski <[email protected]> |
|
| 17 | + * @author Matteo Scaramuccia <[email protected]> |
|
| 18 | + * @copyright 2003-2016 phpMyFAQ Team |
|
| 19 | + * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
| 20 | + * @link http://www.phpmyfaq.de |
|
| 21 | + * @since 2003-02-12 |
|
| 22 | + */ |
|
| 23 | 23 | |
| 24 | 24 | define('IS_VALID_PHPMYFAQ', null); |
| 25 | 25 | |