# added to make IE clients refresh
Header("Cache-control: private, no-cache");
Header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
Header("Pragma: no-cache");
if($userno){ $userno = ""; }
include("config.inc.php");
if($type == "login"){
if($userno){ header("location:userhome.php"); }
}
?>
if($type == "quote")
{
$heading = "
Quotation
";
$heading .= "To process your paper for quotation we will need to get some basic contact details from you.";
$heading .= "
Please enter your contact email address in the field below.";
}elseif($type == "login"){
$heading = "Login
";
$heading .= "To login and Submit your paper please enter your email address and submit.";
$heading .= "
Please enter your contact email address in the field below.";
}
$T = "";
$T .= "";
$T .= "";
$T .= "";
$T .= " | ";
$T .= "
";
// $T .= "
";
$q = "SELECT * from $users where email='$email'";
$r = mysql_query($q);
$n = mysql_num_rows($r);
if($n != 0)
{
$query = "UPDATE $users SET referrer='$referrer' where email='$email'";
}else{
$userno = dechex(mktime());
$query = "INSERT INTO $users SET referrer='$referrer', email='$email'";
}
$loginqt_tpl=$T;
include("loginqt_tpl.html");
?>