ob_start("ob_gzhandler"); $x=$HTTP_GET_VARS["x"]; $xyzyy=$HTTP_COOKIE_VARS["MyNetiUserID"]; if (isset ($MyNetiUserID) && $x != "thankyou") { //if they clicked Rember Me for Login ... $userid=$MyNetiUserID; include('/home/myneti/public_html/php/z_connect.php'); $result = mysql_query ("SELECT * FROM MemberInfo WHERE User_ID = '$userid' LIMIT 1"); //if valid user...log them in and display home page. if ($row = mysql_fetch_array($result)) { do { $gender = $row["Gender"]; if ($gender=="female" || $gender=="Female") { $gender="f"; } else { $gender="m"; } $country = $row["Country"]; $country = preg_replace("/ /","",$country); $state = $row["State"]; } while ($row = mysql_fetch_array($result)); //generate a 20 digit random alpha-numeric for session id $length=20; $pool=""; // set pool of possible char if($pool == ""){ $pool .= "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; $pool .= "abcdefghijklmnopqrstuvwxyz"; $pool .= "0123456789"; }// end if mt_srand ((double) microtime() * 1000000000); $id = ""; for ($index = 0; $index < $length; $index++) { $id .= substr($pool, (mt_rand()%(strlen($pool))), 1); }// END FOR LOOP $date=date("M:d:H:i:s"); mysql_free_result($result); } //END IF RESULTS mysql_close($connection); echo ""; exit; } //END if cookie set ?>
include('Content1.php'); include('Content2.php'); //include('Content3.php'); //include('Content4.php'); ?>
include('ContentBOTTOM.php'); ?>