|
|
/* if(!isset($PHP_AUTH_USER) && !ereg("homeowner_tips/phpi/tipreg.htm",$HTTP_REFERER)) { Header("WWW-Authenticate: Basic realm=\"Add Your Tip\""); Header("HTTP/1.0 401 Unauthorized"); echo "Your Email address is your user name\n"; exit; } else */ if($B!="") { include("/usr/users/abhome/dbconf.inc"); $cookie=explode("|",base64_decode($B)); $result=mysql_db_query($mydb,"select * from tipsters where email='".addslashes($cookie[0])."' and passwd='".addslashes($cookie[1])."'",$mycon); if(!$result): echo "Error: ".mysql_error($mycon)." \n"; exit; endif; $numrows=mysql_num_rows($result); $stuff=mysql_fetch_row($result); if($numrows==1) { $mbcheck=0; } else { // header("HTTP/1.0 401 Unauthorized"); echo "Your Email address is your user name\n"; exit; $mbcheck=1; } } else { $mbcheck=1; } ?> if( $mbcheck==0 ): ?> Welcome echo $stuff[1]." ".$stuff[2] ?>Thank you for returning and offering additional tips or links helpful to other homeowners just like you. else: ?>It seems we don't have your account information this session. Please enter the information and it will be saved in your browser for your next visit. If you haven't signed up to be a Homeowner Tip member, please register. endif; if($mbcheck==0): include("phpi/tipedit.htm"); else: include("bbz/index.htm"); endif; ?> |
||