mxaksoy
Üyeliği Durdurulmuş
Banlı Kullanıcı
-
Üyelik
23.03.2018
-
Yaş/Cinsiyet
29 / E
-
Meslek
Webmaster
-
Konum
İstanbul Avrupa
-
Ad Soyad
M** A**
-
Mesajlar
1358
-
Beğeniler
482 / 344
-
Ticaret
3, (%100)
if(isset($_POST['action_register'])){
$user_fullname = strip_tags(trim($_POST['user_fullname']));
$user_nickname = strip_tags(trim($_POST['user_nickname']));
$user_avatar = 'img/user.png';
$user_email = strip_tags(trim($_POST['user_email']));
$user_lastpassword = hash("sha256", mysql_real_escape_string(strip_tags(trim($_POST['user_password']))));
$user_password = hash("sha256", mysql_real_escape_string(strip_tags(trim($_POST['user_password']))));
$user_repassword = hash("sha256", mysql_real_escape_string(strip_tags(strip_tags(trim($_POST['user_repassword'])))));
if(!$user_fullname || !$user_nickname || !$user_email || !$user_password || !$user_repassword){
echo "space";
}else{
$user_exist = mysql_query("SELECT * FROM andesite_user WHERE user_nickname='$user_nickname'");
$say = mysql_num_rows($user_exist);
if($say > 0 ){
echo "exist";
}else{
$register_query = mysql_query("INSERT INTO andesite_user VALUES ('', '$user_fullname','$user_nickname', '$user_avatar', '$user_email', '$user_lastpassword', '$user_password', '$user_repassword', '1', '1', '$nodate')");
if($register_query){
$credit_exist = mysql_query("SELECT * FROM andesite_wallet WHERE wallet_username ='$user_nickname'");
$num = mysql_num_rows($credit_exist);
if($num > 0 ){
mysql_query("UPDATE andesite_wallet SET wallet_username = '$user_nickname', wallet_credit = '1000' WHERE wallet_username = '$user_nickname'");
}else{
mysql_query("INSERT INTO andesite_wallet VALUES ('', '$user_nickname', '0', '$nodate')");
}
mysql_query("INSERT INTO andesite_log VALUES ('', '$user_nickname', '$log_address', '$nodate', 'Kayıt Oldu.')");
echo "success";
}else{
echo "problem";
}
}
}
}else{
header("refresh:0;url=/Home");
}