$loader->register(); // // Set the error handler to our pmf_error_handler() function // set_error_handler('pmf_error_handler'); // // Create a database connection // PMF_Db::setTablePrefix($DB['prefix']); $db = PMF_Db::factory($DB['type']); $db->connect($DB['server'], $DB['user'], $DB['password'], $DB['db']); // // Fetch the configuration and add the database connection // $faqConfig = new PMF_Configuration($db); $faqConfig->getAll(); // // We always need a valid session! // ini_set('session.use_only_cookies', 1); // Avoid any PHP version to move sessions on URLs ini_set('session.auto_start', 0); // Prevent error to use session_start() if it's active in php.ini ini_set('session.use_trans_sid', 0); ini_set('url_rewriter.tags', ''); // // Start the PHP session // PMF_Init::cleanRequest(); session_start(); //