Vergleich inc/init.php - 1.8.3 - 1.8.18

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 14Zeile 14
	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.");
}


/* Defines the root directory for MyBB.







// Fallback
if(!defined('THIS_SCRIPT'))
{
define('THIS_SCRIPT', 'unknown');
}

/* Defines the root directory for MyBB.


Uncomment the below line and set the path manually
if you experience problems.


Uncomment the below line and set the path manually
if you experience problems.





	Always add a trailing slash to the end of the path.

* Path to your copy of MyBB
*/
//define('MYBB_ROOT', "./");

	Always add a trailing slash to the end of the path.

* Path to your copy of MyBB
*/
//define('MYBB_ROOT', "./");





// Attempt autodetection
if(!defined('MYBB_ROOT'))
{

// Attempt autodetection
if(!defined('MYBB_ROOT'))
{

Zeile 44Zeile 50
if(!function_exists('json_encode') || !function_exists('json_decode'))
{
require_once MYBB_ROOT.'inc/3rdparty/json/json.php';

if(!function_exists('json_encode') || !function_exists('json_decode'))
{
require_once MYBB_ROOT.'inc/3rdparty/json/json.php';

}

require_once MYBB_ROOT."inc/functions.php";

}

require_once MYBB_ROOT."inc/functions.php";


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


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

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

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

	}

	}

}

if($not_installed !== false)

}

if($not_installed !== false)

Zeile 90Zeile 96
if(!is_array($config['database']))
{
$mybb->trigger_generic_error("board_not_upgraded");

if(!is_array($config['database']))
{
$mybb->trigger_generic_error("board_not_upgraded");

}

}


if(empty($config['admin_dir']))


if(empty($config['admin_dir']))

{

{

	$config['admin_dir'] = "admin";

	$config['admin_dir'] = "admin";

}


}


// Trigger an error if the installation directory exists
if(is_dir(MYBB_ROOT."install") && !file_exists(MYBB_ROOT."install/lock"))
{
$mybb->trigger_generic_error("install_directory");
}

// Trigger an error if the installation directory exists
if(is_dir(MYBB_ROOT."install") && !file_exists(MYBB_ROOT."install/lock"))
{
$mybb->trigger_generic_error("install_directory");
}

 

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


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



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