Как убрать проверку ников в базе? т.е. что бы пользователи могли регистрироваться с одинаковыми никами.
Спасибо.
function finnewuser() { global $prefix, $db, $conf, $confu, $stop; if (!$confu['reg']) { head(); warning(""._NOREG."", "", "", 1); foot(); } else { $user_name = text_filter($_POST['user_name'], 1); $last_name = text_filter($_POST['last_name'], 1); $user_email = text_filter($_POST['user_email'], 1); $user_pol = $_POST['user_gender']; checkuser($user_name, $user_email, $_POST['rulescheck']); $user_password = htmlspecialchars(substr($_POST['user_password'], 0, 40)); $user_password2 = htmlspecialchars(substr($_POST['user_password2'], 0, 40)); $code = substr(hexdec(md5("".date("F j")."".$_SESSION['captcha']."".$conf['sitekey']."")), 2, 6); unset($_SESSION['captcha']); if (extension_loaded("gd") AND $code != intval($_POST['check']) AND ($conf['gfx_chk'] == 3 OR $conf['gfx_chk'] == 4 OR $conf['gfx_chk'] == 6 OR $conf['gfx_chk'] == 7)) $stop = ""._SECCODEINCOR.""; if ($user_password == "" && $user_password2 == "") { $user_password = gen_pass($confu['minpass']); } elseif ($user_password != $user_password2) { $stop = ""._ERROR_PASS.""; } elseif ($user_password == $user_password2 && strlen($user_password) < $confu['minpass']) { $stop = ""._CHARMIN.": ".$confu['minpass'].""; } if (!$stop) { $check_num = md5(gen_pass(10)); $time = time(); $finishlink = "".$conf['homeurl']."/index.php?name=".$conf['name']."&op=activate&user=".urlencode($user_name)."&num=".$check_num.""; $new_password = md5($user_password); //$user_name = text_filter($user_name); //$last_name = text_filtr($last_name); $user_email = text_filter($user_email); //$user_pol = $_POST['gender']; $result = $db->sql_query("INSERT INTO ".$prefix."_users_temp (user_id, user_name, last_name, user_gender, user_email, user_password, user_regdate, check_num, time) VALUES (NULL, '$user_name', '$last_name', '$user_pol', '$user_email', '$new_password', now(), '$check_num', '$time')"); head(); if ($confu['nomail'] == 1) { title(""._ACCOUNTCREATED.""); warning(""._TOFINISHUSERN."", "", "", 2); open(); echo "<form action=\"index.php\" method=\"get\">" ."<h2>"._FOLLOWINGMEM."</h2>" ."<div class=\"left\">"._UNICKNAME.":</div><div class=\"center\">".$user_name."</div>" ."<div class=\"left\">"._UPASSWORD.":</div><div class=\"center\">".$user_password."</div>" ."<div class=\"button\"><input type=\"hidden\" name=\"name\" value=\"".$conf['name']."\"><input type=\"hidden\" name=\"op\" value=\"activate\"><input type=\"hidden\" name=\"user\" value=\"".urlencode($user_name)."\"><input type=\"hidden\" name=\"num\" value=\"".$check_num."\"><input type=\"submit\" value=\""._ACTIVATIONSUB."\" class=\"fbutton\"></div></form>"; close(); } else { $link = "<a href=\"".$finishlink."\">".$finishlink."</a>"; $subject = "".$conf['sitename']." - "._ACTIVATIONSUB.""; $message = str_replace("[text]", "".sprintf(""._PASSFSEND."", $user_email, $conf['sitename'], $link, $user_name, $user_password)."<br><br>"._IFYOUDIDNOTASK."", $conf['mtemp']); mail_send($user_email, $conf['adminmail'], $subject, $message, 0, 3); title(""._ACCOUNTCREATED.""); warning(""._YOUAREREGISTERED."<br><br>"._FINISHUSERCONF."<br><br>"._THANKSUSER."", "", 30, 2); } foot(); } else { newuser(); } } }
Спасибо.
Версия системы: Open SLAED 1.*
Версия PHP: PHP 5
Сервер: Локальный сервер