Esempio n. 1
0
function fb_init()
{
    // This is required for valid (X)HTML
    ini_set('arg_separator.output', '&');
    require 'inc/config.inc.php';
    require 'inc/auth.inc.php';
    mysql_connect($db_host, $db_user, $db_pass) or fb_die('Could not connect to the database server', 'MySQL');
    mysql_select_db($db_name) or fb_die('Could not select database', 'MySQL');
    Auth::initialize();
    $theme = get_pref('theme');
    require 'themes/' . $theme . '/page_header.fbt';
    require 'themes/' . $theme . '/navbar.fbt';
}
function fb_init()
{
    include $root_path . 'includes/config.inc.php';
    @mysql_connect($db_host, $db_user, $db_password) or fb_die("Cannot connect to MySQL server!", "MySQL");
    @mysql_select_db($db_name) or fb_die("Cannot connect to database!", "MySQL");
}