<?
include('config.inc.php');
?>
<table align="center">
<tr>
<td><h1>Bestellung</h1><br /></td>
</tr>
</table>
<br />
<script language="javascript">
function funAgree(){
document.form1.action="addDB.php";
}
function funDisagree(){
document.form1.action="home.html";
}
</script>
<?
function getip() {
if(getenv("HTTP_X_FORWARDED_FOR"))
$ip = getenv("HTTP_X_FORWARDED_FOR");
else
$ip = getenv("REMOTE_ADDR");
return $ip;
}
$ip = getip();
$host = gethostbyaddr($ip);
$dom = $_POST['domain'];
$search = '.zer-o.eu';
if(stristr($dom, $search) === FALSE) {
$dom = $_POST['domain'].$search;
}
else {$dom = $_POST['domain'];}
$sql = "SELECT * FROM domain WHERE domain_name = '$dom'";
$result = mysql_query($sql);
$anzahl = mysql_num_rows($result);
{
if($anzahl=='0')
{
echo "Ihre gewünschte Subdomain <b><u>$dom</u></b> ist noch verfügbar!<br />
Bestellungen mit Fake/Falschen Daten werden NICHT bearbeitet!<br />
<form action=?site=mail method=post>
<table align=center>
<tr>
<td></td>
<td><input type=hidden name=domain value='$dom'></input></td>
</tr>
<tr>
<td>Vorname:</td>
<td><input type=text name=vorname></input></td>
</tr>
<tr>
<td>Nachname:</td>
<td><input type=text name=nachname></input></td>
</tr>
<tr>
<tr>
<td>Nickname:</td>
<td><input name=nickname type=text></input></td>
</tr>
<tr>
<td>E-Mail Adresse:</td>
<td><input type=text name=email></input></td>
</tr>
<tr>
<td>Paket:</td>
<td><select name=paket><option>- Bitte wählen -</option><option>S</option><option>L</option></select></td>
</tr>
<tr>
<td><a href='index.php?site=agb' target='_blank'><font color='blue'>AGB's</a></font> gelesen und <br>akzeptiert?:</td>
<td><input type=checkbox name=regeln></input></td>
</tr>
<tr>
<td><br /><input type=hidden name=ip value='$ip'></input><input type=hidden name=host value='$host'></input><input type=submit value='Bestellen'></input></td>
<td> </td>
</tr>
</table>
</form>";
}
else
{
echo "Ihre gewünschte Subdomain ist leider schon vergeben.<br />
Versuchen Sie es bitte mit einer anderen Subdomain.<br />
<a href='index.php?site=produkte'>Zurück</a><br /><br /><br /><br /><br /><br /><br /><br /><br />";
}
}
?>