user <> 0){ // set cookie...and session set_session_and_cookie($user_obj); // refer to main forum page (or desired forum) print ""; print ""; print ""; exit(0); } else{ $login_message = $user_obj->message; } break; case 'insert': include_once './securimage/securimage.php'; $securimage = new Securimage(); if ($securimage->check($_POST['captcha_code']) == false) { $login_message = 'The Security Word was incorrect.'; captchaDone(); $action = 'register'; $agree = 'yes'; $form_db_action = 'insert'; } else{ $sql = "select screen_name, email from users where screen_name = '".mysqli_real_escape_string($con,$screen_name)."' or email = '".mysqli_real_escape_string($con,$email)."'"; $result = @mysqli_query($con, $sql); if(@mysqli_num_rows($result) > 0){ while($row = @mysqli_fetch_array($result, MYSQL_ASSOC)){ $db_name = $row["screen_name"]; $db_email = $row["email"]; } if($db_name == $screen_name){ $login_message = "The Screen Name ".$screen_name." is already in use, please select another.
If you have previously registered, please login here."; $screen_name = ''; } elseif($db_email == $email){ $login_message = "The Email address ".$email." is already in use.
If you have previously registered, please login here."; } $action = 'register'; $agree = 'yes'; $form_db_action = 'insert'; $submit_label = 'Re-Submit'; } else{ // looks good... $sql = "insert into users (screen_name, first_name, last_name, password, city, state, email, hint_question, hint_answer) values ("; $sql .= "'".mysqli_real_escape_string($con,$screen_name)."',"; $sql .= "'".mysqli_real_escape_string($con,$first_name)."',"; $sql .= "'".mysqli_real_escape_string($con,$last_name)."',"; $sql .= "'".mysqli_real_escape_string($con,$password)."',"; $sql .= "'".mysqli_real_escape_string($con,$city)."',"; $sql .= "'".mysqli_real_escape_string($con,$state)."',"; $sql .= "'".mysqli_real_escape_string($con,$email)."',"; $sql .= "'".mysqli_real_escape_string($con,$hint_question)."',"; $sql .= "'".mysqli_real_escape_string($con,strtoupper($hint_answer))."'"; $sql .= ")"; $result = @mysqli_query($con, $sql); // set cookie and redirect... $user_obj->screen_name = $screen_name; $user_obj->user = @mysqli_insert_id($con); set_session_and_cookie($user_obj); print ""; print ""; print ""; exit(0); } } break; case 'retrieve_password': if(!retrieve_password($email, $hint_answer)){ $login_message = "You Could Not be Authenticated. Please Try Again, or Contact Us."; $action = 'get_password'; } else{ $login_message = "Your Password has been Emailed to you."; $action = ''; } break; case 'logout': // clear cookie $expires = time() - 3600; setcookie("UserID", $usrID, $expires, '/', false, 0); // clear SESSION // Unset all of the session variables. $_SESSION = array(); // It's desired to kill the session, also delete the session cookie. // Note: This will destroy the session, and not just the session data! if (isset($_COOKIE[session_name()])) { setcookie(session_name(), '', time()-42000, '/'); } // Finally, destroy the session. session_destroy(); print ""; print ""; print ""; exit(0); break; } if($hint_question == '') $hint_question = 'Name of the City where you were born'; $page_name = 'forum_login'; ?>
 
  Bakers Willow Point Marina
Bakers Willow Point Marina, Boat Slips
 
  ''){ ?> 'yes'){ // show disclaimer ?> '') print ""; ?> 'edit'){ ?> ''){ ?>