Files
Testing/signup-congrats.php
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00

115 lines
3.1 KiB
PHP

<?php
/* $Id: signup.php 262 2009-11-30 23:32:59Z steve $ */
$page = "signup-congrats";
include "header.php";
$smarty->assign('signup_username', $_GET["user"]);
$query = $database->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();
}
// 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', $_GET["user"]);
$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";
?>