Vergleich inc/class_core.php - 1.6.7 - 1.6.18

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * $Id: class_core.php 5764 2012-03-27 08:54:58Z Tomm $

 * $Id$

 */

class MyBB {

 */

class MyBB {

Zeile 15Zeile 15
	 *
* @var string
*/

	 *
* @var string
*/

	public $version = "1.6.7";

	public $version = "1.6.18";

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

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

	public $version_code = 1607;

	public $version_code = 1618;

	
/**
* The current working directory.

	
/**
* The current working directory.

Zeile 100Zeile 100
			"vid", "cid", "bid",
"pid", "gid", "mid",
"wid", "lid", "iid",

			"vid", "cid", "bid",
"pid", "gid", "mid",
"wid", "lid", "iid",

			"sid"),





			"sid"
),
"pos" => array(
"page", "perpage"
),

		"a-z" => array(
"sortby", "order"
)

		"a-z" => array(
"sortby", "order"
)

Zeile 134Zeile 138
		$protected = array("_GET", "_POST", "_SERVER", "_COOKIE", "_FILES", "_ENV", "GLOBALS");
foreach($protected as $var)
{

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

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

			if(isset($_POST[$var]) || isset($_GET[$var]) || isset($_COOKIE[$var]) || isset($_FILES[$var]))

			{
die("Hacking attempt");
}

			{
die("Hacking attempt");
}

Zeile 258Zeile 262
				}
}


				}
}


			if(!$this->cookies[$key])

			if(empty($this->cookies[$key]))

			{
$this->cookies[$key] = $val;
}

			{
$this->cookies[$key] = $val;
}

Zeile 322Zeile 326

if(isset($this->input[$var]))
{


if(isset($this->input[$var]))
{

					if($type == "int" && $this->input[$var] != "lastposter")

					switch($type)

					{

					{

						$this->input[$var] = intval($this->input[$var]);
}
else if($type == "a-z")
{
$this->input[$var] = preg_replace("#[^a-z\.\-_]#i", "", $this->input[$var]);






						case "int":
$this->input[$var] = intval($this->input[$var]);
break;
case "a-z":
$this->input[$var] = preg_replace("#[^a-z\.\-_]#i", "", $this->input[$var]);
break;
case "pos":
if (($this->input[$var] < 0 && $var != "page") || ($var == "page" && $this->input[$var] != "last" && $this->input[$var] < 0))
$this->input[$var] = 0;
break;

					}
}
}

					}
}
}