has('accounts', ["[>]assigned_permissions" => ["uid" => "uid"]], ['permid' => 1])) { die("An admin account already exists, exiting."); } if (is_empty($_POST['username']) || is_empty($_POST['password']) || is_empty($_POST['realname'])) { ?> Admin Account Creation

Admin Account Creation tool

Username:
Password:
Name:
Email:
insert('assigned_permissions', ['uid' => $userid, 'permid' => 1]); die("Account created."); }