database_query("SELECT ip FROM bateworldcom_zips.abuseips WHERE ip='".$_SERVER["REMOTE_ADDR"]."'"); if($database->database_num_rows($query)>0){ echo "You do not have access to this page"; exit; } if($_POST["bottomline"]!=""){ echo "You do don't have access to this page"; exit; } /*if($_POST["verify_email_again"]!=""){ echo "You are not allowed to access to this page"; exit; } */ $query = $database->database_query("SELECT user_id, user_ip_signup, user_ip_lastactive FROM se_users WHERE user_signupdate>=".(time()-60*20)); while($row=$database->database_fetch_array($query)) { $query1 = $database->database_query("SELECT ip FROM ips WHERE user_id='".$row["user_id"]."' AND ip='".$_SERVER["REMOTE_ADDR"]."'"); if($database->database_num_rows($query1)>0||$row["user_ip_signup"]==$_SERVER["REMOTE_ADDR"]||$row["user_ip_lastactive"]==$_SERVER["REMOTE_ADDR"]){ echo "It looks like you just signed up for an account. You will need to wait some time before you can sign up again."; exit; } } if(isset($_POST['task'])) { $task = $_POST['task']; } else { $task = "step2"; } // SET ERROR VARS $is_error = 0; // IF USER IS ALREADY LOGGED IN, FORWARD TO USER HOME PAGE if( $user->user_exists ) { header("Location: home.php"); exit(); } // CHECK IF USER SIGNUP COOKIES SET (STEPS 3, 4, 5) $signup_logged_in = 0; if($task != "step1" && $task != "step1do" && $task != "step2" && $task != "step2do") { if(isset($_COOKIE['signup_id']) && isset($_COOKIE['signup_email']) && isset($_COOKIE['signup_password'])) { // GET USER ROW IF AVAILABLE $user_id = $_COOKIE['signup_id']; $new_user = new se_user(Array($user_id)); // VERIFY USER LOGIN COOKIE VALUES AND RESET USER LOGIN VARIABLE //if($_COOKIE['signup_email'] == crypt($new_user->user_info['user_email'], "$1$".$new_user->user_info['user_code']."$") && $_COOKIE['signup_password'] == $new_user->user_info['user_password']) $new_user->user_salt = $new_user->user_info['user_code']; if( $_COOKIE['signup_email'] == $new_user->user_password_crypt($new_user->user_info['user_email']) && $_COOKIE['signup_password'] == $new_user->user_info['user_password'] ) { $signup_logged_in = 1; } } if($signup_logged_in != 1) { cheader("signup.php"); exit(); } } if($signup_logged_in != 1) { setcookie("signup_id", "", 0, "/"); setcookie("signup_email", "", 0, "/"); setcookie("signup_password", "", 0, "/"); $_COOKIE['signup_id'] = ""; $_COOKIE['signup_email'] = ""; $_COOKIE['signup_password'] = ""; $new_user = new se_user(); if($task == "step1") { if(isset($_GET['signup_email'])) { $signup_email = $_GET['signup_email']; } else { $signup_email = ""; } if(isset($_GET['signup_invite'])) { $signup_invite = $_GET['signup_invite']; } $signup_password = ""; $signup_timezone = $setting['setting_timezone']; } } // PROCESS INPUT FROM FIRST STEP (OR DOUBLE CHECK VALUES), CONTINUE TO SECOND STEP (OR SECOND STEP PROCESSING) if($task == "step1do" || $task == "step2do") { if(strtolower($_POST['signup_email'])!=strtolower($_POST['verify_email'])){$verify_error="You must enter the same email address twice!";$is_error=707;$task = "step1";} $signup_email = $_POST['signup_email']; $signup_password = $_POST['signup_password']; $signup_password2 = $_POST['signup_password2']; $step = $_POST['step']; /*if($task == "step2do" && $step != "1") { $signup_password = base64_decode($signup_password); $signup_password2 = base64_decode($signup_password2); }*/ $signup_username = $_POST['signup_username']; //$signup_timezone = $_POST['signup_timezone']; $signup_timezone=-7; $signup_invite = $_POST['signup_invite']; $signup_cat = $_POST['signup_cat']; // GET LANGUAGE PACK SELECTION $signup_lang = ( $setting['setting_lang_allow'] ? $_POST['signup_lang'] : 0 ); // TEMPORARILY SET PASSWORD IF RANDOM PASSWORD ENABLED if($setting['setting_signup_randpass'] != 0) { $signup_password = "temporary"; $signup_password2 = "temporary"; } // CHECK USER ERRORS $new_user->user_password('', $signup_password, $signup_password2, 0); $new_user->user_account($signup_email, $signup_username); $is_error = $new_user->is_error; // CHECK INVITE CODE IF NECESSARY if($setting['setting_signup_invite'] != 0) { if($setting['setting_signup_invite_checkemail'] != 0) { $invite = $database->database_query("SELECT invite_id FROM se_invites WHERE invite_code='$signup_invite' AND invite_email='$signup_email'"); $invite_error_message = 705; } else { $invite = $database->database_query("SELECT invite_id FROM se_invites WHERE invite_code='$signup_invite'"); $invite_error_message = 706; } if($database->database_num_rows($invite) == 0) { $is_error = $invite_error_message; } } // CHECK TERMS OF SERVICE AGREEMENT IF NECESSARY if($setting['setting_signup_tos'] != 0) { $signup_agree = $_POST['signup_agree']; if($signup_agree != 1) { $is_error = 707; } } $ch = curl_init(); // set url curl_setopt($ch, CURLOPT_URL, "https://www.google.com/recaptcha/api/siteverify"); //return the transfer as a string curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, array( "secret" => '6LeU-iQUAAAAAE-y87CT1VSob2UmPmo52PDMuEQ4', "response"=>$_POST["g-recaptcha-response"], "remoteip"=>$_SERVER["REMOTE_ADDR"] )); // $output contains the output string $output = curl_exec($ch); $google=json_decode($output, true); if(!$google["success"]) { $is_error = 708; } // close curl resource to free up system resources curl_close($ch); if($_POST["addition"]!=""){$is_error = 708;} /* if(isset($_POST['g-recaptcha-response']) && !empty($_POST['g-recaptcha-response'])){ //your site secret key $secret = '6LcUfZcUAAAAAOkDyAqhMYx8Xm2gPVcrAlAghZtY'; //get verify response data $handle = curl_init(); $url1 = 'https://www.google.com/recaptcha/api/siteverify?secret='.$secret.'&response='.$_POST['g-recaptcha-response']; // Set the url curl_setopt($handle, CURLOPT_URL, $url1); // Set the result output to be a string. curl_setopt($handle, CURLOPT_RETURNTRANSFER, true); $verifyResponse = curl_exec($handle); curl_close($handle); // $verifyResponse = file_get_contents(''); $responseData = json_decode($verifyResponse); if($responseData->success){ //$succMsg = 'Your contact request have submitted successfully.'; }else{ $is_error = 708; } }else{ $is_error = 708; } */ // RETRIEVE AND CHECK SECURITY CODE IF NECESSARY /*if($setting['setting_signup_code'] != 0) { // NOW IN HEADER if($_POST["mobile"]==1) { $signup_secure = $_POST['signup_securem']; $code_found = false; if( $signup_secure && @$_SESSION['codem'] == $signup_secure ) $code_found = true; if( !empty($_SESSION['codesm']) && is_array($_SESSION['codesm']) ) { foreach( $_SESSION['codesm'] as $index => $code_info ) { if( $code_info['codem'] == $signup_secure ) { $code_found = true; unset($_SESSION['codesm'][$index]); } } } if( !$code_found ) $is_error = 708; } else{ $signup_secure = $_POST['signup_secure']; $code_found = false; if( $signup_secure && @$_SESSION['code'] == $signup_secure ) $code_found = true; if( !empty($_SESSION['codes']) && is_array($_SESSION['codes']) ) { foreach( $_SESSION['codes'] as $index => $code_info ) { if( $code_info['code'] == $signup_secure ) { $code_found = true; unset($_SESSION['codes'][$index]); } } } if( !$code_found ) $is_error = 708; } //session_start(); //$code = $_SESSION['code']; //if($code == "") { $code = randomcode(); } //$signup_secure = $_POST['signup_secure']; // //if($signup_secure != $code) //{ // $is_error = 708; //} }*/ if($_POST["usernameagain"]!="") { $is_error = 707; } // IF THERE IS NO ERROR, CONTINUE TO STEP 2 OR PROCESS STEP 2 if($is_error == 0) { // ONLY IF ON STEP ONE, CONTINUE TO STEP 2 - ELSE GO TO PROCESSING STEP 2 //if($task == "step2do") { $task = "step5"; } } // IF THERE WAS AN ERROR, GO BACK TO STEP 1 else { $task = "step2"; } } if($task == "step1" || $task == "step1do" || $task == "step2" || $task == "step2do") { if($database->database_num_rows($database->database_query("SELECT NULL FROM se_profilecats WHERE profilecat_id='$signup_cat' AND profilecat_dependency='0'")) != 1) { $cat_info = $database->database_fetch_assoc($database->database_query("SELECT profilecat_id FROM se_profilecats WHERE profilecat_dependency='0' AND profilecat_signup = 1 ORDER BY profilecat_order LIMIT 1")); $signup_cat = $cat_info['profilecat_id']; } if($task == "step2do") { $validate = 1; } else { $validate = 0; } if($task != "step1") { $cat_where = "profilecat_signup='1' AND profilecat_id='$signup_cat'"; } else { $cat_where = "profilecat_signup='1'"; } $field = new se_field("profile"); $field->cat_list($validate, 0, 0, $cat_where, "", "profilefield_signup='1'"); $cat_array = $field->cats; if($task != "step1" && count($cat_array) == 0) { $task = "step1"; } // WHAT IS THIS: if($validate == 1) {echo "ERROR"; $is_error = $field->is_error; } if($task != "step1" && count($field->fields_all) == 0) { $task = "step2do"; } if($_POST["field_5"]==2){$page = "general"; function general() { echo "Sorry, but this is a men only site."; } include("footer.php"); exit; } } $bdaycheck = mktime( 0, 0, 0, $_POST["field_4_1"], $_POST["field_4_2"], $_POST["field_4_3"] ); $now=time(); if ( $now-$bdaycheck < (18*365.25*24*3600 ) ){ $is_error = 11010856; $is_field_error = 1; } if($task == "step2do") { // PROFILE FIELD INPUTS PROCESSED AND CHECKED FOR ERRORS ABOVE // IF THERE IS NO ERROR, ADD USER AND USER PROFILE AND CONTINUE TO STEP 3 $url1 = 'http://api.stopforumspam.org/api?json&email='.$new_user->user_info["user_email"].'&username='.$new_user->user_info["user_username"].'&ip='.$_SERVER["REMOTE_ADDR"]; // init the request, set some info, send it and finally close it $ch = curl_init($url1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $result = curl_exec($ch); curl_close($ch); $check=json_decode($result, true); if($check["ip"]["appears"]){ //$database->database_query("UPDATE se_users SET user_enabled='-1' WHERE user_id='".$new_user->user_info["user_id"]."'"); $is_error=666; //mail("leprakhauns@bateworld.com", "IP Appears", $new_user->user_info["user_id"]); } if($check["email"]["appears"]){ //$database->database_query("UPDATE se_users SET user_enabled='-1' WHERE user_id='".$new_user->user_info["user_id"]."'"); $is_error=666; //mail("leprakhauns@bateworld.com", "Email Appears", $new_user->user_info["user_id"]); } if($check["username"]["appears"]){ //$database->database_query("UPDATE se_users SET user_enabled='-1' WHERE user_id='".$new_user->user_info["user_id"]."'"); $is_error=666; //mail("leprakhauns@bateworld.com", "Username Appears", $new_user->user_info["user_id"]); } //if($is_error==666){echo "We have determined you are not allowed on the site due to previous abuse attempts listed in the stopforumspam database.";exit;} if($is_error == 0) { $new_user->user_create($signup_email, $signup_username, $signup_password, $signup_timezone, $signup_lang, $signup_cat, $field->field_query); $query=$database->database_query("SELECT * FROM se_users WHERE (user_ip_signup='".$_SERVER["REMOTE_ADDR"]."' OR user_ip_lastactive='".$_SERVER["REMOTE_ADDR"]."') AND user_id!='".$new_user->user_info["user_id"]."'"); $users=""; while($other=$database->database_fetch_array($query)) { $users=$users.$other["user_username"].", "; } $alreadysignedup=0; if($users!=""){ $alreadysignedup=1; mail("bateworldhelp@gmail.com", "IP already in database", $new_user->user_info["user_username"]." has just signed up and his IP address is the same as ".$users." IP Used: ".$_SERVER["REMOTE_ADDR"]." https://bateworld.com/bwadmin/admin_viewusers.php?ipaddress=".$_SERVER["REMOTE_ADDR"]);} // INVITE CODE FEATURES if($setting['setting_signup_invite'] != 0) { if($setting['setting_signup_invite_checkemail'] != 0) { $invitation = $database->database_fetch_assoc($database->database_query("SELECT * FROM se_invites WHERE invite_code='$signup_invite' AND invite_email='$signup_email' LIMIT 1")); } else { $invitation = $database->database_fetch_assoc($database->database_query("SELECT * FROM se_invites WHERE invite_code='$signup_invite' LIMIT 1")); } // ADD USER TO INVITER'S FRIENDLIST $friend = new se_user(Array($invitation['invite_user_id'])); if($friend->user_exists == 1) { if($setting['setting_connection_allow'] == 3 || $setting['setting_connection_allow'] == 1 || ($setting['setting_connection_allow'] == 2 && $new_user->user_info['user_subnet_id'] == $friend->user_info['user_subnet_id'])) { // SET RESULT, DIRECTION, STATUS switch($setting['setting_connection_framework']) { case "0": $direction = 2; $friend_status = 0; break; case "1": $direction = 1; $friend_status = 0; break; case "2": $direction = 2; $friend_status = 1; break; case "3": $direction = 1; $friend_status = 1; break; } // INSERT FRIENDS INTO FRIEND TABLE AND EXPLANATION INTO EXPLAIN TABLE $friend->user_friend_add($new_user->user_info['user_id'], $friend_status, '', ''); // IF TWO-WAY CONNECTION AND NON-CONFIRMED, INSERT OTHER DIRECTION if($direction == 2 && $friend_status == 1) { $new_user->user_friend_add($friend->user_info['user_id'], $friend_status, '', ''); } } } // DELETE INVITE CODE $database->database_query("DELETE FROM se_invites WHERE invite_id='$invitation[invite_id]' LIMIT 1"); } // SET SIGNUP COOKIE $new_user->user_salt = $new_user->user_info['user_code']; $id = $new_user->user_info['user_id']; $em = $new_user->user_password_crypt($new_user->user_info['user_email']); $pass = $new_user->user_info['user_password']; setcookie("signup_id", "$id", 0, "/"); setcookie("signup_email", "$em", 0, "/"); setcookie("signup_password", "$pass", 0, "/"); $user_id = $new_user->user_info['user_id']; if($database->database_result($database->database_query("SELECT COUNT(*) FROM se_semods_userplans WHERE userplan_user_id = $user_id"),0)==0) { $plan_id = 4; if($alreadysignedup==0){ $plan = new semods_plan($plan_id, $user_id); /* Query to see if plan exists for user */ $user_plan_rows = semods::db_query_count("SELECT * FROM se_semods_userplans UP LEFT JOIN se_semods_plans P ON UP.userplan_plan_id = P.plan_id WHERE userplan_user_id = $user_id AND userplan_plan_id = $plan_id "); if(!$user_plan_rows) : $plan->plan_exists = false; $userplan = $plan->plan_subscribe($user_id, 0, array(), false); endif; } else{$database->database_query("UPDATE se_users SET iperror='1' WHERE user_id='".$user_id."'");} } { $user=$new_user; $level_album_privacy = unserialize($user->level_info['level_album_privacy']); rsort($level_album_privacy); $level_album_comments = unserialize($user->level_info['level_album_comments']); rsort($level_album_comments); $level_album_tag = unserialize($user->level_info['level_album_tag']); rsort($level_album_tag); $_POST['album_title']=$new_user->user_info["user_username"]."'s Profile Photos"; $album_title = censor($_POST['album_title']); $album_desc = censor(str_replace("\r\n", "
", $_POST['album_desc'])); $album_search = 1; $album_privacy = 31; $album_comments = 31; $album_tag = $_POST['album_tag']; $album_datecreated = time(); // MAKE SURE SUBMITTED PRIVACY OPTIONS ARE ALLOWED, IF NOT, SET TO EVERYONE if(!in_array($album_privacy, $level_album_privacy)) { $album_privacy = $level_album_privacy[0]; } if(!in_array($album_comments, $level_album_comments)) { $album_comments = $level_album_comments[0]; } if(!in_array($album_tag, $level_album_tag)) { $album_tag = $level_album_tag[0]; } // CHECK THAT TITLE IS NOT BLANK if(trim($album_title) == "") { $is_error = 1000073; } // IF NO ERROR, CONTINUE if($is_error == 0) { // GET MAX ORDER $max = $database->database_fetch_assoc($database->database_query("SELECT max(album_order) AS max FROM se_albums WHERE album_user_id='{$new_user->user_info['user_id']}'")); $album_order = $max['max']+1; // INSERT NEW ALBUM INTO DATABASE $database->database_query("INSERT INTO se_albums ( album_user_id, album_datecreated, album_dateupdated, album_title, album_desc, album_search, album_privacy, album_comments, album_tag, album_order ) VALUES ( '{$new_user->user_info['user_id']}', '$album_datecreated', '$album_datecreated', '".$database->database_real_escape_string($album_title)."', '$album_desc', '$album_search', '$album_privacy', '$album_comments', '$album_tag', '$album_order') "); // GET ALBUM ID $album_id = $database->database_insert_id(); $album = new se_album($new_user->user_info['user_id']); $space_used = $album->album_space(); if($new_user->level_info['level_album_storage']) { $space_left = $new_user->level_info['level_album_storage'] - $space_used; } else { $space_left = ( $dfs=disk_free_space("/") ? $dfs : pow(2, 32) ); } if($_FILES['photo']['type'] == "application/octet-stream" && $isAjax) { $file_types = explode(",", str_replace(" ", "", strtolower($user->level_info['level_album_mimes']))); $_FILES['photo']['type'] = $file_types[0]; } // UPDATE LAST UPDATE DATE (SAY THAT 10 TIMES FAST) //$user->user_lastupdate(); $update_album = 0; $new_album_cover = ""; $action_media = Array(); // INSERT ACTION if(strlen($album_title) > 100) { $album_title = substr($album_title, 0, 97); $album_title .= "..."; } //$actions->actions_add($user, "newalbum", Array($user->user_info['user_username'], $user->user_displayname, $album_id, $album_title), Array(), 0, FALSE, "user", $user->user_info['user_id'], $album_privacy); // CALL ALBUM CREATION HOOK ($hook = SE_Hook::exists('se_album_create')) ? SE_Hook::call($hook, array()) : NULL; $fileid = "photo"; if( !empty($_FILES[$fileid]['name']) ) { $file_result[$fileid] = $album->album_media_upload($fileid, $album_id, $space_left); if( !$file_result[$fileid]['is_error'] ) { $file_result[$fileid]['message'] = 1000086; $new_album_cover = $file_result[$fileid]['media_id']; $media_path = str_replace('./', '', $url->url_userdir($new_user->user_info['user_id']).$file_result[$fileid]['media_id']."_thumb.jpg"); $media_link = str_replace($url->url_base, '', $url->url_create('album_file', $new_user->user_info['user_username'], $album_id, $file_result[$fileid]['media_id'])); if( file_exists($media_path) ) { $media_width = $misc->photo_size($media_path, "100", "100", "w"); $media_height = $misc->photo_size($media_path, "100", "100", "h"); $action_media[] = Array( 'media_link' => $media_link, 'media_path' => $media_path, 'media_width' => $media_width, 'media_height' => $media_height ); } $update_album = 1; } else { $file_result[$fileid]['message'] = $file_result[$fileid]['is_error']; } SE_Language::_preload($file_result[$fileid]['message']); } } if($update_album) { $user->set_user_photo($file_result[$fileid]['media_id'].".".$file_result[$fileid]['media_ext']); $newdate = time(); if($album_info['album_cover'] != 0) { $new_album_cover = $album_info['album_cover']; } $database->database_query("UPDATE se_albums SET album_cover='{$new_album_cover}', album_dateupdated='{$newdate}' WHERE album_id='{$album_id}'"); // UPDATE LAST UPDATE DATE (SAY THAT 10 TIMES FAST) $user->user_lastupdate(); // INSERT ACTION $album_title = $album_info['album_title']; if(strlen($album_title) > 100) { $album_title = substr($album_title, 0, 97)."..."; } // $actions->actions_add($user, "newmedia", Array($user->user_info['user_username'], $user->user_displayname, $album_id, $album_title), $action_media, 60, FALSE, "user", $user->user_info['user_id'], $album_info['album_privacy']); } } $xml=' bateworld@gmail.com 405a1b48556d1ffd09416751a6c915a61a2beb2d mailing addSubscriberToList
33624 '.$new_user->user_info["user_email"].' html
'; $ch = curl_init(); // set url curl_setopt($ch, CURLOPT_URL, "https://www.ynotmail.com/clients/remote-api.php"); curl_setopt ($ch, CURLOPT_HTTPHEADER, array("Content-Type: text/xml")); //return the transfer as a string curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $xml); // $output contains the output string $output = curl_exec($ch); // SEND USER TO PHOTO UPLOAD IF SPECIFIED BY ADMIN // OR TO USER INVITE IF NO PHOTO UPLOAD /* if( !$setting['setting_signup_photo'] ) { if( !$setting['setting_signup_invitepage'] ) { $task = "step5"; } else { $task = "step4"; } } else { $task = "step3"; }*/ $next_task=5; $task = "step5"; } // IF THERE WAS AN ERROR, GO BACK TO STEP 2 else { $task = "step2"; } } // UPLOAD PHOTO if($task == "step3do") { $new_user->user_photo_upload("photo"); $is_error = $new_user->is_error; $task = "step3"; } // SEND INVITE EMAILS if($task == "step4do") { $invite_emails = $_POST['invite_emails']; $invite_message = $_POST['invite_message']; if($invite_emails != "") { send_systememail('invite', $invite_emails, Array($new_user->user_displayname, $new_user->user_info['user_email'], $invite_message, "url_base."signup.php\">".$url->url_base."signup.php"), TRUE); } // SEND USER TO THANK YOU PAGE $task = "step5"; } // SIGNUP TERMINAL VELOCITY POINT HOOK ($hook = SE_Hook::exists('se_signup_decide')) ? SE_Hook::call($hook, array()) : NULL; // SHOW COMPLETION PAGE if($task == "step5") { // UNSET SIGNUP COOKIES setcookie("signup_id", "", 0, "/"); setcookie("signup_email", "", 0, "/"); setcookie("signup_password", "", 0, "/"); // UPDATE SIGNUP STATS update_stats("signups"); // DISPLAY THANK YOU $step = 5; header("Location: signup-success.php?user=".$signup_username); exit; } // SHOW FOURTH STEP if($task == "step4") { $step = 4; $next_task = "step4do"; if($setting['setting_signup_invitepage'] == 0) { $task = "step3"; } } // SHOW THIRD STEP if($task == "step3") { $step = 3; $next_task = "step3do"; if($setting['setting_signup_invitepage'] == 0) { $last_task = "step5"; } else { $last_task = "step4"; } if($setting['setting_signup_photo'] == 0) { $task = "step2"; } } // SHOW SECOND STEP /* if($task == "step2") { $step = 2; $next_task = "step2do"; if(count($field->cats) == 0) { $task = "step1"; } $signup_password = base64_encode($signup_password); $signup_password2 = base64_encode($signup_password2); $step = 2; $next_task = "step2do"; // GET LANGUAGE PACK LIST $lang_packlist = SE_Language::list_packs(); ksort($lang_packlist); $lang_packlist = array_values($lang_packlist); } */ // SET GLOBAL PAGE TITLE $global_page_title[0] = 679; $global_page_description[0] = 680; // ASSIGN VARIABLES AND INCLUDE FOOTER $smarty->assign('is_error', $is_error); $smarty->assign('new_user', $new_user); $smarty->assign('cats', $field->cats); if(isset($_POST["field_26"])) { foreach($_POST["field_26"] as $k) { $hideyear=$k; } } $query=$database->database_query("SELECT * FROM se_users WHERE (user_ip_signup='".$_SERVER["REMOTE_ADDR"]."' OR user_ip_lastactive='".$_SERVER["REMOTE_ADDR"]."') AND user_id!='".$new_user->user_info["user_id"]."'"); $users=""; while($other=$database->database_fetch_array($query)) { $users=$users.$other["user_username"].", "; } $alreadysignedup=0; if($users!=""){$smarty->assign('alreadyamember', 1);} $smarty->assign('hideyear', $hideyear); //$smarty->assign('redip', $_GET["redip"]); $smarty->assign('signup_email', $signup_email); $smarty->assign('approveemail', $_POST["approveemail"]); $smarty->assign('verify_email', $_POST["verify_email"]); $smarty->assign('verify_error', $verify_error); $smarty->assign('signup_password', $signup_password); $smarty->assign('signup_password2', $signup_password2); $smarty->assign('signup_username', $signup_username); $smarty->assign('comment', $_POST["comment"]); $smarty->assign('signup_timezone', $signup_timezone); $smarty->assign('signup_lang', $signup_lang); $smarty->assign('signup_invite', $signup_invite); $smarty->assign('signup_secure', $signup_secure); $smarty->assign('signup_agree', $signup_agree); $smarty->assign('signup_cat', $signup_cat); $smarty->assign('lang_packlist', $lang_packlist); $smarty->assign('next_task', $next_task); $smarty->assign('last_task', $last_task); $smarty->assign('step', $step); include "footer.php"; ?>