session_start(); require_once 'DB.php'; include("mySQLpref.php"); include("functions.php"); header("Cache-control: private"); // ie 6 fix for hitting back buttons.. $errorCode=""; // get category from session variable session_register('cat'); $category=$_SESSION['cat']; // get ruid from GET (only way cause it changes, pain to store as a session). $replyUid=""; if (array_key_exists('ruid',$_GET)) { $replyUid=$_GET['ruid']; } $sa=""; if (array_key_exists('sa',$_GET)) { $sa=$_GET['sa']; } if (array_key_exists('form_complete',$HTTP_POST_VARS)) { $error=""; // Check if all variables are good. $password=$_POST['password']; $email=$_POST['email']; if (! preg_match('/@.+\..+$/',$email)) { $error="yes"; } if ($password=="") { $error="yes"; } // All good; if ($error!="yes") { unset($errorCode); //authUser function goes ahead and calls logInStatus($userID) function to set auth & loggedIn session vars to "yes" $errorCode=authUser($email,$password,$category,$replyUid); if (!isset($errorCode)) { // get postOrView from session variable $postOrView=""; if (array_key_exists('postOrView',$_SESSION)) { $postOrView=$_SESSION['postOrView']; } if ($replyUid !="") { session_write_close(); header('Location:http://'.$url_Prefix.'/replyPersonals.php?ruid='.$replyUid.'&sa='.$sa); exit; } // if post or if not defined, the default is to go to postpersonalsuserprofile (then it sends to appropriate area). else { session_write_close(); header('Location:http://'.$url_Prefix.'/postpersonalsUserProfile.php'); exit; } } } } ?> Fourth Ring Personals

asian personals :: mobile wireless wap entertainment :: matchmaking :: online dating :: international singles personals