File size: 1.46Kb
<?
include("configure.php");
$hldatecolor = "#000000";
$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, delall, delown, addmembers, delmembers, modifydisplay, id, password)
VALUES
(\"$username\", \"$email\", \"$delall\", \"$delown\", \"$addmembers\", \"$delmembers\",\"$modifydisplay\", \"$id\", password(\"$password\"))
";
$result = @mysql_query($sql, $connection) or die("Couldn't execute query.");
$sql2 = "INSERT INTO ns_display
(hldatecolor)
VALUES
(\"$hldatecolor\")
";
$result2 = @mysql_query($sql2, $connection) or die("Couldn't execute query.");
$connection3 = @mysql_connect("$db_server", "$db_name", "$db_password") or die("Couldn't connect.");
$db3 = @mysql_select_db($db_database, $connection) or die("The database wasn't found.");
$sql3 = "INSERT INTO ns_headlines
(hldatecolor)
VALUES
(\"$hldatecolor\")
";
$result3 = @mysql_query($sql3, $connection) or die("There was an error.");
$msg = "Setup is now complete. Please delete the following files:
<br>install_1.php
<br>install_2.php
<br>install_3.php
<br>
<Br>Click <a href=$ns_url/login_admin.php>here</a> to continue to the admin center.";
?>
<body bgcolor=#D1E7FE>
<title>Install :: Step 3</title>
<font size=4>
<? echo "$msg"; ?>
</font>