@@ -1,23 +1,23 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * The main administration file for the news. |
|
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 Matteo Scaramuccia <[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 | + * The main administration file for the news. |
|
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 Matteo Scaramuccia <[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,26 +1,26 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * A dummy page used within an IFRAME for warning the user about his next |
|
4 | - * session expiration and to give him the contextual possibility for |
|
5 | - * refreshing the session by clicking <OK>. |
|
6 | - * |
|
7 | - * PHP Version 5.5 |
|
8 | - * |
|
9 | - * This Source Code Form is subject to the terms of the Mozilla Public License, |
|
10 | - * v. 2.0. If a copy of the MPL was not distributed with this file, You can |
|
11 | - * obtain one at http://mozilla.org/MPL/2.0/. |
|
12 | - * |
|
13 | - * @category phpMyFAQ |
|
14 | - * |
|
15 | - * @author Matteo Scaramuccia <[email protected]> |
|
16 | - * @author Thorsten Rinne <[email protected]> |
|
17 | - * @author Uwe Pries <[email protected]> |
|
18 | - * @copyright 2006-2016 phpMyFAQ Team |
|
19 | - * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
20 | - * |
|
21 | - * @link http://www.phpmyfaq.de |
|
22 | - * @since 2006-05-08 |
|
23 | - */ |
|
3 | + * A dummy page used within an IFRAME for warning the user about his next |
|
4 | + * session expiration and to give him the contextual possibility for |
|
5 | + * refreshing the session by clicking <OK>. |
|
6 | + * |
|
7 | + * PHP Version 5.5 |
|
8 | + * |
|
9 | + * This Source Code Form is subject to the terms of the Mozilla Public License, |
|
10 | + * v. 2.0. If a copy of the MPL was not distributed with this file, You can |
|
11 | + * obtain one at http://mozilla.org/MPL/2.0/. |
|
12 | + * |
|
13 | + * @category phpMyFAQ |
|
14 | + * |
|
15 | + * @author Matteo Scaramuccia <[email protected]> |
|
16 | + * @author Thorsten Rinne <[email protected]> |
|
17 | + * @author Uwe Pries <[email protected]> |
|
18 | + * @copyright 2006-2016 phpMyFAQ Team |
|
19 | + * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
20 | + * |
|
21 | + * @link http://www.phpmyfaq.de |
|
22 | + * @since 2006-05-08 |
|
23 | + */ |
|
24 | 24 | define('PMF_ROOT_DIR', dirname(__DIR__)); |
25 | 25 | |
26 | 26 | // |
@@ -1,22 +1,22 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Shows all comments in the categories and provides a link to delete comments. |
|
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 2007-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 2007-03-04 |
|
19 | - */ |
|
3 | + * Shows all comments in the categories and provides a link to delete comments. |
|
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 2007-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 2007-03-04 |
|
19 | + */ |
|
20 | 20 | if (!defined('IS_VALID_PHPMYFAQ')) { |
21 | 21 | $protocol = 'http'; |
22 | 22 | if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
@@ -80,9 +80,9 @@ discard block |
||
80 | 80 | <?php print $date->format(date('Y-m-d H:i', $faqcomment['date'])); |
81 | 81 | ?> | |
82 | 82 | <a href="<?php printf('../?action=artikel&cat=%d&id=%d&artlang=%s', |
83 | - $faqcomment['category_id'], |
|
84 | - $faqcomment['record_id'], |
|
85 | - $LANGCODE); |
|
83 | + $faqcomment['category_id'], |
|
84 | + $faqcomment['record_id'], |
|
85 | + $LANGCODE); |
|
86 | 86 | ?>"> |
87 | 87 | <?php print $faq->getRecordTitle($faqcomment['record_id']); |
88 | 88 | ?> |
@@ -58,8 +58,8 @@ |
||
58 | 58 | } |
59 | 59 | |
60 | 60 | $leftVarsOnly = array_slice($_SESSION['trans']['leftVarsOnly'], |
61 | - ($page - 1) * $itemsPerPage, |
|
62 | - $itemsPerPage); |
|
61 | + ($page - 1) * $itemsPerPage, |
|
62 | + $itemsPerPage); |
|
63 | 63 | $rightVarsOnly = &$_SESSION['trans']['rightVarsOnly']; |
64 | 64 | |
65 | 65 | $options = array( |
@@ -1,21 +1,21 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Shows the list of records ordered by categories. |
|
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 Minoru TODA <[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-02-23 |
|
18 | - */ |
|
3 | + * Shows the list of records ordered by categories. |
|
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 Minoru TODA <[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-02-23 |
|
18 | + */ |
|
19 | 19 | if (!defined('IS_VALID_PHPMYFAQ')) { |
20 | 20 | $protocol = 'http'; |
21 | 21 | if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
@@ -1,22 +1,22 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Form to change password of the current user. |
|
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-23 |
|
19 | - */ |
|
3 | + * Form to change password of the current user. |
|
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-23 |
|
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 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * List all categories in the admin section. |
|
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-20 |
|
19 | - */ |
|
3 | + * List all categories in the admin section. |
|
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-20 |
|
19 | + */ |
|
20 | 20 | if (!defined('IS_VALID_PHPMYFAQ')) { |
21 | 21 | $protocol = 'http'; |
22 | 22 | if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
@@ -321,19 +321,19 @@ discard block |
||
321 | 321 | |
322 | 322 | if ($cat['lang'] == $lang) { |
323 | 323 | // add sub category (if current language) |
324 | - printf(' |
|
324 | + printf(' |
|
325 | 325 | <a class="btn btn-info btn-sm" href="?action=addcategory&cat=%s&lang=%s"><span title="%s" class="fa fa-plus fa-fw"></span></a> ', |
326 | - $cat['id'], |
|
327 | - $cat['lang'], |
|
328 | - $PMF_LANG['ad_quick_category'] |
|
329 | - ); |
|
326 | + $cat['id'], |
|
327 | + $cat['lang'], |
|
328 | + $PMF_LANG['ad_quick_category'] |
|
329 | + ); |
|
330 | 330 | |
331 | - // rename (sub) category (if current language) |
|
332 | - printf(' |
|
331 | + // rename (sub) category (if current language) |
|
332 | + printf(' |
|
333 | 333 | <a class="btn btn-info btn-sm" href="?action=editcategory&cat=%s"><span title="%s" class="fa fa-edit fa-fw"></a> ', |
334 | - $cat['id'], |
|
335 | - $PMF_LANG['ad_kateg_rename'] |
|
336 | - ); |
|
334 | + $cat['id'], |
|
335 | + $PMF_LANG['ad_kateg_rename'] |
|
336 | + ); |
|
337 | 337 | } |
338 | 338 | |
339 | 339 | // translate category (always) |
@@ -357,20 +357,20 @@ discard block |
||
357 | 357 | |
358 | 358 | if ($cat['lang'] == $lang) { |
359 | 359 | // cut category (if current language) |
360 | - printf( |
|
361 | - '<a class="btn btn-warning btn-sm" href="?action=cutcategory&cat=%s"><span title="%s" class="fa fa-cut fa-fw"></a> ', |
|
362 | - $cat['id'], |
|
363 | - $PMF_LANG['ad_categ_cut'] |
|
364 | - ); |
|
360 | + printf( |
|
361 | + '<a class="btn btn-warning btn-sm" href="?action=cutcategory&cat=%s"><span title="%s" class="fa fa-cut fa-fw"></a> ', |
|
362 | + $cat['id'], |
|
363 | + $PMF_LANG['ad_categ_cut'] |
|
364 | + ); |
|
365 | 365 | |
366 | 366 | if ($category->numParent($cat['parent_id']) > 1) { |
367 | 367 | // move category (if current language) AND more than 1 category at the same level) |
368 | - printf( |
|
369 | - '<a class="btn btn-warning btn-sm" href="?action=movecategory&cat=%s&parent_id=%s"><span title="%s" class="fa fa-sort fa-fw"></a> ', |
|
370 | - $cat['id'], |
|
371 | - $cat['parent_id'], |
|
372 | - $PMF_LANG['ad_categ_move'] |
|
373 | - ); |
|
368 | + printf( |
|
369 | + '<a class="btn btn-warning btn-sm" href="?action=movecategory&cat=%s&parent_id=%s"><span title="%s" class="fa fa-sort fa-fw"></a> ', |
|
370 | + $cat['id'], |
|
371 | + $cat['parent_id'], |
|
372 | + $PMF_LANG['ad_categ_move'] |
|
373 | + ); |
|
374 | 374 | } |
375 | 375 | } |
376 | 376 |
@@ -1,21 +1,21 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Select an attachment and save it. |
|
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 Anatoliy Belsky <[email protected]> |
|
14 | - * @copyright 2002-2016 phpMyFAQ |
|
15 | - * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
16 | - * @link http://www.phpmyfaq.de |
|
17 | - * @since 2002-09-17 |
|
18 | - */ |
|
3 | + * Select an attachment and save it. |
|
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 Anatoliy Belsky <[email protected]> |
|
14 | + * @copyright 2002-2016 phpMyFAQ |
|
15 | + * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
16 | + * @link http://www.phpmyfaq.de |
|
17 | + * @since 2002-09-17 |
|
18 | + */ |
|
19 | 19 | define('PMF_ROOT_DIR', dirname(__DIR__)); |
20 | 20 | |
21 | 21 | // |
@@ -1,20 +1,20 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Save an existing FAQ record. |
|
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 2003-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 2003-02-23 |
|
17 | - */ |
|
3 | + * Save an existing FAQ record. |
|
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 2003-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 2003-02-23 |
|
17 | + */ |
|
18 | 18 | if (!defined('IS_VALID_PHPMYFAQ')) { |
19 | 19 | $protocol = 'http'; |
20 | 20 | if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |