Teya Salat
"; if(empty($login) || empty($pass) || empty($pass2)) { print $lang['regheader']."
"; print $lang['regimportant']."!
"; print $lang['regname']."*:

"; print "
"; print "".$lang['regpass']."*:
"; print "
"; print "".$lang['reg_confirm_pass']."*:
"; print "
"; print "".$lang['reg_mail'].":
"; print "
"; print "".$lang['regmobile'].":
"; print "
"; print "".$lang['regabout'].":
"; print "
"; print "".$lang['regonline'].":
"; print "
"; print "".$lang['ok']." "; } else { if($pass!=$pass2) { print $lang['reg_error_pass']."
"; print "".$lang['again']."

"; exit; } if (ereg("[--,$,>,<,',;,/,\,&,#,,,.,:,*,@,!,%,^,(,)]","$pass$login$pass2")) { print $lang['reg_bad_symbols']."
"; print "".$lang['again']."

"; exit; } $login=cyr(htmlspecialchars(stripslashes(trim(str_replace('$','$$',$login))))); $login=substr($login,0,20); $pass=cyr(htmlspecialchars(stripslashes(trim(str_replace('$','$$',$pass))))); $pass2=cyr(htmlspecialchars(stripslashes(trim(str_replace('$','$$',$pass2))))); $email=cyr(htmlspecialchars(stripslashes(trim(str_replace('$','$$',$email))))); $mobile=cyr(htmlspecialchars(stripslashes(trim(str_replace('$','$$',$mobile))))); $about=cyr(htmlspecialchars(stripslashes(trim(str_replace('$','$$',$about))))); $nums=cyr(htmlspecialchars(stripslashes(trim(str_replace('$','$$',$nums))))); $query_users_login_reg = mysql_query("select login,pass from users where login='".$login."';"); $users_login_reg = mysql_fetch_array($query_users_login_reg); if(!empty($users_login_reg['login'])) { die ($lang['already_reg']."
".$lang['again']."

"); } else { $reg_data=date("G:j.n.y"); mysql_query("insert into users values(0,'$login','$pass','$mobile','$email','$about','".$lang['reg_default_status']."','$reg_data','100','','','100','','".time().".0','','','".$nums."','','100','','0');"); $query_users = mysql_query("select id,pass from users where login='".$login."';"); $users_login = mysql_fetch_array($query_users); $id = $users_login['id']; $pass = $users_login['pass']; print "Регистрация прошла успешно!
Ваш логин: $login
Пароль: $pass
"; print "".$lang['reg_in_game'].""; } } print "

"; ?>