Vergleich inc/init.php - 1.4.11 - 1.4.15

  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: init.php 4427 2009-08-13 21:22:07Z RyanGordon $

 * $Id: init.php 5379 2011-02-21 11:06:42Z Tomm $

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 50Zeile 50

define("TIME_NOW", time());



define("TIME_NOW", time());


require_once MYBB_ROOT."inc/functions_compat.php";






if(function_exists('date_default_timezone_set') && !ini_get('date.timezone'))
{
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/functions.php";


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

require_once MYBB_ROOT."inc/functions.php";





require_once MYBB_ROOT."inc/class_timers.php";
$maintimer = new timer();

require_once MYBB_ROOT."inc/class_core.php";
$mybb = new MyBB;

require_once MYBB_ROOT."inc/class_timers.php";
$maintimer = new timer();

require_once MYBB_ROOT."inc/class_core.php";
$mybb = new MyBB;





if(!file_exists(MYBB_ROOT."inc/config.php"))

if(!file_exists(MYBB_ROOT."inc/config.php"))

{
$mybb->trigger_generic_error("board_not_installed");
}


{
$mybb->trigger_generic_error("board_not_installed");
}


// Include the required core files
require_once MYBB_ROOT."inc/config.php";
$mybb->config = &$config;

// Include the required core files
require_once MYBB_ROOT."inc/config.php";
$mybb->config = &$config;

Zeile 116Zeile 121
// Check if our DB engine is loaded
if(!extension_loaded($db->engine))
{

// Check if our DB engine is loaded
if(!extension_loaded($db->engine))
{

	// Try and manually load it - DIRECTORY_SEPARATOR checks if running windows
if(DIRECTORY_SEPARATOR == '\\')
{
@dl('php_'.$db->engine.'.dll');
}
else
{
@dl($db->engine.'.so');
}

// Check again to see if we've been able to load it
if(!extension_loaded($db->engine))
{
// Throw our super awesome db loading error
$mybb->trigger_generic_error("sql_load_error");
}

	// Throw our super awesome db loading error
$mybb->trigger_generic_error("sql_load_error");















}

require_once MYBB_ROOT."inc/class_templates.php";

}

require_once MYBB_ROOT."inc/class_templates.php";

Zeile 164Zeile 155
if(file_exists(MYBB_ROOT."inc/settings.php"))
{
require_once MYBB_ROOT."inc/settings.php";

if(file_exists(MYBB_ROOT."inc/settings.php"))
{
require_once MYBB_ROOT."inc/settings.php";

}

}


if(!file_exists(MYBB_ROOT."inc/settings.php") || !$settings)
{


if(!file_exists(MYBB_ROOT."inc/settings.php") || !$settings)
{

Zeile 225Zeile 216

// Set up any shutdown functions we need to run globally
add_shutdown('send_mail_queue');


// Set up any shutdown functions we need to run globally
add_shutdown('send_mail_queue');


// Generate a random number for performing random actions.
$rand = mt_rand(0, 10);

 

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


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