connect()) die("Unable to connect to DB. Check config."); if($db->checkDB()) die("Already installed."); if(isset($_POST) && array_key_exists("install",$_POST)) { // Creating database... $db->connect(); $users->db = $db; $blogs->db = $db; $billets->db = $db; $commentaires->db = $db; $users->initializeDB(); $blogs->initializeDB(); $billets->initializeDB(); $commentaires->initializeDB(); header("location: login.php?err=".urlencode("Installation is successful.")); } echo $xhtml->head('Installation','admin'); echo '
'; echo $xhtml->foot(TRUE); ?>