Vergleich inc/class_language.php - 1.2.10 - 1.2.13

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 51Zeile 51
	 */
function language_exists($language)
{

	 */
function language_exists($language)
{

		$language = str_replace(array("/", "\\", ".."), '', trim($language));

		$language = preg_replace("#[^a-z0-9\-_]#i", "", $language);

		if(file_exists($this->path."/".$language.".php"))
{
return true;

		if(file_exists($this->path."/".$language.".php"))
{
return true;

Zeile 71Zeile 71
	function set_language($language="english", $area="user")
{
global $mybb;

	function set_language($language="english", $area="user")
{
global $mybb;

		$language = str_replace(array("/", "\\", ".."), '', trim($language));

		$language = preg_replace("#[^a-z0-9\-_]#i", "", $language);


// Default language is English.
if($language == "")


// Default language is English.
if($language == "")