adding the new db_server parameter when creating admin user

This commit is contained in:
Steven Mondji-Lerider 2013-02-26 16:55:37 +00:00
parent 90057f5f0b
commit bd7f49b380
1 changed files with 2 additions and 1 deletions

View File

@ -44,7 +44,8 @@ require("/usr/share/alternc/panel/class/config_nochk.php");
$admin->enabled=1;
// On crée le compte admin :
if (!$admin->add_mem("admin","admin","Administrateur", "Admin", "postmaster@".$L_FQDN,1,'default',0,'',1)) {
//FIXME the last parameter should not be chosen by default: it has to match an entry in the db_servers table
if (!$admin->add_mem("admin","admin","Administrateur", "Admin", "postmaster@".$L_FQDN,1,'default',0,'',0 ,'',1)) {
echo $err->errstr()."\n";
exit(1);
}