<?php
mysql_connect('host','gebruikersnaam','wachtwoord') or
die("couldn't connect to the database. Please try again."); ?>
<html>
<head>
<title></title>
<style type="text/css">
<!--
.error {
background-color:#ffc;
width: 500px;
color: #f00;
font-weight: bold;
padding: 4px;
border: 1px solid #f00;
margin-bottom: 10px;
}
-->
</style>
<script language="JavaScript" type="text/javascript">
function check()
{
if ((document.form3.usernamecheck.checked == true)&&(document.form3.nameiscorrect2.checked == true)&&(document.form3.agree.checked == true))
{
document.form3.verzenden.disabled = false;
} else
{
document.form3.verzenden.disabled = true;
}
}
</script>
</head>
<body bgcolor="black" text="white" leftmargin="0px" topmargin="0px" rightmargin="0px" bottommargin="0px">
<table bordercolor="darkblue" style="border-collapse:collapse;" cellspacing="0" cellpadding="0" border="1" width="100%">
<tr>
<td bgcolor="#696969" align="right" valign="top" width="10%" rowspan="9" background=""></td> <!-- possible advertises go here -->
<td bgcolor="black" width="779" align="center" valign="middle" height="30"></td> <!-- spacer goes here ! -->
<td bgcolor="#696969" align="left" valign="top"width="20%" rowspan="9" background=""></td> <!-- possible advertises go here -->
</tr>
<!-- banner goes here ! -->
<tr>
<td bgcolor="" align="center" valign="middle" height="210"><img src="BANNER5.gif" width="779" height="210"><td>
</tr>
<!-- Top navigation goes here ! -->
<tr>
<td bgcolor="" align="center" valign="middle" height="30">
<table border="1" bordercolor="blue" style="border-collapse:collapse;" cellspacing="0" cellpadding="0">
<tr>
<td><A HREF="index.php" onMouseOver="changeimage('aa441','image1on.gif');" onMouseOut="changeimage('aa441','image1.gif');" onClick="changeimage('aa441','image1off.gif');"><IMG src="image1.gif" name=aa441 border="0"></A></td>
<td><A HREF="register.php" onMouseOver="changeimage('aa447','image2on.gif');" onMouseOut="changeimage('aa447','image2.gif');" onClick="changeimage('aa447','image2off.gif');"><IMG src="image2.gif" name=aa447 border="0"></A></td>
<td><A HREF="guide.php" onMouseOver="changeimage('aa386','image3on.gif');" onMouseOut="changeimage('aa386','image3.gif');" onClick="changeimage('aa386','image3off.gif');"><IMG src="image3.gif" name=aa386 border="0"></A></td>
<td><A HREF="calculation.php" onMouseOver="changeimage('aa931','image4on.gif');" onMouseOut="changeimage('aa931','image4.gif');" onClick="changeimage('aa931','image4off.gif');"><IMG src="image4.gif" name=aa931 border="0"></A></td>
<td><A HREF="farmlist.php" onMouseOver="changeimage('aa030','image6on.gif');" onMouseOut="changeimage('aa030','image6.gif');" onClick="changeimage('aa030','image6off.gif');"><IMG src="image6.gif" name=aa030 border="0"></A></td>
<td><A HREF="moc.php" onMouseOver="changeimage('aa958','image7on.gif');" onMouseOut="changeimage('aa958','image7.gif');" onClick="changeimage('aa958','image7off.gif');"><IMG src="image7.gif" name=aa958 border="0"></A></td>
<td><A HREF="faq.php" onMouseOver="changeimage('aa284','image8on.gif');" onMouseOut="changeimage('aa284','image8.gif');" onClick="changeimage('aa284','image8off.gif');"><IMG src="image8.gif" name=aa284 border="0"></A></td>
<td><A HREF="forum.php" onMouseOver="changeimage('aa038','image5on.gif');" onMouseOut="changeimage('aa038','image5.gif');" onClick="changeimage('aa038','image5off.gif');"><IMG src="image5.gif" name=aa038 border="0"></A></td>
</tr>
</table>
</td>
</tr>
<!-- titlebar goes here ! -->
<tr>
<td bgcolor="white" height="60" valign="middle"><font face="Matura MT Script Capitals" size="7" color="black"> Welcome to the Registerpage</td>
</tr>
<!-- content middle goes here ! -->
<tr>
<td bgcolor="black" align="" valign="top" height="500">
<font size="6" face=""> Registrations</font>
<p align="justify>">
<form name="form3" method="post">
<center>
<div style="border-collapse:collapse;border:1px solid;width:750px;">
<center>
<table border="0" bordercolor="" style="border-collapse:collapse;" width="100%">
<tr>
<th height="30" bgcolor="darkblue" align="center" colspan="3"><font size="5">Registrations Profile</font></th>
</tr>
<tr>
<td colspan="3" bgcolor="blue"><font color=""> Vitals - pay careful attention to what you enter, it's hard to log in if you mess any of it up</font></td>
</tr>
<tr>
<td width="20%" valign="bottom">Username:</td>
<td><font size="2"> This is required to be exactly the same as your Kings of Chaos username; the system will not work with any other name. Watch out for capitalization. (To be sure you get the right name, simply go to Command Center in Kings of Chaos, highlight your name at the top right corner of the User Info table, and paste it here.)<font></td>
</tr>
<tr>
<td valign="top"><input type="textinput" name="username" size="25" value=""/></td>
<td><span id="spanuser" class="error" style="display:none">No valid Username!</span><span id="spanused" class="error" style="display:none">There is already someone with that username!</span><input type="checkbox" name="usernamecheck" onclick="javascript:check();"/>OK, I checked my username at Kings of Chaos and put it in the box correctly. <b>(MUST be checked)</b></td>
</tr>
<tr>
<td width="20%" valign="bottom">Password:</td>
</tr>
<tr>
<td valign="top"><input type="password" name="password1" size="25" value=""/></td>
</tr>
<tr>
<td width="20%" valign="bottom"></td>
<td><span id="spannopassword" class="error" style="display:none">You may not sign up with a blank Password!</span><span id="spanpassword" class="error" style="display:none">Passwords do not match!</span>
</tr>
<tr>
<td width="20%" valign="bottom">Password again:</td>
</tr>
<tr>
<td valign="top"><input type="password" name="password2" size="25" value=""/></td>
</tr>
<tr>
<td width="20%" valign="bottom">Email address:</td>
</tr>
<tr>
<td valign="top"><input type="textinput" name="email" size="25" value=""/> </td>
<td><span id="spanemail" class="error" style="display:none">No valid Emailaddress!</span><font color="red"> If you use a free webmail service such as Yahoo! or Hotmail, it is highly likely that your password will disappear into their spam filters. Please make sure that you NOTE DOWN YOUR PASSWORD when it appears on this site in a moment.</font></td>
</tr>
<tr>
<td width="20%" valign="bottom">Kings of Chaos Link:</td>
<td valign="bottom"><span id="spanlink" class="error" style="display:none">No valid Uniquelink!</span></td>
</tr>
<tr>
<td colspan="2"><input type="textinput" name="userlink" size="40" value=""/>
</td>
</tr>
<tr>
<td colspan="2" height="40"></td>
</tr>
<tr>
<td colspan="2" height="30"></td>
</tr>
<tr>
<td width="20%" valign="bottom">Current Army Size:</td>
</tr>
<tr>
<td width="20%" colspan="" valign="top"><input type="textinput" name="armysize" size="5" />
<select name="race">
<option value="Humans">Humans</option>
<option value="Dwarves">Dwarves</option>
<option value="Elves">Elves</option>
<option value="Orcs">Orcs</option>
</select>
</td>
<td colspan="2">
<span id="spanarmy" class="error" style="display:none">No valid Armysize!</span>
</td>
</tr>
<tr>
<td colspan="2" height="10"></td>
</tr>
<tr bgcolor="darkblue">
<td colspan="2" height="30"><font size="5"><b>Alliance</b></font></td>
</tr>
<tr>
<td valign="middle">
<select name="alliance">
<option value="0" selected="selected" >Select an alliance from the list</option>
<option value="Lords of Gondor Member" >LOG Member</option>
<option value="Lordclicker User" >Lordclicker User</option>
</select>
</td>
<td>Please select 'Lordclicker User', unless you are a member of Lords of Gondor.<br /> <span id="spanalliance" class="error" style="display:none">Please select an Alliance!</span><input type="checkbox" onclick="javascript:check();" name="nameiscorrect2"/>I have selected an appropriate alliance <b>(MUST be checked)</b></td>
</tr>
<tr bgcolor="darkblue">
<td colspan="2" height="30"><font size="5"><b>Agreement</b></font></td>
</tr>
<tr>
<td colspan="2">
You need to have checked all three check boxes in this form.<br /><br />
Checking this one signifies one of the following two: <ol><li>that you are a member of Lords of Gondor or are in its command chain, and as such, you will not attack or attempt to recruit as an officer ANYONE in Lords of Gondor or its command chain, and that you will uphold the high standards of gameplay and citizenship that have come to be the trademarks of Lords of Gondor; that you will not break Kings of Chaos rules, spam or harass people in the game or out; that you understand you must most definitely kick ass in the game. (That's what we're all about)<br /><br /><b>or</b><br/><br/></li><li>that you agree that you are NOT in an alliance which is an enemy of Lords of Gondor</li></ol>
<input type="checkbox" name="agree" onclick="javascript:check();"/> I agree to one of the two above statements. <b>(MUST be checked)</b>
</td>
</tr>
<tr>
<td colspan="2" height="10"></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" name="verzenden" value="Sign up" disabled/></td>
</tr>
<tr>
<td colspan="2" height="10"></td>
</tr>
</table>
</center>
</div>
</center>
</form>
</p>
</td>
</tr>
<!-- spacer goes here ! -->
<tr>
<td bgcolor='white' align="center" valign="middle" height="2"></td>
</tr>
<!-- bottom navigation goes here ! -->
<tr>
<td bgcolor="black" align="center" valign="middle"height="40">
<A class="type1" href="mailto:LOG_admins@hotmail.com">Contact us</A> | <a class="type1" href="termsofservice.htm" target="_self">Terms of Service</a> | <a class="type1" href="advertising.htm" target="_self">Advertising</a><br />
</td>
</tr>
<!-- spacer goes here ! -->
<tr>
<td bgcolor='white' align="center" valign="middle" height="2"></td>
</tr>
<!-- footer goes here ! -->
<tr>
<td bgcolor="black" align="center" valign="middle"height="50">
<font size="2">Created by
<a class="type1" href="http://www.kingsofchaos.com/recruit.php?uniqid=8tx26d8t" target="_blank">Stenno </a> and <a class="type1" href="http://www.kingsofchaos.com/recruit.php?uniqid=46k39bpy" target="_blank">Warhol</a> <br />
<I>Copyright © 2004-2005 Lords of Gondor, All rights reserved.</I></br>
</font>
</td>
</tr>
</table>
<?php
if(isset($_POST['verzenden'])) { // Formulier verzonden
if(trim($_POST['username']) == "") { // veld leeg?
?>
<script language="javascript" type="text/javascript">
document.getElementById('spanuser').style.display = 'block';
</script>
<?php
} else {
?>
<script language="javascript" type="text/javascript">
document.getElementById('spanuser').style.display = 'none';
</script>
<?php
// Het veld is niet leeg, controleren of de gebruikersnaam nog niet bestaat
if($controle != 0) {
?>
<script language="javascript" type="text/javascript">
document.getElementById('spanused').style.display = 'block';
</script>
<?php
} else {
?>
<script language="javascript" type="text/javascript">
document.getElementById('spanused').style.display = 'none';
</script>
<?php
}
}
if(trim($_POST['email']) == "") { ?>
<script language="javascript" type="text/javascript">
document.getElementById('spanemail').style.display = 'block';
</script>
<?php
} else {
?>
<script language="javascript" type="text/javascript">
document.getElementById('spanemail').style.display = 'none';
</script>
<?php
}
if(trim($_POST['userlink']) == "") { ?>
<script language="javascript" type="text/javascript">
document.getElementById('spanlink').style.display = 'block';
</script>
<?php
} else {
?>
<script language="javascript" type="text/javascript">
document.getElementById('spanlink').style.display = 'none';
</script>
<?php
}
if(trim($_POST['armysize']) == "" || !is_numeric($_POST['armysize'])) { ?>
<script language="javascript" type="text/javascript">
document.getElementById('spanarmy').style.display = 'block';
</script>
<?php
} elseif(trim($_POST['armysize']) != "" && is_numeric($_POST['armysize'])) { ?>
<script language="javascript" type="text/javascript">
document.getElementById('spanarmy').style.display = 'none';
</script>
<?php
}
if($_POST['alliance'] == "0") {
?>
<script language="javascript" type="text/javascript">
document.getElementById('spanalliance').style.display = 'block';
</script>
<?php
} else {
?>
<script language="javascript" type="text/javascript">
document.getElementById('spanalliance').style.display = 'none';
</script>
<?php
}
if($_POST['password1'] == "" && $_POST['password2'] == "") {
?>
<script language="javascript" type="text/javascript">
document.getElementById('spannopassword').style.display = 'block';
</script>
<?php
} else {
?>
<script language="javascript" type="text/javascript">
document.getElementById('spannopassword').style.display = 'none';
</script>
<?php
if($_POST['password1'] != $_POST['password2']) {
?>
<script language="javascript" type="text/javascript">
document.getElementById('spanpassword').style.display = 'block';
</script>
<?php
} else {
?>
<script language="javascript" type="text/javascript">
document.getElementById('spanpassword').style.display = 'none';
</script>
<?php
}
}
}
?>
</body>
</html>