include "configuration.inc"; $reg=0; if(isset($email) && isset($password)) { /* probably from a cookie - check password */ $email=strtolower($email); mysql_pconnect($dbhost,$dbuser,$dbpwd) or die("Unable to connect to SQL server"); mysql_select_db($dbname) or die("Unable to select database"); $query = mysql_query("select * from users where email='$email'"); if (mysql_num_rows($query)>0) { if(mysql_result($query,0,"password")==$password) { $reg=1; $country = mysql_result($query,0,"country"); $os = mysql_result($query,0,"os"); $httpd = mysql_result($query,0,"httpd"); $name = mysql_result($query,0,"name"); $company = mysql_result($query,0,"company"); $comments = mysql_result($query,0,"comments"); } } } if (!$reg) { $email=""; $password=""; $country=""; $os=""; $httpd=""; $name=""; $company=""; $comments=""; } ?>
We would appreciate if you took the time to fill out this short form. You will not be put on any mailing lists, nor will you be spammed in any way. We are simply trying to get an impression of who is using this software. You will be emailed a password to the email address you provide here. You can also choose to set a cookie in which case you will only need to know this password if you clear your cookies or need to log in from another browser.} else { ?>
You have already registered, and your cookie has identified you appropriately. You may alter your current profile here.} ?>