@@ -20,10 +20,10 @@ |
||
| 20 | 20 | |
| 21 | 21 | if (!defined('IS_VALID_PHPMYFAQ')) { |
| 22 | 22 | $protocol = 'http'; |
| 23 | - if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){ |
|
| 23 | + if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
|
| 24 | 24 | $protocol = 'https'; |
| 25 | 25 | } |
| 26 | - header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME'])); |
|
| 26 | + header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME'])); |
|
| 27 | 27 | exit(); |
| 28 | 28 | } |
| 29 | 29 | |
@@ -1,21 +1,21 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * AJAX: handling of Ajax search calls |
|
| 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 Administration |
|
| 13 | - * @author Thorsten Rinne <[email protected]> |
|
| 14 | - * @copyright 2011-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 2011-08-24 |
|
| 18 | - */ |
|
| 3 | + * AJAX: handling of Ajax search calls |
|
| 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 Administration |
|
| 13 | + * @author Thorsten Rinne <[email protected]> |
|
| 14 | + * @copyright 2011-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 2011-08-24 |
|
| 18 | + */ |
|
| 19 | 19 | |
| 20 | 20 | if (!defined('IS_VALID_PHPMYFAQ')) { |
| 21 | 21 | $protocol = 'http'; |
@@ -20,10 +20,10 @@ |
||
| 20 | 20 | |
| 21 | 21 | if (!defined('IS_VALID_PHPMYFAQ')) { |
| 22 | 22 | $protocol = 'http'; |
| 23 | - if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){ |
|
| 23 | + if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
|
| 24 | 24 | $protocol = 'https'; |
| 25 | 25 | } |
| 26 | - header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME'])); |
|
| 26 | + header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME'])); |
|
| 27 | 27 | exit(); |
| 28 | 28 | } |
| 29 | 29 | |
@@ -1,21 +1,21 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Shows the admin search frontend for FAQs |
|
| 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 Administration |
|
| 13 | - * @author Thorsten Rinne <[email protected]> |
|
| 14 | - * @copyright 2011-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 2011-09-29 |
|
| 18 | - */ |
|
| 3 | + * Shows the admin search frontend for FAQs |
|
| 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 Administration |
|
| 13 | + * @author Thorsten Rinne <[email protected]> |
|
| 14 | + * @copyright 2011-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 2011-09-29 |
|
| 18 | + */ |
|
| 19 | 19 | |
| 20 | 20 | if (!defined('IS_VALID_PHPMYFAQ')) { |
| 21 | 21 | $protocol = 'http'; |
@@ -20,10 +20,10 @@ |
||
| 20 | 20 | |
| 21 | 21 | if (!defined('IS_VALID_PHPMYFAQ')) { |
| 22 | 22 | $protocol = 'http'; |
| 23 | - if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){ |
|
| 23 | + if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
|
| 24 | 24 | $protocol = 'https'; |
| 25 | 25 | } |
| 26 | - header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME'])); |
|
| 26 | + header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME'])); |
|
| 27 | 27 | exit(); |
| 28 | 28 | } |
| 29 | 29 | |
@@ -1,21 +1,21 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Cuts out a category |
|
| 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 Administration |
|
| 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-12-25 |
|
| 18 | - */ |
|
| 3 | + * Cuts out a category |
|
| 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 Administration |
|
| 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-12-25 |
|
| 18 | + */ |
|
| 19 | 19 | |
| 20 | 20 | if (!defined('IS_VALID_PHPMYFAQ')) { |
| 21 | 21 | $protocol = 'http'; |
@@ -27,8 +27,8 @@ |
||
| 27 | 27 | // |
| 28 | 28 | // Bootstrapping |
| 29 | 29 | // |
| 30 | -require PMF_ROOT_DIR . '/inc/Bootstrap.php'; |
|
| 31 | -require PMF_ROOT_DIR . '/inc/libs/twitteroauth/twitteroauth.php'; |
|
| 30 | +require PMF_ROOT_DIR.'/inc/Bootstrap.php'; |
|
| 31 | +require PMF_ROOT_DIR.'/inc/libs/twitteroauth/twitteroauth.php'; |
|
| 32 | 32 | |
| 33 | 33 | $oAuthToken = PMF_Filter::filterInput(INPUT_GET, 'oauth_token', FILTER_SANITIZE_STRING); |
| 34 | 34 | $oAuthVerifier = PMF_Filter::filterInput(INPUT_GET, 'oauth_verifier', FILTER_SANITIZE_STRING); |
@@ -1,22 +1,22 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * User has successfully authenticated with Twitter. Access tokens saved to |
|
| 4 | - * session and database. |
|
| 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 | + * User has successfully authenticated with Twitter. Access tokens saved to |
|
| 4 | + * session and database. |
|
| 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 |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | // |
| 28 | 28 | // Bootstrapping |
| 29 | 29 | // |
| 30 | -require PMF_ROOT_DIR . '/inc/Bootstrap.php'; |
|
| 30 | +require PMF_ROOT_DIR.'/inc/Bootstrap.php'; |
|
| 31 | 31 | |
| 32 | 32 | if ($faqConfig->get('socialnetworks.twitterConsumerKey') === '' || |
| 33 | 33 | $faqConfig->get('socialnetworks.twitterConsumerSecret') === '') { |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | PRIMARY KEY (id))"; |
| 64 | 64 | |
| 65 | 65 | //faqattachment |
| 66 | -$query[] = "CREATE TABLE " . $sqltblpre . "faqattachment ( |
|
| 66 | +$query[] = "CREATE TABLE ".$sqltblpre."faqattachment ( |
|
| 67 | 67 | id INTEGER NOT NULL, |
| 68 | 68 | record_id INTEGER NOT NULL, |
| 69 | 69 | record_lang VARCHAR(5) NOT NULL, |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | PRIMARY KEY (id))"; |
| 78 | 78 | |
| 79 | 79 | //faqattachment file |
| 80 | -$query[] = "CREATE TABLE " . $sqltblpre . "faqattachment_file ( |
|
| 80 | +$query[] = "CREATE TABLE ".$sqltblpre."faqattachment_file ( |
|
| 81 | 81 | virtual_hash CHAR(32) NOT NULL, |
| 82 | 82 | contents BLOB NOT NULL, |
| 83 | 83 | PRIMARY KEY (virtual_hash))"; |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | )"; |
| 240 | 240 | |
| 241 | 241 | //faqinstances |
| 242 | -$query[] = "CREATE TABLE " . $sqltblpre . "faqinstances ( |
|
| 242 | +$query[] = "CREATE TABLE ".$sqltblpre."faqinstances ( |
|
| 243 | 243 | id INT(11) NOT NULL, |
| 244 | 244 | url VARCHAR(255) NOT NULL, |
| 245 | 245 | instance VARCHAR(255) NOT NULL, |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | PRIMARY KEY (id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci"; |
| 66 | 66 | |
| 67 | 67 | //faqattachment |
| 68 | -$query[] = "CREATE TABLE " . $sqltblpre . "faqattachment ( |
|
| 68 | +$query[] = "CREATE TABLE ".$sqltblpre."faqattachment ( |
|
| 69 | 69 | id int(11) NOT NULL, |
| 70 | 70 | record_id int(11) NOT NULL, |
| 71 | 71 | record_lang varchar(5) NOT NULL, |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | PRIMARY KEY (id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci"; |
| 80 | 80 | |
| 81 | 81 | //faqattachment file |
| 82 | -$query[] = "CREATE TABLE " . $sqltblpre . "faqattachment_file ( |
|
| 82 | +$query[] = "CREATE TABLE ".$sqltblpre."faqattachment_file ( |
|
| 83 | 83 | virtual_hash char(32) NOT NULL, |
| 84 | 84 | contents blob NOT NULL, |
| 85 | 85 | PRIMARY KEY (virtual_hash)) DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci"; |
@@ -238,7 +238,7 @@ discard block |
||
| 238 | 238 | PRIMARY KEY (group_id, right_id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci"; |
| 239 | 239 | |
| 240 | 240 | //faqinstances |
| 241 | -$query[] = "CREATE TABLE " . $sqltblpre . "faqinstances ( |
|
| 241 | +$query[] = "CREATE TABLE ".$sqltblpre."faqinstances ( |
|
| 242 | 242 | id INT(11) NOT NULL, |
| 243 | 243 | url VARCHAR(255) NOT NULL, |
| 244 | 244 | instance VARCHAR(255) NOT NULL, |
@@ -248,7 +248,7 @@ discard block |
||
| 248 | 248 | PRIMARY KEY (id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci"; |
| 249 | 249 | |
| 250 | 250 | //faqinstances_config |
| 251 | -$query[] = "CREATE TABLE " . $sqltblpre . "faqinstances_config ( |
|
| 251 | +$query[] = "CREATE TABLE ".$sqltblpre."faqinstances_config ( |
|
| 252 | 252 | instance_id INT(11) NOT NULL, |
| 253 | 253 | config_name VARCHAR(255) NOT NULL default '', |
| 254 | 254 | config_value VARCHAR(255) DEFAULT NULL, |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | PRIMARY KEY (id))"; |
| 64 | 64 | |
| 65 | 65 | //faqattachment |
| 66 | -$query[] = "CREATE TABLE " . $sqltblpre . "faqattachment ( |
|
| 66 | +$query[] = "CREATE TABLE ".$sqltblpre."faqattachment ( |
|
| 67 | 67 | id INTEGER NOT NULL, |
| 68 | 68 | record_id INTEGER NOT NULL, |
| 69 | 69 | record_lang VARCHAR(5) NOT NULL, |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | PRIMARY KEY (id))"; |
| 78 | 78 | |
| 79 | 79 | //faqattachment file |
| 80 | -$query[] = "CREATE TABLE " . $sqltblpre . "faqattachment_file ( |
|
| 80 | +$query[] = "CREATE TABLE ".$sqltblpre."faqattachment_file ( |
|
| 81 | 81 | virtual_hash CHAR(32) NOT NULL, |
| 82 | 82 | contents BLOB NOT NULL, |
| 83 | 83 | PRIMARY KEY (virtual_hash))"; |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | )"; |
| 240 | 240 | |
| 241 | 241 | //faqinstances |
| 242 | -$query[] = "CREATE TABLE " . $sqltblpre . "faqinstances ( |
|
| 242 | +$query[] = "CREATE TABLE ".$sqltblpre."faqinstances ( |
|
| 243 | 243 | id INT(11) NOT NULL, |
| 244 | 244 | url VARCHAR(255) NOT NULL, |
| 245 | 245 | instance VARCHAR(255) NOT NULL, |
@@ -1,21 +1,21 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * CREATE TABLE instruction for MS SQL Server 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 | - * @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-07-21 |
|
| 18 | - */ |
|
| 3 | + * CREATE TABLE instruction for MS SQL Server 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 | + * @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-07-21 |
|
| 18 | + */ |
|
| 19 | 19 | |
| 20 | 20 | $uninst[] = "DROP TABLE ".$sqltblpre."faqadminlog"; |
| 21 | 21 | $uninst[] = "DROP TABLE ".$sqltblpre."faqattachment"; |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | PRIMARY KEY (id))"; |
| 64 | 64 | |
| 65 | 65 | //faqattachment |
| 66 | -$query[] = "CREATE TABLE " . $sqltblpre . "faqattachment ( |
|
| 66 | +$query[] = "CREATE TABLE ".$sqltblpre."faqattachment ( |
|
| 67 | 67 | id INTEGER NOT NULL, |
| 68 | 68 | record_id INTEGER NOT NULL, |
| 69 | 69 | record_lang VARCHAR(5) NOT NULL, |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | PRIMARY KEY (id))"; |
| 78 | 78 | |
| 79 | 79 | //faqattachment file |
| 80 | -$query[] = "CREATE TABLE " . $sqltblpre . "faqattachment_file ( |
|
| 80 | +$query[] = "CREATE TABLE ".$sqltblpre."faqattachment_file ( |
|
| 81 | 81 | virtual_hash CHAR(32) NOT NULL, |
| 82 | 82 | contents BLOB NOT NULL, |
| 83 | 83 | PRIMARY KEY (virtual_hash))"; |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | )"; |
| 240 | 240 | |
| 241 | 241 | //faqinstances |
| 242 | -$query[] = "CREATE TABLE " . $sqltblpre . "faqinstances ( |
|
| 242 | +$query[] = "CREATE TABLE ".$sqltblpre."faqinstances ( |
|
| 243 | 243 | id INT(11) NOT NULL, |
| 244 | 244 | url VARCHAR(255) NOT NULL, |
| 245 | 245 | instance VARCHAR(255) NOT NULL, |