game/registergmail.php

2188 lines
114 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
const GAME = true;
require_once('_incl_data/__config.php');
require_once('_incl_data/class/__db_connect.php');
require_once('_incl_data/class/__chat_class.php');
require_once('_incl_data/class/__filter_class.php');
function add_effn($uid, $id)
{
$g = [0 => 0, 1 => ''];
$eff = mysql_fetch_array(mysql_query('SELECT * FROM `eff_main` WHERE `id2` = "' . $id . '" LIMIT 1'));
if (isset($eff['id2'])) {
$n = $eff['mname'];
$d = $eff['mdata'];
$ins = mysql_query(
'INSERT INTO `eff_users` (`overType`,`id_eff`,`uid`,`name`,`timeUse`,`data`) VALUES ("' . $eff['oneType'] . '","' . $eff['id2'] . '","' . $uid . '","' . $n . '","' . time(
) . '","' . $d . '")'
);
if ($ins) {
$g[0] = 1;
$g[1] = '...';
}
}
return $g;
}
function send_mime_mail(
$name_from, // èìÿ îòïðàâèòåëÿ
$email_from, // email îòïðàâèòåëÿ
$name_to, // èìÿ ïîëó÷àòåëÿ
$email_to, // email ïîëó÷àòåëÿ
$data_charset, // êîäèðîâêà ïåðåäàííûõ äàííûõ
$send_charset, // êîäèðîâêà ïèñüìà
$subject, // òåìà ïèñüìà
$body // òåêñò ïèñüìà
)
{
$to = mime_header_encode($name_to, $data_charset, $send_charset)
. ' <' . $email_to . '>';
$subject = mime_header_encode($subject, $data_charset, $send_charset);
$from = mime_header_encode($name_from, $data_charset, $send_charset)
. ' <' . $email_from . '>';
if ($data_charset != $send_charset) {
$body = iconv($data_charset, $send_charset, $body);
}
/*$headers = "From: $from\r\n";
$headers .= "Content-type: text/html; charset=$send_charset\r\n";*/
$headers = ['From' => $email_from, 'Content-type' => 'text/html; charset=' . $send_charset . '\r\n', 'To' => $to, 'Subject' => $subject, 'Reply-To' => $email_from];
//error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED ^ E_STRICT);
set_include_path(
"." . PATH_SEPARATOR . ($UserDir = dirname(
$_SERVER['DOCUMENT_ROOT']
)) . "/pear/php" . PATH_SEPARATOR . get_include_path()
);
require_once "/usr/local/lib/php/Mail.php"; // /usr/local/lib/php/Mail.php
$smtp = Mail::factory(
'smtp', [
'host' => 'smtp.gmail.com',
'port' => '587',
'auth' => true,
'username' => 'newcombats22@gmail.com', //your gmail account
'password' => 'newcombats1974', // your password
]
);
$mail = $smtp->send($to, $headers, $body);
if (PEAR::isError($mail)) {
echo("<p>" . $mail->getMessage() . "</p>");
die;
} else {
echo("<p>Message successfully sent!</p>");
die;
}
return $mail;
}
function mime_header_encode($str, $data_charset, $send_charset)
{
if ($data_charset != $send_charset) {
$str = iconv($data_charset, $send_charset, $str);
}
return '=?' . $send_charset . '?B?' . base64_encode($str) . '?=';
}
function send_mail($to, $to_name, $from = 'newcombats22@gmail.com', $name = '<b>Áîéöîâñêèé Êëóá</b> 2', $title, $text)
{
send_mime_mail(
$name,
$from,
$to_name,
$to,
'CP1251', // êîäèðîâêà, â êîòîðîé íàõîäÿòñÿ ïåðåäàâàåìûå ñòðîêè
'KOI8-R', // êîäèðîâêà, â êîòîðîé áóäåò îòïðàâëåíî ïèñüìî
$title,
$text
); // \r\n
}
function en_ru($txt)
{
$g = false;
$en = preg_match("/^(([0-9a-zA-Z _-])+)$/i", $txt);
$ru = preg_match("/^(([0-9à-ÿÀ-ß _-])+)$/i", $txt);
if (($ru && $en) || (!$ru && !$en)) {
$g = true;
}
return $g;
}
function error_check($id, $str_u, $name = 0)
{
//***************************************************
session_start();
$error = "";
if ($id == 1 && !empty($str_u)) // Ïðîâåðêà ëîãèíà
{
$nologin = [0 => 'àíãåë', 1 => 'angel', 2 => 'àäìèíèñòðàöèÿ', 3 => 'administration', 4 => 'Êîììåíòàòîð', 5 => 'Ìèðîçäàòåëü', 6 => 'Ìóñîðùèê', 7 => 'Ïàäàëüùèê', 8 => 'Ïîâåëèòåëü', 9 => 'Àðõèâàðèóñ', 10 => 'Ïåðåñìåøíèê', 11 => 'Âîëûíùèê', 12 => 'Ëîðä Ðàçðóøèòåëü', 13 => 'Ìèëîñåðäèå', 14 => 'Ñïðàâåäëèâîñòü', 15 => 'Èñêóøåíèå', 16 => 'Âîçíåñåíèå'];
$i = 0;
while ($i < count($nologin)) {
if (preg_match("/" . $nologin[$i] . "/i", $str_u)) {
$error = 'Âûáåðèòå, ïîæàëóéñòà, äðóãîé íèê.';
$i = count($nologin);
}
$i++;
}
$sr = '_-éöóêåíãøùçõúôûâàïðîëäæýÿ÷ñìèòüáþ¸1234567890';
$str_u = str_replace(' ', ' ', $str_u);
//Ëîãèí îò 4 äî 20 ñèìâîëîâ
if (strlen($str_u) > 20) {
$error = 'Ëîãèí äîëæåí ñîäåðæàòü íå áîëåå 20 ñèìâîëîâ.';
$error = $error . '<br> Ïðèìåð ïðàâèëüíîãî íèêíåéìà: Ïåòÿ Óáèâàòîð, Êîëÿ, xalop. <br> Ïðèìåð íåïðàâèëüíîãî íèêíåéìà: )))), kolÿ)=-/.';
}
if (strlen($str_u) < 4) {
$error = 'Ëîãèí äîëæåí ñîäåðæàòü íå ìåíåå 4 ñèìâîëîâ.';
$error = $error . '<br> Ïðèìåð ïðàâèëüíîãî íèêíåéìà: Ïåòÿ Óáèâàòîð, Êîëÿ, xalop. <br> Ïðèìåð íåïðàâèëüíîãî íèêíåéìà: )))), kolÿ)=-/.';
}
//Îäèí àëôàâèò
$er = en_ru($str_u);
if ($er == true) {
$error = 'Â ëîãèíå ðàçðåøåíî èñïîëüçîâàòü òîëüêî áóêâû îäíîãî àëôàâèòà ðóññêîãî èëè àíãëèéñêîãî. Íåëüçÿ ñìåøèâàòü.';
$error = $error . '<br> Ïðèìåð ïðàâèëüíîãî íèêíåéìà: Ïåòÿ Óáèâàòîð, Êîëÿ, xalop. <br> Ïðèìåð íåïðàâèëüíîãî íèêíåéìà: )))), kolÿ)=-/.';
}
//Çàïðåùåííûé ñèìâîëû
if (strpos($sr, $str_u)) {
$error = 'Ëîãèí ñîäåðæèò çàïðåùåííûå ñèìâîëû.';
$error = $error . '<br> Ïðèìåð ïðàâèëüíîãî íèêíåéìà: Ïåòÿ Óáèâàòîð, Êîëÿ, xalop. <br> Ïðèìåð íåïðàâèëüíîãî íèêíåéìà: )))), kolÿ)=-/.';
}
//Ïåðñîíàæè â áàçå
$log = mysql_fetch_array(
mysql_query('SELECT `id` from `users` where `login`="' . mysql_real_escape_string($str_u) . '" LIMIT 1')
);
$log2 = mysql_fetch_array(
mysql_query('SELECT `id` from `lastNames` where `login`="' . mysql_real_escape_string($str_u) . '" LIMIT 1')
);
if (isset($log['id']) || isset($log2['id'])) {
$error = 'Ëîãèí ' . $str_u . ' óæå çàíÿò, âûáåðèòå äðóãîé.';
}
//Ðàçäåëèòåëè
if (substr_count($str_u, ' ') + substr_count($str_u, '-') + substr_count($str_u, '_') > 2) {
$error = 'Íå áîëåå äâóõ ðàçäåëèòåëåé îäíîâðåìåííî (ïðîáåë, òèðå, íèæíåå ïîä÷åðêèâàíèå).';
$error = $error . '<br> Ïðèìåð ïðàâèëüíîãî íèêíåéìà: Ïåòÿ Óáèâàòîð, Êîëÿ, xalop. <br> Ïðèìåð íåïðàâèëüíîãî íèêíåéìà: )))), kolÿ)=-/.';
}
}
if ($id == 2 && !empty($str_u)) //ïðîâåðêà åìàèëà
{
if (strlen($str_u) < 6 || strlen($str_u) > 50) {
$error = 'E-mail íå ìîæåò áûòü êîðî÷å 6-õ ñèìâîëîâ è äëèíåå 50-òè.';
} else {
$testEREm = mysql_fetch_array(
mysql_query('SELECT `mail` FROM `users` WHERE `mail` LIKE "' . $str_u . '" LIMIT 1')
);
$emails = mysql_fetch_array(
mysql_query('SELECT * FROM `ban_email` WHERE `email` LIKE "' . $str_u . '" LIMIT 1')
);
if (isset($testEREm['mail'])) {
$error = 'E-mail óæå çàíÿò.';
}
if (isset($emails['email'])) {
$error = 'E-mail çàáëîêèðîâàí ñâÿæèòåñü ñ Àäìèíèñòðàöèåé.';
}
$x = 1;
$i = 1;
$tx = '<br>Âîçìîæíî èñïîëüçîâàòü òîëüêî ñåðâèñû ïî÷òû:<br>';
$sp = mysql_query('SELECT * FROM `trust_email`');
while ($pl = mysql_fetch_array($sp)) {
$emailtest = $pl['email'];
if (!preg_match("/" . $emailtest . "/i", $str_u)) {
$i++;
}
$tx = $tx . $pl['email'] . ' ';
$x++;
}
if ($i == $x) {
$error = 'Äàííûé ïî÷òîâûé ñåðâèñ èñïîëüçîâàòü íåëüçÿ.' . $tx;
}
}
if (!preg_match('#^[a-z0-9.!\#$%&\'*+-/=?^_`{|}~]+@([0-9.]+|([^\s]+\.+[a-z]{2,6}))$#si', $str_u)) {
$error = 'Âû óêàçàëè ÿâíî îøèáî÷íûé E-mail.<br>';
}
if ($error != '') {
$gd[4] = $error;
$good = 0;
} else {
$gd[4] = 1;
}
}
if ($id == 3 && !empty($str_u) && !empty($name)) //îòñûëêà åìàèëà ïðè óäà÷íîì åìàèëå str_u -> mail name -> nickname
{
if (empty($str_u) || empty($name)) {
$error = 'Åìåèë èëè Ëîãèí ïóñò.';
}
$code = rand(10000000, 99999999);
mysql_query(
'INSERT INTO `secure_code`(`email`, `code`, `time`) VALUES ("' . $str_u . '","' . $code . '","' . time(
) . '");'
);
$title = 'Ñåêðåòíûé Êîä - Íîâûé Áîéöîâñêèé Êëóá' . $name;
$txt .= 'Ñåêðåòíûé Êîä: ' . $code;
if (send_mime_mail(
'Áîéöîâñêèé Êëóá - Support',
'newcombats22@gmail.com',
'' . $name . '',
$str_u,
'CP1251', // êîäèðîâêà, â êîòîðîé íàõîäÿòñÿ ïåðåäàâàåìûå ñòðîêè
'KOI8-R', // êîäèðîâêà, â êîòîðîé áóäåò îòïðàâëåíî ïèñüìî
$title,
$txt
)) {
} else {
$error = 'Íå óäàëîñü îòïðàâèòü ñîîáùåíèå. Ïîïðîáóéòå ïîçæå.';
}
}
if ($id == 4 && !empty($str_u) && !empty($name)) //ïðîâåðêà êîäà áåçîïàñíîñòè str_u -> ââåäåííûé êîä name -> email
{
$testcode = mysql_fetch_array(
mysql_query(
'SELECT * FROM `secure_code` WHERE `email` = "' . $name . '" ORDER BY `secure_code`.`time` DESC LIMIT 1'
)
);
if ($testcode['code'] <> $str_u) {
$error = 'Íåâåðíûé êîä áåçîïàñíîñòè (Ïðîâåðòå ïðîáåëû è ñàì êîä â ïîñëåäíåì åìåèëå)';
}
}
if ($id == 5 && !empty($str_u) && !empty($name)) //ïðîâåðêà ïàðîëÿ str_u -> p1 êîä name -> p2
{
if (strlen($str_u) < 8 || strlen($str_u) > 30) {
$error = 'Äëèíà ïàðîëÿ íå ìîæåò áûòü ìåíüøå 8 ñèìâîëîâ èëè áîëåå 30 ñèìâîëîâ.';
$error = $error . '<br>Ïðèìåð ïðàâèëüíîãî ïàðîëÿ: Parol228, Kotik111, Pswerd112.<br>Ïðèìåð íåïðàâèëüíîãî ïàðîëÿ: parol228, kotik.';
}
if ($str_u != $name) {
$error = 'Â àíêåòå ïàðîëü íóæíî ââåñòè äâàæäû, äëÿ ïðîâåðêè. Âî âòîðîé ðàç âû åãî ââåëè íåâåðíî, áóäüòå âíèìàòåëüíåå.';
$error = $error . '<br>Ïðèìåð ïðàâèëüíîãî ïàðîëÿ: Parol228, Kotik111, Pswerd112.<br>Ïðèìåð íåïðàâèëüíîãî ïàðîëÿ: parol228, kotik.';
}
if (!preg_match('/[a-zà-ÿ]+/', $str_u)) {
$error = 'Ïàðîëü íå ñîäåðæèò áóêâ íèæíåãî ðåãèòðà à..ÿ/a..z.';
$error = $error . '<br>Ïðèìåð ïðàâèëüíîãî ïàðîëÿ: Parol228, Kotik111, Pswerd112.<br>Ïðèìåð íåïðàâèëüíîãî ïàðîëÿ: parol228, kotik.';
} elseif (!preg_match('/[A-ZÀ-ß]+/', $str_u)) {
$error = 'Ïàðîëü íå ñîäåðæèò áóêâ âåðõíåãî ðåãèòðà À..ß/A..Z .';
$error = $error . '<br>Ïðèìåð ïðàâèëüíîãî ïàðîëÿ: Parol228, Kotik111, Pswerd112.<br>Ïðèìåð íåïðàâèëüíîãî ïàðîëÿ: parol228, kotik.';
} else {
if (!preg_match('/[0-9]+/', $str_u)) {
$error = 'Ïàðîëü íå ñîäåðæèò öèôð.';
$error = $error . '<br>Ïðèìåð ïðàâèëüíîãî ïàðîëÿ: Parol228, Kotik111, Pswerd112.<br>Ïðèìåð íåïðàâèëüíîãî ïàðîëÿ: parol228, kotik.';
}
}
}
//***************************************************
return $error;
}
if ($_SERVER['HTTP_USER_AGENT'] != '' &&
$_SERVER['HTTP_USER_AGENT'] != 'Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0' &&
$_SERVER['HTTP_USER_AGENT'] != 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0' &&
$_SERVER['HTTP_USER_AGENT'] != 'Mozilla/5.0 (Windows NT 10.0; rv:68.0) Gecko/20100101 Firefox/68.0'
) {
?>
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251"/>
<title>Ðåãèñòðàöèÿ - ñîçäàé ïåðñîíàæà â èãðå Íîâûé «Áîéöîâñêèé êëóá» </title>
<meta name="description"
content="Ïðîéäèòå ïðîñòóþ ðåãèñòðàöèþ è ñòàíüòå ó÷àñòíèêîì ? áðàóçåðíîé îíëàéí èãðû-ëåãåíäû ÁÊ. Áîåö, ìû æäåì òåáÿ â íàøèõ ðÿäàõ, ïîýòîìó çàâîäè ñêîðåé àêêàóíò. "/>
</head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251"/>
<style>
body {
background: #000;
background-image: url(werhr.jpg); /* Ïóòü ê ôîíîâîìó ðèñóíêó */
background-position: top, bottom, left, right;; /* Ïîëîæåíèå ôîíà */
background-repeat: no-repeat; /* Îòìåíÿåì ïîâòîðåíèå ôîíà */
}
.visible_class {
background-image: url(script.png); /* Ïóòü ê ôîíîâîìó ðèñóíêó */
background-size: 100% 100%;
margin: 0;
position: absolute;
top: 45%;
left: 50%;
margin-right: -50%;
#min-width: 600px;
min-height: 200px;
transform: translate(-50%, -50%)
}
.visible_class input {
background: none repeat scroll 0 0 #720300;
border-color: #720300 #327CB5 #327CB5 #720300;
border-radius: 10px 10px 10px 10px;
border-style: solid;
border-width: 1px;
box-shadow: 1px 1px 3px #333333;
color: #FFFFFF;
cursor: pointer;
font-weight: bold;
padding: 5px;
text-shadow: 1px 1px 1px #000000;
display: block;
margin-right: auto;
margin-left: auto;
}
.visible_class select {
background: none repeat scroll 0 0 #720300;
border-color: #720300 #327CB5 #327CB5 #720300;
border-radius: 10px 10px 10px 10px;
border-style: solid;
border-width: 1px;
box-shadow: 1px 1px 3px #333333;
color: #FFFFFF;
cursor: pointer;
font-weight: bold;
padding: 5px;
text-shadow: 1px 1px 1px #000000;
display: block;
margin-right: auto;
margin-left: auto;
overflow-x: hidden;
overflow-y: hidden;
}
.visible_class h3 {
text-align: center;
text-shadow: #000 0 0 10px; /* Ñâå÷åíèå ãîëóáîãî öâåòà */
color: #FFF;
margin-top: 20px;
margin-left: 50px;
margin-right: 50px;
#-webkit-text-stroke: 1px red;
}
.visible_class h4 {
text-align: center;
text-shadow: #000 0 0 10px;
color: #ffc6c6;
margin-bottom: 50px;
margin-left: 50px;
margin-right: 50px;
#-webkit-text-stroke: 1px red;
}
.visible_class radio {
text-align: center;
text-shadow: #000 0 0 10px;
color: red;
#-webkit-text-stroke: 1px red;
}
.visible_class a:visited {
color: red;
}
.visible_class_s input[type="submit"] {
margin: 20px 0;
padding: 0 10px;
background: #a50000;
color: #ffffff;
font-size: 22px;
text-transform: uppercase;
border-width: 0;
border-radius: 5px;
cursor: pointer;
transition: .2s linear
}
.visible_class_s input[type="submit"]:hover {
background: #C44D58;
}
.visible_class_s {
margin: 0;
position: absolute;
top: 80%;
left: 50%;
margin-right: -50%;
transform: translate(-50%, -50%)
}
.invisible_class {
display: none;
}
.form_radio_btn {
display: inline-block;
margin-right: 10px;
}
.form_radio_btn input[type=radio] {
display: none;
}
.form_radio_btn label {
display: inline-block;
cursor: pointer;
padding: 0px 15px;
line-height: 34px;
border: 1px solid #EEE;
color: #EEE;
border-radius: 6px;
user-select: none;
}
/* Checked */
.form_radio_btn input[type=radio]:checked + label {
background: #790000;
color: white;
}
/* Hover */
.form_radio_btn label:hover {
color: #FFF;
}
/* Disabled */
.form_radio_btn input[type=radio]:disabled + label {
background: #efefef;
color: #666;
}
.box {
background: linear-gradient(to right, gold, darkorange);
color: white;
--width: 250px;
--height: calc(var(--width) / 3);
width: var(--width);
height: var(--height);
text-align: center;
line-height: var(--height);
font-size: calc(var(--height) / 2.5);
font-family: sans-serif;
letter-spacing: 0.2em;
border: 1px solid darkgoldenrod;
border-radius: 2em;
transform: perspective(500px) rotateY(-15deg);
text-shadow: 6px 3px 2px rgba(0, 0, 0, 0.2);
box-shadow: 2px 0 0 5px rgba(0, 0, 0, 0.2);
transition: 0.5s;
position: relative;
overflow: hidden;
}
.box:hover {
transform: perspective(500px) rotateY(15deg);
text-shadow: -6px 3px 2px rgba(0, 0, 0, 0.2);
box-shadow: -2px 0 0 5px rgba(0, 0, 0, 0.2);
}
.box::before {
content: '';
position: absolute;
width: 100%;
height: 100%;
background: linear-gradient(to right, transparent, white, transparent);
left: -100%;
transition: 0.5s;
}
.box:hover::before {
left: 100%;
}
</style>
<form action="register.php" method="post">
<?
if (isset($_GET['ref']) || isset($_POST['ref'])) {
?>
<div class="invisible_class">
<p><input type="text" name="ref" value="<?
if (isset($_GET['ref'])) {
print_r($_GET['ref']);
} else {
print_r($_POST['ref']);
}
?>"/></p>
</div>
<?
}
if (!isset ($_POST['nick_u'])) {
?>
<div class="visible_class">
<p>
<h3>Ââåäèòå íèêíåéì äëÿ Âàøåãî ïåðñîíàæà </h3><input type="text" name="nick_u"
value="Ââåäèòå âàø nickname"/></p>
</div>
<?
} elseif (isset ($_POST['nick_u']) && error_check(1, $_POST['nick_u']) != "") {
?>
<div class="visible_class">
<p>
<h3>Ââåäèòå íèêíåéì äëÿ Âàøåãî ïåðñîíàæà </h3><input type="text" name="nick_u"
value="<? print_r($_POST['nick_u']); ?>"/></p>
<h4><? echo error_check(1, $_POST['nick_u']); ?></h4>
</div>
<?
} else {
?>
<div class="invisible_class">
<p> Èìÿ âàøåãî ïåðñîíàæà (login): <input type="text" name="nick_u"
value="<? print_r($_POST['nick_u']); ?>"/></p>
</div>
<?
} ?>
<?
if (empty($_POST['email_u']) && !empty($_POST['nick_u']) == true && error_check(1, $_POST['nick_u']) == "") {
?>
<div class="visible_class">
<p>
<h3>Ââåäèòå âàø äåéñòâóþùèé è íàñòîÿùèé "Email" àäðåñ </h3><input type="text" name="email_u"
value="Ââåäèòå âàø email"/></p>
<p>
<h3>Âíèìàíèå! Íå èñïîëüçóéòå íåñóùåñòâóþùèå "Email" àäðåñà, à òàê æå ïðîâåðÿéòå òî, êàêîé ýìåèë âû ââîäèòå,
èáî ïåðåä ñòàðòîì èãðû, âàì íåîáõîäèìî áóäåò ïîäòâåðäèòü âàø ýìåèë àäðåñ.</h3></p>
<p>
<h3>Âàø "Email" Àäðåñ íå áóäåò èñïîëüçîâàòüñÿ íèãäå è ñëóæèò èñêëþ÷èòåëüíî äëÿ òîãî, ÷òîáû âû ñìîãëè
âîññòàíîâèòü ïàðîëü îò ñâîåãî ïåðñîíàæà, à òàê æå äëÿ ïîëó÷åíèÿ íîâîñòíîé ðàññûëêè.</h3></p>
</div>
<?
} elseif (isset ($_POST['email_u']) && error_check(2, $_POST['email_u']) != "") {
?>
<div class="visible_class">
<p>
<h3>Ââåäèòå âàø äåéñòâóþùèé è íàñòîÿùèé "Email" àäðåñ </h3><input type="text" name="email_u"
value="<? print_r(
$_POST['email_u']
); ?>"/></p>
<h4><? echo error_check(2, $_POST['email_u']); ?></h4>
</div>
<?
} else {
?>
<div class="invisible_class">
<p><input type="text" name="email_u" value="<? print_r($_POST['email_u']); ?>"/></p>
</div>
<?
} ?>
<?
if (empty($_POST['secure_code']) && !empty($_POST['email_u']) && error_check(
2, $_POST['email_u']
) == "" && error_check(3, $_POST['email_u'], $_POST['nick_u']) == "") {
?>
<div class="visible_class">
<p>
<h3>Âîéäèòå íà "Email": <? print_r($_POST['email_u']) ?> è ïðîâåðüòå ïî÷òó, <br> âàì ïðèøëî ïèñüìî ñ êîäîì
ïîäòâåðæäåíèÿ, ñêîïèðóéòå åãî è âñòàâüòå ñþäà: </h3><input type="text" name="secure_code"
value="CODE"/></p>
</div>
<?
} elseif (isset ($_POST['secure_code']) && error_check(4, $_POST['secure_code'], $_POST['email_u']) != "") {
?>
<div class="visible_class">
<p>
<h3>Âîéäèòå íà "Email": <? print_r($_POST['email_u']) ?> è ïðîâåðüòå ïî÷òó, <br>âàì ïðèøëî ïèñüìî ñ êîäîì
ïîäòâåðæäåíèÿ, ñêîïèðóéòå åãî è âñòàâüòå ñþäà: </h3><input type="text" name="secure_code"
value="CODE"/></p>
<h4><? echo error_check(4, $_POST['secure_code'], $_POST['email_u']); ?></h4>
</div>
<?
} else {
?>
<div class="invisible_class">
<p><input type="text" name="secure_code" value="<? print_r($_POST['secure_code']); ?>"/></p>
</div>
<?
} ?>
<?
if ((empty($_POST['pass1_u']) || empty($_POST['pass2_u'])) && !empty($_POST['secure_code']) && error_check(
4, $_POST['secure_code'], $_POST['email_u']
) == "") {
?>
<div class="visible_class">
<p>
<h3>Ïðèäóìàéòå ïàðîëü äëÿ Âàøåãî ïåðñîíàæà </h3><input type="password" name="pass1_u" value=""/></p>
<p>
<h3>Ïîäòâåðäèòå ïðèäóìàííûé ïàðîëü äëÿ Âàøåãî ïåðñîíàæà </h3><input type="password" name="pass2_u"
value=""/></p><br>
<p>
<h3>Ïàðîëü äîëæåí ñîñòîÿòü ñ áóêâ âåðõíåãî è íèæíåãî ðåãèñòðà, à òàê æå, ïîìèìî áóêâ, íåîáõîäèìî äîáàâèòü è
öèôðû äëÿ íàä¸æíîñòè.</h3></p>
</div>
<?
} elseif (!empty($_POST['pass1_u']) && !empty($_POST['secure_code']) && error_check(
5, $_POST['pass1_u'], $_POST['pass2_u']
) != "") {
?>
<div class="visible_class">
<p>
<h3>Ïðèäóìàéòå ïàðîëü äëÿ Âàøåãî ïåðñîíàæà </h3><input type="password" name="pass1_u"
value="<? print_r($_POST['pass1_u']); ?>"/></p>
<p>
<h3>Ïîäòâåðäèòå ïðèäóìàííûé ïàðîëü äëÿ Âàøåãî ïåðñîíàæà </h3><input type="password" name="pass2_u"
value="<? print_r(
$_POST['pass2_u']
); ?>"/></p>
<p>
<h3>Ïàðîëü äîëæåí ñîñòîÿòü ñ áóêâ âåðõíåãî è íèæíåãî ðåãèñòðà, à òàê æå, ïîìèìî áóêâ, íåîáõîäèìî äîáàâèòü è
öèôðû äëÿ íàä¸æíîñòè.</h3></p>
<h4><? echo error_check(5, $_POST['pass1_u'], $_POST['pass2_u']); ?></h4><br>
</div>
<?
} else {
?>
<div class="invisible_class">
<p><input type="password" name="pass1_u" value="<? print_r($_POST['pass1_u']); ?>"/></p>
<p><input type="password" name="pass2_u" value="<? print_r($_POST['pass2_u']); ?>"/></p>
</div>
<?
} ?>
<?
if (empty($_POST['pol_u']) && !empty($_POST['pass1_u']) && !empty($_POST['pass2_u']) && error_check(
5, $_POST['pass1_u'], $_POST['pass2_u']
) == "") {
?>
<div class="visible_class">
<p>
<h3>Âûáåðèòå ïîë âàøåãî ïåðñîíàæà:</h3>
<select name="pol_u" size="2" multiple>
<option value="10">Ìóæñêîé</option>
<option value="11">Æåíñêèé</option>
</select></p>
</div>
<?
} else {
?>
<div class="invisible_class">
<select name="pol_u" size="2" multiple>
<option selected value="<? print_r($_POST['pol_u']); ?>"></option>
<option value="<? print_r($_POST['pol_u']); ?>"></option>
</select></p>
</div>
<?
} ?>
<?
if (empty($_POST['bday_u']) && !empty($_POST['pol_u'])) {
?>
<div class="visible_class">
<h3>Óêàæèòå äàòó âàøåãî ðîæäåíèÿ:</h3>
<input type="date" id="start" name="bday_u" value="1980-01-01" max="2003-01-01">
</div>
<?
} else {
?>
<div class="invisible_class">
<input type="date" id="start" name="bday_u" value="<? print_r($_POST['bday_u']); ?>">
</div>
<?
} ?>
<?
if (empty($_POST['class_u']) && !empty($_POST['bday_u'])) {
?>
<div class="visible_class">
<p>
<h3>Âûáåðèòå èãðîâîé êëàññ äëÿ âàøåãî ïåðñîíàæà:</h3></p>
<p>
<h3>Âíèìàíèå! Âûáîð èãðîâîãî êëàññà íå âëèÿåò íà èãðó â öåëîì è íèãäå íå ôèêñèðóåòñÿ èëè æå èñïîëüçóåòñÿ,
ýòî íåîáõîäèìî äëÿ òîãî, ÷òîáû âàø ïåðñîíàæ ïîëó÷èë íóæíûå ïðåäìåòû â íà÷àëå èãðû, à òàê æå íóæíûå
áàôôû.</h3></p>
<div style="margin-left: 23%;">
<div class="form_radio_btn">
<p><input name="class_u" type="radio" value="1" id="radio-1" checked> <label
for="radio-1">Òîïîðùèê</label></p>
</div>
<div class="form_radio_btn">
<p><input name="class_u" type="radio" value="2" id="radio-2"> <label for="radio-2">Óâîðîò÷èê</label>
</p>
</div>
<div class="form_radio_btn">
<p><input name="class_u" type="radio" value="3" id="radio-3"> <label for="radio-3">Òàíê</label></p>
</div>
<div class="form_radio_btn">
<p><input name="class_u" type="radio" value="4" id="radio-4"> <label for="radio-4">Êðèòîâèê</label>
</p>
</div>
<div class="form_radio_btn">
<p><input name="class_u" type="radio" value="5" id="radio-5"> <label for="radio-5">Ìàã
Âîçäóõà</label></p>
</div>
<div class="form_radio_btn">
<p><input name="class_u" type="radio" value="6" id="radio-6"> <label for="radio-6">Ìàã Îãíÿ</label>
</p>
</div>
<div class="form_radio_btn">
<p><input name="class_u" type="radio" value="7" id="radio-7"> <label for="radio-7">Ìàã Çåìëè</label>
</p>
</div>
<div class="form_radio_btn">
<p><input name="class_u" type="radio" value="8" id="radio-8"> <label for="radio-8">Ìàã Âîäû</label>
</p>
</div>
</div>
<p>
<h3>Âíèìàíèå! Âûáðàâ êëàññ ïåðñîíàæà âû àâòîìàòè÷åñêè ñîãëàøàåòåñü ñ <a
href='https://new-combats.com/encicl/law2.html'>ïðàâèëàìè è çàêîíàìè</a> èãðîâîãî ìèðà </h3></p>
<br>
</div>
<?
}
if (!empty($_POST['nick_u']) && !empty($_POST['email_u']) && !empty($_POST['secure_code']) && !empty($_POST['pol_u']) && !empty($_POST['bday_u']) && !empty($_POST['class_u']) && error_check(
4, $_POST['secure_code'], $_POST['email_u']
) == "") {
//================================
session_start();
require_once('_incl_data/class/__user.php');
//Ñîçäàåì ïåðñîíàæà
if ($_POST['ref'] > 0) {
$ref = mysql_fetch_array(
mysql_query(
'SELECT `id`,`login` FROM `users` WHERE `id` = "' . mysql_real_escape_string(
$_POST['ref']
) . '" LIMIT 1'
)
);
if (isset($ref['id'])) {
$_POST['ref'] = $ref['id'];
} else {
$_POST['ref'] = 0;
}
unset($ref);
}
mysql_query(
'INSERT INTO `users` (`name`,`align`,`real`,`login`,`host_reg`,`pass`,`ip`,`ipreg`,`city`,`cityreg`,`room`,`timereg`,
`activ`,`mail`,`bithday`,`sex`,`fnq`,`battle`,`design`,`molch2`,`level`
) VALUES (
"",
"0",
"1",
"' . mysql_real_escape_string($_POST['nick_u']) . '",
"' . mysql_real_escape_string(0 + (int)$_POST['ref']) . '",
"' . mysql_real_escape_string(md5($_POST['pass1_u'])) . '",
"' . mysql_real_escape_string(UserIp::get()) . '",
"' . mysql_real_escape_string(UserIp::get()) . '",
"capitalcity",
"capitalcity",
"9",
"' . time() . '",
"0",
"' . mysql_real_escape_string($_POST['email_u']) . '",
"' . mysql_real_escape_string(date('d.m.Y', strtotime($_POST['bday_u']))) . '",
"' . mysql_real_escape_string($_POST['pol_u'] - 10) . '",
"0",
"0",
"1",
"' . mysql_real_escape_string(time() + 86400) . '",
"8"
)'
);
$uid = mysql_insert_id();
if ($uid > 0) {
//===================================================================
if (isset($_COOKIE['from'])) {
mysql_query(
'INSERT INTO `from` (`type`,`ip`,`uid`,`time`,`val`) VALUES ( "0", "' . UserIp::get(
) . '","' . $uid . '", "' . time() . '", "' . mysql_real_escape_string($_COOKIE['from']) . '" ) '
);
}
//Ñîîáùåíèÿ ïðè ðåãèñòðàöèè îò ïàëàäèíîâ.
$pal = mysql_fetch_array(
mysql_query(
'SELECT * FROM `users` WHERE `align` > 1 AND `align` < 2 AND `online` > "' . (time(
) - 120) . '" ORDER BY `online` DESC LIMIT 1'
)
);
if (!isset($pal['id'])) {
$pal = mysql_fetch_array(
mysql_query(
'SELECT * FROM `users` WHERE `align` > 3 AND `align` < 4 AND `online` > "' . (time(
) - 120) . '" ORDER BY `online` DESC LIMIT 1'
)
);
}
if (isset($pal['id'])) {
//îòñûëàåì ñîîáùåíèå îò $pal['login']
$paltext = 'Ïðèâåòñòâóþ ' . $_POST['nick_u'] . '. Îòïðàâëÿåìñÿ äðàòüñÿ â õàîòû, åñëè íåò çàÿâîê, ñîçäàéòå áîé, äîïîëíèòåëüíî êóïèòå çâåðÿ è íå çàáûâàéòå âûõîäèòü íà öåíòðàëüíóþ ïëîùàòü óáèâàòü Òðóïîæîðà ñâîåãî óðîâíÿ!Ïðèÿòíîé èãðû. ';
mysql_query(
"INSERT INTO `chat` (`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`,`new`) VALUES ('capitalcity','0','" . $pal['login'] . "','" . $_POST['nick_u'] . "','" . $paltext . "','" . time(
) . "','3','0','1')"
);
} else {
//Íå çíàþ ÷òî äåëàòü, ïóñòü áóäåò ïðîñòî ïðèâåòñòâèå :)
$text = 'Ïðèâåòñòâóþ <b>' . $_POST['nick_u'] . '</b>. Îòïðàâëÿåìñÿ äðàòüñÿ â õàîòû, åñëè íåò çàÿâîê, ñîçäàéòå áîé, äîïîëíèòåëüíî êóïèòå çâåðÿ è íå çàáûâàéòå âûõîäèòü íà öåíòðàëüíóþ ïëîùàòü óáèâàòü Òðóïîæîðà ñâîåãî óðîâíÿ!Ïðèÿòíîé èãðû.';
mysql_query(
"INSERT INTO `chat` (`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`,`new`) VALUES ('capitalcity','0','','" . $_POST['nick_u'] . "','" . $text . "','" . time(
) . "','3','0','1')"
);
}
//$text = 'Ïðèâåòñòâóþ <b>'.$_POST['nick_u'].'</b>. Êðàéíå ðåêîìåíäóþ ïðî÷åñòü ìèíè ãàéä ïî ññûëêå https://new-combats.com/forum?read=5762&rnd=1 , åñëè îñòàíóòñÿ âîïðîñû,çàäàâàéòå â îáùèé ÷àò!';
//mysql_query("INSERT INTO `chat` (`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`,`new`) VALUES ('capitalcity','0','','".$_POST['nick_u']."','".$text."','".time()."','6','0','1')");
if ($_POST['class_u'] == 1) //òîïîð
{
//êàñòèì ýôåêòû
$us = add_effn($uid, 1); // ñèëà
$us = add_effn($uid, 20); // ñîêðóøåíèå
mysql_query(
"INSERT INTO `stats` (`id`,`stats`,`ability`,`skills`,exp) VALUES ('" . $uid . "','s1=62|s2=3|s3=3|s4=30|rinv=40|m9=5|m6=10|s7=0|a1=0|a2=9|a3=0|a4=0|a5=0|mg1=0|mg2=0|mg3=0|mg4=0|mg5=0|mg6=0|mg7=0|s5=0|s6=0|a6=0|s8=0|s9=0|s10=0|s11=0|s12=0|s13=0|s14=0|s15=0',-75,-9,100000)"
);
$re = $u->addItem(528, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 1 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "528" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(540, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 2 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "540" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(552, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 3 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "552" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(552, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 14 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "552" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(291, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 4 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "291" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(543, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 5 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "543" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(627, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 7 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "627" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(653, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 8 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "653" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(681, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 9 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "681" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(687, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 10 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "687" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(687, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 11 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "687" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(687, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 12 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "687" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(320, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 13 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "320" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(709, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 16 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "709" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(716, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 17 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "716" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
mysql_query(
'UPDATE `users` SET `money` = `money`-2101 WHERE `id` = "' . $uid . '" LIMIT 1'
);//êîðåêòèðîâêà äåíåã 2244 - 2101
} elseif ($_POST['class_u'] == 2) //óâîðîò
{
//êàñòèì ýôåêòû
$us = add_effn($uid, 8); // ëîâêà
$us = add_effn($uid, 20); // ñîêðóøåíèå
mysql_query(
"INSERT INTO `stats` (`id`,`stats`,`ability`,`skills`,exp) VALUES ('" . $uid . "','s1=21|s2=31|s3=16|s4=30|rinv=40|m9=5|m6=10|s7=0|a1=9|a2=0|a3=0|a4=0|a5=0|mg1=0|mg2=0|mg3=0|mg4=0|mg5=0|mg6=0|mg7=0|s5=0|s6=0',-75,-9,100000)"
);
$re = $u->addItem(525, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 1 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "525" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(539, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 2 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "539" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(523, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 3 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "523" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(523, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 14 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "523" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(290, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 4 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "290" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(541, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 5 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "541" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(633, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 7 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "633" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(647, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 8 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "647" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(680, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 9 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "680" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(685, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 10 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "685" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(685, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 11 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "685" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(685, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 12 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "685" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(1151, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 13 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "1151" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(707, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 16 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "707" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(712, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 17 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "712" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
mysql_query(
'UPDATE `users` SET `money` = `money`-1972 WHERE `id` = "' . $uid . '" LIMIT 1'
);//êîðåêòèðîâêà äåíåã 2244 - 1972
} elseif ($_POST['class_u'] == 3)//òàíê
{
//êàñòèì ýôåêòû
$us = add_effn($uid, 1); // ñèëà
$us = add_effn($uid, 20); // ñîêðóøåíèå
mysql_query(
"INSERT INTO `stats` (`id`,`stats`,`ability`,`skills`,exp) VALUES ('" . $uid . "','s1=42|s2=3|s3=3|s4=50|rinv=40|m9=5|m6=10|s7=0|a1=0|a2=0|a3=9|a4=0|a5=0|mg1=0|mg2=0|mg3=0|mg4=0|mg5=0|mg6=0|mg7=0|s5=0|s6=0|a6=0|s8=0|s9=0|s10=0|s11=0|s12=0|s13=0|s14=0|s15=0',-75,-9,100000)"
);
$re = $u->addItem(533, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 1 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "533" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(536, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 2 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "536" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(558, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 3 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "558" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(722, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 14 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "722" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(291, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 4 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "291" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(545, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 5 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "545" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(628, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 7 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "628" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(654, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 8 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "654" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(684, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 9 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "684" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(689, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 10 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "689" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(689, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 11 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "689" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(689, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 12 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "689" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(700, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 13 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "700" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(710, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 16 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "710" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(718, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 17 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "718" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
mysql_query(
'UPDATE `users` SET `money` = `money`-2101 WHERE `id` = "' . $uid . '" LIMIT 1'
);//êîðåêòèðîâêà äåíåã 2244 - 2101
} elseif ($_POST['class_u'] == 4)//êðèò
{
//êàñòèì ýôåêòû
$us = add_effn($uid, 7); // èíòà
$us = add_effn($uid, 20); // ñîêðóøåíèå
mysql_query(
"INSERT INTO `stats` (`id`,`stats`,`ability`,`skills`,exp) VALUES ('" . $uid . "','s1=24|s2=20|s3=24|s4=30|rinv=40|m9=5|m6=10|s7=0|a1=0|a2=0|a3=0|a4=9|a5=0|mg1=0|mg2=0|mg3=0|mg4=0|mg5=0|mg6=0|mg7=0|s5=0|s6=0|a6=0|s8=0|s9=0|s10=0|s11=0|s12=0|s13=0|s14=0|s15=0',-75,-9,100000)"
);
$re = $u->addItem(527, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 1 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "527" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(537, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 2 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "537" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(567, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 3 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "567" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(723, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 14 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "723" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(291, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 4 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "291" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(544, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 5 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "544" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(626, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 7 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "626" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(651, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 8 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "651" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(683, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 9 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "683" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(686, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 10 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "686" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(686, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 11 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "686" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(686, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 12 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "686" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(706, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 13 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "706" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(708, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 16 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "708" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(717, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 17 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "717" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
mysql_query(
'UPDATE `users` SET `money` = `money`-1988 WHERE `id` = "' . $uid . '" LIMIT 1'
);//êîðåêòèðîâêà äåíåã 2244 - 1988
} elseif ($_POST['class_u'] == 5)//âîçäóõ
{
//êàñòèì ýôåêòû
$us = add_effn($uid, 9); // èíòåëåêò
$us = add_effn($uid, 32); // Õîëîäíûé ðàçóì
$us = add_effn($uid, 53); // Ìàã óñåëîê âîçäóõ
$us = add_effn($uid, 439); // Ìàã óñåëîê
mysql_query(
"INSERT INTO `stats` (`id`,`stats`,`ability`,`skills`,exp) VALUES ('" . $uid . "','s1=14|s2=3|s3=3|s4=25|rinv=40|m9=5|m6=10|s7=0|a1=0|a2=0|a3=0|a4=0|a5=3|mg1=0|mg2=6|mg3=0|mg4=0|mg5=0|mg6=0|mg7=0|s5=13|s6=40|a6=0|s8=0|s9=0|s10=0|s11=0|s12=0|s13=0|s14=0|s15=0',-75,-9,100000)"
);
$re = $u->addItem(531, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 1 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "531" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(534, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 2 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "534" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(1026, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 3 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "1026" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(291, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 4 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "291" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(548, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 5 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "548" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(629, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 7 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "629" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(698, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 13 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "698" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(711, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 16 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "711" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(714, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 17 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "714" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
///------- þâà
$re = $u->addItem(658, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 8 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "658" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(675, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 9 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "675" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(693, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 10 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "693" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(693, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 11 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "693" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(693, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 12 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "693" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
///----
mysql_query(
'UPDATE `users` SET `money` = `money`-1988 WHERE `id` = "' . $uid . '" LIMIT 1'
);//êîðåêòèðîâêà äåíåã 2244 - 1988
} elseif ($_POST['class_u'] == 6)//îãîíü
{
//êàñòèì ýôåêòû
$us = add_effn($uid, 9); // èíòåëåêò
$us = add_effn($uid, 32); // Õîëîäíûé ðàçóì
$us = add_effn($uid, 51); // Ìàã óñåëîê îãîíü
$us = add_effn($uid, 439); // Ìàã óñåëîê
mysql_query(
"INSERT INTO `stats` (`id`,`stats`,`ability`,`skills`,exp) VALUES ('" . $uid . "','s1=14|s2=3|s3=3|s4=25|rinv=40|m9=5|m6=10|s7=0|a1=0|a2=0|a3=0|a4=0|a5=3|mg1=6|mg2=0|mg3=0|mg4=0|mg5=0|mg6=0|mg7=0|s5=13|s6=40|a6=0|s8=0|s9=0|s10=0|s11=0|s12=0|s13=0|s14=0|s15=0',-75,-9,100000)"
);
$re = $u->addItem(531, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 1 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "531" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(534, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 2 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "534" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(1026, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 3 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "1026" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(291, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 4 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "291" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(549, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 5 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "549" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(629, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 7 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "629" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(698, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 13 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "698" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(711, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 16 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "711" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(714, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 17 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "714" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
///------- þâà
$re = $u->addItem(655, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 8 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "655" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(679, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 9 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "679" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(696, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 10 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "696" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(696, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 11 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "696" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(696, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 12 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "696" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
///----
mysql_query(
'UPDATE `users` SET `money` = `money`-1988 WHERE `id` = "' . $uid . '" LIMIT 1'
);//êîðåêòèðîâêà äåíåã 2244 - 1988
} elseif ($_POST['class_u'] == 7)//çåìëÿ
{
//êàñòèì ýôåêòû
$us = add_effn($uid, 9); // èíòåëåêò
$us = add_effn($uid, 32); // Õîëîäíûé ðàçóì
$us = add_effn($uid, 54); // Ìàã óñåëîê çåìëÿ
$us = add_effn($uid, 439); // Ìàã óñåëîê
mysql_query(
"INSERT INTO `stats` (`id`,`stats`,`ability`,`skills`,exp) VALUES ('" . $uid . "','s1=14|s2=3|s3=3|s4=25|rinv=40|m9=5|m6=10|s7=0|a1=0|a2=0|a3=0|a4=0|a5=3|mg1=0|mg2=0|mg3=0|mg4=6|mg5=0|mg6=0|mg7=0|s5=13|s6=40|a6=0|s8=0|s9=0|s10=0|s11=0|s12=0|s13=0|s14=0|s15=0',-75,-9,100000)"
);
$re = $u->addItem(531, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 1 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "531" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(534, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 2 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "534" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(1026, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 3 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "1026" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(291, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 4 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "291" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(548, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 5 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "548" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(629, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 7 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "629" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(698, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 13 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "698" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(711, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 16 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "711" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(714, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 17 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "714" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
///------- þâà
$re = $u->addItem(657, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 8 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "657" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(674, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 9 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "674" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(692, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 10 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "692" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(692, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 11 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "692" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(692, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 12 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "692" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
///----
mysql_query(
'UPDATE `users` SET `money` = `money`-1988 WHERE `id` = "' . $uid . '" LIMIT 1'
);//êîðåêòèðîâêà äåíåã 2244 - 1988
} elseif ($_POST['class_u'] == 8)//âîäà
{
//êàñòèì ýôåêòû
$us = add_effn($uid, 9); // èíòåëåêò
$us = add_effn($uid, 32); // Õîëîäíûé ðàçóì
$us = add_effn($uid, 52); // Ìàã óñåëîê âîäà
$us = add_effn($uid, 439); // Ìàã óñåëîê
mysql_query(
"INSERT INTO `stats` (`id`,`stats`,`ability`,`skills`,exp) VALUES ('" . $uid . "','s1=14|s2=3|s3=3|s4=25|rinv=40|m9=5|m6=10|s7=0|a1=0|a2=0|a3=0|a4=0|a5=3|mg1=0|mg2=0|mg3=6|mg4=0|mg5=0|mg6=0|mg7=0|s5=13|s6=40|a6=0|s8=0|s9=0|s10=0|s11=0|s12=0|s13=0|s14=0|s15=0',-75,-9,100000)"
);
$re = $u->addItem(531, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 1 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "531" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(534, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 2 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "534" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(1026, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 3 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "1026" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(291, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 4 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "291" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(548, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 5 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "548" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(629, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 7 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "629" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(318, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 13 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "318" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(711, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 16 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "711" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(714, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 17 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "714" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
///------- þâà
$re = $u->addItem(660, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 8 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "660" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(677, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 9 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "677" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(695, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 10 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "695" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(695, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 11 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "695" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
$re = $u->addItem(695, $uid);
mysql_query('UPDATE `items_users` SET `inodet` = 12 WHERE `id` = "' . $re . '" LIMIT 1');
$price = mysql_fetch_array(
mysql_query('SELECT `price_1` FROM `items_shop` WHERE `item_id` = "695" AND `sid`=1 LIMIT 1')
);
mysql_query(
'UPDATE `items_users` SET `1price` = "' . $price['price_1'] . '" WHERE `id` = "' . $re . '" LIMIT 1'
);
///----
mysql_query(
'UPDATE `users` SET `money` = `money`-1988 WHERE `id` = "' . $uid . '" LIMIT 1'
);//êîðåêòèðîâêà äåíåã 2244 - 1988
}
if ($_POST['ref'] > 0) {
$re = $u->addItem(6417, $uid);
}
//êàòèì ýôåêòû
//
//
$us = add_effn($uid, 37);
$us = add_effn($uid, 38);
$us = add_effn($uid, 283);
$us = add_effn($uid, 25);
$us = add_effn($uid, 296);
$us = add_effn($uid, 472);
//Ìàãè÷åñêîå óñèëåíèå
mysql_query(
"INSERT INTO `items_users` (`item_id`, `1price`, `2price`, `3price`, `4price`, `uid`, `use_text`, `data`, `inOdet`, `inShop`, `inGroup`, `delete`, `iznosNOW`, `iznosMAX`, `gift`, `gtxt1`, `gtxt2`, `kolvo`, `geniration`, `magic_inc`, `maidin`, `lastUPD`, `timeOver`, `overType`, `secret_id`, `time_create`, `time_sleep`, `dn_delete`, `inTransfer`, `post_delivery`, `lbtl_`, `bexp`, `so`, `blvl`, `pok_itm`, `btl_zd`) VALUES
(4942, 40, 0.00, 0.00, 0.00, " . $uid . ", 0, 'oneType=72|onlyOne=1|musor=1|noremont=1|sudba=1|nosale=1', 0, 0, 0, 0, 0.00, 4, 'Àäìèíèñòðàöèÿ', '', '', 1, 2, '439', 'capitalcity', " . time(
) . ", 0, 0, '', " . time() . ", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);"
);
//Çàùèòà îò îðóæèÿ
mysql_query(
"INSERT INTO `items_users` (`item_id`, `1price`, `2price`, `3price`, `4price`, `uid`, `use_text`, `data`, `inOdet`, `inShop`, `inGroup`, `delete`, `iznosNOW`, `iznosMAX`, `gift`, `gtxt1`, `gtxt2`, `kolvo`, `geniration`, `magic_inc`, `maidin`, `lastUPD`, `timeOver`, `overType`, `secret_id`, `time_create`, `time_sleep`, `dn_delete`, `inTransfer`, `post_delivery`, `lbtl_`, `bexp`, `so`, `blvl`, `pok_itm`, `btl_zd`) VALUES
(1001, 40, 0.00, 0.00, 0.00, " . $uid . ", 0, 'onlyOne=1|oneType=7|noremont=1|musor=1|sudba=1|nosale=1', 0, 0, 0, 0, 0.00, 4, 'Àäìèíèñòðàöèÿ', '', '', 1, 2, '25', 'capitalcity', " . time(
) . ", 0, 0, '', " . time() . ", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);"
);
//Çàùèòà îò ìàãèè
mysql_query(
"INSERT INTO `items_users` (`item_id`, `1price`, `2price`, `3price`, `4price`, `uid`, `use_text`, `data`, `inOdet`, `inShop`, `inGroup`, `delete`, `iznosNOW`, `iznosMAX`, `gift`, `gtxt1`, `gtxt2`, `kolvo`, `geniration`, `magic_inc`, `maidin`, `lastUPD`, `timeOver`, `overType`, `secret_id`, `time_create`, `time_sleep`, `dn_delete`, `inTransfer`, `post_delivery`, `lbtl_`, `bexp`, `so`, `blvl`, `pok_itm`, `btl_zd`) VALUES
(4941, 40, 0.00, 0.00, 0.00, " . $uid . ", 0, 'oneType=71|onlyOne=1|musor=1|noremont=1|sudba=1|nosale=1', 0, 0, 0, 0, 0.00, 4, 'Àäìèíèñòðàöèÿ', '', '', 1, 2, '438', 'capitalcity', " . time(
) . ", 0, 0, '', " . time() . ", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);"
);
//Æàæäà æèçíè +6
mysql_query(
"INSERT INTO `items_users` (`item_id`, `1price`, `2price`, `3price`, `4price`, `uid`, `use_text`, `data`, `inOdet`, `inShop`, `inGroup`, `delete`, `iznosNOW`, `iznosMAX`, `gift`, `gtxt1`, `gtxt2`, `kolvo`, `geniration`, `magic_inc`, `maidin`, `lastUPD`, `timeOver`, `overType`, `secret_id`, `time_create`, `time_sleep`, `dn_delete`, `inTransfer`, `post_delivery`, `lbtl_`, `bexp`, `so`, `blvl`, `pok_itm`, `btl_zd`) VALUES
(3101, 50, 0.00, 0.00, 0.00, " . $uid . ", 0, 'onlyOne=1|noremont=1|oneType=33|musor=1|sudba=1|nosale=1', 0, 0, 0, 0, 0.00, 5, 'Àäìèíèñòðàöèÿ', '', '', 1, 2, '296', 'capitalcity', " . time(
) . ", 0, 33, '', " . time() . ", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);"
);
//Àïòå÷êà (Èñöåëÿåò ëåãêèå òðàâìû)
mysql_query(
"INSERT INTO `items_users` (`item_id`, `1price`, `2price`, `3price`, `4price`, `uid`, `use_text`, `data`, `inOdet`, `inShop`, `inGroup`, `delete`, `iznosNOW`, `iznosMAX`, `gift`, `gtxt1`, `gtxt2`, `kolvo`, `geniration`, `magic_inc`, `maidin`, `lastUPD`, `timeOver`, `overType`, `secret_id`, `time_create`, `time_sleep`, `dn_delete`, `inTransfer`, `post_delivery`, `lbtl_`, `bexp`, `so`, `blvl`, `pok_itm`, `btl_zd`) VALUES
(4412, 7, 0.00, 0.00, 0.00, " . $uid . ", 0, 'tr_lvl=1|useOnLogin=1|musor=1|noremont=1', 0, 0, 0, 0, 0.00, 2, 'Àäìèíèñòðàöèÿ', '', '', 1, 2, 'lech_free_1', 'capitalcity', " . time(
) . ", 0, 0, '', " . time() . ", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);"
);
//Àïòå÷êà (Èñöåëÿåò ñðåäíèå òðàâìû)
mysql_query(
"INSERT INTO `items_users` (`item_id`, `1price`, `2price`, `3price`, `4price`, `uid`, `use_text`, `data`, `inOdet`, `inShop`, `inGroup`, `delete`, `iznosNOW`, `iznosMAX`, `gift`, `gtxt1`, `gtxt2`, `kolvo`, `geniration`, `magic_inc`, `maidin`, `lastUPD`, `timeOver`, `overType`, `secret_id`, `time_create`, `time_sleep`, `dn_delete`, `inTransfer`, `post_delivery`, `lbtl_`, `bexp`, `so`, `blvl`, `pok_itm`, `btl_zd`) VALUES
(4413, 14, 0.00, 0.00, 0.00, " . $uid . ", 0, 'tr_lvl=1|useOnLogin=1|musor=1|noremont=1', 0, 0, 0, 0, 0.00, 2, 'Àäìèíèñòðàöèÿ', '', '', 1, 2, 'lech_free_2', 'capitalcity', " . time(
) . ", 0, 0, '', " . time() . ", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);"
);
//Àïòå÷êà (Èñöåëÿåò òÿæåëûå òðàâìû)
mysql_query(
"INSERT INTO `items_users` (`item_id`, `1price`, `2price`, `3price`, `4price`, `uid`, `use_text`, `data`, `inOdet`, `inShop`, `inGroup`, `delete`, `iznosNOW`, `iznosMAX`, `gift`, `gtxt1`, `gtxt2`, `kolvo`, `geniration`, `magic_inc`, `maidin`, `lastUPD`, `timeOver`, `overType`, `secret_id`, `time_create`, `time_sleep`, `dn_delete`, `inTransfer`, `post_delivery`, `lbtl_`, `bexp`, `so`, `blvl`, `pok_itm`, `btl_zd`) VALUES
(4414, 21, 0.00, 0.00, 0.00, " . $uid . ", 0, 'tr_lvl=1|useOnLogin=1|musor=1|noremont=1', 0, 0, 0, 0, 0.00, 2, 'Àäìèíèñòðàöèÿ', '', '', 1, 2, 'lech_free_3', 'capitalcity', " . time(
) . ", 0, 0, '', " . time() . ", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);"
);
//Õîëîäíûé ðàçóì
mysql_query(
"INSERT INTO `items_users` (`item_id`, `1price`, `2price`, `3price`, `4price`, `uid`, `use_text`, `data`, `inOdet`, `inShop`, `inGroup`, `delete`, `iznosNOW`, `iznosMAX`, `gift`, `gtxt1`, `gtxt2`, `kolvo`, `geniration`, `magic_inc`, `maidin`, `lastUPD`, `timeOver`, `overType`, `secret_id`, `time_create`, `time_sleep`, `dn_delete`, `inTransfer`, `post_delivery`, `lbtl_`, `bexp`, `so`, `blvl`, `pok_itm`, `btl_zd`) VALUES
(1460, 15, 0.00, 0.00, 0.00, " . $uid . ", 0, 'musor=1|noremont=1|sudba=1|nosale=1', 0, 0, 0, 0, 0.00, 5, 'Àäìèíèñòðàöèÿ', '', '', 1, 5, '32', 'capitalcity', " . time(
) . ", 0, 0, '', " . time() . ", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);"
);
//Ñîêðóøåíèå
mysql_query(
"INSERT INTO `items_users` (`item_id`, `1price`, `2price`, `3price`, `4price`, `uid`, `use_text`, `data`, `inOdet`, `inShop`, `inGroup`, `delete`, `iznosNOW`, `iznosMAX`, `gift`, `gtxt1`, `gtxt2`, `kolvo`, `geniration`, `magic_inc`, `maidin`, `lastUPD`, `timeOver`, `overType`, `secret_id`, `time_create`, `time_sleep`, `dn_delete`, `inTransfer`, `post_delivery`, `lbtl_`, `bexp`, `so`, `blvl`, `pok_itm`, `btl_zd`) VALUES
(994, 40, 0.00, 0.00, 0.00, " . $uid . ", 0, 'onlyOne=1|oneType=44|noremont=1|musor=1|sudba=1|nosale=1', 0, 0, 0, 0, 0.00, 4, 'Àäìèíèñòðàöèÿ', '', '', 1, 4, '20', 'capitalcity', " . time(
) . ", 0, 0, '', " . time() . ", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);"
);
//Ýëèêñèð æèçíè (âîññòàíàâëèâàåò +500 õï)
mysql_query(
"INSERT INTO `items_users` (`item_id`, `1price`, `2price`, `3price`, `4price`, `uid`, `use_text`, `data`, `inOdet`, `inShop`, `inGroup`, `delete`, `iznosNOW`, `iznosMAX`, `gift`, `gtxt1`, `gtxt2`, `kolvo`, `geniration`, `magic_inc`, `maidin`, `lastUPD`, `timeOver`, `overType`, `secret_id`, `time_create`, `time_sleep`, `dn_delete`, `inTransfer`, `post_delivery`, `lbtl_`, `bexp`, `so`, `blvl`, `pok_itm`, `btl_zd`) VALUES
(4736, 5, 0.00, 0.00, 0.00, " . $uid . ", 0, 'moment=1|moment_hp=500|nohaos=1|musor=2|noremont=1|sudba=1|nosale=1', 0, 0, 0, 0, 0.00, 10, 'Àäìèíèñòðàöèÿ', '', '', 1, 4, 'elicsir_hp -w500', 'capitalcity', " . time(
) . ", 0, 0, '', " . time() . ", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);"
);
//Çåëüå æèçíè (âîññòàíàâëèâàåò +200 õï)
mysql_query(
"INSERT INTO `items_users` (`item_id`, `1price`, `2price`, `3price`, `4price`, `uid`, `use_text`, `data`, `inOdet`, `inShop`, `inGroup`, `delete`, `iznosNOW`, `iznosMAX`, `gift`, `gtxt1`, `gtxt2`, `kolvo`, `geniration`, `magic_inc`, `maidin`, `lastUPD`, `timeOver`, `overType`, `secret_id`, `time_create`, `time_sleep`, `dn_delete`, `inTransfer`, `post_delivery`, `lbtl_`, `bexp`, `so`, `blvl`, `pok_itm`, `btl_zd`) VALUES
(724, 2, 0.00, 0.00, 0.00, " . $uid . ", 0, 'moment=1|moment_hp=200|nohaos=1|musor=2|noremont=1|sudba=1|nosale=1', 0, 0, 0, 0, 0.00, 10, 'Àäìèíèñòðàöèÿ', '', '', 1, 4, 'elicsir_hp -w200', 'capitalcity', " . time(
) . ", 0, 0, '', " . time() . ", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);"
);
//Çåëüå ìîãóùåñòâà (+10 ñèëû)
mysql_query(
"INSERT INTO `items_users` (`item_id`, `1price`, `2price`, `3price`, `4price`, `uid`, `use_text`, `data`, `inOdet`, `inShop`, `inGroup`, `delete`, `iznosNOW`, `iznosMAX`, `gift`, `gtxt1`, `gtxt2`, `kolvo`, `geniration`, `magic_inc`, `maidin`, `lastUPD`, `timeOver`, `overType`, `secret_id`, `time_create`, `time_sleep`, `dn_delete`, `inTransfer`, `post_delivery`, `lbtl_`, `bexp`, `so`, `blvl`, `pok_itm`, `btl_zd`) VALUES
(870, 5, 0.00, 0.00, 0.00, " . $uid . ", 0, 'nohaos=1|onlyOne=1|oneType=1|musor=2|noremont=1|nohaos=1|onlyOne=1|oneType=1|noremont=1|add_s1=15|sudba=1|nosale=1', 0, 0, 0, 0, 0.00, 5, 'Àäìèíèñòðàöèÿ', '', '', 1, 4, '1', 'capitalcity', " . time(
) . ", 0, 1, '', " . time() . ", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);"
);
//Çåëüå ñòðåìèòåëüíîñòè (+10 ëîâêîñòè)
mysql_query(
"INSERT INTO `items_users` (`item_id`, `1price`, `2price`, `3price`, `4price`, `uid`, `use_text`, `data`, `inOdet`, `inShop`, `inGroup`, `delete`, `iznosNOW`, `iznosMAX`, `gift`, `gtxt1`, `gtxt2`, `kolvo`, `geniration`, `magic_inc`, `maidin`, `lastUPD`, `timeOver`, `overType`, `secret_id`, `time_create`, `time_sleep`, `dn_delete`, `inTransfer`, `post_delivery`, `lbtl_`, `bexp`, `so`, `blvl`, `pok_itm`, `btl_zd`) VALUES
(872, 5, 0.00, 0.00, 0.00, " . $uid . ", 0, 'nohaos=1|onlyOne=1|oneType=1|musor=2|noremont=1|nohaos=1|onlyOne=1|oneType=1|noremont=1|add_s2=15|sudba=1|nosale=1', 0, 0, 0, 0, 0.00, 5, 'Àäìèíèñòðàöèÿ', '', '', 1, 4, '8', 'capitalcity', " . time(
) . ", 0, 1, '', " . time() . ", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);"
);
//Çåëüå ïðîçðåíèÿ(+10 èíòóèöèè)
mysql_query(
"INSERT INTO `items_users` (`item_id`, `1price`, `2price`, `3price`, `4price`, `uid`, `use_text`, `data`, `inOdet`, `inShop`, `inGroup`, `delete`, `iznosNOW`, `iznosMAX`, `gift`, `gtxt1`, `gtxt2`, `kolvo`, `geniration`, `magic_inc`, `maidin`, `lastUPD`, `timeOver`, `overType`, `secret_id`, `time_create`, `time_sleep`, `dn_delete`, `inTransfer`, `post_delivery`, `lbtl_`, `bexp`, `so`, `blvl`, `pok_itm`, `btl_zd`) VALUES
(871, 5, 0.00, 0.00, 0.00, " . $uid . ", 0, 'nohaos=1|onlyOne=1|oneType=1|musor=2|noremont=1|nohaos=1|onlyOne=1|oneType=1|noremont=1|add_s3=15|sudba=1|nosale=1', 0, 0, 0, 0, 0.00, 5, 'Àäìèíèñòðàöèÿ', '', '', 1, 4, '7', 'capitalcity', " . time(
) . ", 0, 1, '', " . time() . ", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);"
);
//Çåëüå ðàçóìà(+10 èíòåëëåêòà)
mysql_query(
"INSERT INTO `items_users` (`item_id`, `1price`, `2price`, `3price`, `4price`, `uid`, `use_text`, `data`, `inOdet`, `inShop`, `inGroup`, `delete`, `iznosNOW`, `iznosMAX`, `gift`, `gtxt1`, `gtxt2`, `kolvo`, `geniration`, `magic_inc`, `maidin`, `lastUPD`, `timeOver`, `overType`, `secret_id`, `time_create`, `time_sleep`, `dn_delete`, `inTransfer`, `post_delivery`, `lbtl_`, `bexp`, `so`, `blvl`, `pok_itm`, `btl_zd`) VALUES
(873, 5, 0.00, 0.00, 0.00, " . $uid . ", 0, 'nohaos=1|onlyOne=1|oneType=1|musor=2|noremont=1|nohaos=1|onlyOne=1|oneType=1|noremont=1|add_s5=15|sudba=1|nosale=1', 0, 0, 0, 0, 0.00, 5, 'Àäìèíèñòðàöèÿ', '', '', 1, 4, '9', 'capitalcity', " . time(
) . ", 0, 1, '', " . time() . ", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);"
);
//Íåêòàð Îòðèöàíèÿ(+160 çàùèòû îò ìàãèè)
mysql_query(
"INSERT INTO `items_users` (`item_id`, `1price`, `2price`, `3price`, `4price`, `uid`, `use_text`, `data`, `inOdet`, `inShop`, `inGroup`, `delete`, `iznosNOW`, `iznosMAX`, `gift`, `gtxt1`, `gtxt2`, `kolvo`, `geniration`, `magic_inc`, `maidin`, `lastUPD`, `timeOver`, `overType`, `secret_id`, `time_create`, `time_sleep`, `dn_delete`, `inTransfer`, `post_delivery`, `lbtl_`, `bexp`, `so`, `blvl`, `pok_itm`, `btl_zd`) VALUES
(2140, 30, 0.00, 0.00, 0.00, " . $uid . ", 0, 'nohaos=1|onlyOne=1|oneType=8|musor=2|noremont=1|add_zm=160|sudba=1|nosale=1', 0, 0, 0, 0, 0.00, 5, 'Àäìèíèñòðàöèÿ', '', '', 1, 4, '38', 'capitalcity', " . time(
) . ", 0, 0, '', " . time() . ", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);"
);
//Íåêòàð óÿçâèìîñòè(+160 çàùèòû îò óðîíà)
mysql_query(
"INSERT INTO `items_users` (`item_id`, `1price`, `2price`, `3price`, `4price`, `uid`, `use_text`, `data`, `inOdet`, `inShop`, `inGroup`, `delete`, `iznosNOW`, `iznosMAX`, `gift`, `gtxt1`, `gtxt2`, `kolvo`, `geniration`, `magic_inc`, `maidin`, `lastUPD`, `timeOver`, `overType`, `secret_id`, `time_create`, `time_sleep`, `dn_delete`, `inTransfer`, `post_delivery`, `lbtl_`, `bexp`, `so`, `blvl`, `pok_itm`, `btl_zd`) VALUES
(2139, 30, 0.00, 0.00, 0.00, " . $uid . ", 0, 'nohaos=1|onlyOne=1|oneType=8|musor=2|noremont=1|add_za=160|sudba=1|nosale=1', 0, 0, 0, 0, 0.00, 5, 'Àäìèíèñòðàöèÿ', '', '', 1, 4, '37', 'capitalcity', " . time(
) . ", 0, 0, '', " . time() . ", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);"
);
//Áóòåð (+180 õï)
mysql_query(
"INSERT INTO `items_users` (`item_id`, `1price`, `2price`, `3price`, `4price`, `uid`, `use_text`, `data`, `inOdet`, `inShop`, `inGroup`, `delete`, `iznosNOW`, `iznosMAX`, `gift`, `gtxt1`, `gtxt2`, `kolvo`, `geniration`, `magic_inc`, `maidin`, `lastUPD`, `timeOver`, `overType`, `secret_id`, `time_create`, `time_sleep`, `dn_delete`, `inTransfer`, `post_delivery`, `lbtl_`, `bexp`, `so`, `blvl`, `pok_itm`, `btl_zd`) VALUES
(3075, 10, 0.00, 0.00, 0.00, " . $uid . ", 0, 'nohaos=1|onlyOne=1|oneType=4|musor=1|noremont=1|sudba=1|nosale=1', 0, 0, 0, 0, 0.00, 10, 'Àäìèíèñòðàöèÿ', '', '', 1, 4, '283', 'capitalcity', " . time(
) . ", 0, 0, '', " . time() . ", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);"
);
mysql_query('UPDATE `users` SET `online` = "' . time() . '" WHERE `id` = "' . $uid . '" LIMIT 1');
//Ñîçäàåì ñòàòû ïåðñîíàæà
mysql_query("INSERT INTO `online` (`uid`,`timeStart`) VALUES ('" . $uid . "','" . time() . "')");
//äîáîâëÿåì áëàãîäàòü àíãåëà 1í äåíü
$ttime = time();
mysql_query(
"INSERT INTO `eff_users`(`id_eff`, `uid`, `name`, `data`, `overType`, `timeUse`, `timeAce`, `user_use`, `delete`, `v1`, `v2`, `img2`, `x`, `hod`, `bj`, `sleeptime`, `no_Ace`, `file_finish`, `tr_life_user`, `deactiveTime`, `deactiveLast`, `mark`, `bs`) VALUES
(412,'" . $uid . "','Áëàãîäàòü Àíãåëà [1]','add_gold=1|add_speedhp=35|add_speedmp=35|add_exp=35|add_repair_discount=25|add_speed_dungeon=10|add_hpVinos=5|add_m10=5|add_m11=5|add_za=25|add_zma=25',52," . $ttime . ",0,'',0,0,0,'',1,-1,0,0,1,'',0,0,0,0,0)"
);
//ìóëüòû
$ipm1 = mysql_fetch_array(
mysql_query(
'SELECT * FROM `logs_auth` WHERE `uid` = "' . mysql_real_escape_string(
$uid
) . '" AND `ip`!="' . mysql_real_escape_string(UserIp::get()) . '" ORDER BY `id` ASC LIMIT 1'
)
);
$ppl = mysql_query(
'SELECT * FROM `logs_auth` WHERE `ip`!="" AND (`ip` = "' . mysql_real_escape_string(
UserIp::get()
) . '" OR `ip`="' . mysql_real_escape_string($ipm1['ip']) . '" OR `ip`="' . mysql_real_escape_string(
$_COOKIE['ip']
) . '")'
);
while ($spl = mysql_fetch_array($ppl)) {
$ml = mysql_fetch_array(
mysql_query(
'SELECT `id` FROM `mults` WHERE (`uid` = "' . $spl['uid'] . '" AND `uid2` = "' . $uid . '") OR (`uid2` = "' . $spl['uid'] . '" AND `uid` = "' . $uid . '") LIMIT 1'
)
);
if (!isset($ml['id']) && $spl['ip'] != '' && $spl['ip'] != '127.0.0.1') {
mysql_query(
'INSERT INTO `mults` (`uid`,`uid2`,`ip`) VALUES ("' . $uid . '","' . $spl['uid'] . '","' . $spl['ip'] . '")'
);
}
}
mysql_query(
"INSERT INTO `logs_auth` (`uid`,`ip`,`browser`,`type`,`time`,`depass`) VALUES ('" . $uid . "','" . mysql_real_escape_string(
UserIp::get()
) . "','" . mysql_real_escape_string($_SERVER['HTTP_USER_AGENT']) . "','1','" . time() . "','')"
);
//Îáíîâÿåì òàáëèöû
mysql_query(
"UPDATE `users` SET `online`='" . time() . "',`ip` = '" . mysql_real_escape_string(
UserIp::get()
) . "' WHERE `uid` = '" . $uid . "' LIMIT 1"
);
if (!setcookie(
'login', $_POST['nick_u'], (time() + 60 * 60 * 24 * 7), '', '.new-combats.com'
) || !setcookie('pass', md5($_POST['pass1_u']), (time() + 60 * 60 * 24 * 7), '', '.new-combats.com')) {
die('Îøèáêà ñîõðàíåíèÿ cookie.');
} else {
die(
'Ñïàñèáî çà ðåãèñòðàöèþ â èãðîâîì ìèðå Áîéöîâñêîãî Êëóáà, æåëàåì âàì ïîáåä è äîëãîé èãðû.
 ñëó÷àå âîïðîñîâ ïî èãðå, Âàì áóäåò äîñòóïåí îáùèé ÷àò!<br><script>function test(){ top.location.href="https://new-combats.com/bk"; } setTimeout("test()",100);</script>'
);
}
}
//================================
} else {
?>
<div class="visible_class_s">
<p><input class="box" type="submit"/></p>
</div>
</form>
<?php
}
}