Vergleich inc/class_core.php - 1.4.1 - 1.4.10

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

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * $Id: class_core.php 4084 2008-08-08 02:13:06Z Tikitiki $

 * $Id: class_core.php 4563 2009-11-29 22:15:45Z RyanGordon $

 */

class MyBB {

 */

class MyBB {

Zeile 15Zeile 15
	 *
* @var string
*/

	 *
* @var string
*/

	var $version = "1.4.1";

	var $version = "1.4.10";

	
/**
* The version code of MyBB we're running.
*
* @var integer
*/

	
/**
* The version code of MyBB we're running.
*
* @var integer
*/

	var $version_code = 1401;

	var $version_code = 1410;

	
/**
* The current working directory.

	
/**
* The current working directory.

Zeile 131Zeile 131
	function MyBB()
{
// Set up MyBB

	function MyBB()
{
// Set up MyBB

		$protected = array("_GET", "_POST", "_SERVER", "_COOKIE", "_FILES", "_SERVER", "_ENV", "GLOBALS");

		$protected = array("_GET", "_POST", "_SERVER", "_COOKIE", "_FILES", "_ENV", "GLOBALS");

		foreach($protected as $var)
{

		foreach($protected as $var)
{

			if(isset($_REQUEST[$var]) || isset($_FILES[$var]) || isset($_COOKIE[$var]))

			if(isset($_REQUEST[$var]) || isset($_FILES[$var]))

			{
die("Hacking attempt");
}

			{
die("Hacking attempt");
}

Zeile 152Zeile 152
			}
}


			}
}


		// Determine Magic Quotes Status
if(get_magic_quotes_gpc())

		// Determine Magic Quotes Status (< PHP 5.3)
if(version_compare(PHP_VERSION, '5.3', '<'))

		{

		{

			$this->magicquotes = 1;
$this->strip_slashes_array($_POST);
$this->strip_slashes_array($_GET);
$this->strip_slashes_array($_COOKIE);







			if(get_magic_quotes_gpc())
{
$this->magicquotes = 1;
$this->strip_slashes_array($_POST);
$this->strip_slashes_array($_GET);
$this->strip_slashes_array($_COOKIE);
}
set_magic_quotes_runtime(0);
@ini_set("magic_quotes_gpc", 0);
@ini_set("magic_quotes_runtime", 0);

		}

		}

		set_magic_quotes_runtime(0);
@ini_set("magic_quotes_gpc", 0);
@ini_set("magic_quotes_runtime", 0);

 
		
// Determine input
$this->parse_incoming($_GET);

		
// Determine input
$this->parse_incoming($_GET);

Zeile 173Zeile 176
			$this->request_method = "post";
}
else if($_SERVER['REQUEST_METHOD'] == "GET")

			$this->request_method = "post";
}
else if($_SERVER['REQUEST_METHOD'] == "GET")

		{

		{

			$this->request_method = "get";
}


			$this->request_method = "get";
}


Zeile 186Zeile 189
			$this->unset_globals($_COOKIE);
}
$this->clean_input();

			$this->unset_globals($_COOKIE);
}
$this->clean_input();





		if(@ini_get("safe_mode") == 1)
{
$this->safemode = true;

		if(@ini_get("safe_mode") == 1)
{
$this->safemode = true;

		}


		}


		// Are we running in debug mode?
if(isset($mybb->input['debug']) || preg_match("#[?&]debug=1#", $_SERVER['REQUEST_URI']))

		// Are we running in debug mode?
if(isset($mybb->input['debug']) || preg_match("#[?&]debug=1#", $_SERVER['REQUEST_URI']))

		{

		{

			$this->debug_mode = true;

			$this->debug_mode = true;

		}

// Old version of PHP, need to register_shutdown_function
if(phpversion() < '5.0.5')
{
$this->use_shutdown = true;
register_shutdown_function(array(&$this, "__destruct"));

 
		}

if(isset($this->input['action']) && $this->input['action'] == "mybb_logo")

		}

if(isset($this->input['action']) && $this->input['action'] == "mybb_logo")