mar. 29, 2005 session_start(); if (isset($_SESSION['memberid'])) { header("Location: index.php"); } include_once ("config/config.php"); include ("themes/".$setts['default_theme']."/header.php"); $bannedip=checkbanned($_SERVER['REMOTE_ADDR'],'IP'); if ($bannedip) { echo "

$lang[reg_erripbanned]

"; } else { header5("$lang[registration]: $lang[enter_info]"); $phone="(".$dayphone1.") ".$dayphone2; ?>
$lang[reg_erremailbanned]

"; } else { if ($setts['account_mode']==1) { if ($fee['is_signup_fee']=="Y"&&$fee['val_signup_fee']>0) { $payment_status="unconfirmed"; $active=0; $mailactivated=1; } else { $payment_status="confirmed"; $active=0; $regconfirm=1; $mailactivated=0; } } else if ($setts['account_mode']==2) { $active=0; $regconfirm=1; $mailactivated=0; } ### override - if the registration approval is enabled, then set the regconfirm to 2, and the mailactivated to 0; if ($setts['enable_ra']=="Y") { $active=0; $regconfirm=2; $mailactivated=0; } $bdate = $_POST['year']."-".$_POST['month']."-".$_POST['day']; $currentTime = time(); if ($setts['vat_rate']>0&&$setts['auto_vat_exempt']=="Y") $vat_exempted="Y"; else $vat_exempted="N"; $insertUser = mysql_query("INSERT INTO probid_users (name,email,birthdate,address,city,state,country,zip,phone,username, password,active,payment_status,newsletter,regdate,mailactivated,lang, apply_vat_exempt,vat_uid_number,vat_exempted) VALUES ('".remSpecialChars($_POST['name'])."','".$_POST['email']."','".$bdate."','".remSpecialChars($_POST['address'])."', '".remSpecialChars($_POST['city'])."','".remSpecialChars($_POST['state'])."','".$_POST['country']."','".remSpecialChars($_POST['zip'])."', '".remSpecialChars($phone)."','".$_POST['username']."','".md5($_POST['password'])."', '".$active."','".$payment_status."','".$_POST['subsnl']."','".$currentTime."','".$mailactivated."','".$_SESSION['sess_lang']."', '".$_POST['apply_vat_exempt']."','".$_POST['vat_uid_number']."','".$vat_exempted."')"); $userid=mysql_insert_id(); $recipientId = $userid; if ($regconfirm==1) { include ("mails/register_confirm.php"); } else if ($regconfirm==2) { ## notify user include ("mails/register_approval.php"); ## notify admin include ("mails/register_approval_admin.php"); } else { include ("mails/register.php"); } ## if user applied for VAT exempt if ($_POST['apply_vat_exempt']=="Y") include ("mails/register_apply_vat_exempt.php"); if (($fee['is_signup_fee']=="Y"&&$fee['val_signup_fee']>0&&$setts['account_mode']==1)||$setts['account_mode']==2) { ### the function for the signup fee if ($fee['is_signup_fee']=="Y") $signup_fee = $fee['val_signup_fee']; else $signup_fee = 0; signupFee($signup_fee,$setts['currency'],$userid); } else { echo "

$lang[reg_emailsent]

"; } } } else { ?>
0) ? "
".$lang[signup_receive]." ".displayAmount($setts['init_credit'],$setts['currency'])." ".$lang[credit]."

":""; ?>




( )

> >

   
   

/ /
0&&$setts['auto_vat_exempt']=="N") { ?>
> >
   

$pin"; ?>
   


>