The Creation page that i've created.
Script:
Code:
else if($name == "wow")
{
echo "<h3>World Of Warcraft Server</h3>
<table border=1 width=100% id=News>
<tr>
<td bgcolor=#7A7A7A>
<p align=center><font color=#FFFFFF>Latest News</font></td>
</tr>
<tr>
<td>
<p align=center><b><font size=2>24-09-2007, Server updated:</font></b><font size=1><br>
It's been a long time since a checked if there is new versions of the WOW BC,<br>
now am i trying to update the server to v2.1.3.<br>
I let you know if its updated.<br>
<br>
Alexw</p>
</font></td>
</tr>
</table>
<br>
<table border=1 width=100% id=Register>
<tr>
<td bgcolor=#7A7A7A>
<p align=center><font color=#FFFFFF>Registration</font></td>
</tr>
<tr>
<td>";
if($register == "yes")
{
$username = $_POST['username'];
$password = $_POST['password'];
$email = $_POST['email'];
mysql_select_db("realmd") or die("Unable to select database, registration Disabled");
$sql = mysql_query("SELECT * FROM `account` WHERE `username` = '$username'");
if (mysql_num_rows($sql) == "1")
{
echo "<p align=center><front size=1>This username is already being used by another member!</front></p>";
}
elseif (mysql_num_rows($sql) == "0")
{
/*-- SECTION: 9994SQL --*/
$sql = "INSERT INTO accounts (
username,
I,
email
$addl_insert_crit ) VALUES (
'$username',
'$password',
'$email'
$addl_insert_values )";
if ($sql_debug_mode==1) { echo "<BR>SQL: $sql<BR>"; }
$result = mysql_query($sql);
if ($result == 1) {
echo "<p align=center><front size=1>Account Created</front></p>";
} else {
echo "<p align=center><front size=1>Error inserting record (9994SQL)</front></p>";
}
//***** END INSERT SQL *****
}
}
else
{
echo "
<p align=center><front size=1>
<form method=POST action=servers.php?name=wow®ister=yes>
<table border=1 width=21%>
<tr>
<td align=center>Username: </td>
<td align=center><input type=text name=username size=20></td>
</tr>
<tr>
<td align=center>Password:</td>
<td align=center><input type=password name=password size=20></td>
</tr>
<tr>
<td align=center>E-Mail</td>
<td align=center><input type=text name=email size=20></td>
</tr>
</table>
<input type=submit value=Create name=Submit>
</form>
</front>
";
}
echo "
</td>
</tr>
</table>
<br>
<table border=1 width=100% id=CheckIn>
<tr>
<td bgcolor=#7A7A7A>
<p align=center><font color=#FFFFFF>Check In</font></td>
</tr>
<tr>
<td>
<p align=center><font size=2>You can enter the WOW world by
downloading the follow file: <a title='Use the right mouse to download this file...' href=http://wow.as-club.nl/realmlist.wtf>Realmlist.wtf</a><br><br>Just replace the old file with this file in you WOW directory.</font></p></td>
</tr>
</table>
";
}
Alexw