Vergleich inc/class_language.php - 1.2.1 - 1.2.8

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 3Zeile 3
 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

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

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

 *

 *

 * $Id: class_language.php 2207 2006-09-10 01:46:13Z chris $

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

 */

class MyLanguage

 */

class MyLanguage

Zeile 51Zeile 51
	 */
function language_exists($language)
{

	 */
function language_exists($language)
{

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

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

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

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

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

		$language = trim($language);

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


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


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