Vergleich inc/init.php - 1.6.1 - 1.6.10

  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: init.php 5080 2010-07-04 19:12:25Z RyanGordon $

 * $Id$

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 54Zeile 54
{
date_default_timezone_set('GMT');
}

{
date_default_timezone_set('GMT');
}


require_once MYBB_ROOT."inc/functions_compat.php";

 

require_once MYBB_ROOT."inc/class_error.php";
$error_handler = new errorHandler();


require_once MYBB_ROOT."inc/class_error.php";
$error_handler = new errorHandler();

Zeile 200Zeile 198
$mybb->parse_cookies();
$mybb->cache = &$cache;


$mybb->parse_cookies();
$mybb->cache = &$cache;


if($mybb->settings['useshutdownfunc'] != 0)

if($mybb->use_shutdown == true)

{

{

	$mybb->use_shutdown = true;
register_shutdown_function(array(&$mybb, "__destruct"));

	register_shutdown_function('run_shutdown');


}

// Did we just upgrade to a new version and haven't run the upgrade scripts yet?

}

// Did we just upgrade to a new version and haven't run the upgrade scripts yet?

Zeile 218Zeile 215
}

// Load plugins

}

// Load plugins

if(!defined("NO_PLUGINS"))

if(!defined("NO_PLUGINS") && !($mybb->settings['no_plugins'] == 1))

{
$plugins->load();
}

{
$plugins->load();
}

Zeile 227Zeile 224
add_shutdown('send_mail_queue');

/* URL Definitions */

add_shutdown('send_mail_queue');

/* URL Definitions */

if($mybb->settings['seourls'] == "yes" || ($mybb->settings['seourls'] == "auto" && $_SERVER['SEO_SUPPORT'] == 1))

if($mybb->settings['seourls'] == "yes" || ($mybb->settings['seourls'] == "auto" && isset($_SERVER['SEO_SUPPORT']) && $_SERVER['SEO_SUPPORT'] == 1))

{
define('FORUM_URL', "forum-{fid}.html");
define('FORUM_URL_PAGED', "forum-{fid}-page-{page}.html");

{
define('FORUM_URL', "forum-{fid}.html");
define('FORUM_URL_PAGED', "forum-{fid}-page-{page}.html");