@@ -436,8 +436,8 @@ discard block |
||
436 | 436 | $users = $faqsession->getUsersOnline(); |
437 | 437 | $totUsers = $users[0] + $users[1]; |
438 | 438 | $usersOnline = $plr->getMsg('plmsgUserOnline', $totUsers) . ' | ' . |
439 | - $plr->getMsg('plmsgGuestOnline', $users[0]) . |
|
440 | - $plr->getMsg('plmsgRegisteredOnline',$users[1]); |
|
439 | + $plr->getMsg('plmsgGuestOnline', $users[0]) . |
|
440 | + $plr->getMsg('plmsgRegisteredOnline',$users[1]); |
|
441 | 441 | } else { |
442 | 442 | $usersOnline = ''; |
443 | 443 | } |
@@ -488,7 +488,7 @@ discard block |
||
488 | 488 | 'switchLanguages' => PMF_Language::selectLanguages($LANGCODE, true), |
489 | 489 | 'userOnline' => $usersOnline, |
490 | 490 | 'copyright' => 'powered by <a href="http://www.phpmyfaq.de" target="_blank">phpMyFAQ</a> ' . |
491 | - $faqConfig->get('main.currentVersion'), |
|
491 | + $faqConfig->get('main.currentVersion'), |
|
492 | 492 | 'registerUser' => '<a href="?action=register">' . $PMF_LANG['msgRegistration'] . '</a>', |
493 | 493 | 'sendPassword' => '<a href="?action=password">' . $PMF_LANG['lostPassword'] . '</a>', |
494 | 494 | 'loginHeader' => $PMF_LANG['msgLoginUser'], |
@@ -517,7 +517,7 @@ discard block |
||
517 | 517 | '<a class="help" href="%sindex.php?action=search">%s</a>', |
518 | 518 | $faqSystem->getSystemUri($faqConfig), |
519 | 519 | $PMF_LANG["msgAdvancedSearch"] |
520 | - ) |
|
520 | + ) |
|
521 | 521 | ) |
522 | 522 | ); |
523 | 523 | } else { |
@@ -66,8 +66,8 @@ |
||
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: |
@@ -199,10 +199,10 @@ |
||
199 | 199 | class PMF_Export_Pdf_Wrapper extends TCPDF |
200 | 200 | { |
201 | 201 | /** |
202 | - * With or without bookmarks |
|
203 | - * |
|
204 | - * @var boolean |
|
205 | - */ |
|
202 | + * With or without bookmarks |
|
203 | + * |
|
204 | + * @var boolean |
|
205 | + */ |
|
206 | 206 | public $enableBookmarks = false; |
207 | 207 | |
208 | 208 | /** |
@@ -1,23 +1,23 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * The English language file - try to be the best of British and American English |
|
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 Translation |
|
13 | - * @author Thorsten Rinne <[email protected]> |
|
14 | - * @author Matthias Sommerfeld <[email protected]> |
|
15 | - * @author Henning Schulzrinne <[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-02-19 |
|
20 | - */ |
|
3 | + * The English language file - try to be the best of British and American English |
|
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 Translation |
|
13 | + * @author Thorsten Rinne <[email protected]> |
|
14 | + * @author Matthias Sommerfeld <[email protected]> |
|
15 | + * @author Henning Schulzrinne <[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-02-19 |
|
20 | + */ |
|
21 | 21 | |
22 | 22 | /** |
23 | 23 | * !!! IMPORTANT NOTE !!! |
@@ -1,26 +1,26 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Performs an Automatic Link Verification over all the faq records |
|
4 | - * |
|
5 | - * You can set a cron entry: |
|
6 | - * a. using PHP CLI |
|
7 | - * b. using a Web Hit to this file |
|
8 | - * |
|
9 | - * PHP Version 5.3 |
|
10 | - * |
|
11 | - * This Source Code Form is subject to the terms of the Mozilla Public License, |
|
12 | - * v. 2.0. If a copy of the MPL was not distributed with this file, You can |
|
13 | - * obtain one at http://mozilla.org/MPL/2.0/. |
|
14 | - * |
|
15 | - * @category phpMyFAQ |
|
16 | - * @package CLI |
|
17 | - * @author Matteo Scaramuccia <[email protected]> |
|
18 | - * @author Thorsten Rinne <[email protected]> |
|
19 | - * @copyright 2006-2016 phpMyFAQ Team |
|
20 | - * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
21 | - * @link http://www.phpmyfaq.de |
|
22 | - * @since 2006-09-17 |
|
23 | - */ |
|
3 | + * Performs an Automatic Link Verification over all the faq records |
|
4 | + * |
|
5 | + * You can set a cron entry: |
|
6 | + * a. using PHP CLI |
|
7 | + * b. using a Web Hit to this file |
|
8 | + * |
|
9 | + * PHP Version 5.3 |
|
10 | + * |
|
11 | + * This Source Code Form is subject to the terms of the Mozilla Public License, |
|
12 | + * v. 2.0. If a copy of the MPL was not distributed with this file, You can |
|
13 | + * obtain one at http://mozilla.org/MPL/2.0/. |
|
14 | + * |
|
15 | + * @category phpMyFAQ |
|
16 | + * @package CLI |
|
17 | + * @author Matteo Scaramuccia <[email protected]> |
|
18 | + * @author Thorsten Rinne <[email protected]> |
|
19 | + * @copyright 2006-2016 phpMyFAQ Team |
|
20 | + * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
21 | + * @link http://www.phpmyfaq.de |
|
22 | + * @since 2006-09-17 |
|
23 | + */ |
|
24 | 24 | |
25 | 25 | /** |
26 | 26 | * This is the flag with which you define the language of this cron script |
@@ -1,22 +1,22 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Shows the page with the FAQ record and - when available - the user comments |
|
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 Lars Tiedemann <[email protected]> |
|
15 | - * @copyright 2002-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 2002-08-27 |
|
19 | - */ |
|
3 | + * Shows the page with the FAQ record and - when available - the user comments |
|
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 Lars Tiedemann <[email protected]> |
|
15 | + * @copyright 2002-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 2002-08-27 |
|
19 | + */ |
|
20 | 20 | |
21 | 21 | if (!defined('IS_VALID_PHPMYFAQ')) { |
22 | 22 | $protocol = 'http'; |
@@ -1,46 +1,46 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * This class manages user permissions and group memberships. |
|
4 | - * |
|
5 | - * There are three possible extensions of this class: basic, medium and large |
|
6 | - * by the classes PMF_PermBasic, PMF_PermMedium and PMF_PermLarge. The classes |
|
7 | - * to allow for scalability. This means that PMF_PermMedium is an extend of |
|
8 | - * and PMF_PermLarge is an extend of PMF_PermMedium. |
|
9 | - * |
|
10 | - * The permission type can be selected by calling $perm = Perm(perm_type) or |
|
11 | - * static method $perm = Perm::selectPerm(perm_type) where perm_type is |
|
12 | - * 'medium' or 'large'. Both ways, a PMF_PermBasic, PMF_PermMedium or |
|
13 | - * is returned. |
|
14 | - * |
|
15 | - * Before calling any method, the object $perm needs to be initialised calling |
|
16 | - * user_id, context, context_id). The parameters context and context_id are |
|
17 | - * accepted, but do only matter in PMF_PermLarge. In other words, if you have a |
|
18 | - * or PMF_PermMedium, it does not matter if you pass context and context_id or |
|
19 | - * But in PMF_PermLarge, they do make a significant difference if passed, thus |
|
20 | - * for up- and downwards-compatibility. |
|
21 | - * |
|
22 | - * Perhaps the most important method is $perm->checkRight(right_name). This |
|
23 | - * checks whether the user having the user_id set with $perm->setPerm() |
|
24 | - * |
|
25 | - * The permission object is added to a user using the user's addPerm() method. |
|
26 | - * a single permission-object is allowed for each user. The permission-object is |
|
27 | - * in the user's $perm variable. Permission methods are performed using the |
|
28 | - * variable (e.g. $user->perm->method() ). |
|
29 | - * |
|
30 | - * PHP Version 5.3 |
|
31 | - * |
|
32 | - * This Source Code Form is subject to the terms of the Mozilla Public License, |
|
33 | - * v. 2.0. If a copy of the MPL was not distributed with this file, You can |
|
34 | - * obtain one at http://mozilla.org/MPL/2.0/. |
|
35 | - * |
|
36 | - * @category phpMyFAQ |
|
37 | - * @package Perm |
|
38 | - * @author Lars Tiedemann <[email protected]> |
|
39 | - * @copyright 2005-2016 phpMyFAQ Team |
|
40 | - * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
41 | - * @link http://www.phpmyfaq.de |
|
42 | - * @since 2005-09-17 |
|
43 | - */ |
|
3 | + * This class manages user permissions and group memberships. |
|
4 | + * |
|
5 | + * There are three possible extensions of this class: basic, medium and large |
|
6 | + * by the classes PMF_PermBasic, PMF_PermMedium and PMF_PermLarge. The classes |
|
7 | + * to allow for scalability. This means that PMF_PermMedium is an extend of |
|
8 | + * and PMF_PermLarge is an extend of PMF_PermMedium. |
|
9 | + * |
|
10 | + * The permission type can be selected by calling $perm = Perm(perm_type) or |
|
11 | + * static method $perm = Perm::selectPerm(perm_type) where perm_type is |
|
12 | + * 'medium' or 'large'. Both ways, a PMF_PermBasic, PMF_PermMedium or |
|
13 | + * is returned. |
|
14 | + * |
|
15 | + * Before calling any method, the object $perm needs to be initialised calling |
|
16 | + * user_id, context, context_id). The parameters context and context_id are |
|
17 | + * accepted, but do only matter in PMF_PermLarge. In other words, if you have a |
|
18 | + * or PMF_PermMedium, it does not matter if you pass context and context_id or |
|
19 | + * But in PMF_PermLarge, they do make a significant difference if passed, thus |
|
20 | + * for up- and downwards-compatibility. |
|
21 | + * |
|
22 | + * Perhaps the most important method is $perm->checkRight(right_name). This |
|
23 | + * checks whether the user having the user_id set with $perm->setPerm() |
|
24 | + * |
|
25 | + * The permission object is added to a user using the user's addPerm() method. |
|
26 | + * a single permission-object is allowed for each user. The permission-object is |
|
27 | + * in the user's $perm variable. Permission methods are performed using the |
|
28 | + * variable (e.g. $user->perm->method() ). |
|
29 | + * |
|
30 | + * PHP Version 5.3 |
|
31 | + * |
|
32 | + * This Source Code Form is subject to the terms of the Mozilla Public License, |
|
33 | + * v. 2.0. If a copy of the MPL was not distributed with this file, You can |
|
34 | + * obtain one at http://mozilla.org/MPL/2.0/. |
|
35 | + * |
|
36 | + * @category phpMyFAQ |
|
37 | + * @package Perm |
|
38 | + * @author Lars Tiedemann <[email protected]> |
|
39 | + * @copyright 2005-2016 phpMyFAQ Team |
|
40 | + * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
41 | + * @link http://www.phpmyfaq.de |
|
42 | + * @since 2005-09-17 |
|
43 | + */ |
|
44 | 44 | |
45 | 45 | if (!defined('IS_VALID_PHPMYFAQ')) { |
46 | 46 | exit(); |
@@ -1,24 +1,24 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * The PMF_Ldap class provides methods and functions for a LDAP 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 PMF_Ldap |
|
13 | - * @author Adam Greene <[email protected]> |
|
14 | - * @author Thorsten Rinne <[email protected]> |
|
15 | - * @author Alberto Cabello Sanchez <[email protected]> |
|
16 | - * @author Lars Scheithauer <[email protected]> |
|
17 | - * @copyright 2004-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 2004-12-16 |
|
21 | - */ |
|
3 | + * The PMF_Ldap class provides methods and functions for a LDAP 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 PMF_Ldap |
|
13 | + * @author Adam Greene <[email protected]> |
|
14 | + * @author Thorsten Rinne <[email protected]> |
|
15 | + * @author Alberto Cabello Sanchez <[email protected]> |
|
16 | + * @author Lars Scheithauer <[email protected]> |
|
17 | + * @copyright 2004-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 2004-12-16 |
|
21 | + */ |
|
22 | 22 | |
23 | 23 | if (!defined('IS_VALID_PHPMYFAQ')) { |
24 | 24 | exit(); |
@@ -1,21 +1,21 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * The main string wrapper class. |
|
4 | - * |
|
5 | - * PHP Version 5.3.0 |
|
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 String |
|
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 | - * @link http://www.phpmyfaq.de |
|
17 | - * @since 2009-04-06 |
|
18 | - */ |
|
3 | + * The main string wrapper class. |
|
4 | + * |
|
5 | + * PHP Version 5.3.0 |
|
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 String |
|
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 | + * @link http://www.phpmyfaq.de |
|
17 | + * @since 2009-04-06 |
|
18 | + */ |
|
19 | 19 | |
20 | 20 | if (!defined('IS_VALID_PHPMYFAQ')) { |
21 | 21 | exit(); |
@@ -184,18 +184,18 @@ discard block |
||
184 | 184 | |
185 | 185 | |
186 | 186 | /** |
187 | - * Check if a language could be converted to iso-8859-1 |
|
188 | - * |
|
189 | - * @param string $language |
|
190 | - * |
|
191 | - * @return boolean |
|
187 | + * Check if a language could be converted to iso-8859-1 |
|
188 | + * |
|
189 | + * @param string $language |
|
190 | + * |
|
191 | + * @return boolean |
|
192 | 192 | */ |
193 | 193 | public static function isLangUTF8ToLatinConvertable($language) |
194 | 194 | { |
195 | 195 | $iso_languages = array('af', 'sq', 'br', 'ca', 'da', 'en', 'fo', 'gl', 'de', 'is', 'it', |
196 | - 'ku', 'la', 'lb', 'nb', 'oc', 'pt', 'es', 'sw', 'sv', 'wa', 'eu', |
|
197 | - // NOTE this languages are not fully supported by latin1 |
|
198 | - 'nl', 'fr', 'et', 'fi', 'cy' |
|
196 | + 'ku', 'la', 'lb', 'nb', 'oc', 'pt', 'es', 'sw', 'sv', 'wa', 'eu', |
|
197 | + // NOTE this languages are not fully supported by latin1 |
|
198 | + 'nl', 'fr', 'et', 'fi', 'cy' |
|
199 | 199 | ); |
200 | 200 | |
201 | 201 | return in_array($language, $iso_languages); |
@@ -203,12 +203,12 @@ discard block |
||
203 | 203 | |
204 | 204 | |
205 | 205 | /** |
206 | - * Get last occurence of a string within another |
|
207 | - * |
|
208 | - * @param string $haystack |
|
209 | - * @param string $needle |
|
210 | - * |
|
211 | - * @return string |
|
206 | + * Get last occurence of a string within another |
|
207 | + * |
|
208 | + * @param string $haystack |
|
209 | + * @param string $needle |
|
210 | + * |
|
211 | + * @return string |
|
212 | 212 | */ |
213 | 213 | public static function strrchr($haystack, $needle) |
214 | 214 | { |
@@ -231,13 +231,13 @@ discard block |
||
231 | 231 | |
232 | 232 | |
233 | 233 | /** |
234 | - * Find position of last occurrence of a char in a string |
|
235 | - * |
|
236 | - * @param string $haystack |
|
237 | - * @param string $needle |
|
238 | - * @param int $offset |
|
239 | - * |
|
240 | - * @return int |
|
234 | + * Find position of last occurrence of a char in a string |
|
235 | + * |
|
236 | + * @param string $haystack |
|
237 | + * @param string $needle |
|
238 | + * @param int $offset |
|
239 | + * |
|
240 | + * @return int |
|
241 | 241 | */ |
242 | 242 | public static function strrpos($haystack, $needle, $offset = 0) |
243 | 243 | { |