print("Error: User already exists.<p>");
break;
}
- //create
+ //create user
$db->insert("users",array("uname"=>$un,"passwd"=>$_POST["adminpwd1"]));
+ //make it admin
$db->insert("userrole",array("uname"=>$un,"role"=>"_admin"));
+ //allow it on all hosts
+ $db->insert("userhosts",array("uname"=>$un,"host"=>"_anon"));
+ $db->insert("userhosts",array("uname"=>$un,"host"=>"_any"));
+ $db->insert("userhosts",array("uname"=>$un,"host"=>"_online"));
}
}while(0);
?>
$db->setDbName("smoke");
// set table-prefix (optional)
$db->setPrefix("smoke_");
+//set this to one of the supported MySQL storage engines for DB creation
+$db->setStorageEngine("InnoDB");
+
+////////////
+// DB Administration
//use this for DB creation and upgrading, comment it out otherwise
//change the passcode before using this on a production system!!!
$db->setAdminPassCode("Admin","SmokeInMyEye");
-//set this to one of the supported MySQL storage engines for DB creation
-$db->setStorageEngine("InnoDB");
////////////