File size: 1.3Kb
<body bgcolor=#D1E7FE>
<title>Admin / Add Staff</title>
<? include("configure.php");
if ($delall == "") {
$delall = "no";
}
if ($delown == "") {
$delown = "no";
}
if ($addmembers == "") {
$addmembers = "no";
}
if ($delmembers == "") {
$delmembers = "no";
}
if ($modifydisplay == "") {
$modifydisplay = "no";
}
$connection = @mysql_connect("$db_server", "$db_name", "$db_password") or die("Couldn't connect.");
$db = @mysql_select_db($db_database, $connection) or die("Couldn't select database.");
$sql = "INSERT INTO ns_staff
(username, email, modifydisplay, delall, delown, addmembers, delmembers, id, password)
VALUES
(\"$username\", \"$email\", \"$modifydisplay\", \"$delall\", \"$delown\", \"$addmembers\", \"$delmembers\", \"$id\", password(\"$password\"))
";
$result = @mysql_query($sql, $connection) or die("Couldn't execute query.");
$display = "
<font size=4>
<p>
Success!
<br>
<br><b>Username:</b> $username
<br><b>Password:</b> $password
<br><b>Email Address:</b> $email
<Br><b>Delete Own Posts:</b> $delown
<br><b>Delete All Posts:</b> $delall
<br><b>Add Members:</b> $addmembers
<Br><b>Delete Members:</b> $delmembers
<br><b>Modify Display:</b> $modifydisplay
</p>
</font>
<p>
<a href=\"admin.php\">Admin Center</a>
</p>
";
echo $display;
?>