Vergleich inc/init.php - 1.4.1 - 1.4.11

  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 4081 2008-08-08 01:47:02Z Tikitiki $

 * $Id: init.php 4427 2009-08-13 21:22:07Z RyanGordon $

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 15Zeile 15
	die("Direct initialization of this file is not allowed.<br /><br />Please make sure IN_MYBB is defined.");
}


	die("Direct initialization of this file is not allowed.<br /><br />Please make sure IN_MYBB is defined.");
}


error_reporting(E_ALL & ~E_NOTICE);














if(function_exists("unicode_decode"))
{
// Unicode extension introduced in 6.0
error_reporting(E_ALL ^ E_DEPRECATED ^ E_NOTICE ^ E_STRICT);
}
elseif(defined("E_DEPRECATED"))
{
// E_DEPRECATED introduced in 5.3
error_reporting(E_ALL ^ E_DEPRECATED ^ E_NOTICE);
}
else
{
error_reporting(E_ALL & ~E_NOTICE);
}


/* Defines the root directory for MyBB.



/* Defines the root directory for MyBB.


Zeile 81Zeile 94
}

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

}

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





switch($config['database']['type'])
{
case "sqlite3":

switch($config['database']['type'])
{
case "sqlite3":

Zeile 89Zeile 102
		break;
case "sqlite2":
$db = new DB_SQLite2;

		break;
case "sqlite2":
$db = new DB_SQLite2;

		break;

		break;

	case "pgsql":
$db = new DB_PgSQL;

	case "pgsql":
$db = new DB_PgSQL;

		break;

		break;

	case "mysqli":
$db = new DB_MySQLi;
break;

	case "mysqli":
$db = new DB_MySQLi;
break;

Zeile 102Zeile 115

// 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 == '\\')
{

	// Try and manually load it - DIRECTORY_SEPARATOR checks if running windows
if(DIRECTORY_SEPARATOR == '\\')
{

Zeile 146Zeile 159

// Load cache
$cache->cache();


// Load cache
$cache->cache();





// Load Settings
if(file_exists(MYBB_ROOT."inc/settings.php"))
{

// Load Settings
if(file_exists(MYBB_ROOT."inc/settings.php"))
{

Zeile 185Zeile 198
if(substr($settings['bburl'], -1) == "/")
{
$settings['bburl'] = my_substr($settings['bburl'], 0, -1);

if(substr($settings['bburl'], -1) == "/")
{
$settings['bburl'] = my_substr($settings['bburl'], 0, -1);

 
}

$settings['internal'] = $cache->read("internal_settings");
if(!$settings['internal']['encryption_key'])
{
$cache->update("internal_settings", array('encryption_key' => random_str(32)));
$settings['internal'] = $cache->read("internal_settings");

}

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

}

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

 

if($mybb->settings['useshutdownfunc'] != 0)
{
$mybb->use_shutdown = true;
register_shutdown_function(array(&$mybb, "__destruct"));
}


// Load plugins
if(!defined("NO_PLUGINS"))


// Load plugins
if(!defined("NO_PLUGINS"))