Vergleich inc/init.php - 1.8.27 - 1.8.37

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 104Zeile 104
if(empty($config['admin_dir']))
{
$config['admin_dir'] = "admin";

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

 
}

// Load Settings
$settings = array();

if(file_exists(MYBB_ROOT."inc/settings.php"))
{
require_once MYBB_ROOT."inc/settings.php";
$mybb->settings = $settings;

}

// Trigger an error if the installation directory exists

}

// Trigger an error if the installation directory exists

Zeile 115Zeile 124
// Load DB interface
require_once MYBB_ROOT."inc/db_base.php";
require_once MYBB_ROOT . 'inc/AbstractPdoDbDriver.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";

switch($config['database']['type'])

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

switch($config['database']['type'])

Zeile 173Zeile 182
$cache->cache();

// Load Settings

$cache->cache();

// Load Settings

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(empty($settings))






{

{

	if(function_exists('rebuild_settings'))
{
rebuild_settings();
}
else
{
$options = array(
"order_by" => "title",
"order_dir" => "ASC"
);

$query = $db->simple_select("settings", "value, name", "", $options);

$settings = array();
while($setting = $db->fetch_array($query))
{
$setting['value'] = str_replace("\"", "\\\"", $setting['value']);
$settings[$setting['name']] = $setting['value'];
}
$db->free_result($query);
}

	rebuild_settings();





















}

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

}

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