Vergleich inc/init.php - 1.4.0 - 1.4.9

  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 3816 2008-05-04 15:34:12Z Tikitiki $

 * $Id: init.php 4305 2009-01-02 08:05:39Z Tikitiki $

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 81Zeile 81
}

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

}

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

$db = new databaseEngine;



















switch($config['database']['type'])
{
case "sqlite3":
$db = new DB_SQLite3;
break;
case "sqlite2":
$db = new DB_SQLite2;
break;
case "pgsql":
$db = new DB_PgSQL;
break;
case "mysqli":
$db = new DB_MySQLi;
break;
default:
$db = new DB_MySQL;
}


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


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

Zeile 101Zeile 118
	{
// 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";
$templates = new templates;


require_once MYBB_ROOT."inc/class_templates.php";
$templates = new templates;


Zeile 134Zeile 151
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(function_exists('rebuild_settings'))

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

Zeile 162Zeile 179
$settings['wolcutoff'] = $settings['wolcutoffmins']*60;
$settings['bbname_orig'] = $settings['bbname'];
$settings['bbname'] = strip_tags($settings['bbname']);

$settings['wolcutoff'] = $settings['wolcutoffmins']*60;
$settings['bbname_orig'] = $settings['bbname'];
$settings['bbname'] = strip_tags($settings['bbname']);

 
$settings['orig_bblanguage'] = $settings['bblanguage'];


// Fix for people who for some specify a trailing slash on the board URL
if(substr($settings['bburl'], -1) == "/")
{
$settings['bburl'] = my_substr($settings['bburl'], 0, -1);


// Fix for people who for some specify a trailing slash on the board URL
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->settings = &$settings;