Site hosted by Angelfire.com: Build your free website today!

Log-in Log-in Success!"; echo "

"; echo "

Name: "; echo "

E-mail Address: "; echo "

Website Address: "; echo "

Password: "; echo "

Current Username: "; echo "

Current Password: "; echo "

"; echo "

"; $logink="1"; } } if($logink==""): error_message("Login failed, bad username/password", $username, $password); endif; elseif($action=="change"): #This makes sure all fields are filled out. if((!$name)or(!$email)or(!$url)or(!$username)or(!$password)){ #If there is one missing, send them to the error. error_message("One or more required fields were left blank! Please re-login.", $username, $password); } #Open the datafile and login the user. $file=file($datafile); while(list(,$value)=each($file)){ list($fname,$femail,$furl,$fuser,$fpass)=split( "\|", $value); if($username==$fuser && $password==$fpass){ $oldword="$fname|$femail|$furl|$fuser|$fpass|"; $newword="$name|$email|$url|$username|$newpass|"; $fp = fopen($datafile, "r"); $data = fread($fp, filesize($datafile)); fclose($fp); $newdata = str_replace($oldword, $newword, $data); $fp = fopen($datafile,"w"); fwrite($fp,$newdata) or die ("error writing"); fclose($fp); $succ = "1"; echo "Everything was changed successfully! Edit Again"; } } if(!$succ): error_message("Login failed, bad username/password", $username, $password); endif; else:?>

Username:

Password:

Username:

Password:

Signup

Success!

Your information was successfully added into our database. Thank you for signing up.
You may now login using the username: and password: at
the Login page.

Name:

E-mail Address:

Website Address:

Desired Username:

Password:

Name:

E-mail Address:

Website Address:

Desired Username:

Password: