|
@@ 135-137 (lines=3) @@
|
| 132 |
|
|
| 133 |
|
// Get language from: _POST, _GET, _COOKIE, phpMyFAQ configuration and the automatic language detection |
| 134 |
|
$_lang['post'] = PMF_Filter::filterInput(INPUT_POST, 'language', FILTER_SANITIZE_STRING); |
| 135 |
|
if (!is_null($_lang['post']) && !self::isASupportedLanguage($_lang['post']) ) { |
| 136 |
|
$_lang['post'] = null; |
| 137 |
|
} |
| 138 |
|
// Get the user language |
| 139 |
|
$_lang['get'] = PMF_Filter::filterInput(INPUT_GET, 'lang', FILTER_SANITIZE_STRING); |
| 140 |
|
if (!is_null($_lang['get']) && !self::isASupportedLanguage($_lang['get']) ) { |
|
@@ 140-142 (lines=3) @@
|
| 137 |
|
} |
| 138 |
|
// Get the user language |
| 139 |
|
$_lang['get'] = PMF_Filter::filterInput(INPUT_GET, 'lang', FILTER_SANITIZE_STRING); |
| 140 |
|
if (!is_null($_lang['get']) && !self::isASupportedLanguage($_lang['get']) ) { |
| 141 |
|
$_lang['get'] = null; |
| 142 |
|
} |
| 143 |
|
// Get the faq record language |
| 144 |
|
$_lang['artget'] = PMF_Filter::filterInput(INPUT_GET, 'artlang', FILTER_SANITIZE_STRING); |
| 145 |
|
if (!is_null($_lang['artget']) && !self::isASupportedLanguage($_lang['artget']) ) { |
|
@@ 145-147 (lines=3) @@
|
| 142 |
|
} |
| 143 |
|
// Get the faq record language |
| 144 |
|
$_lang['artget'] = PMF_Filter::filterInput(INPUT_GET, 'artlang', FILTER_SANITIZE_STRING); |
| 145 |
|
if (!is_null($_lang['artget']) && !self::isASupportedLanguage($_lang['artget']) ) { |
| 146 |
|
$_lang['artget'] = null; |
| 147 |
|
} |
| 148 |
|
// Get the language from the session |
| 149 |
|
if (isset($_SESSION['pmf_lang']) && self::isASupportedLanguage($_SESSION['pmf_lang']) ) { |
| 150 |
|
$_lang['session'] = trim($_SESSION['pmf_lang']); |