connect($_POST['db_username'],$_POST['db_password'],$_POST['db_host'])) { $error = 'Could not connect to the database, please check your settings.'; include 'step2.php'; include 'footer.php'; exit; } if(!$connection->selectDB($_POST['db_name'])) { $error = 'The database you specified could not be found'; include 'step2.php'; include 'footer.php'; exit; } // file: write database details into the config file $content = 'query($query); } // database: settings update if(empty($_POST['baseurl'])) $_POST['baseurl'] = 'http://' .$_SERVER['HTTP_HOST']. str_replace('install/index.php','',$_SERVER['PHP_SELF']); $connection->update('settings','name','clanname',array('value'=>$_POST['clan'])); $connection->update('settings','name','clantag',array('value'=>$_POST['clantag'])); $connection->update('settings','name','baseurl',array('value'=>$_POST['baseurl'])); $connection->update('settings','name','email',array('value'=>$_POST['admin_email'])); // database: user update $password = $_POST['admin_password']; $connection->update('members','id',1,array('username'=>$_POST['admin_username'],'password'=>md5($password),'email'=>$_POST['admin_email'])); ?>
You probably thought this installer would take longer, hope you are not too dissapointed!
You can now login in to your new website using the e-mail address password . You might want to change these as soon as you log in.