dev-runes #7

Merged
lopar merged 14 commits from dev-runes into master 2022-06-11 11:32:32 +00:00
6 changed files with 3528 additions and 4507 deletions
Showing only changes of commit bd8e28bed9 - Show all commits

33
_incl_data/mails.php Normal file
View File

@ -0,0 +1,33 @@
<?php
/** Îòïðàâêà ïî÷òû */
function mails($to, $message, $subject = 'Áîéöîâñêèé êëóá')
{
require '_incl_data/class/mail/class.phpmailer.php';
$message = mb_convert_encoding($message, 'UTF-8', 'CP1251');
$mail = new PHPMailer;
$mail->IsSMTP(); // Set mailer to use SMTP
$mail->Host = 'smtp.mail.yahoo.com'; // Specify main and backup server
$mail->SMTPAuth = true; // Enable SMTP authentication
$mail->Username = 'newcombats@yahoo.com'; // SMTP username
$mail->Password = 'uqcdbnsoagxcyysh';
$mail->SMTPSecure = 'tls'; // Enable encryption, 'ssl' also accepted
$mail->Port = 587;
$mail->CharSet = 'UTF-8';
$mail->From = 'newcombats@yahoo.com';
$mail->FromName = 'Áîéöîâñêèé Êëóá';
$mail->AddAddress($to); // Add a recipient
$mail->IsHTML(true); // Set email format to HTML
$mail->Subject = $subject;
$mail->Body = '<div>' . $message . '</div>';
$mail->AltBody = $message;
if (!$mail->Send()) {
return 'Message could not be sent. Mailer Error: ' . $mail->ErrorInfo;
}
return 1;
}

View File

