Vergleich inc/class_core.php - 1.8.23 - 1.8.39

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 14Zeile 14
	 *
* @var string
*/

	 *
* @var string
*/

	public $version = "1.8.23";

	public $version = "1.8.39";


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


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

	public $version_code = 1823;

	public $version_code = 1839;


/**
* The current working directory.


/**
* The current working directory.

Zeile 184Zeile 184
	 * @var string
*/
public $asset_url = null;

	 * @var string
*/
public $asset_url = null;

 

/**
* @var array
*/
public $session = array();

/**
* @var string
*/
public $post_code;

/**
* @var array
*/
public $admin;


	/**
* String input constant for use with get_input().
*
* @see get_input
*/
const INPUT_STRING = 0;

	/**
* String input constant for use with get_input().
*
* @see get_input
*/
const INPUT_STRING = 0;

	/**

	/**

	 * Integer input constant for use with get_input().
*
* @see get_input

	 * Integer input constant for use with get_input().
*
* @see get_input

Zeile 223Zeile 239
		// Set up MyBB
$protected = array("_GET", "_POST", "_SERVER", "_COOKIE", "_FILES", "_ENV", "GLOBALS");
foreach($protected as $var)

		// Set up MyBB
$protected = array("_GET", "_POST", "_SERVER", "_COOKIE", "_FILES", "_ENV", "GLOBALS");
foreach($protected as $var)

		{

		{

			if(isset($_POST[$var]) || isset($_GET[$var]) || isset($_COOKIE[$var]) || isset($_FILES[$var]))
{
die("Hacking attempt");

			if(isset($_POST[$var]) || isset($_GET[$var]) || isset($_COOKIE[$var]) || isset($_FILES[$var]))
{
die("Hacking attempt");

Zeile 235Zeile 251
			if(!is_array(IGNORE_CLEAN_VARS))
{
$this->ignore_clean_variables = array(IGNORE_CLEAN_VARS);

			if(!is_array(IGNORE_CLEAN_VARS))
{
$this->ignore_clean_variables = array(IGNORE_CLEAN_VARS);

			}
else

			}
else

			{
$this->ignore_clean_variables = IGNORE_CLEAN_VARS;
}

			{
$this->ignore_clean_variables = IGNORE_CLEAN_VARS;
}

Zeile 255Zeile 271
			@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);
$this->parse_incoming($_POST);


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


		if($_SERVER['REQUEST_METHOD'] == "POST")

		if(isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] == "POST")

		{
$this->request_method = "post";
}

		{
$this->request_method = "post";
}

		else if($_SERVER['REQUEST_METHOD'] == "GET")

		else

		{
$this->request_method = "get";
}

		{
$this->request_method = "get";
}

Zeile 277Zeile 293
			$this->unset_globals($_GET);
$this->unset_globals($_FILES);
$this->unset_globals($_COOKIE);

			$this->unset_globals($_GET);
$this->unset_globals($_FILES);
$this->unset_globals($_COOKIE);

		}

		}

		$this->clean_input();

$safe_mode_status = @ini_get("safe_mode");

		$this->clean_input();

$safe_mode_status = @ini_get("safe_mode");

Zeile 290Zeile 306
		if(isset($_SERVER['MYBB_DEV_MODE']) && $_SERVER['MYBB_DEV_MODE'] == 1)
{
$this->dev_mode = 1;

		if(isset($_SERVER['MYBB_DEV_MODE']) && $_SERVER['MYBB_DEV_MODE'] == 1)
{
$this->dev_mode = 1;

		}

		}


// Are we running in debug mode?
if(isset($this->input['debug']) && $this->input['debug'] == 1)


// Are we running in debug mode?
if(isset($this->input['debug']) && $this->input['debug'] == 1)

Zeile 349Zeile 365

// Fixes conflicts with one board having a prefix and another that doesn't on the same domain
// Gives priority to our cookies over others (overwrites them)


// Fixes conflicts with one board having a prefix and another that doesn't on the same domain
// Gives priority to our cookies over others (overwrites them)

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

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

				{
unset($this->cookies[$key]);
}

				{
unset($this->cookies[$key]);
}

Zeile 500Zeile 516
			if(substr($path, 0, 2) == './')
{
$path = substr($path, 2);

			if(substr($path, 0, 2) == './')
{
$path = substr($path, 2);

			}


			}


			if($use_cdn && $this->settings['usecdn'] && !empty($this->settings['cdnurl']))
{
$base_path = rtrim($this->settings['cdnurl'], '/');

			if($use_cdn && $this->settings['usecdn'] && !empty($this->settings['cdnurl']))
{
$base_path = rtrim($this->settings['cdnurl'], '/');

Zeile 607Zeile 623
 */

$grouppermignore = array("gid", "type", "title", "description", "namestyle", "usertitle", "stars", "starimage", "image");

 */

$grouppermignore = array("gid", "type", "title", "description", "namestyle", "usertitle", "stars", "starimage", "image");

$groupzerogreater = array("pmquota", "maxpmrecipients", "maxreputationsday", "attachquota", "maxemails", "maxposts", "edittimelimit", "maxreputationsperuser", "maxreputationsperthread", "emailfloodtime");



































$groupzerogreater = array(
'maxposts',
'attachquota',
'edittimelimit',
'maxreputationsperthread',
'maxreputationsperuser',
'maxreputationsday',
'maxwarningsday',
'pmquota',
'maxpmrecipients',
'maxemails',
);
$groupzerolesser = array(
'canusesigxposts',
'emailfloodtime',
);
$groupxgreater = array(
'reputationpower' => 0,
);
$grouppermbyswitch = array(
'maxposts' => array('canpostthreads', 'canpostreplys'),
'attachquota' => 'canpostattachments',
'edittimelimit' => 'caneditposts',
'canusesigxposts' => 'canusesig',
'reputationpower' => 'cangivereputations',
'maxreputationsperthread' => 'cangivereputations',
'maxreputationsperuser' => 'cangivereputations',
'maxreputationsday' => 'cangivereputations',
'maxwarningsday' => 'canwarnusers',
'pmquota' => 'canusepms',
'maxpmrecipients' => 'canusepms',
'maxemails' => 'cansendemail',
'emailfloodtime' => 'cansendemail',
);


$displaygroupfields = array("title", "description", "namestyle", "usertitle", "stars", "starimage", "image");

// These are fields in the usergroups table that are also forum permission specific.

$displaygroupfields = array("title", "description", "namestyle", "usertitle", "stars", "starimage", "image");

// These are fields in the usergroups table that are also forum permission specific.