Zeile 6 | Zeile 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 5495 2011-07-12 15:39:08Z Tomm $
| * $Id$
|
*/
class MyBB {
| */
class MyBB {
|
Zeile 15 | Zeile 15 |
---|
* * @var string */
|
* * @var string */
|
public $version = "1.6.4";
| public $version = "1.6.10";
|
/** * The version code of MyBB we're running. * * @var integer */
|
/** * The version code of MyBB we're running. * * @var integer */
|
public $version_code = 1604;
| public $version_code = 1610;
|
/** * The current working directory.
| /** * The current working directory.
|
Zeile 100 | Zeile 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 116 | Zeile 120 |
---|
/** * Using built in shutdown functionality provided by register_shutdown_function for < PHP 5? */
|
/** * Using built in shutdown functionality provided by register_shutdown_function for < PHP 5? */
|
public $use_shutdown = false;
| public $use_shutdown = true;
|
/** * Debug mode?
| /** * Debug mode?
|
Zeile 196 | Zeile 200 |
---|
}
// Are we running in debug mode?
|
}
// Are we running in debug mode?
|
if(isset($mybb->input['debug']) || preg_match("#[?&]debug=1#", $_SERVER['REQUEST_URI']))
| if(isset($this->input['debug']) && $this->input['debug'] == 1)
|
{ $this->debug_mode = true; }
| { $this->debug_mode = true; }
|
Zeile 258 | Zeile 262 |
---|
} }
|
} }
|
if(!$this->cookies[$key])
| if(empty($this->cookies[$key]))
|
{ $this->cookies[$key] = $val; }
| { $this->cookies[$key] = $val; }
|
Zeile 322 | Zeile 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;
|
} } }
| } } }
|