Vergleich inc/init.php - 1.8.23 - 1.8.27

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 46Zeile 46

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


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

 

// Show errors triggered during initialization
$error_handler->force_display_errors = true;


if(!function_exists('json_encode') || !function_exists('json_decode'))
{


if(!function_exists('json_encode') || !function_exists('json_decode'))
{

Zeile 70Zeile 73
	// 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;





	if(!isset($config['database']))
{
$not_installed = true;

	if(!isset($config['database']))
{
$not_installed = true;

	}
}


	}
}


if($not_installed !== false)
{
if(file_exists(MYBB_ROOT."install/index.php"))

if($not_installed !== false)
{
if(file_exists(MYBB_ROOT."install/index.php"))

Zeile 94Zeile 97
}

if(!is_array($config['database']))

}

if(!is_array($config['database']))

{

{

	$mybb->trigger_generic_error("board_not_upgraded");

	$mybb->trigger_generic_error("board_not_upgraded");

}


}


if(empty($config['admin_dir']))
{
$config['admin_dir'] = "admin";

if(empty($config['admin_dir']))
{
$config['admin_dir'] = "admin";

Zeile 111Zeile 114

// Load DB interface
require_once MYBB_ROOT."inc/db_base.php";


// Load DB interface
require_once MYBB_ROOT."inc/db_base.php";

 
require_once MYBB_ROOT . 'inc/AbstractPdoDbDriver.php';


require_once MYBB_ROOT."inc/db_".$config['database']['type'].".php";



require_once MYBB_ROOT."inc/db_".$config['database']['type'].".php";


Zeile 118Zeile 122
{
case "sqlite":
$db = new DB_SQLite;

{
case "sqlite":
$db = new DB_SQLite;

		break;

		break;

	case "pgsql":
$db = new DB_PgSQL;

	case "pgsql":
$db = new DB_PgSQL;

		break;




		break;
case "pgsql_pdo":
$db = new PostgresPdoDbDriver();
break;

	case "mysqli":
$db = new DB_MySQLi;

	case "mysqli":
$db = new DB_MySQLi;

 
		break;
case "mysql_pdo":
$db = new MysqlPdoDbDriver();

		break;
default:
$db = new DB_MySQL;

		break;
default:
$db = new DB_MySQL;

Zeile 166Zeile 176
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") || empty($settings))
{


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

Zeile 190Zeile 200
			$settings[$setting['name']] = $setting['value'];
}
$db->free_result($query);

			$settings[$setting['name']] = $setting['value'];
}
$db->free_result($query);

	}

	}

}

$settings['wolcutoff'] = $settings['wolcutoffmins']*60;

}

$settings['wolcutoff'] = $settings['wolcutoffmins']*60;

Zeile 232Zeile 242
		$mybb->trigger_generic_error("board_not_upgraded");
}
}

		$mybb->trigger_generic_error("board_not_upgraded");
}
}

 

$error_handler->force_display_errors = false;


// Load plugins
if(!defined("NO_PLUGINS") && !($mybb->settings['no_plugins'] == 1))
{
$plugins->load();
}


// Load plugins
if(!defined("NO_PLUGINS") && !($mybb->settings['no_plugins'] == 1))
{
$plugins->load();
}


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

 

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


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