@@ -1,23 +1,23 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * The login form. |
|
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 Alexander M. Turek <[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 2013-02-05 |
|
20 | - */ |
|
3 | + * The login form. |
|
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 Alexander M. Turek <[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 2013-02-05 |
|
20 | + */ |
|
21 | 21 | ?> |
22 | 22 | <div class="row"> |
23 | 23 | <div class="col-md-4 col-md-offset-4"> |
@@ -1,23 +1,23 @@ |
||
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 | - * |
|
14 | - * @author Thorsten Rinne <[email protected]> |
|
15 | - * @copyright 2003-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 2003-02-23 |
|
20 | - */ |
|
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 | + * |
|
14 | + * @author Thorsten Rinne <[email protected]> |
|
15 | + * @copyright 2003-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 2003-02-23 |
|
20 | + */ |
|
21 | 21 | if (!defined('IS_VALID_PHPMYFAQ')) { |
22 | 22 | $protocol = 'http'; |
23 | 23 | if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
@@ -1,22 +1,22 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Cuts out 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-12-25 |
|
19 | - */ |
|
3 | + * Cuts out 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-12-25 |
|
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 | - * Read in files for the translation and show them inside a form. |
|
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-05-11 |
|
19 | - */ |
|
3 | + * Read in files for the translation and show them inside a form. |
|
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-05-11 |
|
19 | + */ |
|
20 | 20 | if (!defined('IS_VALID_PHPMYFAQ')) { |
21 | 21 | $protocol = 'http'; |
22 | 22 | if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
@@ -1,20 +1,20 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Linkverifier Helper class for phpMyFAQ. |
|
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 2012-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 2012-09-03 |
|
17 | - */ |
|
3 | + * Linkverifier Helper class for phpMyFAQ. |
|
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 2012-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 2012-09-03 |
|
17 | + */ |
|
18 | 18 | if (!defined('IS_VALID_PHPMYFAQ')) { |
19 | 19 | exit(); |
20 | 20 | } |
@@ -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 | - * 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: |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | 'bool' => [ |
92 | 92 | 'must' => [ |
93 | 93 | [ |
94 | - 'terms' => [ 'category_id' => $this->getCategoryIds() ] |
|
94 | + 'terms' => ['category_id' => $this->getCategoryIds()] |
|
95 | 95 | ], |
96 | 96 | $languageFilter |
97 | 97 | ] |
@@ -100,9 +100,9 @@ discard block |
||
100 | 100 | 'query' => [ |
101 | 101 | 'bool' => [ |
102 | 102 | 'should' => [ |
103 | - [ 'match' => [ 'question' => $searchTerm ] ], |
|
104 | - [ 'match' => [ 'answer' => $searchTerm ] ], |
|
105 | - [ 'match' => [ 'keywords' => $searchTerm ] ] |
|
103 | + ['match' => ['question' => $searchTerm]], |
|
104 | + ['match' => ['answer' => $searchTerm]], |
|
105 | + ['match' => ['keywords' => $searchTerm]] |
|
106 | 106 | ] |
107 | 107 | ] |
108 | 108 | ] |
@@ -161,9 +161,9 @@ discard block |
||
161 | 161 | 'query' => [ |
162 | 162 | 'bool' => [ |
163 | 163 | 'should' => [ |
164 | - [ 'match' => [ 'question' => $searchTerm ] ], |
|
165 | - [ 'match' => [ 'answer' => $searchTerm ] ], |
|
166 | - [ 'match' => [ 'keywords' => $searchTerm ] ] |
|
164 | + ['match' => ['question' => $searchTerm]], |
|
165 | + ['match' => ['answer' => $searchTerm]], |
|
166 | + ['match' => ['keywords' => $searchTerm]] |
|
167 | 167 | ] |
168 | 168 | ] |
169 | 169 | ] |
@@ -1,22 +1,22 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * The import function to import the phpMyFAQ backups. |
|
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-24 |
|
19 | - */ |
|
3 | + * The import function to import the phpMyFAQ backups. |
|
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-24 |
|
19 | + */ |
|
20 | 20 | if (!defined('IS_VALID_PHPMYFAQ')) { |
21 | 21 | $protocol = 'http'; |
22 | 22 | if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |