SQL_Query_exec("INSERT INTO users (username, password, secret, email, status, added, last_access, age, country, gender, client, stylesheet, language, class, ip) VALUES (" .
implode(",", array_map("sqlesc", array($wantusername, $wantpassword, $secret, $mail, $status, get_date_time(), get_date_time(), $age, $country, $gender, $client, $site_config["default_theme"], $site_config["default_language"], $signupclass, getip()))).")");$a = (@mysqli_fetch_row(@SQL_Query_exec("select count(*) from email_bans where mail_domain='$email'")));
// vpn
$site_config['vpnlogin'] = false; /* ban vpn on login */
$site_config['vpnsignup'] = true; /* ban vpn on signup */
// vpn detection
function detection_vpn(){
$ip = gethostbyname($_SERVER["REMOTE_ADDR"]);
$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_URL, 'http://proxy.mind-media.com/block/proxycheck.php?ip='.$ip);
$result = curl_exec($ch);
curl_close($ch);
if($result == 'N')
return false;
else if($result == 'Y')
return true;
else
return false;
}// Disable checks if we're signing up with an invite// Detect vpn and disallow
if ($site_config["vpnsignup"])
if (detection_vpn()){
// Disconnect database
dbconn(false);
// Destruction of the User Cookie
logoutcookie();
show_error_msg(T_("SORRY"), "<br /><br /><center>Please turn vpn off to signup after you first login you may turn it back on<br /><br /></center>",1);
die;
}dbconn(); // Detect vpn and disallow
if ($site_config["vpnlogin"])
if (detection_vpn()){
// Disconnect database
dbconn(false);
// Destruction of the User Cookie
logoutcookie();
show_error_msg(T_("SORRY"), "<br /><br /><center>Please turn vpn off to signup after you first login you may turn it back on<br /><br /></center>",1);
die;
}
dbconn();// email encrypt
$crypt = new Cryptage();
$clef = $site_config["clef"]; $maildomain = (substr($email, strpos($email, "@") + 1)); /*$maildomain = (substr($email, strpos($email, "@") + 1));
$a = (@mysqli_fetch_row(@SQL_Query_exec("select count(*) from email_bans where mail_domain='$email'"))); // encrypt email
$maildomain = (substr($email, strpos($email, "@") + 1));
$mail = $crypt->b64encode($email, $clef);
$maildomain = $crypt->b64encode($maildomain, $clef);
$a = (@mysqli_fetch_row(@SQL_Query_exec("select count(*) from email_bans where mail_domain='$mail'")));implode(",", array_map("sqlesc", array($username, $secret, $email,implode(",", array_map("sqlesc", array($username, $secret, $mail, if ($md5 != md5($row["secret"]))if ($md5 != $row["secret"])
@sendmail($arr["email"], T_("ACCOUNT_DETAILS"), $body, "", "-f".$site_config['SITEEMAIL']);
@sendmail($email, T_("ACCOUNT_DETAILS"), $body, "", "-f".$site_config['SITEEMAIL']); <b><?php echo T_("EMAIL"); ?>:</b> <?php echo $CURUSER["email"]; ?><br /><b><?php echo T_("EMAIL"); ?>:</b> <?php echo $mail ; ?><br /> print("<tr><td>".T_("EMAIL")."</td><td align='left'><input type='text' size='67' name='email' value=\"$mail\" /></td></tr>\n");
// old unencrypted email
print("<tr><td><b><font size='3' color='#00cc00'>If you can not read email above please update with this</font></b></td></tr>\n");
print("<tr><td> $user[email]</td></tr>\n"); // end