<?php
this bit does the $newcount
<--server variables here-->
$reglink = "yes";
$regurl = "../shop/phpcart.php?action=add&id=$domain$type&descr=$newcount&price=$price&quantity=1";
// This function displays an available domain
function dispav($what)
{
global $fontface, $fontsize, $fontacolor, $infolinks, $reglink, $price, $regurl;
echo "<tr>
<td nowrap align=center>";
if ($reglink=="yes")
switch ($type) {
case com:
$price="6.99";
break;
case org:
$price="5.99";
break;
case net:
$price="4.99";
break;
case couk:
$price="3.99";
break;
case info:
$price="6.99";
break;
case orguk:
$price="9.99";
break;
case ukcom:
$price="15.99";
break;
case eucom:
$price="12.99";
break;
case name:
$price="74.99";
break;
case meuk:
$price="7.99";
break;
case uknet:
$price="5.99";
break;
case gbcom:
$price="4.99";
break;
}
echo "<a href=$regurl onMouseOver=\"window.status='Register $what';return true\" onMouseOut=\"window.status='';return true\"><font face=$fontface size=$fontsize color=$infolinks>Register</font></a>";
}
else
{
echo " ";
}
echo "</td>
<td nowrap align=center><font face=$fontface size=$fontsize color=$fontacolor><b>$what</b></font></td>
<td colspan=3> </td>
</tr>";
}
// Function to display an unavailable domain with additional links
function dispun($what,$where)
{
global $fontface, $fontsize, $fontucolor, $infolinks;
echo "<tr><td colspan=2> </td>
<td align=center nowrap><font face=$fontface size=$fontsize color=$fontucolor><b>$what</b></font></td>
<td nowrap align=center><a href='#' onMouseOver=\"window.status='Details about $what';return true\" onMouseOut=\"window.status='';return true\" onClick=javascript:window.open('mrwhois.php?action=details&domain=$what&server=$where','details','scrollbars=1,copyhistory=0,directories=0,status=0,resizable=yes,width=500,height=400')><font face=$fontface size=$fontsize color=$infolinks>Details</font></a></td>
<td nowrap align=center><a href=http://www.$what target=_blank><font face=$fontface size=$fontsize color=$infolinks>Goto</font></a></td>
</tr>";
}
function startborder()
{
echo "<table align=center width=600 border=0 cellspacing=0 cellpadding=0>
<tr><td width=100% bgcolor=#000000>
<table width=600 border=0 cellspacing=1 cellpadding=2>
<tr bgcolor=#ffffff><td>";
}
function endborder()
{
echo "</td></tr></table></td></tr></table>";
}
function disperror($text)
{
global $fontface, $fontsize, $errcolor;
startborder();
echo "<center><font face=$fontface size=$fontsize color=$errcolor><b>$text</b></font></center>";
endborder();
}
function main()
{
global $sepcolor, $fontface, $fontsize, $stdcolor, $type, $domain, $footersize, $price, $poweredby;
echo "<br>";
startborder();
echo "
<table width=100% align=center cellspacing=0 cellpadding=1>
<tr>
<td colspan=2 align=center width=100%>
<font face=$fontface size=$fontsize color=$stdcolor><b>Please enter a suggested domain name</b></font>
</td>
</tr>
<tr>
<td align=center>
<form method=post action=mrwhois.php>
<input type=hidden name=action value=checkdom>
<input type=hidden name=type value=$type><input type=hidden name=price value=$price>
<input type=text name=domain size=30 value=$domain> <input type=submit name=button value=Check>
</td>
<td align=left>
<font face=$fontface size=$fontsize color=$stdcolor>
<SELECT NAME=type SIZE=1>
<OPTION selected; VALUE=com> .COM
<OPTION VALUE=info> .INFO
<OPTION VALUE=net> .NET
<OPTION VALUE=org> .ORG
<OPTION VALUE=couk> .CO.UK
<Option value=orguk> .ORG.UK
<option Value=ukcom> .UK.COM
<OPTION VALUE=eucom> .EU.COM
<OPTION VALUE=name> .NAME
<OPTION VALUE=meuk> .ME.UK
<OPTION VALUE=uknet> .UK.NET
<Option value=gbcom> .GB.COM
<OPTION VALUE=gbnet> .GB.NET
<option value=tv> .TV
</SELECT>
<input type=submit name=button value=Check>
</form>
</td>
</tr>
<tr><td colspan=2 align=center>
<font face=$fontface size=$footersize color=$stdcolor>$poweredby</font>
</td></tr>
</table>";
endborder();
}
function pageheader($body)
{
global $pagetitle;
echo "
<-rest of bits here->
?>