@ -1,60 +1,26 @@
<?php
if(!defined('GAME'))
{
if (!defined('GAME')) {
die();
}
if(!function_exists('send_mime_mail')) {
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";
require_once '_incl_data/mails.php';
return mail($to, $subject, $body, $headers);
}
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) . '?=';
}
}
if($u->room['file']=='an/bank')
{
if ($u->room['file'] == 'an/bank') {
$noc = 60; //120 kr = 1 ekr.
$con = 20; //1 åêð. = 30 êð.
function getNum($v)
{
$plid = $v;
$pi = iconv_strlen($plid);
if($pi<5)
{
if ($pi < 5) {
$i = 0;
while($i<=5-$pi)
{
while ($i <= 5 - $pi) {
$plid = '0' . $plid;
$i++;
}
}
return $plid;
}
function getNumId($v)
{
$plid = $v;
@ -62,10 +28,13 @@ if($u->room['file']=='an/bank')
$ends = 0;
$result = '';
for ($i = 0, $end = (count($array) - 1); $i <= $end; $i++) {
if($array[$i]==0 and $ends==0){$array[$i]='';}else{$ends=1;}
if ($array[$i] == 0 && $ends == 0) {
$array[$i] = '';
} else {
$ends = 1;
}
$result .= $array[$i];
}
//print_r($array);
return $result;
}
@ -74,24 +43,19 @@ if($u->room['file']=='an/bank')
}
$re2 = '';
if(isset($_GET['enter']) && !isset($u->bank['id']))
{
if (isset($_GET['enter']) && !isset($u->bank['id'])) {
$bank = mysql_fetch_array(mysql_query('SELECT * FROM `bank` WHERE `uid` = "' . $u->info['id'] . '" AND `id` = "' . mysql_real_escape_string((int)$_POST['bank']) . '" LIMIT 1'));
if(!isset($bank['id']))
{
if (!isset($bank['id'])) {
$re2 = 'Íåâåðíûé íîìåð ñ÷åòà.';
}elseif($bank['pass']!=$_POST['pass'])
{
} elseif ($bank['pass'] != $_POST['pass']) {
$pl = mysql_fetch_array(mysql_query('SELECT COUNT(*) FROM `actions` WHERE `uid` = "' . $u->info['id'] . '" AND `time` > "' . (time() - 60 * 60) . '" AND `vars` = "bank_bad_pass_' . mysql_real_escape_string($bank['id']) . '" LIMIT 5'));
if($pl[0]>=3)
{
if ($pl[0] >= 3) {
$re2 = 'Âàø ñ÷åò áûë çàáëîêèðîâàí íà 1 ÷àñ';
} else {
if($pl[0]==0)
{
if ($pl[0] == 0) {
$re2 = 'Íåâåðíûé íîìåð ñ÷åòà èëè ïàðîëü. Åñëè âû òðèæäû ââåäåòå íåâåðíûé íîìåð ñ÷åòà èëè ïàðîëü, ñ÷åò áóäåò çàáëîêèðîâàí íà ÷àñ';
} else {
$pp = array(0=>'îê',1=>'êà',2=>'êè',3=>'êè');
$pp = [0 => 'îê', 1 => 'êà', 2 => 'êè', 3 => 'êè'];
$re2 = 'Íåâåðíûé íîìåð ñ÷åòà èëè ïàðîëü. Ó âàñ îñòàëîñü ' . (3 - $pl[0]) . ' ïîïûò' . $pp[3 - $pl[0]] . ', â ïðîòèâíîì ñëó÷àè ñ÷åò áóäåò çàáëîêèðîâàí íà ÷àñ';
}
mysql_query('INSERT INTO `actions` (`uid`,`time`,`city`,`room`,`vars`,`ip`) VALUES ("' . $u->info['id'] . '","' . time() . '","' . $u->info['city'] . '","' . $u->info['room'] . '","bank_bad_pass_' . mysql_real_escape_string($bank['id']) . '","' . mysql_real_escape_string($_SERVER['HTTP_X_REAL_IP']) . '")');
@ -109,46 +73,36 @@ if($u->room['file']=='an/bank')
$u->bank = $bank;
}
}
}elseif(isset($_GET['res']))
{
} elseif (isset($_GET['res'])) {
//echo $_GET['schet'].'<br>';
$b_pass = mysql_fetch_array(mysql_query('SELECT * FROM `bank` WHERE `uid` = "' . $u->info['id'] . '" AND `id` = "' . mysql_real_escape_string(getNumId($_GET['schet'])) . '" ORDER BY `id` DESC LIMIT 1'));
if($b_pass['repass'] >= time())
{
if ($b_pass['repass'] >= time()) {
$re2 = 'Íîìåðà ñ÷åòîâ è ïàðîëè ê íèì ìîæíî âûñëàòü òîëüêî îäèí ðàç â ñóòêè';
} else {
mysql_query('INSERT INTO `actions` (`uid`,`time`,`city`,`room`,`vars`,`ip`) VALUES ("' . $u->info['id'] . '","' . time() . '","' . $u->info['city'] . '","' . $u->info['room'] . '","bank_res","' . mysql_real_escape_string($_SERVER['HTTP_X_REAL_IP']) . '")');
$re2 = 'Âûñëàí íîìåð ñ÷åòà è ïàðîëü íà email, óêàçàííûé â àíêåòå';
mysql_query('UPDATE `bank` SET `repass` = "' . (time() + 24 * 3600) . '" WHERE `id` = "' . $b_pass['id'] . '" LIMIT 1');
send_mime_mail('Áîéöîâñêèé Êëóá - Support',
'support@new-combats.com',
''.$u->info['login'].'',
$u->info['mail'],
'CP1251', // êîäèðîâêà, â êîòîðîé íàõîäÿòñÿ ïåðåäàâàåìûå ñòðîêè
'KOI8-R', // êîäèðîâêà, â êîòîðîé áóäåò îòïðàâëåíî ïèñüìî
'Âîññòàíîâëåíèå ïàðîëÿ îò ñ÷åòà â áàíêå ïåðñîíàæà '.$u->info['login'].'',
"Íîìåð ñ÷åòà: ".getNum($b_pass['id'])."<br>Ïàðîëü: ".$b_pass['pass'].'<br><br>Ñ óâàæåíèåì,<br>Àäìèíèñòðàöèÿ Áîéöîâñêîãî Êëóáà');
$subject = 'Âîññòàíîâëåíèå ïàðîëÿ îò ñ÷åòà â áàíêå ïåðñîíàæà ' . $u->info['login'];
$message = 'Íîìåð ñ÷åòà: ' . getNum($b_pass['id']) . '<br>Ïàðîëü: ' . $b_pass['pass'] .
'<br><br>Ñ óâàæåíèåì,<br>Àäìèíèñòðàöèÿ Áîéöîâñêîãî Êëóáà';
mails($u->info['mail'], $message, $subject);
unset($subject, $message);
}
}elseif(isset($_GET['open']) && !isset($u->bank['id']))
{
} elseif (isset($_GET['open']) && !isset($u->bank['id'])) {
if ($_POST['rdn01'] == 2 && ($u->info['level'] >= 8 || $u->info['money4'] < 15)) {
$re2 = 'Íåäîñòàòî÷íî çóáîâ!';
}elseif($u->info['money']>=3 || ($u->info['level'] < 8 && $u->info['money4'] >= 15 ))
{
} elseif ($u->info['money'] >= 3 || ($u->info['level'] < 8 && $u->info['money4'] >= 15)) {
if ($_POST['pass1'] == '' || $_POST['pass1'] == ' ') {
$re2 = 'Âû íå óêàçàëè ïàðîëü!';
} elseif ($_POST['pass1'] != $_POST['pass2']) {
$re2 = 'Ïàðîëè íå ñîâïàäàþò!';
} elseif ($u->info['money'] - 3 < 0 && $_POST['rdn01'] != 2) {
$re2 = 'Ó âàñ íåäîñòàòî÷íî êð.';
}elseif($u->info['align']!=2)
{
} elseif ($u->info['align'] != 2) {
$pass = rand(10000, 91191);
$pass = htmlspecialchars($_POST['pass1'],NULL,'cp1251');
$pass = htmlspecialchars($_POST['pass1'], null, 'cp1251');
$ins = mysql_query('INSERT INTO `bank` (`uid`,`create`,`pass`) VALUES ("' . $u->info['id'] . '","' . time() . '","' . $pass . '")');
if($ins)
{
if ($ins) {
$bank = mysql_insert_id();
if ($u->info['level'] < 8 && $_POST['rdn01'] == 2) {
$u->info['money4'] -= 15;
@ -171,8 +125,7 @@ if($u->room['file']=='an/bank')
$re2 = 'Äëÿ îòêðûòèÿ ñ÷åòà íåîáõîäèìî èìåòü ïðè ñåáå <b>3.00 êð.</b>';
}
}
}elseif(isset($_GET['exit']) && isset($u->bank['id']))
{
} elseif (isset($_GET['exit']) && isset($u->bank['id'])) {
$u->bank = false;
mysql_query('UPDATE `bank` SET `useNow` = "0" WHERE `uid` = "' . $u->info['id'] . '" AND `useNow`!="0" LIMIT 1');
}
@ -181,32 +134,24 @@ if($u->room['file']=='an/bank')
$u->bank = false;
}
if(isset($u->bank['id']))
{
if(isset($_POST['sd4']) && $u->newAct($_POST['sd4']))
{
if(isset($_POST['transfer_kredit2']) && $u->info['admin']>0)
{
if (isset($u->bank['id'])) {
if (isset($_POST['sd4']) && $u->newAct($_POST['sd4'])) {
if (isset($_POST['transfer_kredit2']) && $u->info['admin'] > 0) {
//ïåðåâîä åêðåäèòîâ ñ îäíîãî ñ÷åòà íà äðóãîé
$ub = mysql_fetch_array(mysql_query('SELECT * FROM `bank` WHERE `id` = "' . mysql_real_escape_string((int)$_POST['num2']) . '" LIMIT 1'));
if(isset($ub['id']) && $ub['id']!=$u->bank['id'])
{
if (isset($ub['id']) && $ub['id'] != $u->bank['id']) {
$ut = mysql_fetch_array(mysql_query('SELECT `id`,`level`,`city`,`room`,`login` FROM `users` WHERE `id` = "' . mysql_real_escape_string($ub['uid']) . '" LIMIT 1'));
if($ut['level']>=0 || $ut['id']==$u->info['id'] || $u->info['admin']>0)
{
if ($ut['level'] >= 0 || $ut['id'] == $u->info['id'] || $u->info['admin'] > 0) {
$mn = floor((int)($_POST['tansfer_sum2'] * 100));
$mn = round(($mn / 100), 2);
$prc = 0;
$mn += $prc;
if($u->bank['money2']>=$mn)
{
if($mn<0.01 || $mn>1000000000)
{
if ($u->bank['money2'] >= $mn) {
if ($mn < 0.01 || $mn > 1000000000) {
$re2 = 'Íåâåðíî óêàçàíà ñóììà';
} else {
$upd = mysql_query('UPDATE `bank` SET `money2` = "' . mysql_real_escape_string($u->bank['money2'] - $mn) . '" WHERE `id` = "' . $u->bank['id'] . '" LIMIT 1');
if($upd)
{
if ($upd) {
$u->bank['money2'] -= $mn;
$ub['money2'] += $mn - $prc;
@ -220,11 +165,9 @@ if($u->room['file']=='an/bank')
$log = '&quot;' . $u->info['login'] . '&quot;&nbsp;[' . $u->info['level'] . '] ïåðåâåë ñî ñâîåãî áàíêîâñêîãî ñ÷åòà ¹' . $u->bank['id'] . ' íà ñ÷åò ¹' . $ub['id'] . ' ê ïåðñîíàæó &quot;' . $ut['login'] . '&quot;&nbsp;[' . $ut['level'] . '] ' . ($mn - $prc) . ' åêð.';
$u->addDelo(1, $u->info['id'], $log, time(), $u->info['city'], 'Bank.System', 0, 0, '');
$u->addDelo(1, $ut['id'], $log, time(), $ut['city'], 'Bank.System', 0, 0, '');
if($ut['id']!=$u->info['id'])
{
if ($ut['id'] != $u->info['id']) {
$alg = '';
if($u->info['align']==50)
{
if ($u->info['align'] == 50) {
$alg = '<img src=https://img.new-combats.com/i/align/align50.gif >';
}
$text = '&quot;' . $alg . '[login:' . $u->info['login'] . ']&quot; ïåðåâåë' . ($u->info['sex'] == 0 ? "" : "à") . ' âàì <b>' . ($mn - $prc) . ' åêð.</b> ñî ñâîåãî áàíêîâñêîãî ñ÷åòà ¹' . getNum($u->bank['id']) . ' íà âàø áàíêîâñêèé ñ÷åò ¹' . getNum($ub['id']) . '.';
@ -244,30 +187,23 @@ if($u->room['file']=='an/bank')
} else {
$re2 = 'Íåëüçÿ ïåðåâåñòè êðåäèòû íà ýòîò ñ÷åò';
}
}elseif(isset($_POST['transfer_kredit']) && $u->info['align']!=2)
{
} elseif (isset($_POST['transfer_kredit']) && $u->info['align'] != 2) {
//ïåðåâîä êðåäèòîâ ñ îäíîãî ñ÷åòà íà äðóãîé
if($u->info['level']>=4 || $u->info['admin']>0)
{
if ($u->info['level'] >= 4 || $u->info['admin'] > 0) {
$ub = mysql_fetch_array(mysql_query('SELECT * FROM `bank` WHERE `id` = "' . mysql_real_escape_string((int)$_POST['num']) . '" LIMIT 1'));
if(isset($ub['id']) && $ub['id']!=$u->bank['id'])
{
if (isset($ub['id']) && $ub['id'] != $u->bank['id']) {
$ut = mysql_fetch_array(mysql_query('SELECT `id`,`level`,`city`,`room`,`login` FROM `users` WHERE `id` = "' . mysql_real_escape_string($ub['uid']) . '" LIMIT 1'));
if($ut['level']>=4 || $ut['id']==$u->info['id'] || $u->info['admin']>0)
{
if ($ut['level'] >= 4 || $ut['id'] == $u->info['id'] || $u->info['admin'] > 0) {
$mn = floor((int)($_POST['tansfer_sum'] * 100));
$mn = round(($mn / 100), 2);
$prc = round($mn * 3 / 100, 2);
$mn += $prc;
if($u->bank['money1']>=$mn)
{
if($mn<0.01 || $mn>1000000000)
{
if ($u->bank['money1'] >= $mn) {
if ($mn < 0.01 || $mn > 1000000000) {
$re2 = 'Íåâåðíî óêàçàíà ñóììà';
} else {
$upd = mysql_query('UPDATE `bank` SET `money1` = "' . mysql_real_escape_string($u->bank['money1'] - $mn) . '" WHERE `id` = "' . $u->bank['id'] . '" LIMIT 1');
if($upd)
{
if ($upd) {
$u->bank['money1'] -= $mn;
$ub['money1'] += $mn - $prc;
mysql_query('UPDATE `bank` SET `money1` = "' . mysql_real_escape_string($ub['money1']) . '" WHERE `id` = "' . $ub['id'] . '" LIMIT 1');
@ -277,8 +213,7 @@ if($u->room['file']=='an/bank')
$log = '&quot;' . $u->info['login'] . '&quot;&nbsp;[' . $u->info['level'] . '] ïåðåâåë ñî ñâîåãî áàíêîâñêîãî ñ÷åòà ¹' . $u->bank['id'] . ' íà ñ÷åò ¹' . $ub['id'] . ' ê ïåðñîíàæó &quot;' . $ut['login'] . '&quot;&nbsp;[' . $ut['level'] . '] ' . ($mn - $prc) . ' êð. Äîïîëíèòåëüíî ñíÿòî ' . $prc . ' êð. çà óñëóãè áàíêà.';
$u->addDelo(1, $u->info['id'], $log, time(), $u->info['city'], 'Bank.System', 0, 0, '');
$u->addDelo(1, $ut['id'], $log, time(), $ut['city'], 'Bank.System', 0, 0, '');
if($ut['id']!=$u->info['id'])
{
if ($ut['id'] != $u->info['id']) {
$text = '&quot;[login:' . $u->info['login'] . ']&quot; ïåðåâåë' . ($u->info['sex'] == 0 ? "" : "à") . ' âàì <b>' . ($mn - $prc) . ' êð.</b> ñî ñâîåãî áàíêîâñêîãî ñ÷åòà ¹' . getNum($u->bank['id']) . ' íà âàø áàíêîâñêèé ñ÷åò ¹' . getNum($ub['id']) . '.';
mysql_query("INSERT INTO `chat` (`new`,`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`,`typeTime`) VALUES (1,'" . $ut['city'] . "','" . $ut['room'] . "','','" . $ut['login'] . "','" . $text . "','" . time() . "','6','0','1')");
}
@ -339,20 +274,16 @@ if($u->room['file']=='an/bank')
} else {
$re2 = 'Âû äîëæíû ïðîéòè ïðîâåðêó íà ÷èñòîòó ó Ïàëàäèíîâ èëè Òàðìàíîâ.';
}
}elseif(isset($_POST['convert_ekredit']))
{
} elseif (isset($_POST['convert_ekredit'])) {
//îáìåíÿòü åêð. íà êð.
$mn = ceil((int)($_POST['convert_sum'] * 100));
$mn = round(($mn / 100), 2);
if($u->bank['money2']>=$mn)
{
if($mn<0.01 || $mn>1000000000)
{
if ($u->bank['money2'] >= $mn) {
if ($mn < 0.01 || $mn > 1000000000) {
$re2 = 'Íåâåðíî óêàçàíà ñóììà';
} else {
$upd = mysql_query('UPDATE `bank` SET `money1` = "' . mysql_real_escape_string($u->bank['money1'] + ($mn * $con)) . '",`money2` = "' . mysql_real_escape_string($u->bank['money2'] - $mn) . '" WHERE `id` = "' . $u->bank['id'] . '" LIMIT 1');
if($upd)
{
if ($upd) {
$u->bank['money1'] += $mn * $con;
$u->bank['money2'] -= $mn;
$u->addDelo(3, $u->info['id'], 'Âû îáìåíÿëè <b>' . $mn . ' åêð.</b> íà <b>' . ($mn * $con) . ' êð.</b>, êîìèññèÿ <b>0 êð.</b> <i>(Èòîãî: ' . $u->bank['money1'] . ' êð., ' . $u->bank['money2'] . ' åêð.)</i>', time(), $u->info['city'], 'Bank.System', 0, mysql_real_escape_string($mn * $con), $u->bank['id']);
@ -364,20 +295,16 @@ if($u->room['file']=='an/bank')
} else {
$re2 = 'Ó âàñ íåò <b>' . $mn . ' åêð.</b> íà ñ÷åòå';
}
}elseif(isset($_POST['get_kredit']))
{
} elseif (isset($_POST['get_kredit'])) {
//ïîëîæèòü äåíüãè íà ñ÷åò
$mn = floor((int)($_POST['get_sum'] * 100));
$mn = round(($mn / 100), 2);
if($u->bank['money1']>=$mn)
{
if($mn<0.01 || $mn>1000000000)
{
if ($u->bank['money1'] >= $mn) {
if ($mn < 0.01 || $mn > 1000000000) {
$re2 = 'Íåâåðíî óêàçàíà ñóììà';
} else {
$upd = mysql_query('UPDATE `users` SET `money` = "' . mysql_real_escape_string($u->info['money'] + $mn) . '" WHERE `id` = "' . $u->info['id'] . '" LIMIT 1');
if($upd)
{
if ($upd) {
$u->bank['money1'] -= $mn;
$u->info['money'] += $mn;
mysql_query('UPDATE `bank` SET `money1` = "' . mysql_real_escape_string($u->bank['money1']) . '" WHERE `id` = "' . $u->bank['id'] . '" LIMIT 1');
@ -390,20 +317,16 @@ if($u->room['file']=='an/bank')
} else {
$re2 = 'Ó âàñ íåò <b>' . $mn . ' êð.</b> íà ñ÷åòå';
}
}elseif(isset($_POST['add_kredit']))
{
} elseif (isset($_POST['add_kredit'])) {
//ïîëîæèòü äåíüãè íà ñ÷åò
$mn = floor((int)($_POST['add_sum'] * 100));
$mn = round(($mn / 100), 2);
if($u->info['money']>=$mn)
{
if($mn<0.01 || $mn>1000000000)
{
if ($u->info['money'] >= $mn) {
if ($mn < 0.01 || $mn > 1000000000) {
$re2 = 'Íåâåðíî óêàçàíà ñóììà';
} else {
$upd = mysql_query('UPDATE `users` SET `money` = "' . mysql_real_escape_string($u->info['money'] - $mn) . '" WHERE `id` = "' . $u->info['id'] . '" LIMIT 1');
if($upd)
{
if ($upd) {
$u->bank['money1'] += $mn;
$u->info['money'] -= $mn;
mysql_query('UPDATE `bank` SET `money1` = "' . mysql_real_escape_string($u->bank['money1']) . '" WHERE `id` = "' . $u->bank['id'] . '" LIMIT 1');
@ -416,24 +339,19 @@ if($u->room['file']=='an/bank')
} else {
$re2 = 'Ó âàñ íåò ïðè ñåáå <b>' . $mn . ' êð.</b>';
}
}elseif(isset($_POST['change_psw2']))
{
} elseif (isset($_POST['change_psw2'])) {
//ñìåíà ïàðîëÿ ñ÷åòà
$sm = $u->testAction('`uid` = "' . $u->info['id'] . '" AND `vals` = "id=' . $u->bank['id'] . '&new_pass=' . $u->bank['pass'] . '" AND `vars` = "bank_new_pass" AND `time` > "' . (time() - 24 * 60 * 60) . '" LIMIT 1', 1);
if($_POST['new_psw1']!=$_POST['new_psw2'])
{
if ($_POST['new_psw1'] != $_POST['new_psw2']) {
$re2 = 'Ïàðîëè íå ñîâïàäàþò';
}elseif(iconv_strlen($_POST['new_psw1'])<6 || iconv_strlen($_POST['new_psw1'])>32)
{
} elseif (iconv_strlen($_POST['new_psw1']) < 6 || iconv_strlen($_POST['new_psw1']) > 32) {
$re2 = 'Ïàðîëü íå ìîæåò áûòü êîðî÷å 6 èëè äëèíåå 32 ñèìâîëîâ';
}elseif(isset($sm['id']))
{
} elseif (isset($sm['id'])) {
$re2 = 'Íåëüçÿ ìåíÿòü ïàðîëü ÷àùå îäíîãî ðàçà â äåíü';
} else {
//ìåíÿåì
$upd = mysql_query('UPDATE `bank` SET `pass` = "' . mysql_real_escape_string($_POST['new_psw1']) . '" WHERE `id` = "' . $u->bank['id'] . '" LIMIT 1');
if($upd)
{
if ($upd) {
$u->addAction(time(), 'bank_new_pass', 'id=' . $u->bank['id'] . '&new_pass=' . $_POST['new_psw1'] . '');
$u->bank['pass'] = $_POST['new_psw1'];
$re2 = 'Ïàðîëü îò ñ÷åòà ¹<b>' . getNum($u->bank['id']) . '</b> áûë óñïåøíî èçìåíåí<br>Íîâûé ïàðîëü: <b>' . $u->bank['pass'] . '</b>';
@ -446,26 +364,37 @@ if($u->room['file']=='an/bank')
}
}
if($re!=''){ echo '<div align="right"><font color="red"><b>'.$re.'</b></font></div>'; } ?>
if ($re != '') {
echo '<div align="right"><font color="red"><b>' . $re . '</b></font></div>';
} ?>
<style type="text/css">
.pH3 { COLOR: #8f0000; FONT-FAMILY: Arial; FONT-SIZE: 12pt; FONT-WEIGHT: bold; }
.pH3 {
COLOR: #8f0000;
FONT-FAMILY: Arial;
FONT-SIZE: 12pt;
FONT-WEIGHT: bold;
}
.class_ {
font-weight: bold;
color: #C5C5C5;
cursor: pointer;
}
.class_st {
font-weight: bold;
color: #659BA3;
cursor: pointer;
}
.class__ {
font-weight: bold;
color: #FFFFFF;
cursor: pointer;
background-color: #659BA3;
}
.class__st {
font-weight: bold;
color: #FFFFFF;
@ -473,11 +402,13 @@ if($u->room['file']=='an/bank')
background-color: #659BA3;
font-size: 10px;
}
.class_old {
font-weight: bold;
color: #919191;
cursor: pointer;
}
.class__old {
font-weight: bold;
color: #FFFFFF;
@ -487,39 +418,56 @@ if($u->room['file']=='an/bank')
}
</style>
<TABLE width="100%" cellspacing="0" cellpadding="0">
<tr><td>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center">
<td>
<div align="center">
<div align="center" class="pH3">
<h3>Áàíê<br/></h3>
</div>
</div></td>
</div>
</td>
<td width="200">
<div style="float:right;">
<table cellspacing="0" cellpadding="0">
<tr>
<td width="100%">&nbsp;</td>
<td><table border="0" cellpadding="0" cellspacing="0">
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr align="right" valign="top">
<td><!-- -->
<? echo $goLis; ?>
<!-- -->
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td nowrap="nowrap"><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#DEDEDE">
<td nowrap="nowrap">
<table width="100%" border="0" cellpadding="0" cellspacing="1"
bgcolor="#DEDEDE">
<tr>
<td bgcolor="#D3D3D3"><img src="https://img.new-combats.com/i/move/links.gif" width="9" height="7" /></td>
<td bgcolor="#D3D3D3" nowrap="nowrap"><a href="#" id="greyText" class="menutop" onclick="location='main.php?loc=2.180.0.236&rnd=<? echo $code; ?>';" title="<? thisInfRm('2.180.0.236',1); ?>">Ñòðàøèëêèíà óëèöà</a></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
<td bgcolor="#D3D3D3"><img
src="https://img.new-combats.com/i/move/links.gif"
width="9" height="7"/></td>
<td bgcolor="#D3D3D3" nowrap="nowrap"><a href="#"
id="greyText"
class="menutop"
onclick="location='main.php?loc=2.180.0.236&rnd=<? echo $code; ?>';"
title="<? thisInfRm('2.180.0.236', 1); ?>">Ñòðàøèëêèíà
óëèöà</a></td>
</tr>
</table>
</div></td>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
<TABLE width="100%" cellspacing="0" cellpadding="4">
@ -531,13 +479,15 @@ if($u->room['file']=='an/bank')
</TR>
<TR>
<TD valign="top" align="left">
<? if($re2!=''){ echo '<div align="left"><font color="red">'.$re2.'</font></div><br>'; }
if(!isset($u->bank['id']))
{
<? if ($re2 != '') {
echo '<div align="left"><font color="red">' . $re2 . '</font></div><br>';
}
if (!isset($u->bank['id'])) {
?>
Ìû ïðåäîñòàâëÿåì ñëåäóþùèå óñëóãè:
<OL>
<LI>Îòêðûòèå ñ÷åòà<LI>Âîçìîæíîñòü ïîëîæèòü/ñíÿòü êðåäèòû/åâðîêðåäèòû ñî ñ÷åòà
<LI>Îòêðûòèå ñ÷åòà
<LI>Âîçìîæíîñòü ïîëîæèòü/ñíÿòü êðåäèòû/åâðîêðåäèòû ñî ñ÷åòà
<LI>Ïåðåâåñòè êðåäèòû/åâðîêðåäèòû ñ îäíîãî ñ÷åòà íà äðóãîé
<LI>Îáìåííûé ïóíêò. Îáìåí åâðîêðåäèòîâ íà êðåäèòû
</OL>
@ -552,19 +502,23 @@ if($u->room['file']=='an/bank')
}
</script>
<FORM action="main.php?open&rnd=<? echo $code; ?>" method="POST">
Õîòèòå îòêðûòü ñâîé ñ÷åò? Óñëóãà ïëàòíàÿ: <INPUT onclick="hidecreatefx();" TYPE="button" value="Îòêðûòü ñ÷åò">
Õîòèòå îòêðûòü ñâîé ñ÷åò? Óñëóãà ïëàòíàÿ: <INPUT onclick="hidecreatefx();" TYPE="button"
value="Îòêðûòü ñ÷åò">
<div id="hidecreate" style="display:none">
<FIELDSET style="width:300px;"><LEGEND><B>Îòêðûòèå ñ÷åòà</B> </LEGEND>
<FIELDSET style="width:300px;">
<LEGEND><B>Îòêðûòèå ñ÷åòà</B></LEGEND>
<small>
<? if ($u->info['level'] < 8) { ?>
<center>
<input name="rdn01" type="radio" value="1"> <b>3.00 êð.</b> &nbsp; &nbsp; <input name="rdn01" type="radio" value="2"> <?=$u->zuby(15)?> &nbsp; &nbsp; &nbsp;
<input name="rdn01" type="radio" value="1"> <b>3.00 êð.</b> &nbsp; &nbsp; <input
name="rdn01" type="radio" value="2"> <?= $u->zuby(15) ?> &nbsp; &nbsp; &nbsp;
</center>
<hr/>
<? } else {
?>
<center>
<input checked="checked" name="rdn01" type="radio" value="1"> <b>3.00 êð.</b> &nbsp; &nbsp; &nbsp;
<input checked="checked" name="rdn01" type="radio" value="1"> <b>3.00 êð.</b> &nbsp;
&nbsp; &nbsp;
</center>
<hr/>
<?
@ -573,6 +527,7 @@ if($u->room['file']=='an/bank')
fieldset {
border: 1px solid #AEAEAE;
}
hr {
border: 0;
border-bottom: 1px solid #aeaeae;
@ -597,24 +552,33 @@ if($u->room['file']=='an/bank')
</FORM>
<form action="main.php?enter&rnd=<? echo $code; ?>" method="POST">
<br/>
<FIELDSET style="width:300px;"><LEGEND><B>Óïðàâëåíèå ñ÷åòîì</B> </LEGEND>
<FIELDSET style="width:300px;">
<LEGEND><B>Óïðàâëåíèå ñ÷åòîì</B></LEGEND>
<TABLE width="300">
<TR><TD valign=top>
<TR>
<TD valign=top>
<TABLE>
<TR><TD>Íîìåð ñ÷åòà</td> <TD colspan=2><select name="bank" size=0 style="width: 90px">
<TR>
<TD>Íîìåð ñ÷åòà</td>
<TD colspan=2><select name="bank" size=0 style="width: 90px">
<?
$sp = mysql_query('SELECT * FROM `bank` WHERE `uid` = "' . $u->info['id'] . '" AND `block` = "0"');
while($pl = mysql_fetch_array($sp))
{
while ($pl = mysql_fetch_array($sp)) {
?>
<option value="<? echo $pl['id']; ?>" selected="selected"><? echo getNum($pl['id']); ?></option>
<option value="<? echo $pl['id']; ?>"
selected="selected"><? echo getNum($pl['id']); ?></option>
<?
}
?>
</select></td></tr>
<TR><TD>Ïàðîëü</td><td> <INPUT style='width:90;' type="password" value="" name="pass"></td>
</select></td>
</tr>
<TR>
<TD>Ïàðîëü</td>
<td><INPUT style='width:90;' type="password" value="" name="pass"></td>
</tr>
<TR>
<TD colspan=3 align=center><INPUT TYPE="submit" value="Âîéòè"></td>
</tr>
<TR><TD colspan=3 align=center><INPUT TYPE="submit" value="Âîéòè"></td></tr>
</TABLE>
</TD>
</TABLE>
@ -624,7 +588,8 @@ if($u->room['file']=='an/bank')
<input type=hidden name='res' value=<? echo $code; ?>>
<br/>
<br/>
Çàáûëè ïàðîëü? Ìîæíî åãî âûñëàòü íà email, íîìåð ñ÷åòà:<input type=text name='schet'> <input type="submit" value="Âûñëàòü" /></TD>
Çàáûëè ïàðîëü? Ìîæíî åãî âûñëàòü íà email, íîìåð ñ÷åòà:<input type=text name='schet'> <input type="submit"
value="Âûñëàòü"/></TD>
</form>
</TR>
</TABLE>
@ -639,13 +604,16 @@ if($u->room['file']=='an/bank')
.pay td {
width: 50px;
}
.pay td img {
display: block;
margin: 1px 0 0 0;
}
.pay td:hover img {
margin: 0 0 1px 0;
}
.pay td:hover img {
filter: progid:DXImageTransform.Microsoft.Alpha(opacity=80); /* IE 5.5+*/
-moz-opacity: 0.8; /* Mozilla 1.6 è íèæå */
@ -660,29 +628,49 @@ if($u->room['file']=='an/bank')
<TABLE width=100%>
<TR>
<TD valign=top width=30%><H4>Óïðàâëåíèå ñ÷åòîì</H4> &nbsp;
<b>Ñ÷¸ò ¹:</b> <? echo getNum($u->bank['id']); ?> <a href="?exit=<? echo $code; ?>" title="Îêîí÷èòü ðàáîòó c òåêóùèì ñ÷åòîì">[x]</a><br>
<b>Ñ÷¸ò ¹:</b> <? echo getNum($u->bank['id']); ?> <a href="?exit=<? echo $code; ?>"
title="Îêîí÷èòü ðàáîòó c òåêóùèì ñ÷åòîì">[x]</a><br>
</TD>
<TD valign=top align=center width=40%>
<TABLE><TR><TD>
<FIELDSET><LEGEND><B>Ó âàñ íà ñ÷åòå</B> </LEGEND>
<TABLE>
<TR><TD>Êðåäèòîâ:</TD><TD><B><? echo $u->round2($u->bank['money1']); ?></B></TD></TR>
<TR><TD>Åâðîêðåäèòîâ:</TD>
<TR>
<TD>
<FIELDSET>
<LEGEND><B>Ó âàñ íà ñ÷åòå</B></LEGEND>
<TABLE>
<TR>
<TD>Êðåäèòîâ:</TD>
<TD><B><? echo $u->round2($u->bank['money1']); ?></B></TD>
</TR>
<TR>
<TD>Åâðîêðåäèòîâ:</TD>
<TD><B><? echo $u->round2($u->bank['money2']); ?></B></TD>
</TR>
<TR><TD colspan=2><HR></TD></TR>
<TR><TD>Ïðè ñåáå íàëè÷íûõ:</TD><TD><B><? echo $u->round2($u->info['money']); ?> êð.</B></TD></TR>
<TR>
<TD colspan=2>
<HR>
</TD>
</TR>
<TR>
<TD>Ïðè ñåáå íàëè÷íûõ:</TD>
<TD><B><? echo $u->round2($u->info['money']); ?> êð.</B></TD>
</TR>
</TABLE>
</FIELDSET>
</TD></TR></TABLE>
</TD>
<TD valign=top align=right width=30%><FONT COLOR=red>Âíèìàíèå!</FONT> Íåêîòîðûå óñëóãè áàíêà ïëàòíûå, î ðàçìåðå âçûìàåìîé êîìèññèè íàïèñàíî â ñîîòâåòñòâóþùåì ðàçäåëå.</TD>
</TR>
</TABLE>
</TD>
<TD valign=top align=right width=30%><FONT COLOR=red>Âíèìàíèå!</FONT> Íåêîòîðûå óñëóãè áàíêà
ïëàòíûå, î ðàçìåðå âçûìàåìîé êîìèññèè íàïèñàíî â ñîîòâåòñòâóþùåì ðàçäåëå.
</TD>
</TR>
</TABLE>
<style>
fieldset {
border: 1px solid #AEAEAE;
}
hr {
border: 0;
border-bottom: 1px solid #aeaeae;
@ -690,16 +678,22 @@ hr {
</style>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50%" valign="top"><table width="100%" cellspacing="5">
<td width="50%" valign="top">
<table width="100%" cellspacing="5">
<tr>
<td width="50%" valign="top"><fieldset style="background-color:#DDEAD7"">
<legend><img src="https://img.new-combats.com/i/align/align50.gif" width="12" height="15" /> <b style="color:#5F3710">Ïðèîáðåòåíèå Åêð. îíëàéí</b> </legend>
<td width="50%" valign="top">
<fieldset style="background-color:#DDEAD7"
">
<legend><img src="https://img.new-combats.com/i/align/align50.gif" width="12"
height="15"/> <b style="color:#5F3710">Ïðèîáðåòåíèå Åêð. îíëàéí</b>
</legend>
<style>
#pay_btn {
background-color: #0099FF;
color: #0FF;
cursor: pointer;
}
#pay_btn:hover {
background-color: #CCC;
color: #FFF;
@ -707,84 +701,113 @@ hr {
}
</style>
Ñóììà åêð.: <input id="pay_in" style="padding-left:2px;width:77px;" value="1.00">
<input id="pay_btn" name="pay_btn" value="Îïëàòèòü" type="button" onclick="window.open('/pay.back.php?ekr='+$('#pay_in').val()+'&code=1&ref=0','_blank');" style="padding:5px;" />
<input id="pay_btn" name="pay_btn" value="Îïëàòèòü" type="button"
onclick="window.open('/pay.back.php?ekr='+$('#pay_in').val()+'&code=1&ref=0','_blank');"
style="padding:5px;"/>
</div>
<div id="pay_block_see" style="display:none;padding-top:5px;border-top:1px solid #AEAEAE;"></div>
<div id="pay_block_see"
style="display:none;padding-top:5px;border-top:1px solid #AEAEAE;"></div>
</fieldset></td>
</tr>
<tr>
<td valign="top" width="50%"><fieldset>
<td valign="top" width="50%">
<fieldset>
<legend><b>Ïîïîëíèòü ñ÷åò</b></legend>
Ñóììà
<input type="text" name="add_sum" id="add_sum" size="6" maxlength="10"/>
êð.
<input type="submit" name="add_kredit" value="Ïîëîæèòü êðåäèòû íà ñ÷åò" onclick="if(Math.round(document.getElementById('add_sum')).value==0) {alert('Óêàæèòå ñóììó è íîìåð ñ÷åòà'); return false;} else {return confirm('Âû õîòèòå ïîëîæèòü íà ñâîé ñ÷åò '+(Math.floor(document.getElementById('add_sum').value*100)/100).toFixed(2)+' êð. ?')}" />
<input type="submit" name="add_kredit" value="Ïîëîæèòü êðåäèòû íà ñ÷åò"
onclick="if(Math.round(document.getElementById('add_sum')).value==0) {alert('Óêàæèòå ñóììó è íîìåð ñ÷åòà'); return false;} else {return confirm('Âû õîòèòå ïîëîæèòü íà ñâîé ñ÷åò '+(Math.floor(document.getElementById('add_sum').value*100)/100).toFixed(2)+' êð. ?')}"/>
<br/>
</fieldset></td>
</fieldset>
</td>
</tr>
<tr>
<td valign="top"><fieldset>
<td valign="top">
<fieldset>
<legend><b>Ïåðåâåñòè êðåäèòû íà äðóãîé ñ÷åò</b></legend>
Ñóììà
<input id="vl1" value="" type="text" name="tansfer_sum" size="6" maxlength="10" />
<input id="vl1" value="" type="text" name="tansfer_sum" size="6"
maxlength="10"/>
êð.<br/>
Íîìåð ñ÷åòà êóäà ïåðåâåñòè êðåäèòû
<input value="" type="text" id="vl2" name="num" size="12" maxlength="15"/>
<br/>
<input type="submit" name="transfer_kredit" value="Ïåðåâåñòè êðåäèòû íà äðóãîé ñ÷åò" onclick="if(Math.round(document.getElementById('vl1')).value==0 || Math.round(document.getElementById('vl2').value)==0) {alert('Óêàæèòå ñóììó è íîìåð ñ÷åòà'); return false;} else {return confirm('Âû õîòèòå ïåðåâåñòè ñî ñâîåãî ñ÷åòà '+(Math.floor(document.getElementById('vl1').value*100)/100).toFixed(2)+' êð. íà ñ÷åò íîìåð '+Math.floor(document.getElementById('vl2').value)+' ?')}" />
<input type="submit" name="transfer_kredit"
value="Ïåðåâåñòè êðåäèòû íà äðóãîé ñ÷åò"
onclick="if(Math.round(document.getElementById('vl1')).value==0 || Math.round(document.getElementById('vl2').value)==0) {alert('Óêàæèòå ñóììó è íîìåð ñ÷åòà'); return false;} else {return confirm('Âû õîòèòå ïåðåâåñòè ñî ñâîåãî ñ÷åòà '+(Math.floor(document.getElementById('vl1').value*100)/100).toFixed(2)+' êð. íà ñ÷åò íîìåð '+Math.floor(document.getElementById('vl2').value)+' ?')}"/>
<br/>
<small>Êîìèññèÿ ñîñòàâëÿåò <b>3.00 %</b> îò ñóììû, íî íå ìåíåå <b>1.00 êð</b>.</small>
</fieldset></td>
<small>Êîìèññèÿ ñîñòàâëÿåò <b>3.00 %</b> îò ñóììû, íî íå ìåíåå <b>1.00
êð</b>.</small>
</fieldset>
</td>
</tr>
<tr>
<td valign="top"><fieldset>
<td valign="top">
<fieldset>
<legend><b>Îáìåííûé ïóíêò</b></legend>
Îáìåíÿòü åâðîêðåäèòû íà êðåäèòû.<br/>
Êóðñ <b>1 åêð.</b> = <b><? echo $con; ?>.00 êð.</b><br/>
Ñóììà
<input type="text" name="convert_sum" id="convert_sum" size="6" maxlength="10"/>
åêð.
<input type="submit" name="convert_ekredit" value="Îáìåíÿòü" <? /*onclick="return confirm('Âû õîòèòå îáìåíÿòü '+(Math.floor(document.getElementById('convert_sum').value*100)/100).toFixed(2)+' åêð. íà '+(Math.floor(document.getElementById('convert_sum').value*100)/100*<? echo (0+$con); ?>).toFixed(2)+' êð. ?');" */ ?> />
</fieldset></td>
<input type="submit" name="convert_ekredit"
value="Îáìåíÿòü" <? /*onclick="return confirm('Âû õîòèòå îáìåíÿòü '+(Math.floor(document.getElementById('convert_sum').value*100)/100).toFixed(2)+' åêð. íà '+(Math.floor(document.getElementById('convert_sum').value*100)/100*<? echo (0+$con); ?>).toFixed(2)+' êð. ?');" */ ?> />
</fieldset>
</td>
</tr>
<? if ($u->info['align'] != 2 && $u->info['haos'] < time() && $u->info['haos'] != 1 && $u->info['align'] != 50 && 1 == 2) { ?>
<tr>
<td valign="top"><fieldset style="background-color:#DDEAD7">
<td valign="top">
<fieldset style="background-color:#DDEAD7">
<legend><b>Îáìåííûé ïóíêò</b></legend>
Îáìåíÿòü êðåäèòû íà åâðîêðåäèòû.<br/>
Êóðñ <b><? echo $noc; ?> êð.</b> = <b>1.00 åêð.</b><br/>
Ñóììà
<input type="text" name="convert_sum2" id="convert_sum2" size="6" maxlength="10" />
<input type="text" name="convert_sum2" id="convert_sum2" size="6"
maxlength="10"/>
êð.
<br/>
<small>Êîìèññèÿ ñîñòàâëÿåò <b>3.00 %</b> îò ñóììû, à òàê-æå <b>5.00 êð</b>.</small>
<input type="submit" name="convert_kredit" value="Îáìåíÿòü" onclick="return confirm('Âû õîòèòå îáìåíÿòü '+(5+Math.floor((document.getElementById('convert_sum2').value)*103)/100).toFixed(2)+' êð. íà '+(Math.floor(document.getElementById('convert_sum2').value*100)/100/<? echo $noc; ?>).toFixed(2)+' åêð. ?');" />
</fieldset></td>
<input type="submit" name="convert_kredit" value="Îáìåíÿòü"
onclick="return confirm('Âû õîòèòå îáìåíÿòü '+(5+Math.floor((document.getElementById('convert_sum2').value)*103)/100).toFixed(2)+' êð. íà '+(Math.floor(document.getElementById('convert_sum2').value*100)/100/<? echo $noc; ?>).toFixed(2)+' åêð. ?');"/>
</fieldset>
</td>
</tr>
<? }
if($u->info['admin']>1000)
{
if ($u->info['admin'] > 1000) {
?>
<tr>
<td valign="top"><fieldset>
<td valign="top">
<fieldset>
<legend><b>Ïåðåâåñòè åâðîêðåäèòû íà äðóãîé ñ÷åò</b></legend>
Ñóììà
<input id="vl12" value="" type="text" name="tansfer_sum2" size="6" maxlength="10" />
<input id="vl12" value="" type="text" name="tansfer_sum2" size="6"
maxlength="10"/>
åêð.<br/>
Íîìåð ñ÷åòà êóäà ïåðåâåñòè êðåäèòû
<input value="" type="text" id="vl22" name="num2" size="12" maxlength="15"/>
<br/>
<input type="submit" name="transfer_kredit2" value="Ïåðåâåñòè åâðîêðåäèòû íà äðóãîé ñ÷åò" onclick="if(Math.round(document.getElementById('vl12')).value==0 || Math.round(document.getElementById('vl22').value)==0) {alert('Óêàæèòå ñóììó è íîìåð ñ÷åòà'); return false;} else {return confirm('Âû õîòèòå ïåðåâåñòè ñî ñâîåãî ñ÷åòà '+(Math.floor(document.getElementById('vl12').value*100)/100).toFixed(2)+' åêð. íà ñ÷åò íîìåð '+Math.floor(document.getElementById('vl22').value)+' ?')}" />
<input type="submit" name="transfer_kredit2"
value="Ïåðåâåñòè åâðîêðåäèòû íà äðóãîé ñ÷åò"
onclick="if(Math.round(document.getElementById('vl12')).value==0 || Math.round(document.getElementById('vl22').value)==0) {alert('Óêàæèòå ñóììó è íîìåð ñ÷åòà'); return false;} else {return confirm('Âû õîòèòå ïåðåâåñòè ñî ñâîåãî ñ÷åòà '+(Math.floor(document.getElementById('vl12').value*100)/100).toFixed(2)+' åêð. íà ñ÷åò íîìåð '+Math.floor(document.getElementById('vl22').value)+' ?')}"/>
<br/>
Êîìèññèÿ ñîñòàâëÿåò <b>0.00 %</b> îò ñóììû, íî íå ìåíåå <b>0.01 åêð</b>.
</fieldset></td>
</fieldset>
</td>
</tr>
<? } ?>
<tr>
<td valign="top"><fieldset>
<td valign="top">
<fieldset>
<legend><b>Íàñòðîéêè</b></legend>
Ó âàñ ðàçðåøåíà âûñûëêà íîìåðà ñ÷åòà è ïàðîëÿ íà email. Åñëè âû íå óâåðåíû â ñâîåì email, èëè óáåæäåíû, ÷òî íå çàáóäåòå ñâîé íîìåð ñ÷åòà è ïàðîëü ê íåìó, òî ìîæåòå çàïðåòèòü âûñûëêó ïàðîëÿ íà email. Ýòî óáåðåæåò âàñ îò êðàæè êðåäèòîâ ñ âàøåãî ñ÷åòà â ñëó÷àå âçëîìà âàøåãî email. Íî åñëè âû ñàìè çàáóäåòå ñâîé íîìåð ñ÷åòà è/èëè ïàðîëü, âàì óæå íèêòî íå ïîìîæåò!<br />
<input type="submit" name="stop_send_email2" value="Çàïðåòèòü âûñûëêó ïàðîëÿ íà email" />
Ó âàñ ðàçðåøåíà âûñûëêà íîìåðà ñ÷åòà è ïàðîëÿ íà email. Åñëè âû íå óâåðåíû â
ñâîåì email, èëè óáåæäåíû, ÷òî íå çàáóäåòå ñâîé íîìåð ñ÷åòà è ïàðîëü ê íåìó, òî
ìîæåòå çàïðåòèòü âûñûëêó ïàðîëÿ íà email. Ýòî óáåðåæåò âàñ îò êðàæè êðåäèòîâ ñ
âàøåãî ñ÷åòà â ñëó÷àå âçëîìà âàøåãî email. Íî åñëè âû ñàìè çàáóäåòå ñâîé íîìåð
ñ÷åòà è/èëè ïàðîëü, âàì óæå íèêòî íå ïîìîæåò!<br/>
<input type="submit" name="stop_send_email2"
value="Çàïðåòèòü âûñûëêó ïàðîëÿ íà email"/>
<hr/>
<b>Ñìåíèòü ïàðîëü</b><br/>
<table>
@ -800,29 +823,35 @@ hr {
<input type="submit" name="change_psw2" value="Ñìåíèòü ïàðîëü"/>
<br/>
<div id="keypad4" align="center" style="display: none;"></div>
</fieldset></td>
</fieldset>
</td>
</tr>
<tr>
<td valign="top">&nbsp;</td>
</tr>
</table>
</td>
<td width="50%" valign="top"><table width="100%" align="left" cellspacing="5">
<td width="50%" valign="top">
<table width="100%" align="left" cellspacing="5">
<tr>
<td valign="top" width="50%"><fieldset>
<td valign="top" width="50%">
<fieldset>
<legend><b>Ñíÿòü ñî ñ÷åòà</b></legend>
Ñóììà
<input type="text" name="get_sum" id="get_sum" size="6" maxlength="10"/>
êð.
<input type="submit" name="get_kredit" value="Ñíÿòü êðåäèòû ñî ñ÷åòà" onclick="if(Math.round(document.getElementById('get_sum')).value==0) {alert('Óêàæèòå ñóììó è íîìåð ñ÷åòà'); return false;} else {return confirm('Âû õîòèòå ñíÿòü ñî ñâîåãî ñ÷åòà '+(Math.floor(document.getElementById('get_sum').value*100)/100).toFixed(2)+' êð. ?')}" />
<input type="submit" name="get_kredit" value="Ñíÿòü êðåäèòû ñî ñ÷åòà"
onclick="if(Math.round(document.getElementById('get_sum')).value==0) {alert('Óêàæèòå ñóììó è íîìåð ñ÷åòà'); return false;} else {return confirm('Âû õîòèòå ñíÿòü ñî ñâîåãî ñ÷åòà '+(Math.floor(document.getElementById('get_sum').value*100)/100).toFixed(2)+' êð. ?')}"/>
<br/>
</fieldset></td>
</fieldset>
</td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td valign="top"><fieldset>
<td valign="top">
<fieldset>
<legend><b>Êóðñ åâðîêðåäèòà ê ìèðîâîé âàëþòå</b></legend>
<table width="100%" border="0" cellpadding="2" cellspacing="0">
<?
@ -830,25 +859,28 @@ hr {
if (isset($pl['id'])) {
?>
<tr>
<td><small>Äàííûå íà <b><?=date('d.m.y H:i',$pl['time'])?></b> áåç ó÷åòà êîìèññèé</small></td>
<td><small>Äàííûå íà <b><?= date('d.m.y H:i', $pl['time']) ?></b>
áåç ó÷åòà êîìèññèé</small></td>
</tr>
<?
$pl['RUB'] = 1;
$i = 0;
$true = array(
array('USD', 'äîëëàðîâ ÑØÀ'),
array('EUR', 'ÅÂÐÎ'),
array('RUB','ðîññèéñêèõ ðóáëåé'),
array('UAH','óêð. ãðèâåí'),
array('BYR','áåëîðóññêèõ ðóáëåé'),
array('AZN','àçåðáàéäæàíñêèõ ìàíàò'),
array('GBP','àíãë. ôóíòîâ ñòåðëèíãîâ')
);
$true = [
['USD', 'äîëëàðîâ ÑØÀ'],
['EUR', 'ÅÂÐÎ'],
['RUB', 'ðîññèéñêèõ ðóáëåé'],
['UAH', 'óêð. ãðèâåí'],
['BYR', 'áåëîðóññêèõ ðóáëåé'],
['AZN', 'àçåðáàéäæàíñêèõ ìàíàò'],
['GBP', 'àíãë. ôóíòîâ ñòåðëèíãîâ']
];
while ($i < count($true)) {
?>
<tr>
<td><span>1 åêð. = </span><span style="display:inline-block;width:100px"><b><?=round( ($pl['cur']/$pl[$true[$i][0]]) , 4 )?></b></span><span><?=$true[$i][1]?></span></td>
<td><span>1 åêð. = </span><span
style="display:inline-block;width:100px"><b><?= round(($pl['cur'] / $pl[$true[$i][0]]), 4) ?></b></span><span><?= $true[$i][1] ?></span>
</td>
</tr>
<?
$i++;
@ -856,31 +888,40 @@ hr {
} else {
?>
<tr>
<td><small><center><font color=grey>Íå óäàëîñü ïîëó÷èòü èíôîðìàöèþ</font></center></small></td>
<td><small>
<center><font color=grey>Íå óäàëîñü ïîëó÷èòü
èíôîðìàöèþ</font></center>
</small></td>
</tr>
<? } ?>
</table>
</fieldset></td>
</tr><tr>
<td valign="top"><fieldset>
</fieldset>
</td>
</tr>
<tr>
<td valign="top">
<fieldset>
<legend><b>Ïîñëåäíèå îïåðàöèè</b></legend>
<table width="100%" border="0" cellpadding="2" cellspacing="0">
<?
$sp = mysql_query('SELECT * FROM `users_delo` WHERE `uid` = "' . $u->info['id'] . '" AND `dop` = "' . $u->bank['id'] . '" AND `type` = "3" ORDER BY `time` DESC LIMIT 21');
while($pl = mysql_fetch_array($sp))
{
while ($pl = mysql_fetch_array($sp)) {
?>
<tr>
<td><small><? echo '<font color="green">'.date('d.m.Y H:i',$pl['time']).'</font> '; echo $pl['text']; ?></small></td>
<td>
<small><? echo '<font color="green">' . date('d.m.Y H:i', $pl['time']) . '</font> ';
echo $pl['text']; ?></small></td>
</tr>
<?
}
?>
</table>
</fieldset></td>
</fieldset>
</td>
</tr>
</table></td>
</table>
</td>
</tr>
</table>
</FORM>

View File

@ -1,943 +0,0 @@
<?php
if(!defined('GAME'))
{
die();
}
if(!function_exists('send_mime_mail')) {
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";
return mail($to, $subject, $body, $headers);
}
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) . '?=';
}
}
if($u->room['file']=='bank')
{
$noc = $c['crtoecr']*2; //120 kr = 1 ekr.
$con = $c['ecrtocr']*2.5; //1 åêð. = 30 êð.
function getNum($v)
{
$plid = $v;
$pi = iconv_strlen($plid);
if($pi<5)
{
$i = 0;
while($i<=5-$pi)
{
$plid = '0'.$plid;
$i++;
}
}
return $plid;
}
function getNumId($v)
{
$plid = $v;
$array = str_split($plid);
$ends=0;
$result='';
for($i=0,$end=(count($array)-1);$i<=$end;$i++){
if($array[$i]==0 and $ends==0){$array[$i]='';}else{$ends=1;}
$result.=$array[$i];
}
//print_r($array);
return $result;
}
if($u->info['allLock'] > time()) {
$u->bank = false;
}
$re2 = '';
if(isset($_GET['enter']) && !isset($u->bank['id']))
{
$bank = mysql_fetch_array(mysql_query('SELECT * FROM `bank` WHERE `uid` = "'.$u->info['id'].'" AND `id` = "'.mysql_real_escape_string((int)$_POST['bank']).'" LIMIT 1'));
if(!isset($bank['id']))
{
$re2 = 'Íåâåðíûé íîìåð ñ÷åòà.';
}elseif($bank['pass']!=$_POST['pass'])
{
$pl = mysql_fetch_array(mysql_query('SELECT COUNT(*) FROM `actions` WHERE `uid` = "'.$u->info['id'].'" AND `time` > "'.(time()-60*60).'" AND `vars` = "bank_bad_pass_'.mysql_real_escape_string($bank['id']).'" LIMIT 5'));
if($pl[0]>=3)
{
$re2 = 'Âàø ñ÷åò áûë çàáëîêèðîâàí íà 1 ÷àñ';
}else{
if($pl[0]==0)
{
$re2 = 'Íåâåðíûé íîìåð ñ÷åòà èëè ïàðîëü. Åñëè âû òðèæäû ââåäåòå íåâåðíûé íîìåð ñ÷åòà èëè ïàðîëü, ñ÷åò áóäåò çàáëîêèðîâàí íà ÷àñ';
}else{
$pp = array(0=>'îê',1=>'êà',2=>'êè',3=>'êè');
$re2 = 'Íåâåðíûé íîìåð ñ÷åòà èëè ïàðîëü. Ó âàñ îñòàëîñü '.(3-$pl[0]).' ïîïûò'.$pp[3-$pl[0]].', â ïðîòèâíîì ñëó÷àè ñ÷åò áóäåò çàáëîêèðîâàí íà ÷àñ';
}
mysql_query('INSERT INTO `actions` (`uid`,`time`,`city`,`room`,`vars`,`ip`) VALUES ("'.$u->info['id'].'","'.time().'","'.$u->info['city'].'","'.$u->info['room'].'","bank_bad_pass_'.mysql_real_escape_string($bank['id']).'","'.mysql_real_escape_string($_SERVER['HTTP_X_REAL_IP']).'")');
}
}else{
if($u->info['allLock'] > time()) {
echo '<script>setTimeout(function(){alert("Âàì çàïðåùåíî ïîëüçîâàòüñÿ óñëóãàìè áàíêà äî '.date('d.m.y H:i',$u->info['allLock']).'")},250);</script>';
}else{
//âîøëè!
$bank['useNow'] = time()+12*60*60;
mysql_query('UPDATE `bank` SET `useNow` = "0" WHERE `id` != "'.$bank['id'].'" AND `uid` = "'.$u->info['id'].'" AND `useNow`!="0" LIMIT 1');
mysql_query('UPDATE `bank` SET `useNow` = "'.$bank['useNow'].'" WHERE `id` = "'.$bank['id'].'" AND `uid` = "'.$u->info['id'].'" LIMIT 1');
mysql_query('INSERT INTO `actions` (`uid`,`time`,`city`,`room`,`vars`,`ip`) VALUES ("'.$u->info['id'].'","'.time().'","'.$u->info['city'].'","'.$u->info['room'].'","bank_good_pass_'.mysql_real_escape_string($bank['id']).'","'.mysql_real_escape_string($_SERVER['HTTP_X_REAL_IP']).'")');
$u->bank = $bank;
}
}
}elseif(isset($_GET['res']))
{
//echo $_GET['schet'].'<br>';
$b_pass = mysql_fetch_array(mysql_query('SELECT * FROM `bank` WHERE `uid` = "'.$u->info['id'].'" AND `id` = "'.mysql_real_escape_string(getNumId($_GET['schet'])).'" ORDER BY `id` DESC LIMIT 1'));
if($b_pass['repass'] >= time())
{
$re2 = 'Íîìåðà ñ÷åòîâ è ïàðîëè ê íèì ìîæíî âûñëàòü òîëüêî îäèí ðàç â ñóòêè';
}else{
mysql_query('INSERT INTO `actions` (`uid`,`time`,`city`,`room`,`vars`,`ip`) VALUES ("'.$u->info['id'].'","'.time().'","'.$u->info['city'].'","'.$u->info['room'].'","bank_res","'.mysql_real_escape_string($_SERVER['HTTP_X_REAL_IP']).'")');
$re2 = 'Âûñëàí íîìåð ñ÷åòà è ïàðîëü íà email, óêàçàííûé â àíêåòå';
mysql_query('UPDATE `bank` SET `repass` = "'.(time()+24*3600).'" WHERE `id` = "'.$b_pass['id'].'" LIMIT 1');
send_mime_mail('Áîéöîâñêèé Êëóá - Support',
'support@new-combats.com',
''.$u->info['login'].'',
$u->info['mail'],
'CP1251', // êîäèðîâêà, â êîòîðîé íàõîäÿòñÿ ïåðåäàâàåìûå ñòðîêè
'KOI8-R', // êîäèðîâêà, â êîòîðîé áóäåò îòïðàâëåíî ïèñüìî
'Âîññòàíîâëåíèå ïàðîëÿ îò ñ÷åòà â áàíêå ïåðñîíàæà '.$u->info['login'].'',
"Íîìåð ñ÷åòà: ".getNum($b_pass['id'])."<br>Ïàðîëü: ".$b_pass['pass'].'<br><br>Ñ óâàæåíèåì,<br>Àäìèíèñòðàöèÿ Áîéöîâñêîãî Êëóáà');
}
}elseif(isset($_GET['open']) && !isset($u->bank['id']))
{
if( $_POST['rdn01'] == 2 && ($u->info['level'] >= 8 || $u->info['money4'] < 15 )) {
$re2 = 'Íåäîñòàòî÷íî çóáîâ!';
}elseif($u->info['money']>=3 || ($u->info['level'] < 8 && $u->info['money4'] >= 15 && $c['zuby'] == true ))
{
if( $_POST['pass1'] == '' || $_POST['pass1'] == ' ' ) {
$re2 = 'Âû íå óêàçàëè ïàðîëü!';
}elseif( $_POST['pass1'] != $_POST['pass2'] ) {
$re2 = 'Ïàðîëè íå ñîâïàäàþò!';
}elseif( $u->info['money'] - 3 < 0 && $_POST['rdn01'] != 2 ) {
$re2 = 'Ó âàñ íåäîñòàòî÷íî êð.';
}elseif($u->info['align']!=2)
{
$pass = rand(10000,91191);
$pass = htmlspecialchars($_POST['pass1'],NULL,'cp1251');
$ins = mysql_query('INSERT INTO `bank` (`uid`,`create`,`pass`) VALUES ("'.$u->info['id'].'","'.time().'","'.$pass.'")');
if($ins)
{
$bank = mysql_insert_id();
if( $u->info['level'] < 8 && $_POST['rdn01'] == 2 && $c['zuby'] == true) {
$u->info['money4'] -= 15;
}else{
$u->info['money'] -= 3;
}
$upd = mysql_query('UPDATE `users` SET `money` = "'.$u->info['money'].'",`money4` = "'.$u->info['money4'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
$re2 = 'Ñ÷åò ¹<b>'.getNum($bank).'</b> áûë óñïåøíî îòêðûò.<br>Ïàðîëü îò ñ÷åòà: <b>'.$pass.'</b><br><small><br>(Ñìåíèòü ïàðîëü ìîæíî â ðàçäåëå "Óïðàâëåíèå ñ÷åòîì" ïîñëå àâòîðèçàöèè)';
$u->addDelo(3,$u->info['id'],'Âû óñïåøíî îòêðûëè ñ÷åò ¹'.getNum($bank).'',time(),$u->info['city'],'Bank.System',3,0,'');
}else{
$re2 = 'Áàíê îòêàçàë â ïîëó÷åíèè áàíêîâñêîãî ñ÷åòà.';
}
}else{
$re2 = 'Õàîñíèêè íå ìîãóò ñîçäàâàòü íîâûå ñ÷åòà â áàíêå.';
}
}else{
if( $u->info['level'] < 8 && $c['zuby'] == true ) {
$re2 = 'Äëÿ îòêðûòèÿ ñ÷åòà íåîáõîäèìî èìåòü ïðè ñåáå <b>3.00 êð.</b> èëè <b>'.$u->zuby(15).'</b>';
}else{
$re2 = 'Äëÿ îòêðûòèÿ ñ÷åòà íåîáõîäèìî èìåòü ïðè ñåáå <b>3.00 êð.</b>';
}
}
}elseif(isset($_GET['exit']) && isset($u->bank['id']))
{
$u->bank = false;
mysql_query('UPDATE `bank` SET `useNow` = "0" WHERE `uid` = "'.$u->info['id'].'" AND `useNow`!="0" LIMIT 1');
}
if($u->info['allLock'] > time()) {
$u->bank = false;
}
if(isset($u->bank['id']))
{
if(isset($_POST['sd4']) && $u->newAct($_POST['sd4']))
{
if(isset($_POST['transfer_kredit2']) && $u->info['admin']>0)
{
//ïåðåâîä åêðåäèòîâ ñ îäíîãî ñ÷åòà íà äðóãîé
$ub = mysql_fetch_array(mysql_query('SELECT * FROM `bank` WHERE `id` = "'.mysql_real_escape_string((int)$_POST['num2']).'" LIMIT 1'));
if(isset($ub['id']) && $ub['id']!=$u->bank['id'])
{
$ut = mysql_fetch_array(mysql_query('SELECT `id`,`level`,`city`,`room`,`login` FROM `users` WHERE `id` = "'.mysql_real_escape_string($ub['uid']).'" LIMIT 1'));
if($ut['level']>=0 || $ut['id']==$u->info['id'] || $u->info['admin']>0)
{
$mn = floor((int)($_POST['tansfer_sum2']*100));
$mn = round(($mn/100),2);
$prc = 0;
$mn += $prc;
if($u->bank['money2']>=$mn)
{
if($mn<0.01 || $mn>1000000000)
{
$re2 = 'Íåâåðíî óêàçàíà ñóììà';
}else{
$upd = mysql_query('UPDATE `bank` SET `money2` = "'.mysql_real_escape_string($u->bank['money2']-$mn).'" WHERE `id` = "'.$u->bank['id'].'" LIMIT 1');
if($upd)
{
$u->bank['money2'] -= $mn;
$ub['money2'] += $mn-$prc;
mysql_query('UPDATE `users` SET `catch` = `catch` + "'.floor($mn-$prc).'" WHERE `id` = "'.$ut['id'].'" LIMIT 1');
mysql_query('UPDATE `users` SET `frg` = `frg` + '.floor($mn).' WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
mysql_query('UPDATE `bank` SET `money2` = "'.mysql_real_escape_string($ub['money2']).'" WHERE `id` = "'.$ub['id'].'" LIMIT 1');
$re2 = 'Âû óäà÷íî ïåðåâåëè <b>'.($mn-$prc).' åêð.</b> (êîìèññèÿ <b>'.$prc.' åêð.</b>) íà ñ÷åò ¹'.getNum($ub['id']).' ïåðñîíàæó &quot;<b>'.$ut['login'].'</b>&quot;';
$u->addDelo(3,$ut['id'],'Ïîëó÷åíî <b>'.($mn-$prc).' åêð.</b> ñî ñ÷åòà ¹'.getNum($u->bank['id']).' îò ïåðñîíàæà &quot;'.$u->info['login'].'&quot;, êîìèññèÿ <b>'.$prc.' åêð.</b> <i>(Èòîãî: '.$ub['money1'].' êð., '.$ub['money2'].' åêð.)</i>',time(),$ut['city'],'Bank.System',mysql_real_escape_string($mn-$prc),0,$ub['id']);
$u->addDelo(3,$u->info['id'],'Ïåðåäàíî <b>'.($mn-$prc).' åêð.</b> íà ñ÷åò ¹'.getNum($ub['id']).' ïåðñîíàæó &quot;'.$ut['login'].'&quot;, êîìèññèÿ <b>'.$prc.' åêð.</b> <i>(Èòîãî: '.$u->bank['money1'].' êð., '.$u->bank['money2'].' åêð.)</i>',time(),$u->info['city'],'Bank.System',0,mysql_real_escape_string($mn),$u->bank['id']);
$log = '&quot;'.$u->info['login'].'&quot;&nbsp;['.$u->info['level'].'] ïåðåâåë ñî ñâîåãî áàíêîâñêîãî ñ÷åòà ¹'.$u->bank['id'].' íà ñ÷åò ¹'.$ub['id'].' ê ïåðñîíàæó &quot;'.$ut['login'].'&quot;&nbsp;['.$ut['level'].'] '.($mn-$prc).' åêð.';
$u->addDelo(1,$u->info['id'],$log,time(),$u->info['city'],'Bank.System',0,0,'');
$u->addDelo(1,$ut['id'],$log,time(),$ut['city'],'Bank.System',0,0,'');
if($ut['id']!=$u->info['id'])
{
$alg = '';
if($u->info['align']==50)
{
$alg = '<img src=https://img.new-combats.com/i/align/align50.gif >';
}
$text = '&quot;'.$alg.'[login:'.$u->info['login'].']&quot; ïåðåâåë'.($u->info['sex']==0?"":"à").' âàì <b>'.($mn-$prc).' åêð.</b> ñî ñâîåãî áàíêîâñêîãî ñ÷åòà ¹'.getNum($u->bank['id']).' íà âàø áàíêîâñêèé ñ÷åò ¹'.getNum($ub['id']).'.';
mysql_query("INSERT INTO `chat` (`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`,`typeTime`) VALUES ('".$ut['city']."','".$ut['room']."','','".$ut['login']."','".$text."','".time()."','12','0','1')");
}
}else{
$re2 = 'Íå óäàëîñü âûïîëíèòü îïåðàöèþ';
}
}
}else{
$re2 = 'Ó âàñ íåò <b>'.$mn.' åêð.</b> íà ñ÷åòå';
}
}else{
$re2 = 'Íåëüçÿ ïåðåâåñòè êðåäèòû íà ýòîò ñ÷åò';
}
}else{
$re2 = 'Íåëüçÿ ïåðåâåñòè êðåäèòû íà ýòîò ñ÷åò';
}
}elseif(isset($_POST['transfer_kredit']) && $u->info['align']!=2)
{
//ïåðåâîä êðåäèòîâ ñ îäíîãî ñ÷åòà íà äðóãîé
if($u->info['level']>=4 || $u->info['admin']>0)
{
$ub = mysql_fetch_array(mysql_query('SELECT * FROM `bank` WHERE `id` = "'.mysql_real_escape_string((int)$_POST['num']).'" LIMIT 1'));
if(isset($ub['id']) && $ub['id']!=$u->bank['id'])
{
$ut = mysql_fetch_array(mysql_query('SELECT `id`,`level`,`city`,`room`,`login` FROM `users` WHERE `id` = "'.mysql_real_escape_string($ub['uid']).'" LIMIT 1'));
if($ut['level']>=4 || $ut['id']==$u->info['id'] || $u->info['admin']>0)
{
$mn = floor((int)($_POST['tansfer_sum']*100));
$mn = round(($mn/100),2);
$prc = round($mn*3/100,2);
$mn += $prc;
if($u->bank['money1']>=$mn)
{
if($mn<0.01 || $mn>1000000000)
{
$re2 = 'Íåâåðíî óêàçàíà ñóììà';
}else{
$upd = mysql_query('UPDATE `bank` SET `money1` = "'.mysql_real_escape_string($u->bank['money1']-$mn).'" WHERE `id` = "'.$u->bank['id'].'" LIMIT 1');
if($upd)
{
$u->bank['money1'] -= $mn;
$ub['money1'] += $mn-$prc;
mysql_query('UPDATE `bank` SET `money1` = "'.mysql_real_escape_string($ub['money1']).'" WHERE `id` = "'.$ub['id'].'" LIMIT 1');
$re2 = 'Âû óäà÷íî ïåðåâåëè <b>'.($mn-$prc).' êð.</b> (êîìèññèÿ <b>'.$prc.' êð.</b>) íà ñ÷åò ¹'.getNum($ub['id']).' ïåðñîíàæó &quot;<b>'.$ut['login'].'</b>&quot;';
$u->addDelo(3,$ut['id'],'Ïîëó÷åíî <b>'.($mn-$prc).' êð.</b> ñî ñ÷åòà ¹'.getNum($u->bank['id']).' îò ïåðñîíàæà &quot;'.$u->info['login'].'&quot;, êîìèññèÿ <b>'.$prc.' êð.</b> <i>(Èòîãî: '.$ub['money1'].' êð., '.$ub['money2'].' åêð.)</i>',time(),$ut['city'],'Bank.System',mysql_real_escape_string($mn-$prc),0,$ub['id']);
$u->addDelo(3,$u->info['id'],'Ïåðåäàíî <b>'.($mn-$prc).' êð.</b> íà ñ÷åò ¹'.getNum($ub['id']).' ïåðñîíàæó &quot;'.$ut['login'].'&quot;, êîìèññèÿ <b>'.$prc.' êð.</b> <i>(Èòîãî: '.$u->bank['money1'].' êð., '.$u->bank['money2'].' åêð.)</i>',time(),$u->info['city'],'Bank.System',0,mysql_real_escape_string($mn),$u->bank['id']);
$log = '&quot;'.$u->info['login'].'&quot;&nbsp;['.$u->info['level'].'] ïåðåâåë ñî ñâîåãî áàíêîâñêîãî ñ÷åòà ¹'.$u->bank['id'].' íà ñ÷åò ¹'.$ub['id'].' ê ïåðñîíàæó &quot;'.$ut['login'].'&quot;&nbsp;['.$ut['level'].'] '.($mn-$prc).' êð. Äîïîëíèòåëüíî ñíÿòî '.$prc.' êð. çà óñëóãè áàíêà.';
$u->addDelo(1,$u->info['id'],$log,time(),$u->info['city'],'Bank.System',0,0,'');
$u->addDelo(1,$ut['id'],$log,time(),$ut['city'],'Bank.System',0,0,'');
if($ut['id']!=$u->info['id'])
{
$text = '&quot;[login:'.$u->info['login'].']&quot; ïåðåâåë'.($u->info['sex']==0?"":"à").' âàì <b>'.($mn-$prc).' êð.</b> ñî ñâîåãî áàíêîâñêîãî ñ÷åòà ¹'.getNum($u->bank['id']).' íà âàø áàíêîâñêèé ñ÷åò ¹'.getNum($ub['id']).'.';
mysql_query("INSERT INTO `chat` (`new`,`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`,`typeTime`) VALUES (1,'".$ut['city']."','".$ut['room']."','','".$ut['login']."','".$text."','".time()."','6','0','1')");
}
}else{
$re2 = 'Íå óäàëîñü âûïîëíèòü îïåðàöèþ';
}
}
}else{
$re2 = 'Ó âàñ íåò <b>'.$mn.' êð.</b> íà ñ÷åòå';
}
}else{
$re2 = 'Íåëüçÿ ïåðåâåñòè êðåäèòû íà ýòîò ñ÷åò';
}
}else{
$re2 = 'Íåëüçÿ ïåðåâåñòè êðåäèòû íà ýòîò ñ÷åò';
}
}else{
$re2 = 'Ïåðåäà÷à êðåäèòîâ âîçìîæíà òîëüêî ñ 4-ãî óðîâíÿ';
}
}elseif($u->info['align']!=2 && $u->info['haos'] < time() && $u->info['haos'] != 1 && $u->info['align'] !=50 && isset($_POST['convert_kredit']) && $c['crtoecr'] > 0) {
//îáìåíÿòü êð. íà åêð.
if($u->info['palpro'] > time()) {
$mn = ceil((int)($_POST['convert_sum2']*100));
$mn = round(($mn/100),2);
$mne = round($mn/$noc,2);
$mn = round(($mn/100*103+5),2);
$sm = $u->testAction('`uid` = "'.$u->info['id'].'" AND `vars` = "bank_kr_to_ekr_['.date('d.m.Y',time()).']" ORDER BY `id` DESC LIMIT 1',1);
$sm_lim = 100;
if(isset($sm['id']) && $sm['vals']+$mne > $sm_lim) {
if($sm['vals'] < $sm_lim) {
$re2 = 'Íà ñåãîäíÿ Âû ìîæåòå îáìåíÿòü åùå íà <b>'.($sm_lim-$sm['vals']).' åêð.</b>. (Ïðèìåðíî '.round( ( ($sm_lim-$sm['vals'])*$noc ) ,2).' êð.), òåêóùèé îáìåí íà <b>'.$mne.' åêð.</b>.';
}else{
$re2 = 'Íà ñåãîäíÿ Âû èñ÷åðïàëè ñâîé ëèìèò îáìåíà êð. íà åêð. ('.$sm_lim.' åêð.)';
}
}elseif($mn > 0 && $mne > 0 && $mn >= round((0.01*($noc*1.03)+5),2)) {
if($u->bank['money1'] >= $mn) {
if(!isset($sm['id'])) {
$u->addAction(time(),'bank_kr_to_ekr_['.date('d.m.Y').']',$mne);
}else{
mysql_query('UPDATE `actions` SET `vals` = "'.($sm['vals']+$mne).'" WHERE `id` = "'.$sm['id'].'" LIMIT 1');
}
$re2 = 'Âû óñïåøíî îáìåíÿëè <b>'.$mn.' êð.</b> íà <b>'.$mne.' åêð.</b>';
$u->bank['money1'] -= $mn;
$u->bank['money2'] += $mne;
mysql_query('UPDATE `users` SET `catch` = `catch` + "'.round($mne,2).'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
mysql_query('UPDATE `bank` SET `money1` = "'.mysql_real_escape_string($u->bank['money1']).'", `money2` = "'.mysql_real_escape_string($u->bank['money2']).'",`shara` = `shara` + "'.mysql_real_escape_string($mne).'" WHERE `id` = "'.mysql_real_escape_string($u->bank['id']).'" LIMIT 1');
$log = '&quot;'.$u->info['login'].'&quot;&nbsp;['.$u->info['level'].'] îáìåíÿë <b>'.$mn.' êð.</b> íà <b>'.$mne.' åêð.</b>, Áàíêîâñêèé ñ÷åò ¹'.$u->bank['id'].'.';
$u->addDelo(1,$u->info['id'],$log,time(),$u->info['city'],'Bank.System',0,0,'');
$u->addDelo(3,$u->info['id'],'Âû óñïåøíî îáìåíÿëè <b>'.ceil((int)($_POST['convert_sum2']*100/100)).' êð.</b> íà <b>'.$mne.' åêð.</b>, êîìèññèÿ <b>'.round((ceil((int)($_POST['convert_sum2']*100/100))/100*3+5),2).' êð.</b> <i>(Èòîãî: '.$u->bank['money1'].' êð., '.$u->bank['money2'].' åêð.)</i>',time(),$u->info['city'],'Bank.System',0,0,$u->bank['id']);
}else{
$re2 = 'Ó âàñ íåò <b>'.$mn.' êð.</b> íà ñ÷åòå';
}
}else{
$re2 = 'Ìèíèìàëüíàÿ ñóììà äëÿ îáìåíà ñîñòàâëÿåò '.round((0.01*($noc*1.03)+5),2).' êð.';
}
}else{
$re2 = 'Âû äîëæíû ïðîéòè ïðîâåðêó íà ÷èñòîòó ó Ïàëàäèíîâ èëè Òàðìàíîâ.';
}
}elseif(isset($_POST['convert_ekredit']))
{
//îáìåíÿòü åêð. íà êð.
$mn = ceil((int)($_POST['convert_sum']*100));
$mn = round(($mn/100),2);
if($u->bank['money2']>=$mn)
{
if($mn<0.01 || $mn>1000000000)
{
$re2 = 'Íåâåðíî óêàçàíà ñóììà';
}else{
$upd = mysql_query('UPDATE `bank` SET `money1` = "'.mysql_real_escape_string($u->bank['money1']+($mn*$con)).'",`money2` = "'.mysql_real_escape_string($u->bank['money2']-$mn).'" WHERE `id` = "'.$u->bank['id'].'" LIMIT 1');
if($upd)
{
$u->bank['money1'] += $mn*$con;
$u->bank['money2'] -= $mn;
$u->addDelo(3,$u->info['id'],'Âû îáìåíÿëè <b>'.$mn.' åêð.</b> íà <b>'.($mn*$con).' êð.</b>, êîìèññèÿ <b>0 êð.</b> <i>(Èòîãî: '.$u->bank['money1'].' êð., '.$u->bank['money2'].' åêð.)</i>',time(),$u->info['city'],'Bank.System',0,mysql_real_escape_string($mn*$con),$u->bank['id']);
$re2 = 'Âû óäà÷íî îáìåíÿëè <b>'.$mn.' åêð.</b> íà <b>'.($mn*$con).' êð.</b>';
}else{
$re2 = 'Íå óäàëîñü âûïîëíèòü îïåðàöèþ';
}
}
}else{
$re2 = 'Ó âàñ íåò <b>'.$mn.' åêð.</b> íà ñ÷åòå';
}
}elseif(isset($_POST['get_kredit']))
{
//ïîëîæèòü äåíüãè íà ñ÷åò
$mn = floor((int)($_POST['get_sum']*100));
$mn = round(($mn/100),2);
if($u->bank['money1']>=$mn)
{
if($mn<0.01 || $mn>1000000000)
{
$re2 = 'Íåâåðíî óêàçàíà ñóììà (Ñíÿòü '.((int)$_POST['get_sum']).' êð.)';
}else{
$upd = mysql_query('UPDATE `users` SET `money` = "'.mysql_real_escape_string($u->info['money']+$mn).'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
if($upd)
{
$u->bank['money1'] -= $mn;
$u->info['money'] += $mn;
mysql_query('UPDATE `bank` SET `money1` = "'.mysql_real_escape_string($u->bank['money1']).'" WHERE `id` = "'.$u->bank['id'].'" LIMIT 1');
$u->addDelo(3,$u->info['id'],'Âû ñíÿëè ñî ñ÷åòà <b>'.$mn.' êð.</b>, êîìèññèÿ <b>0 êð.</b> <i>(Èòîãî: '.$u->bank['money1'].' êð., '.$u->bank['money2'].' åêð.)</i>',time(),$u->info['city'],'Bank.System',0,0,$u->bank['id']);
$re2 = 'Âû óäà÷íî ñíÿëè ñî ñ÷åòà <b>'.$mn.' êð.</b>';
}else{
$re2 = 'Íå óäàëîñü âûïîëíèòü îïåðàöèþ';
}
}
}else{
$re2 = 'Ó âàñ íåò <b>'.$mn.' êð.</b> íà ñ÷åòå';
}
}elseif(isset($_POST['get_ekredit']))
{
//ïîëîæèòü äåíüãè íà ñ÷åò
$mn = floor((int)($_POST['get_esum']*100));
$mn = round(($mn/100),2);
if($u->bank['money2']>=$mn)
{
if($mn<0.01 || $mn>1000000000)
{
$re2 = 'Íåâåðíî óêàçàíà ñóììà (Ñíÿòü '.((int)$_POST['get_esum']).' Åêð.)';
}else{
$upd = mysql_query('UPDATE `users` SET `money2` = "'.mysql_real_escape_string($u->info['money2']+$mn).'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
if($upd)
{
$u->bank['money2'] -= $mn;
$u->info['money2'] += $mn;
mysql_query('UPDATE `bank` SET `money2` = "'.mysql_real_escape_string($u->bank['money2']).'" WHERE `id` = "'.$u->bank['id'].'" LIMIT 1');
$u->addDelo(3,$u->info['id'],'Âû ñíÿëè ñî ñ÷åòà <b>'.$mn.' Åêð.</b>, êîìèññèÿ <b>0 Åêð.</b> <i>(Èòîãî: '.$u->bank['money1'].' êð., '.$u->bank['money2'].' åêð.)</i>',time(),$u->info['city'],'Bank.System',0,0,$u->bank['id']);
$re2 = 'Âû óäà÷íî ñíÿëè ñî ñ÷åòà <b>'.$mn.' Åêð.</b>';
}else{
$re2 = 'Íå óäàëîñü âûïîëíèòü îïåðàöèþ';
}
}
}else{
$re2 = 'Ó âàñ íåò <b>'.$mn.' Åêð.</b> íà ñ÷åòå';
}
}elseif(isset($_POST['add_ekredit']))
{
//ïîëîæèòü äåíüãè íà ñ÷åò
$mn = floor((int)($_POST['add_esum']*100));
$mn = round(($mn/100),2);
if($u->info['money2']>=$mn)
{
if($mn<0.01 || $mn>1000000000)
{
$re2 = 'Íåâåðíî óêàçàíà ñóììà (Ïîïîëíåíèå ñ÷åòà)';
}else{
$upd = mysql_query('UPDATE `users` SET `money2` = "'.mysql_real_escape_string($u->info['money2']-$mn).'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
if($upd)
{
$u->bank['money2'] += $mn;
$u->info['money2'] -= $mn;
mysql_query('UPDATE `bank` SET `money2` = "'.mysql_real_escape_string($u->bank['money2']).'" WHERE `id` = "'.$u->bank['id'].'" LIMIT 1');
$u->addDelo(3,$u->info['id'],'Âû ïîëîæèëè íà ñ÷åò <b>'.$mn.' Eêð.</b>, êîìèññèÿ <b>0 Åêð.</b> <i>(Èòîãî: '.$u->bank['money1'].' êð., '.$u->bank['money2'].' åêð.)</i>',time(),$u->info['city'],'Bank.System',0,0,$u->bank['id']);
$re2 = 'Âû óäà÷íî ïîëîæèëè íà ñâîé ñ÷åò <b>'.$mn.' Åêð.</b>';
}else{
$re2 = 'Íå óäàëîñü âûïîëíèòü îïåðàöèþ';
}
}
}else{
$re2 = 'Ó âàñ íåò ïðè ñåáå <b>'.$mn.' Åêð.</b>';
}
}elseif(isset($_POST['add_kredit']))
{
//ïîëîæèòü äåíüãè íà ñ÷åò
$mn = floor((int)($_POST['add_sum']*100));
$mn = round(($mn/100),2);
if($u->info['money']>=$mn)
{
if($mn<0.01 || $mn>1000000000)
{
$re2 = 'Íåâåðíî óêàçàíà ñóììà (Ïîïîëíåíèå ñ÷åòà)';
}else{
$upd = mysql_query('UPDATE `users` SET `money` = "'.mysql_real_escape_string($u->info['money']-$mn).'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
if($upd)
{
$u->bank['money1'] += $mn;
$u->info['money'] -= $mn;
mysql_query('UPDATE `bank` SET `money1` = "'.mysql_real_escape_string($u->bank['money1']).'" WHERE `id` = "'.$u->bank['id'].'" LIMIT 1');
$u->addDelo(3,$u->info['id'],'Âû ïîëîæèëè íà ñ÷åò <b>'.$mn.' êð.</b>, êîìèññèÿ <b>0 êð.</b> <i>(Èòîãî: '.$u->bank['money1'].' êð., '.$u->bank['money2'].' åêð.)</i>',time(),$u->info['city'],'Bank.System',0,0,$u->bank['id']);
$re2 = 'Âû óäà÷íî ïîëîæèëè íà ñâîé ñ÷åò <b>'.$mn.' êð.</b>';
}else{
$re2 = 'Íå óäàëîñü âûïîëíèòü îïåðàöèþ';
}
}
}else{
$re2 = 'Ó âàñ íåò ïðè ñåáå <b>'.$mn.' êð.</b>';
}
}elseif(isset($_POST['change_psw2']))
{
//ñìåíà ïàðîëÿ ñ÷åòà
$sm = $u->testAction('`uid` = "'.$u->info['id'].'" AND `vals` = "id='.$u->bank['id'].'&new_pass='.$u->bank['pass'].'" AND `vars` = "bank_new_pass" AND `time` > "'.(time()-24*60*60).'" LIMIT 1',1);
if($_POST['new_psw1']!=$_POST['new_psw2'])
{
$re2 = 'Ïàðîëè íå ñîâïàäàþò';
}elseif(iconv_strlen($_POST['new_psw1'])<6 || iconv_strlen($_POST['new_psw1'])>32)
{
$re2 = 'Ïàðîëü íå ìîæåò áûòü êîðî÷å 6 èëè äëèíåå 32 ñèìâîëîâ';
}elseif(isset($sm['id']))
{
$re2 = 'Íåëüçÿ ìåíÿòü ïàðîëü ÷àùå îäíîãî ðàçà â äåíü';
}else{
//ìåíÿåì
$upd = mysql_query('UPDATE `bank` SET `pass` = "'.mysql_real_escape_string($_POST['new_psw1']).'" WHERE `id` = "'.$u->bank['id'].'" LIMIT 1');
if($upd)
{
$u->addAction(time(),'bank_new_pass','id='.$u->bank['id'].'&new_pass='.$_POST['new_psw1'].'');
$u->bank['pass'] = $_POST['new_psw1'];
$re2 = 'Ïàðîëü îò ñ÷åòà ¹<b>'.getNum($u->bank['id']).'</b> áûë óñïåøíî èçìåíåí<br>Íîâûé ïàðîëü: <b>'.$u->bank['pass'].'</b>';
$u->addDelo(3,$u->info['id'],'Áûë èçìåíåí ïàðîëü îò ñ÷åòà.',time(),$u->info['city'],'Bank.System',0,0,$u->bank['id']);
}else{
$re2 = 'Âàì îòêàçàëè â ñìåíå ïàðîëÿ';
}
}
}
}
}
if($re!=''){ echo '<div align="right"><font color="red"><b>'.$re.'</b></font></div>'; } ?>
<style type="text/css">
.pH3 { COLOR: #8f0000; FONT-FAMILY: Arial; FONT-SIZE: 12pt; FONT-WEIGHT: bold; }
.class_ {
font-weight: bold;
color: #C5C5C5;
cursor:pointer;
}
.class_st {
font-weight: bold;
color: #659BA3;
cursor:pointer;
}
.class__ {
font-weight: bold;
color: #FFFFFF;
cursor:pointer;
background-color: #659BA3;
}
.class__st {
font-weight: bold;
color: #FFFFFF;
cursor:pointer;
background-color: #659BA3;
font-size: 10px;
}
.class_old {
font-weight: bold;
color: #919191;
cursor:pointer;
}
.class__old {
font-weight: bold;
color: #FFFFFF;
cursor:pointer;
background-color: #838383;
font-size: 10px;
}
</style>
<TABLE width="100%" cellspacing="0" cellpadding="0">
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center">
<div align="center" class="pH3">
<h3>Áàíê<br /></h3>
</div>
</div></td>
<td width="200">
<div style="float:right;">
<table cellspacing="0" cellpadding="0">
<tr>
<td width="100%">&nbsp;</td>
<td><table border="0" cellpadding="0" cellspacing="0">
<tr align="right" valign="top">
<td><!-- -->
<? echo $goLis; ?>
<!-- -->
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td nowrap="nowrap"><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#DEDEDE">
<tr>
<td bgcolor="#D3D3D3"><img src="https://img.new-combats.com/i/move/links.gif" width="9" height="7" /></td>
<td bgcolor="#D3D3D3" nowrap="nowrap"><a href="#" id="greyText" class="menutop" onclick="location='main.php?loc=1.180.0.11&rnd=<? echo $code; ?>';" title="<? thisInfRm('1.180.0.11',1); ?>">Ñòðàøèëêèíà óëèöà</a></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</div></td>
</tr>
</table>
<TABLE width="100%" cellspacing="0" cellpadding="4">
<TR>
<form name="F1" method="post">
<TD valign="top" align="left">
<!--Ìàãàçèí--></TD>
</FORM>
</TR>
<TR>
<TD valign="top" align="left">
<? if($re2!=''){ echo '<div align="left"><font color="red">'.$re2.'</font></div><br>'; }
if(!isset($u->bank['id']))
{
?>
Ìû ïðåäîñòàâëÿåì ñëåäóþùèå óñëóãè:
<OL>
<LI>Îòêðûòèå ñ÷åòà<LI>Âîçìîæíîñòü ïîëîæèòü/ñíÿòü êðåäèòû/åâðîêðåäèòû ñî ñ÷åòà
<LI>Ïåðåâåñòè êðåäèòû/åâðîêðåäèòû ñ îäíîãî ñ÷åòà íà äðóãîé
<LI>Îáìåííûé ïóíêò. Îáìåí åâðîêðåäèòîâ íà êðåäèòû
</OL>
<script type="text/javascript" src="js/jquery.js"></script>
<script>
function hidecreatefx() {
if( $('#hidecreate').css('display') != 'none' ) {
$('#hidecreate').css('display','none');
}else{
$('#hidecreate').css('display','');
}
}
</script>
<FORM action="main.php?open&rnd=<? echo $code; ?>" method="POST">
Õîòèòå îòêðûòü ñâîé ñ÷åò? Óñëóãà ïëàòíàÿ: <INPUT onclick="hidecreatefx();" TYPE="button" value="Îòêðûòü ñ÷åò">
<div id="hidecreate" style="display:none">
<FIELDSET style="width:300px;"><LEGEND><B>Îòêðûòèå ñ÷åòà</B> </LEGEND>
<small>
<? if ($u->info['level'] < 8 && $c['zuby'] == true) { ?>
<center>
<input name="rdn01" type="radio" value="1"> <b>3.00 êð.</b> &nbsp; &nbsp; <input name="rdn01" type="radio" value="2"> <?=$u->zuby(15)?> &nbsp; &nbsp; &nbsp;
</center>
<hr />
<? }else{
?>
<center>
<input checked="checked" name="rdn01" type="radio" value="1"> <b>3.00 êð.</b> &nbsp; &nbsp; &nbsp;
</center>
<hr />
<?
} ?>
<style>
fieldset {
border:1px solid #AEAEAE;
}
hr {
border:0;
border-bottom:1px solid #aeaeae;
}
</style>
<table width="300" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>Ïàðîëü ñ÷åòà:</td>
<td><INPUT style='width:90;' type="password" value="" name="pass1"></td>
</tr>
<tr>
<td>Åùå ðàç:</td>
<td><INPUT style='width:90;' type="password" value="" name="pass2"></td>
</tr>
</table>
</small>
<center>
<INPUT TYPE="submit" value="Îòêðûòü ñ÷åò">
</center>
</FIELDSET>
</div>
</FORM>
<form action="main.php?enter&rnd=<? echo $code; ?>" method="POST">
<br />
<FIELDSET style="width:300px;"><LEGEND><B>Óïðàâëåíèå ñ÷åòîì</B> </LEGEND>
<TABLE width="300">
<TR><TD valign=top>
<TABLE>
<TR><TD>Íîìåð ñ÷åòà</td> <TD colspan=2><select name="bank" size=0 style="width: 90px">
<?
$sp = mysql_query('SELECT * FROM `bank` WHERE `uid` = "'.$u->info['id'].'" AND `block` = "0"');
while($pl = mysql_fetch_array($sp))
{
?>
<option value="<? echo $pl['id']; ?>" selected="selected"><? echo getNum($pl['id']); ?></option>
<?
}
?>
</select></td></tr>
<TR><TD>Ïàðîëü</td><td> <INPUT style='width:90;' type="password" value="" name="pass"></td>
</tr>
<TR><TD colspan=3 align=center><INPUT TYPE="submit" value="Âîéòè"></td></tr>
</TABLE>
</TD>
</TABLE>
</FIELDSET>
</form>
<form method=GET action='main.php'>
<input type=hidden name='res' value=<? echo $code; ?>>
<br />
<br />
Çàáûëè ïàðîëü? Ìîæíî åãî âûñëàòü íà email, íîìåð ñ÷åòà:<input type=text name='schet'> <input type="submit" value="Âûñëàòü" /></TD>
</form>
</TR>
</TABLE>
</table>
<br>
<div id="textgo" style="visibility:hidden;"></div>
<?
}else{
?>
<style>
.pay td {
width:50px;
}
.pay td img{
display:block;
margin:1px 0 0 0;
}
.pay td:hover img{
margin:0 0 1px 0;
}
.pay td:hover img {
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=80); /* IE 5.5+*/
-moz-opacity: 0.8; /* Mozilla 1.6 è íèæå */
-khtml-opacity: 0.8; /* Konqueror 3.1, Safari 1.1 */
opacity: 0.8; /* CSS3 - Mozilla 1.7b +, Firefox 0.9 +, Safari 1.2+, Opera 9 */
cursor:pointer;
}
</style>
<!-- óïðàâëåíèå ñ÷åòîì -->
<FORM action="main.php" method="POST">
<INPUT TYPE=hidden name="sd4" value="<? echo $u->info['nextAct']; ?>">
<TABLE width=100%>
<TR>
<TD valign=top width=30%><H4>Óïðàâëåíèå ñ÷åòîì</H4> &nbsp;
<b>Ñ÷¸ò ¹:</b> <? echo getNum($u->bank['id']); ?> <a href="?exit=<? echo $code; ?>" title="Îêîí÷èòü ðàáîòó c òåêóùèì ñ÷åòîì">[x]</a><br>
</TD>
<TD valign=top align=center width=40%>
<TABLE><TR><TD>
<FIELDSET><LEGEND><B>Ó âàñ íà ñ÷åòå</B> </LEGEND>
<TABLE>
<TR><TD>Êðåäèòîâ:</TD><TD><B><? echo $u->round2($u->bank['money1']); ?></B></TD></TR>
<TR><TD>Åâðîêðåäèòîâ:</TD>
<TD><B><? echo $u->round2($u->bank['money2']); ?></B></TD>
</TR>
<TR><TD colspan=2><HR></TD></TR>
<TR><TD>Ïðè ñåáå íàëè÷íûõ:</TD><TD><B><? echo $u->round2($u->info['money']); ?> êð.</B></TD></TR>
<TR><TD>Ïðè ñåáå íàëè÷íûõ:</TD><TD><B><? echo $u->round2($u->info['money2']); ?> Åêð.</B></TD></TR>
</TABLE>
</FIELDSET>
</TD></TR></TABLE>
</TD>
<TD valign=top align=right width=30%><FONT COLOR=red>Âíèìàíèå!</FONT> Íåêîòîðûå óñëóãè áàíêà ïëàòíûå, î ðàçìåðå âçûìàåìîé êîìèññèè íàïèñàíî â ñîîòâåòñòâóþùåì ðàçäåëå.</TD>
</TR>
</TABLE>
<style>
fieldset {
border:1px solid #AEAEAE;
}
hr {
border:0;
border-bottom:1px solid #aeaeae;
}
</style>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50%" valign="top"><table width="100%" cellspacing="5">
<tr>
<td valign="top" width="50%"><fieldset>
<legend><b>Ïîïîëíèòü ñ÷åò</b> </legend>
Ñóììà
<input type="text" name="add_sum" id="add_sum" size="6" maxlength="10" />
êð.
<input type="submit" name="add_kredit" value="Ïîëîæèòü êðåäèòû íà ñ÷åò" onclick="if(Math.round(document.getElementById('add_sum')).value==0) {alert('Óêàæèòå ñóììó è íîìåð ñ÷åòà'); return false;} else {return confirm('Âû õîòèòå ïîëîæèòü íà ñâîé ñ÷åò '+(Math.floor(document.getElementById('add_sum').value*100)/100).toFixed(2)+' êð. ?')}" />
<br />
Ñóììà
<input type="text" name="add_esum" id="add_esum" size="6" maxlength="10" />
Åêð.
<input type="submit" name="add_ekredit" value="Ïîëîæèòü êðåäèòû íà ñ÷åò" onclick="if(Math.round(document.getElementById('add_esum')).value==0) {alert('Óêàæèòå ñóììó è íîìåð ñ÷åòà'); return false;} else {return confirm('Âû õîòèòå ïîëîæèòü íà ñâîé ñ÷åò '+(Math.floor(document.getElementById('add_esum').value*100)/100).toFixed(2)+' Åêð. ?')}" />
<br />
</fieldset></td>
</tr>
<tr>
<td valign="top"><fieldset>
<legend><b>Ïåðåâåñòè êðåäèòû íà äðóãîé ñ÷åò</b> </legend>
Ñóììà
<input id="vl1" value="" type="text" name="tansfer_sum" size="6" maxlength="10" />
êð.<br />
Íîìåð ñ÷åòà êóäà ïåðåâåñòè êðåäèòû
<input value="" type="text" id="vl2" name="num" size="12" maxlength="15" />
<br />
<input type="submit" name="transfer_kredit" value="Ïåðåâåñòè êðåäèòû íà äðóãîé ñ÷åò" onclick="if(Math.round(document.getElementById('vl1')).value==0 || Math.round(document.getElementById('vl2').value)==0) {alert('Óêàæèòå ñóììó è íîìåð ñ÷åòà'); return false;} else {return confirm('Âû õîòèòå ïåðåâåñòè ñî ñâîåãî ñ÷åòà '+(Math.floor(document.getElementById('vl1').value*100)/100).toFixed(2)+' êð. íà ñ÷åò íîìåð '+Math.floor(document.getElementById('vl2').value)+' ?')}" />
<br />
<small>Êîìèññèÿ ñîñòàâëÿåò <b>3.00 %</b> îò ñóììû, íî íå ìåíåå <b>1.00 êð</b>.</small>
</fieldset></td>
</tr>
<tr>
<td valign="top"><fieldset>
<legend><b>Îáìåííûé ïóíêò</b> </legend>
Îáìåíÿòü åâðîêðåäèòû íà êðåäèòû.<br />
Êóðñ <b>1 åêð.</b> = <b><? echo $con; ?>.00 êð.</b><br />
Ñóììà
<input type="text" name="convert_sum" id="convert_sum" size="6" maxlength="10" />
åêð.
<input type="submit" name="convert_ekredit" value="Îáìåíÿòü" <? /*onclick="return confirm('Âû õîòèòå îáìåíÿòü '+(Math.floor(document.getElementById('convert_sum').value*100)/100).toFixed(2)+' åêð. íà '+(Math.floor(document.getElementById('convert_sum').value*100)/100*<? echo (0+$con); ?>).toFixed(2)+' êð. ?');" */ ?> />
</fieldset></td>
</tr>
<? if($u->info['align']!=2 && $u->info['haos'] < time() && $u->info['haos'] != 1 && $c['crtoecr'] > 0) { ?>
<tr>
<td valign="top"><fieldset style="background-color:#DDEAD7">
<legend><b>Îáìåííûé ïóíêò</b> </legend>
Îáìåíÿòü êðåäèòû íà åâðîêðåäèòû.<br />
Êóðñ <b><? echo $noc; ?> êð.</b> = <b>1.00 åêð.</b><br />
Ñóììà
<input type="text" name="convert_sum2" id="convert_sum2" size="6" maxlength="10" />
êð.
<br />
<small>Êîìèññèÿ ñîñòàâëÿåò <b>3.00 %</b> îò ñóììû, à òàê-æå <b>5.00 êð</b>.</small>
<input type="submit" name="convert_kredit" value="Îáìåíÿòü" onclick="return confirm('Âû õîòèòå îáìåíÿòü '+(5+Math.floor((document.getElementById('convert_sum2').value)*103)/100).toFixed(2)+' êð. íà '+(Math.floor(document.getElementById('convert_sum2').value*100)/100/<? echo $noc; ?>).toFixed(2)+' åêð. ?');" />
</fieldset></td>
</tr>
<? }
if($u->info['admin']>1000)
{
?>
<tr>
<td valign="top"><fieldset>
<legend><b>Ïåðåâåñòè åâðîêðåäèòû íà äðóãîé ñ÷åò</b> </legend>
Ñóììà
<input id="vl12" value="" type="text" name="tansfer_sum2" size="6" maxlength="10" />
åêð.<br />
Íîìåð ñ÷åòà êóäà ïåðåâåñòè êðåäèòû
<input value="" type="text" id="vl22" name="num2" size="12" maxlength="15" />
<br />
<input type="submit" name="transfer_kredit2" value="Ïåðåâåñòè åâðîêðåäèòû íà äðóãîé ñ÷åò" onclick="if(Math.round(document.getElementById('vl12')).value==0 || Math.round(document.getElementById('vl22').value)==0) {alert('Óêàæèòå ñóììó è íîìåð ñ÷åòà'); return false;} else {return confirm('Âû õîòèòå ïåðåâåñòè ñî ñâîåãî ñ÷åòà '+(Math.floor(document.getElementById('vl12').value*100)/100).toFixed(2)+' åêð. íà ñ÷åò íîìåð '+Math.floor(document.getElementById('vl22').value)+' ?')}" />
<br />
Êîìèññèÿ ñîñòàâëÿåò <b>0.00 %</b> îò ñóììû, íî íå ìåíåå <b>0.01 åêð</b>.
</fieldset></td>
</tr>
<? } ?>
<tr>
<td valign="top"><fieldset>
<legend><b>Íàñòðîéêè</b> </legend>
Ó âàñ ðàçðåøåíà âûñûëêà íîìåðà ñ÷åòà è ïàðîëÿ íà email. Åñëè âû íå óâåðåíû â ñâîåì email, èëè óáåæäåíû, ÷òî íå çàáóäåòå ñâîé íîìåð ñ÷åòà è ïàðîëü ê íåìó, òî ìîæåòå çàïðåòèòü âûñûëêó ïàðîëÿ íà email. Ýòî óáåðåæåò âàñ îò êðàæè êðåäèòîâ ñ âàøåãî ñ÷åòà â ñëó÷àå âçëîìà âàøåãî email. Íî åñëè âû ñàìè çàáóäåòå ñâîé íîìåð ñ÷åòà è/èëè ïàðîëü, âàì óæå íèêòî íå ïîìîæåò!<br />
<input type="submit" name="stop_send_email2" value="Çàïðåòèòü âûñûëêó ïàðîëÿ íà email" />
<hr />
<b>Ñìåíèòü ïàðîëü</b><br />
<table>
<tr>
<td>Íîâûé ïàðîëü</td>
<td><input type="password" name="new_psw1" /></td>
</tr>
<tr>
<td>Ââåäèòå íîâûé ïàðîëü ïîâòîðíî</td>
<td><input type="password" name="new_psw2" /></td>
</tr>
</table>
<input type="submit" name="change_psw2" value="Ñìåíèòü ïàðîëü" />
<br />
<div id="keypad4" align="center" style="display: none;"></div>
</fieldset></td>
</tr>
<tr>
<td valign="top">&nbsp;</td>
</tr>
</table>
</td>
<td width="50%" valign="top"><table width="100%" align="left" cellspacing="5">
<tr>
<td valign="top" width="50%"><fieldset>
<legend><b>Ñíÿòü ñî ñ÷åòà</b> </legend>
Ñóììà
<input type="text" name="get_sum" id="get_sum" size="6" maxlength="10" />
êð.
<input type="submit" name="get_kredit" value="Ñíÿòü êðåäèòû ñî ñ÷åòà" onclick="if(Math.round(document.getElementById('get_sum')).value==0) {alert('Óêàæèòå ñóììó è íîìåð ñ÷åòà'); return false;} else {return confirm('Âû õîòèòå ñíÿòü ñî ñâîåãî ñ÷åòà '+(Math.floor(document.getElementById('get_sum').value*100)/100).toFixed(2)+' êð. ?')}" />
<br />
Ñóììà
<input type="text" name="get_esum" id="get_esum" size="6" maxlength="10" />
Eêð.
<input type="submit" name="get_ekredit" value="Ñíÿòü Åêð ñî ñ÷åòà" onclick="if(Math.round(document.getElementById('get_esum')).value==0) {alert('Óêàæèòå ñóììó è íîìåð ñ÷åòà'); return false;} else {return confirm('Âû õîòèòå ñíÿòü ñî ñâîåãî ñ÷åòà '+(Math.floor(document.getElementById('get_esum').value*100)/100).toFixed(2)+' Åêð. ?')}" />
<br />
</fieldset></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td valign="top"><fieldset>
<legend><b>Êóðñ åâðîêðåäèòà ê ìèðîâîé âàëþòå</b> </legend>
<table width="100%" border="0" cellpadding="2" cellspacing="0">
<?
$pl = mysql_fetch_array(mysql_query('SELECT * FROM `bank_table` ORDER BY `time` DESC LIMIT 1'));
if(isset($pl['id'])) {
?>
<tr>
<td><small>Äàííûå íà <b><?=date('d.m.y H:i',$pl['time'])?></b> áåç ó÷åòà êîìèññèé</small></td>
</tr>
<?
$pl['RUB'] = 1;
$i = 0;
$true = array(
array('USD', 'äîëëàðîâ ÑØÀ'),
array('EUR', 'ÅÂÐÎ'),
array('RUB','ðîññèéñêèõ ðóáëåé'),
array('UAH','óêð. ãðèâåí'),
array('BYR','áåëîðóññêèõ ðóáëåé'),
array('AZN','àçåðáàéäæàíñêèõ ìàíàò'),
array('GBP','àíãë. ôóíòîâ ñòåðëèíãîâ')
);
while($i < count($true)) {
?>
<tr>
<td><span>1 åêð. = </span><span style="display:inline-block;width:100px"><b><?=round( ($pl['cur']/$pl[$true[$i][0]]) , 4 )?></b></span><span><?=$true[$i][1]?></span></td>
</tr>
<?
$i++;
}
}else{
?>
<tr>
<td><small><center><font color=green><b> 10UAH = 1 Åâðîêðåäèò </b></font></center></small></td>
</tr>
<tr>
<td><small><center><font color=green><b>0.35USD = 1 Åâðîêðåäèò </b></font></center></small></td>
</tr>
<tr>
<td><small><center><font color=green><b> 20RUB = 1 Åâðîêðåäèò </b></font></center></small></td>
</tr>
<tr>
<td><small><center><font color=green><b>0.29EUR = 1 Åâðîêðåäèò </b></font></center></small></td>
</tr>
<? } ?>
</table>
</fieldset></td>
</tr><tr>
<td valign="top"><fieldset>
<legend><b>Ïîñëåäíèå îïåðàöèè</b> </legend>
<table width="100%" border="0" cellpadding="2" cellspacing="0">
<?
$sp = mysql_query('SELECT * FROM `users_delo` WHERE `uid` = "'.$u->info['id'].'" AND `dop` = "'.$u->bank['id'].'" AND `type` = "3" ORDER BY `time` DESC LIMIT 21');
while($pl = mysql_fetch_array($sp))
{
?>
<tr>
<td><small><? echo '<font color="green">'.date('d.m.Y H:i',$pl['time']).'</font> '; echo $pl['text']; ?></small></td>
</tr>
<?
}
?>
</table>
</fieldset></td>
</tr>
</table></td>
</tr>
</table>
</FORM>
<small>Ñóììà óêàçàííàÿ â îêíå îïîâåùåíèÿ è ñóììû âçûìàåìàÿ\íà÷èñëÿåìàÿ ìîãóò ðàçëè÷àòüñÿ.</small>
<?
}
}
?>

File diff suppressed because it is too large Load Diff

View File

@ -1,37 +1,40 @@
<?
<?php
define('GAME', true);
include('_incl_data/__config.php');
include('_incl_data/class/__db_connect.php');
include('_incl_data/class/__chat_class.php');
include('_incl_data/class/__filter_class.php');
require_once '_incl_data/mails.php';
function getIp() {
function getIp()
{
$keys = [
'HTTP_CLIENT_IP',
'HTTP_X_FORWARDED_FOR',
'REMOTE_ADDR'
];
foreach ($keys as $key) {
if (!empty($_SERVER[$key])) {
$ip = trim(end(explode(',', $_SERVER[$key])));
if (empty($_SERVER[$key])) {
continue;
}
$arr = explode(',', $_SERVER[$key]);
$ip = trim(end($arr));
if (filter_var($ip, FILTER_VALIDATE_IP)) {
return $ip;
}
}
}
return null;
}
function add_effn($uid, $id)
{
$g = array(0=>0,1=>'');
$g = [0 => 0, 1 => ''];
$eff = mysql_fetch_array(mysql_query('SELECT * FROM `eff_main` WHERE `id2` = "' . $id . '" LIMIT 1'));
if(isset($eff['id2']))
{
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)
{
if ($ins) {
$g[0] = 1;
$g[1] = '...';
}
@ -39,84 +42,17 @@ function add_effn($uid,$id)
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 = array ('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', array(
'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))
{
if (($ru && $en) || (!$ru && !$en)) {
$g = true;
}
return $g;
}
function error_check($id, $str_u, $name = 0)
{
@ -125,39 +61,34 @@ function error_check($id,$str_u,$name = 0)
$error = "";
if ($id == 1 && !empty($str_u)) // Проверка логина
{
$nologin = array(0=>'àíãåë',1=>'angel',2=>'àäìèíèñòðàöèÿ',3=>'administration',4=>'Êîììåíòàòîð',5=>'Ìèðîçäàòåëü',6=>'Ìóñîðùèê',7=>'Ïàäàëüùèê',8=>'Ïîâåëèòåëü',9=>'Àðõèâàðèóñ',10=>'Ïåðåñìåøíèê',11=>'Âîëûíùèê',12=>'Ëîðä Ðàçðóøèòåëü',13=>'Ìèëîñåðäèå',14=>'Ñïðàâåäëèâîñòü',15=>'Èñêóøåíèå',16=>'Âîçíåñåíèå');
$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);
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)
{
if (strlen($str_u) > 20) {
$error = 'Логин должен содержать не более 20 символов.';
$error = $error . '<br> Пример правильного никнейма: Петя Убиватор, Коля, xalop. <br> Пример неправильного никнейма: )))), kolя)=-/.';
}
if(strlen($str_u)<4)
{
if (strlen($str_u) < 4) {
$error = 'Логин должен содержать не менее 4 символов.';
$error = $error . '<br> Пример правильного никнейма: Петя Убиватор, Коля, xalop. <br> Пример неправильного никнейма: )))), kolя)=-/.';
}
//Один алфавит
$er = en_ru($str_u);
if($er==true)
{
if ($er == true) {
$error = 'В логине разрешено использовать только буквы одного алфавита русского или английского. Нельзя смешивать.';
$error = $error . '<br> Пример правильного никнейма: Петя Убиватор, Коля, xalop. <br> Пример неправильного никнейма: )))), kolя)=-/.';
}
//Запрещенный символы
if(strpos($sr,$str_u))
{
if (strpos($sr, $str_u)) {
$error = 'Логин содержит запрещенные символы.';
$error = $error . '<br> Пример правильного никнейма: Петя Убиватор, Коля, xalop. <br> Пример неправильного никнейма: )))), kolя)=-/.';
}
@ -165,13 +96,11 @@ function error_check($id,$str_u,$name = 0)
//Персонажи в базе
$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']))
{
if (isset($log['id']) || isset($log2['id'])) {
$error = 'Логин ' . $str_u . ' уже занят, выберите другой.';
}
//Разделители
if(substr_count($str_u,' ')+substr_count($str_u,'-')+substr_count($str_u,'_')>2)
{
if (substr_count($str_u, ' ') + substr_count($str_u, '-') + substr_count($str_u, '_') > 2) {
$error = 'Не более двух разделителей одновременно (пробел, тире, нижнее подчеркивание).';
$error = $error . '<br> Пример правильного никнейма: Петя Убиватор, Коля, xalop. <br> Пример неправильного никнейма: )))), kolя)=-/.';
}
@ -180,20 +109,15 @@ function error_check($id,$str_u,$name = 0)
if ($id == 2 && !empty($str_u)) //проверка емаила
{
if(strlen($str_u)<6 || strlen($str_u)>50)
{
if (strlen($str_u) < 6 || strlen($str_u) > 50) {
$error = 'E-mail не может быть короче 6-х символов и длинее 50-ти.';
}
else
{
} 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']))
{
if (isset($testEREm['mail'])) {
$error = 'E-mail уже занят.';
}
if (isset($emails['email']))
{
if (isset($emails['email'])) {
$error = 'E-mail заблокирован свяжитесь с Администрацией.';
}
@ -201,24 +125,20 @@ function error_check($id,$str_u,$name = 0)
$i = 1;
$tx = '<br>Возможно использовать только сервисы почты:<br>';
$sp = mysql_query('SELECT * FROM `trust_email`');
while($pl = mysql_fetch_array($sp))
{
while ($pl = mysql_fetch_array($sp)) {
$emailtest = $pl['email'];
if(!preg_match("/".$emailtest."/i",$str_u))
{
if (!preg_match("/" . $emailtest . "/i", $str_u)) {
$i++;
}
$tx = $tx . $pl['email'] . ' ';
$x++;
}
if ($i==$x)
{
if ($i == $x) {
$error = 'Данный почтовый сервис использовать нельзя.' . $tx;
}
}
if(!preg_match('#^[a-z0-9.!\#$%&\'*+-/=?^_`{|}~]+@([0-9.]+|([^\s]+\.+[a-z]{2,6}))$#si', $str_u))
{
if (!preg_match('#^[a-z0-9.!\#$%&\'*+-/=?^_`{|}~]+@([0-9.]+|([^\s]+\.+[a-z]{2,6}))$#si', $str_u)) {
$error = 'Вы указали явно ошибочный E-mail.<br>';
}
if ($error != '') {
@ -231,61 +151,38 @@ function error_check($id,$str_u,$name = 0)
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().'");');
mysql_query(sprintf("insert into secure_code (email, code, time) values (%s, %d, unix_timestamp())", $str_u, $code));
$title = 'Секретный Код - Новый Бойцовский Клуб' . $name;
$txt .= 'Ñåêðåòíûé Êîä: '.$code;
if(send_mime_mail('Áîéöîâñêèé Êëóá - Support',
'newcombats22@gmail.com',
''.$name.'',
$str_u,
'CP1251', // êîäèðîâêà, â êîòîðîé íàõîäÿòñÿ ïåðåäàâàåìûå ñòðîêè
'KOI8-R', // êîäèðîâêà, â êîòîðîé áóäåò îòïðàâëåíî ïèñüìî
$title,
$txt))
{
}else{
$error = 'Íå óäàëîñü îòïðàâèòü ñîîáùåíèå. Ïîïðîáóéòå ïîçæå.';
}
$txt = 'Ñåêðåòíûé Êîä: ' . $code;
mails($str_u, $txt, $title);
}
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)
{
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)
{
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)
{
if ($str_u != $name) {
$error = 'В анкете пароль нужно ввести дважды, для проверки. Во второй раз вы его ввели неверно, будьте внимательнее.';
$error = $error . '<br>Пример правильного пароля: Parol228, Kotik111, Pswerd112.<br>Пример неправильного пароля: parol228, kotik.';
}
if (!preg_match('/[a-zà-ÿ]+/', $str_u))
{
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))
{
} 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))
{
} else {
if (!preg_match('/[0-9]+/', $str_u)) {
$error = 'Пароль не содержит цифр.';
$error = $error . '<br>Пример правильного пароля: Parol228, Kotik111, Pswerd112.<br>Пример неправильного пароля: parol228, kotik.';
}
@ -302,14 +199,14 @@ 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="Ïðîéäèòå ïðîñòóþ ðåãèñòðàöèþ è ñòàíüòå ó÷àñòíèêîì ? áðàóçåðíîé îíëàéí èãðû-ëåãåíäû ÁÊ. Áîåö, ìû æäåì òåáÿ â íàøèõ ðÿäàõ, ïîýòîìó çàâîäè àêêàóíò ñêîðåé. "/>
<meta name="description"
content="Ïðîéäèòå ïðîñòóþ ðåãèñòðàöèþ è ñòàíüòå ó÷àñòíèêîì ? áðàóçåðíîé îíëàéí èãðû-ëåãåíäû ÁÊ. Áîåö, ìû æäåì òåáÿ â íàøèõ ðÿäàõ, ïîýòîìó çàâîäè àêêàóíò ñêîðåé. "/>
</head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251"/>
@ -321,6 +218,7 @@ if ($_SERVER['HTTP_USER_AGENT']!='' &&
background-repeat: no-repeat; /* Отменяем повторение фона */
}
.visible_class {
background-image: url(script.png); /* Путь к фоновому рисунку */
background-size: 100% 100%;
@ -333,6 +231,7 @@ if ($_SERVER['HTTP_USER_AGENT']!='' &&
min-height: 200px;
transform: translate(-50%, -50%)
}
.visible_class input {
background: none repeat scroll 0 0 #720300;
border-color: #720300 #327CB5 #327CB5 #720300;
@ -349,6 +248,7 @@ if ($_SERVER['HTTP_USER_AGENT']!='' &&
margin-right: auto;
margin-left: auto;
}
.visible_class select {
background: none repeat scroll 0 0 #720300;
border-color: #720300 #327CB5 #327CB5 #720300;
@ -367,6 +267,7 @@ if ($_SERVER['HTTP_USER_AGENT']!='' &&
overflow-x: hidden;
overflow-y: hidden;
}
.visible_class h3 {
text-align: center;
@ -378,6 +279,7 @@ if ($_SERVER['HTTP_USER_AGENT']!='' &&
#-webkit-text-stroke: 1px red;
}
.visible_class h4 {
text-align: center;
@ -389,6 +291,7 @@ if ($_SERVER['HTTP_USER_AGENT']!='' &&
#-webkit-text-stroke: 1px red;
}
.visible_class radio {
text-align: center;
@ -397,7 +300,11 @@ if ($_SERVER['HTTP_USER_AGENT']!='' &&
#-webkit-text-stroke: 1px red;
}
.visible_class a:visited { color: red; }
.visible_class a:visited {
color: red;
}
.visible_class_s input[type="submit"] {
margin: 20px 0;
padding: 0 10px;
@ -410,7 +317,11 @@ if ($_SERVER['HTTP_USER_AGENT']!='' &&
cursor: pointer;
transition: .2s linear
}
.visible_class_s input[type="submit"]:hover {background: #C44D58;}
.visible_class_s input[type="submit"]:hover {
background: #C44D58;
}
.visible_class_s {
margin: 0;
position: absolute;
@ -428,9 +339,11 @@ if ($_SERVER['HTTP_USER_AGENT']!='' &&
display: inline-block;
margin-right: 10px;
}
.form_radio_btn input[type=radio] {
display: none;
}
.form_radio_btn label {
display: inline-block;
cursor: pointer;
@ -458,6 +371,7 @@ if ($_SERVER['HTTP_USER_AGENT']!='' &&
background: #efefef;
color: #666;
}
.box {
background: linear-gradient(to right, gold, darkorange);
color: white;
@ -504,17 +418,13 @@ if ($_SERVER['HTTP_USER_AGENT']!='' &&
<?
if(isset($_GET['ref']) || isset($_POST['ref']))
{
if (isset($_GET['ref']) || isset($_POST['ref'])) {
?>
<div class="invisible_class">
<p><input type="text" name="ref" value="<?
if (isset($_GET['ref']))
{
if (isset($_GET['ref'])) {
print_r($_GET['ref']);
}
else
{
} else {
print_r($_POST['ref']);
}
@ -522,120 +432,134 @@ if ($_SERVER['HTTP_USER_AGENT']!='' &&
</div>
<?
}
if (!isset ($_POST['nick_u']))
{
if (!isset ($_POST['nick_u'])) {
?>
<div class="visible_class">
<p> <h3>Ââåäèòå íèêíåéì äëÿ Âàøåãî ïåðñîíàæà </h3><input type="text" name="nick_u" value="Ââåäèòå âàø nickname"/></p>
<p>
<h3>Ââåäèòå íèêíåéì äëÿ Âàøåãî ïåðñîíàæà </h3><input type="text" name="nick_u"
value="Ââåäèòå âàø nickname"/></p>
</div>
<?
}
elseif (isset ($_POST['nick_u']) && error_check(1,$_POST['nick_u']) != "")
{
} 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>
<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
{
} 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>
<p> Èìÿ âàøåãî ïåðñîíàæà (login): <input type="text" name="nick_u"
value="<? print_r($_POST['nick_u']); ?>"/></p>
</div>
<?
}
elseif (isset ($_POST['email_u']) && error_check(2,$_POST['email_u']) != "")
{
} ?>
<?
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="<?print_r($_POST['email_u']); ?>"/></p>
<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
{
} 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'])=="")
{
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>
<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']) != "")
{
} 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>
<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
{
} 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']) == "")
{
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>
<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']) != "")
{
} 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>
<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
{
} 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']) == "")
{
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>
@ -646,9 +570,7 @@ if ($_SERVER['HTTP_USER_AGENT']!='' &&
</select></p>
</div>
<?
}
else
{
} else {
?>
<div class="invisible_class">
<select name="pol_u" size="2" multiple>
@ -656,66 +578,76 @@ if ($_SERVER['HTTP_USER_AGENT']!='' &&
<option value="<? print_r($_POST['pol_u']); ?>"></option>
</select></p>
</div>
<?}?>
<?
} ?>
<?
if (empty($_POST['bday_u']) && !empty($_POST['pol_u']))
{
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
{
} 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']))
{
if (empty($_POST['class_u']) && !empty($_POST['bday_u'])) {
?>
<div class="visible_class">
<p><h3>Âûáåðèòå èãðîâîé êëàññ äëÿ âàøåãî ïåðñîíàæà:</h3></p>
<p><h3>Âíèìàíèå! Âûáîð èãðîâîãî êëàññà íå âëèÿåò íà èãðó â öåëîì è íèãäå íå ôèêñèðóåòñÿ èëè æå èñïîëüçóåòñÿ,
ýòî íåîáõîäèìî äëÿ òîãî, ÷òîáû âàø ïåðñîíàæ ïîëó÷èë íóæíûå ïðåäìåòû â íà÷àëå èãðû, à òàê æå íóæíûå áàôôû.</h3></p>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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']) == "")
{
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();
include('_incl_data/class/__user.php');
@ -859,8 +791,7 @@ if ($_SERVER['HTTP_USER_AGENT']!='' &&
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) //óâîðîò
} elseif ($_POST['class_u'] == 2) //óâîðîò
{
//кастим эфекты
$us = add_effn($uid, 8); // ловка
@ -942,8 +873,7 @@ if ($_SERVER['HTTP_USER_AGENT']!='' &&
mysql_query('UPDATE `users` SET `money` = `money`-1972 WHERE `id` = "' . $uid . '" LIMIT 1');//коректировка денег 2244 - 1972
}
elseif($_POST['class_u']==3)//òàíê
} elseif ($_POST['class_u'] == 3)//òàíê
{
//кастим эфекты
$us = add_effn($uid, 1); // сила
@ -1023,8 +953,7 @@ if ($_SERVER['HTTP_USER_AGENT']!='' &&
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)//êðèò
} elseif ($_POST['class_u'] == 4)//êðèò
{
//кастим эфекты
$us = add_effn($uid, 7); // инта
@ -1104,8 +1033,7 @@ if ($_SERVER['HTTP_USER_AGENT']!='' &&
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)//âîçäóõ
} elseif ($_POST['class_u'] == 5)//âîçäóõ
{
//кастим эфекты
$us = add_effn($uid, 9); // интелект
@ -1184,8 +1112,7 @@ if ($_SERVER['HTTP_USER_AGENT']!='' &&
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)//îãîíü
} elseif ($_POST['class_u'] == 6)//îãîíü
{
//кастим эфекты
$us = add_effn($uid, 9); // интелект
@ -1265,8 +1192,7 @@ if ($_SERVER['HTTP_USER_AGENT']!='' &&
///----
mysql_query('UPDATE `users` SET `money` = `money`-1988 WHERE `id` = "' . $uid . '" LIMIT 1');//коректировка денег 2244 - 1988
}
elseif($_POST['class_u']==7)//çåìëÿ
} elseif ($_POST['class_u'] == 7)//çåìëÿ
{
@ -1348,8 +1274,7 @@ if ($_SERVER['HTTP_USER_AGENT']!='' &&
///----
mysql_query('UPDATE `users` SET `money` = `money`-1988 WHERE `id` = "' . $uid . '" LIMIT 1');//коректировка денег 2244 - 1988
}
elseif($_POST['class_u']==8)//âîäà
} elseif ($_POST['class_u'] == 8)//âîäà
{
//кастим эфекты
$us = add_effn($uid, 9); // интелект
@ -1509,15 +1434,12 @@ if ($_SERVER['HTTP_USER_AGENT']!='' &&
(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(getIp()) . '" ORDER BY `id` ASC LIMIT 1'));
$ppl = mysql_query('SELECT * FROM `logs_auth` WHERE `ip`!="" AND (`ip` = "' . mysql_real_escape_string(getIp()) . '" OR `ip`="' . mysql_real_escape_string($ipm1['ip']) . '" OR `ip`="' . mysql_real_escape_string($_COOKIE['ip']) . '")');
while($spl = mysql_fetch_array($ppl))
{
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')
{
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'] . '")');
}
}
@ -1543,13 +1465,10 @@ if ($_SERVER['HTTP_USER_AGENT']!='' &&
header('location: https://new-combats.com/bk');
//===================================================================
}
//================================
}
else
{
} else {
?>
<div class="visible_class_s">
<p><input class="box" type="submit"/></p>
@ -1561,5 +1480,4 @@ if ($_SERVER['HTTP_USER_AGENT']!='' &&
}
?>

View File

@ -1,4 +1,5 @@
<?
<?php
require_once '_incl_data/mails.php';
$step = 1;
$error = '';
@ -6,20 +7,13 @@ if(isset($_GET['login'])) {
$_POST['relogin'] = $_GET['login'];
}
//die('Âîññòàíîâëåíèå ïàðîëÿ íåäîñòóïíî. Ñîçäàéòå íîâîãî ïåðñîíàæà è íàïèøèòå ëþáîìó ìîäåðàòîðó.');
function GetRealIp()
{
if (!empty($_SERVER['HTTP_CLIENT_IP']))
{
if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
$ip = $_SERVER['HTTP_CLIENT_IP'];
}
elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR']))
{
} elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
}
else
{
} else {
$ip = $_SERVER['REMOTE_ADDR'];
}
return $ip;
@ -27,77 +21,8 @@ function GetRealIp()
define('IP', GetRealIp());
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 = array ('From' => $email_from, 'Content-type' => 'text/html; charset='.$send_charset.'\r\n', 'To' => $to, 'Subject' => $subject, 'Reply-To' => $email_from);
set_include_path("." . PATH_SEPARATOR . ($UserDir = dirname($_SERVER['DOCUMENT_ROOT'])) . "/pear/php" . PATH_SEPARATOR . get_include_path());
require_once "Mail.php";
$smtp = Mail::factory('smtp', array(
'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 = 'admnew-combats@gmail.com',$name = '<b>Áîéöîâñêèé Êëóá</b> 2',$title,$text) {
send_mime_mail($name,
$from,
$to_name,
$to,
'CP1251', // êîäèðîâêà, â êîòîðîé íàõîäÿòñÿ ïåðåäàâàåìûå ñòðîêè
'KOI8-R', // êîäèðîâêà, â êîòîðîé áóäåò îòïðàâëåíî ïèñüìî
$title,
$text); // \r\n
}
if (isset($_POST['relogin'])) {
$_POST['relogin'] = htmlspecialchars($_POST['relogin'],NULL,'cp1251');
$_POST['relogin'] = htmlspecialchars($_POST['relogin'], null, 'cp1251');
include('_incl_data/__config.php');
define('GAME', true);
@ -120,11 +45,8 @@ define('IP',GetRealIp());
unset($re);
}
if (!isset($re['id'])) {
$sm = array('a','b','c','d','e','f','x','d','f','X','e','ER','XX','X');
$sm = ['a', 'b', 'c', 'd', 'e', 'f', 'x', 'd', 'f', 'X', 'e', 'ER', 'XX', 'X'];
$re['depass'] = $sm[rand(0, 12)] . rand(0, 9) . $sm[rand(0, 12)] . rand(0, 9) . $sm[rand(0, 12)] . rand(0, 9) . $sm[rand(0, 12)] . rand(0, 9) . $sm[rand(0, 12)] . rand(0, 9);
//$error = 'Ðàññûëêà âðåìåííî íå ðàáîòàåò.<br>Ïàðîëü îò ïåðñîíàæà: </b>'.$re['depass'].'<b>';
}else{
//$error = 'Ðàññûëêà âðåìåííî íå ðàáîòàåò.<br>Ïàðîëü îò ïåðñîíàæà: </b>'.$re['depass'].'<b>';
}
$title = 'Âîññòàíîâëåíèå ïàðîëÿ îò "' . $usr['login'] . '".';
$txt = 'Äîáðûé äåíü.<br>';
@ -135,23 +57,15 @@ define('IP',GetRealIp());
$txt .= 'Ñ óâàæåíèåì,<br>';
$txt .= 'Àäìèíèñòðàöèÿ Áîéöîâñêîãî Êëóáà';
//if(send_mail($urs['mail'],$urs['login'],'admnew-combats@gmail.com','ÁÊ2 - Support',$title,$txt)) {
if(send_mime_mail('Áîéöîâñêèé Êëóá - Support',
'admnew-combats@gmail.com',
''.$usr['login'].'',
$usr['mail'],
'CP1251', // êîäèðîâêà, â êîòîðîé íàõîäÿòñÿ ïåðåäàâàåìûå ñòðîêè
'KOI8-R', // êîäèðîâêà, â êîòîðîé áóäåò îòïðàâëåíî ïèñüìî
$title,
$txt))
{
$mail = mails($usr['mail'], $txt, $title);
if ($mail === 1) {
mysql_query('UPDATE `users` SET `securetime` = "' . time() . '" , `allLock`="' . (time() + 60 * 60 * 24 * 0) . '",`pass` = "' . mysql_real_escape_string(md5($re['depass'])) . '" WHERE `id` = "' . $usr['id'] . '" LIMIT 1');
mysql_query('INSERT INTO `repass` (`uid`,`ip`,`type`,`time`) VALUES ("' . $usr['id'] . '","' . mysql_real_escape_string(IP) . '","1","' . time() . '")');
$step = 3;
} else {
$error = 'Íå óäàëîñü îòïðàâèòü ñîîáùåíèå. Ïîïðîáóéòå ïîçæå.';
$error = $mail;
}
unset($mail);
} else {
$error = 'Íåâåðíûé îòâåò íà ñåêðåòíûé âîïðîñ èëè íåâåðíî óêàçàí äåíü ðîæäåíèÿ.';
}
@ -160,7 +74,7 @@ define('IP',GetRealIp());
$error = 'Ïåðñîíàæó "' . $_POST['relogin'] . '" çàïðåùåíà âûñûëêà ïàðîëÿ!';
}
} else {
$error = 'Ëîãèí "'.htmlspecialchars($_POST['relogin'],NULL,'cp1251').'" íå íàéäåí â áàçå.';
$error = 'Ëîãèí "' . htmlspecialchars($_POST['relogin'], null, 'cp1251') . '" íå íàéäåí â áàçå.';
}
}
@ -170,34 +84,41 @@ define('IP',GetRealIp());
<head>
<meta charset="windows-1251"/>
<title>Âîññòàíîâëåíèå ïàðîëÿ îò ïåðñîíàæà Áîéöîâñêèé Êëóá</title>
<meta name="keywords" content="áîéöîâñêèé êëóá èãðà, áîéöîâñêèé êëóá èãðàòü, èãðà áîéöîâñêèé êëóá, ñòàðûé áîéöîâñêèé Êëóá, áîéöîâñêèé êëóá îíëàéí èãðà, áîéöîâñêèé êëóá áðàóçåðíàÿ èãðà, èãðàòü â áîéöîâñêèé êëóá, èãðà áê, áê èãðà, ñòàðûé áê, èãðàòü â áê, áê îíëàéí èãðà, íîâûé áê, Ëåãåíäàðíûé Áîéöîâñêèé Êëóá, ëåãåíäàðíûé áê, combats, êîìáàòñ, combats ru, combats com, OldBK, oldbk ru, oldbk com, îëäáê, old bk, îëä áê, mycombats, rebk, recombats, oldcombats, obk2">
<meta name="description" content="Íà ýòîé ñòðàíè÷êå èãðîêè ìîãóò âîññòàíîâèòü ñâîé èãðîâîé ïàðîëü â áðàóçåðíîé èãðå Íîâûé Áîéöîâñêèé Êëóá"/>
<meta name="keywords"
content="áîéöîâñêèé êëóá èãðà, áîéöîâñêèé êëóá èãðàòü, èãðà áîéöîâñêèé êëóá, ñòàðûé áîéöîâñêèé Êëóá, áîéöîâñêèé êëóá îíëàéí èãðà, áîéöîâñêèé êëóá áðàóçåðíàÿ èãðà, èãðàòü â áîéöîâñêèé êëóá, èãðà áê, áê èãðà, ñòàðûé áê, èãðàòü â áê, áê îíëàéí èãðà, íîâûé áê, Ëåãåíäàðíûé Áîéöîâñêèé Êëóá, ëåãåíäàðíûé áê, combats, êîìáàòñ, combats ru, combats com, OldBK, oldbk ru, oldbk com, îëäáê, old bk, îëä áê, mycombats, rebk, recombats, oldcombats, obk2">
<meta name="description"
content="Íà ýòîé ñòðàíè÷êå èãðîêè ìîãóò âîññòàíîâèòü ñâîé èãðîâîé ïàðîëü â áðàóçåðíîé èãðå Íîâûé Áîéöîâñêèé Êëóá"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<link href="homepage/index.css" type="text/css" rel="stylesheet">
</head>
<body>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="100" align="center" valign="middle"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<td height="100" align="center" valign="middle">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="200" align="center" valign="middle">&nbsp;</td>
<td align="center" valign="middle"><p>&nbsp;</p>
<p>&nbsp;</p></td>
<td width="200">&nbsp;</td>
</tr>
</table></td>
</table>
</td>
</tr>
<tr>
<td align="center" valign="middle">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="135" align="left" valign="middle" background="https://top.new-combats.com/images/sitebk_02.jpg" style="background-repeat:repeat-x">&nbsp;</td>
<td width="135" align="right" valign="middle" background="https://top.new-combats.com/images/sitebk_02.jpg" style="background-repeat:repeat-x">&nbsp;</td>
<td width="135" align="left" valign="middle"
background="https://top.new-combats.com/images/sitebk_02.jpg"
style="background-repeat:repeat-x">&nbsp;
</td>
<td width="135" align="right" valign="middle"
background="https://top.new-combats.com/images/sitebk_02.jpg"
style="background-repeat:repeat-x">&nbsp;
</td>
</tr>
<tr>
<!--LiveInternet counter-->
<!--/LiveInternet-->
</td>
<td height="150" align="center" valign="middle" class="menu">
<p><b>Çàáûëè ïàðîëü îò ñâîåãî ïåðñîíàæà?</b></p>
@ -212,7 +133,10 @@ define('IP',GetRealIp());
<table width="400" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Óêàæèòå ëîãèí ïåðñîíàæà:</td>
<td><input onfocus="if ( 'Ëîãèí' == value ) { value = ''; } " onblur="if ( '' == value ) { value = 'Ëîãèí'; } " value="Ëîãèí" maxlength="40" style="padding:3px" name="relogin" type="text" class="inup" id="relogin"></td>
<td><input onfocus="if ( 'Ëîãèí' == value ) { value = ''; } "
onblur="if ( '' == value ) { value = 'Ëîãèí'; } " value="Ëîãèí"
maxlength="40" style="padding:3px" name="relogin" type="text"
class="inup" id="relogin"></td>
</tr>
</table><br>
<input type="submit" class="btn" value="Ïåðåéòè ê ñëåäóþùåìó øàãó">
@ -220,7 +144,11 @@ define('IP',GetRealIp());
<table width="400" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Ëîãèí ïåðñîíàæà:</td>
<td><input value="<?=$_POST['relogin']?>" disabled maxlength="40" style="padding:3px" type="text" class="inup"><input type="hidden" name="relogin" value="<?=$_POST['relogin']?>"></td>
<td>
<input value="<?= $_POST['relogin'] ?>" disabled maxlength="40"
style="padding:3px" type="text" class="inup">
<input type="hidden" name="relogin" value="<?= $_POST['relogin'] ?>">
</td>
</tr>
<?
if ($usr['a1'] != '') { ?>
@ -230,19 +158,23 @@ define('IP',GetRealIp());
</tr>
<tr>
<td>Âàø îòâåò:</td>
<td><input value="<?=$_POST['reanswer']?>" name="reanswer" maxlength="30" style="padding:3px" type="text" class="inup"></td>
<td><input value="<?= $_POST['reanswer'] ?>" name="reanswer" maxlength="30"
style="padding:3px" type="text" class="inup"></td>
</tr>
<? } ?>
<tr>
<td>Âàø äåíü ðîæäåíèÿ:</td>
<td><input value="<?=$_POST['redate']?>" name="redate" maxlength="10" style="padding:3px" type="text" class="inup"></td>
<td><input value="<?= $_POST['redate'] ?>" name="redate" maxlength="10"
style="padding:3px" type="text" class="inup"></td>
</tr>
</table>
<small class="testro">(äåíü ðîæäåíèÿ âû óêàçûâàëè ïðè ðåãèñòðàöèè ïåðñîíàæà â ôîðìàòå dd.mm.yyyy)</small>
<small class="testro">(äåíü ðîæäåíèÿ âû óêàçûâàëè ïðè ðåãèñòðàöèè ïåðñîíàæà â ôîðìàòå
dd.mm.yyyy)</small>
<br>
<br>
<br>
<input type="button" onclick="top.location.href='https://new-combats.com/repass.php'" class="btn" value="Âåðíóòüñÿ">
<input type="button" onclick="top.location.href='https://new-combats.com/repass.php'"
class="btn" value="Âåðíóòüñÿ">
<input type="submit" class="btn" value="Âûñëàòü ïàðîëü íà E-mail">
<? } ?>
</form>
@ -259,7 +191,9 @@ define('IP',GetRealIp());
<td height="50" align="center" valign="middle">&nbsp;</td>
</tr>
<tr>
<td height="50" align="center"><span class="testro">&laquo;Ñòàðûé Áîéöîâñêèé Êëóá&raquo; &nbsp; &nbsp; 2018-<?=date('Y')?> &copy; Áðàóçåðíàÿ îíëàéí èãðà</span></td>
<td height="50" align="center"><span
class="testro">&laquo;Ñòàðûé Áîéöîâñêèé Êëóá&raquo; &nbsp; &nbsp; 2018-<?= date('Y') ?> &copy; Áðàóçåðíàÿ îíëàéí èãðà</span>
</td>
</tr>
</table>
</body>