Vergleich inc/class_language.php - 1.2.10 - 1.2.14

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/eula.html
*

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/eula.html
*

 * $Id: class_language.php 2932 2007-03-10 05:48:55Z chris $

 * $Id: class_language.php 3860 2008-05-22 05:25:53Z Tikitiki $

 */

class MyLanguage

 */

class MyLanguage

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 == "")