dev-runes (#7)
Closes #1 #2 #3 #4 #5 #6. Под рассчёт, $150. Co-authored-by: Ivor Barhansky <me@lopar.space> Reviewed-on: new-combats.com/game#7
This commit is contained in:
parent
5f4b2cbf77
commit
a591872949
162
_incl_data/class/Insallah/Runes/Runes.php
Normal file
162
_incl_data/class/Insallah/Runes/Runes.php
Normal file
@ -0,0 +1,162 @@
|
||||
<?php
|
||||
|
||||
namespace Insallah;
|
||||
|
||||
class Runes
|
||||
{
|
||||
/** Создаём руну в зависимости от уровня.
|
||||
*
|
||||
* @param $level
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function get($level)
|
||||
{
|
||||
if (!in_array($level, [8, 9, 10])) {
|
||||
return [];
|
||||
}
|
||||
$power = [8 => 3, 9 => 5, 10 => 7];
|
||||
$stats = [8 => 1, 9 => 3, 10 => 3];
|
||||
$rand9 = array_rand(array_flip(['hpAll', 'm2', 'm5']));
|
||||
$runes = [
|
||||
['s1', 'pa2', $rand9, 'antm3'],
|
||||
['s1', 'pa3', $rand9, 'za'],
|
||||
['s2', 'pa1', $rand9, 'antm3'],
|
||||
['s2', 'pa1', $rand9, 'm3'],
|
||||
['s3', 'pa4', $rand9, 'm3'],
|
||||
['s5', 'm11', 'mpAll', 'pzm']
|
||||
];
|
||||
$vars = [
|
||||
's1' => ['Сила', mt_rand(1, $stats[$level])],
|
||||
's2' => ['Ловкость', mt_rand(1, $stats[$level])],
|
||||
's3' => ['Интуиция', mt_rand(1, $stats[$level])],
|
||||
's5' => ['Интеллект', mt_rand(1, $stats[$level])],
|
||||
'pa1' => ['Мощности Колющего урона', mt_rand(1, $power[$level])],
|
||||
'pa2' => ['Мощности Рубящего урона', mt_rand(1, $power[$level])],
|
||||
'pa3' => ['Мощности Дробящего урона', mt_rand(1, $power[$level])],
|
||||
'pa4' => ['Мощности Режущего урона', mt_rand(1, $power[$level])],
|
||||
'm2' => ['мф. Против Критического Удара', mt_rand(5, 15)],
|
||||
'm3' => ['МК', mt_rand(1, 3)],
|
||||
'antm3' => ['ПМК', mt_rand(1, 3)],
|
||||
'm5' => ['мф. Против Увертывания', mt_rand(5, 10)],
|
||||
'm11' => ['Мощности Магии стихии', mt_rand(1, $power[$level])],
|
||||
'hpAll' => ['HP', mt_rand(5, 15)],
|
||||
'mpAll' => ['MP', mt_rand(10, 20)],
|
||||
'pzm' => ['Подавление защиты от магии', 1],
|
||||
'za' => ['Защита от Урона', mt_rand(5, 10)],
|
||||
'zma' => ['Защита от Магии', mt_rand(5, 10)]
|
||||
];
|
||||
|
||||
$rune = $runes[array_rand($runes)]; // arr (s, pa\m, rand9\mpAll, other)
|
||||
$runeTxt = [$vars[$rune[0]][0], $vars[$rune[1]][0], $vars[$rune[2]][0], $vars[$rune[3]][0]];
|
||||
$runeVals = [$vars[$rune[0]][1], $vars[$rune[1]][1], $vars[$rune[2]][1], $vars[$rune[3]][1]];
|
||||
$resultRune = array_combine($rune, $runeVals);
|
||||
$resultText = array_combine($runeTxt, $runeVals);
|
||||
if ($level < 10) { // Отрезаем параметр 4.
|
||||
array_pop($resultRune);
|
||||
array_pop($resultText);
|
||||
}
|
||||
if ($level < 9) { // Отрезаем параметр 3.
|
||||
array_pop($resultRune);
|
||||
array_pop($resultText);
|
||||
}
|
||||
//Строчка data в базу
|
||||
$returnData = '|' . http_build_query($resultRune, '', '|');
|
||||
$returnData = str_replace('|', '|add_', $returnData);
|
||||
//Строчка человекопонятных параметров в статус.
|
||||
$returnText = urldecode(http_build_query($resultText, '', ', '));
|
||||
$returnText = 'Характеристики Руны: ' . str_replace('=', ': +', $returnText) . '.';
|
||||
return [$returnData, $returnText];
|
||||
}
|
||||
|
||||
/** Выкусывает руну из предмета.
|
||||
*
|
||||
* @param array $itemDataArray
|
||||
* data предмета
|
||||
*
|
||||
* @return array массив, item - предмет, rune - руна из предмета, rune_id - id руны.
|
||||
* Оба в подготовленном строчном формате для data
|
||||
*/
|
||||
public static function removeRuneData($itemDataArray)
|
||||
{
|
||||
# Ищем есть ли в предмете руна определённого типа.
|
||||
$runeid = array_search('rune_id', array_flip($itemDataArray));
|
||||
if (!in_array($runeid, [6001, 6002, 6003])) {
|
||||
return [];
|
||||
}
|
||||
$bonusArgs = 0;
|
||||
# В зависимости от типа руны считаем количество элементов-бонусов.
|
||||
if ($runeid === 6001) {
|
||||
$bonusArgs = 2;
|
||||
}
|
||||
if ($runeid === 6002) {
|
||||
$bonusArgs = 3;
|
||||
}
|
||||
if ($runeid === 6003) {
|
||||
$bonusArgs = 4;
|
||||
}
|
||||
$args = 0; //basic rune values - rune, id, name, lvl
|
||||
$rune = [];
|
||||
$item = [];
|
||||
foreach ($itemDataArray as $key => $value) {
|
||||
if ($key == 'rune') {
|
||||
$args = 4 + $bonusArgs;
|
||||
}
|
||||
if ($args > 0) {
|
||||
$rune[$key] = $value;
|
||||
$args--;
|
||||
continue;
|
||||
}
|
||||
$item[$key] = $value;
|
||||
}
|
||||
|
||||
unset($rune['rune'], $rune['rune_id'], $rune['rune_name'], $rune['rune_lvl']);
|
||||
|
||||
return [
|
||||
'item' => urldecode('|' . http_build_query($item, '', '|')),
|
||||
'rune' => urldecode('|' . http_build_query($rune, '', '|')),
|
||||
'rune_id' => (int)$runeid
|
||||
];
|
||||
}
|
||||
|
||||
public static function checkParts($part1, $part2, $part3, $reputation)
|
||||
{
|
||||
$level8 = [10038, 6001];
|
||||
$level9 = [10039, 6002];
|
||||
$level10 = [10040, 6003];
|
||||
if (
|
||||
in_array($part1, $level8) &&
|
||||
in_array($part2, $level8) &&
|
||||
in_array($part3, $level8) &&
|
||||
$reputation >= 100
|
||||
) {
|
||||
$itm = 6001;
|
||||
$runelevel = 8;
|
||||
$query = 'update users_achiv set rp = rp + 1 where id = %d';
|
||||
} elseif (
|
||||
in_array($part1, $level9) &&
|
||||
in_array($part2, $level9) &&
|
||||
in_array($part3, $level9) &&
|
||||
$reputation >= 1000
|
||||
) {
|
||||
$itm = 6002;
|
||||
$runelevel = 9;
|
||||
$query = 'update users_achiv set rn = rn + 1 where id = %d';
|
||||
} elseif (
|
||||
in_array($part1, $level10) &&
|
||||
in_array($part2, $level10) &&
|
||||
in_array($part3, $level10) &&
|
||||
$reputation >= 1000
|
||||
) {
|
||||
$itm = 6003;
|
||||
$runelevel = 10;
|
||||
$query = 'update users_achiv set rb = rb + 1 where id = %d';
|
||||
}
|
||||
|
||||
return empty($itm) || empty($runelevel) || empty($query) ? [] : [
|
||||
'rune_id' => $itm,
|
||||
'rune_level' => $runelevel,
|
||||
'query' => $query
|
||||
];
|
||||
}
|
||||
}
|
@ -698,7 +698,7 @@ FROM `items_users` AS `iu` LEFT JOIN `items_main` AS `im` ON (`im`.`id` = `iu`.`
|
||||
//Òèï óðîíà: 0 - íåò óðîíà, 1 - êîëþùèé, 2 - ðóáÿùèé, 3 - äðîáÿùèé, 4 - ðåæóùèé, 5 - îãîíü, 6 - âîçäóõ, 7 - âîäà, 8 - çåìëÿ, 9 - ñâåò, 10 - òüìà, 11 - ñåðàÿ
|
||||
if ($item['type'] == 18) {
|
||||
//êîëþùèé
|
||||
$sss = ceil($st['s2'] * 1);
|
||||
$sss = ceil($st['s2'] * 0.75);
|
||||
} elseif ($item['type'] == 19) {
|
||||
//ðóáÿùèé
|
||||
$sss = ceil($st['s1'] * 0.75);
|
||||
@ -6728,20 +6728,16 @@ FROM `items_users` AS `iu` LEFT JOIN `items_main` AS `im` ON (`im`.`id` = `iu`.`
|
||||
} elseif ($type == 67 && $pl['gift'] != '') {
|
||||
$see1 = 0;
|
||||
} elseif ($type == 11) { // Õðàì Çíàíèé (ïëàâêà ïðåäìåòîâ)
|
||||
if ($pl['inTransfer'] > 0 || (isset($po['sudba']) && $po['sudba'] != '0' && $po['sudba'] != $this->info['login'])) { // $po['sudba'] != ''&& $po['sudba'] != '0' && $po['sudba'] != '1' && $po['sudba'] != $this->info['id'])
|
||||
$see1 = 0;
|
||||
}
|
||||
if ($pl['type'] != 1 && $pl['type'] != 3 && $pl['type'] != 9 && $pl['type'] != 10 && $pl['type'] != 11 && $pl['type'] != 5 && $pl['type'] != 6 && $pl['type'] != 8 && $pl['type'] != 12 && $pl['type'] != 14 && $pl['type'] != 15 && $pl['type'] != 18 && $pl['type'] != 19 && $pl['type'] != 20 && $pl['type'] != 21 && $pl['type'] != 22 && $pl['type'] != 13 && $pl['type'] != 72 && $pl['item_id'] != 1035) {
|
||||
$see1 = 0;
|
||||
}
|
||||
if ($po['tr_lvl'] < 4 && $pl['item_id'] != 1035) {
|
||||
if (
|
||||
$pl['inTransfer'] > 0 ||
|
||||
(!empty($po['sudba']) && $po['sudba'] != $this->info['login']) ||
|
||||
!in_array($pl['type'], [1, 3, 5, 6, 8, 9, 10, 11, 12, 13, 14, 15, 18, 19, 20, 21, 22, 72, 1035]) ||
|
||||
($po['tr_lvl'] < 4 && $pl['item_id'] != 1035)
|
||||
) {
|
||||
$see1 = 0;
|
||||
}
|
||||
} elseif ($type == 14) { // Õðàì Çíàíèé (ïëàâêà ðóí)
|
||||
if ($pl['inTransfer'] > 0) {
|
||||
$see1 = 0;
|
||||
}
|
||||
if ($pl['type'] != 31) {
|
||||
if ($pl['inTransfer'] > 0 || !in_array($pl['type'], [31, 6001, 6002, 6003]) {
|
||||
$see1 = 0;
|
||||
}
|
||||
} elseif ($type == 12) {
|
||||
@ -12237,7 +12233,8 @@ LIMIT 1'));
|
||||
if ($this->info['upexpdate'] == 0) {
|
||||
$this->info['upexpdate'] = time();
|
||||
mysql_query('UPDATE `stats` SET `upexpdate` = "' . time() . '" WHERE `id` = "' . $this->info['id'] . '" LIMIT 1');
|
||||
} elseif (time() >= ($this->info['upexpdate'] + 4 * 60 * 60 * 24)) {
|
||||
} elseif (time() >= ($this->info['upexpdate'] + 400 * 60 * 60 * 24)) //4*60*60*24
|
||||
{
|
||||
$this->info['upexpdate'] = time();
|
||||
$this->info['expstopu'] = $this->info['expstopu'] + 1;
|
||||
mysql_query('UPDATE `stats` SET `upexpdate` = "' . time() . '",`expstopu` = `expstopu`+1 WHERE `id` = "' . $this->info['id'] . '" LIMIT 1');
|
||||
|
2826
_incl_data/class/mail/class.phpmailer.php
Normal file
2826
_incl_data/class/mail/class.phpmailer.php
Normal file
File diff suppressed because it is too large
Load Diff
418
_incl_data/class/mail/class.pop3.php
Normal file
418
_incl_data/class/mail/class.pop3.php
Normal file
@ -0,0 +1,418 @@
|
||||
<?php
|
||||
/*~ class.pop3.php
|
||||
.---------------------------------------------------------------------------.
|
||||
| Software: PHPMailer - PHP email class |
|
||||
| Version: 5.2.4 |
|
||||
| Site: https://code.google.com/a/apache-extras.org/p/phpmailer/ |
|
||||
| ------------------------------------------------------------------------- |
|
||||
| Admin: Jim Jagielski (project admininistrator) |
|
||||
| Authors: Andy Prevost (codeworxtech) codeworxtech@users.sourceforge.net |
|
||||
| : Marcus Bointon (coolbru) coolbru@users.sourceforge.net |
|
||||
| : Jim Jagielski (jimjag) jimjag@gmail.com |
|
||||
| Founder: Brent R. Matzelle (original founder) |
|
||||
| Copyright (c) 2010-2012, Jim Jagielski. All Rights Reserved. |
|
||||
| Copyright (c) 2004-2009, Andy Prevost. All Rights Reserved. |
|
||||
| Copyright (c) 2001-2003, Brent R. Matzelle |
|
||||
| ------------------------------------------------------------------------- |
|
||||
| License: Distributed under the Lesser General Public License (LGPL) |
|
||||
| http://www.gnu.org/copyleft/lesser.html |
|
||||
| This program is distributed in the hope that it will be useful - WITHOUT |
|
||||
| ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
||||
| FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
'---------------------------------------------------------------------------'
|
||||
*/
|
||||
|
||||
/**
|
||||
* PHPMailer - PHP POP Before SMTP Authentication Class
|
||||
* NOTE: Designed for use with PHP version 5 and up
|
||||
* @package PHPMailer
|
||||
* @author Andy Prevost
|
||||
* @author Marcus Bointon
|
||||
* @author Jim Jagielski
|
||||
* @copyright 2010 - 2012 Jim Jagielski
|
||||
* @copyright 2004 - 2009 Andy Prevost
|
||||
* @license http://www.gnu.org/copyleft/lesser.html Distributed under the Lesser General Public License (LGPL)
|
||||
*/
|
||||
|
||||
/**
|
||||
* PHP POP-Before-SMTP Authentication Class
|
||||
*
|
||||
* Version 5.2.4
|
||||
*
|
||||
* @license: LGPL, see PHPMailer License
|
||||
*
|
||||
* Specifically for PHPMailer to allow POP before SMTP authentication.
|
||||
* Does not yet work with APOP - if you have an APOP account, contact Jim Jagielski
|
||||
* and we can test changes to this script.
|
||||
*
|
||||
* This class is based on the structure of the SMTP class originally authored by Chris Ryan
|
||||
*
|
||||
* This class is rfc 1939 compliant and implements all the commands
|
||||
* required for POP3 connection, authentication and disconnection.
|
||||
*
|
||||
* @package PHPMailer
|
||||
* @author Richard Davey (orig) <rich@corephp.co.uk>
|
||||
* @author Andy Prevost
|
||||
* @author Jim Jagielski
|
||||
*/
|
||||
|
||||
class POP3 {
|
||||
/**
|
||||
* Default POP3 port
|
||||
* @var int
|
||||
*/
|
||||
public $POP3_PORT = 110;
|
||||
|
||||
/**
|
||||
* Default Timeout
|
||||
* @var int
|
||||
*/
|
||||
public $POP3_TIMEOUT = 30;
|
||||
|
||||
/**
|
||||
* POP3 Carriage Return + Line Feed
|
||||
* @var string
|
||||
*/
|
||||
public $CRLF = "\r\n";
|
||||
|
||||
/**
|
||||
* Displaying Debug warnings? (0 = now, 1+ = yes)
|
||||
* @var int
|
||||
*/
|
||||
public $do_debug = 2;
|
||||
|
||||
/**
|
||||
* POP3 Mail Server
|
||||
* @var string
|
||||
*/
|
||||
public $host;
|
||||
|
||||
/**
|
||||
* POP3 Port
|
||||
* @var int
|
||||
*/
|
||||
public $port;
|
||||
|
||||
/**
|
||||
* POP3 Timeout Value
|
||||
* @var int
|
||||
*/
|
||||
public $tval;
|
||||
|
||||
/**
|
||||
* POP3 Username
|
||||
* @var string
|
||||
*/
|
||||
public $username;
|
||||
|
||||
/**
|
||||
* POP3 Password
|
||||
* @var string
|
||||
*/
|
||||
public $password;
|
||||
|
||||
/**
|
||||
* Sets the POP3 PHPMailer Version number
|
||||
* @var string
|
||||
*/
|
||||
public $Version = '5.2.4';
|
||||
|
||||
/////////////////////////////////////////////////
|
||||
// PROPERTIES, PRIVATE AND PROTECTED
|
||||
/////////////////////////////////////////////////
|
||||
|
||||
/**
|
||||
* @var resource Resource handle for the POP connection socket
|
||||
*/
|
||||
private $pop_conn;
|
||||
/**
|
||||
* @var boolean Are we connected?
|
||||
*/
|
||||
private $connected;
|
||||
/**
|
||||
* @var array Error container
|
||||
*/
|
||||
private $error; // Error log array
|
||||
|
||||
/**
|
||||
* Constructor, sets the initial values
|
||||
* @access public
|
||||
* @return POP3
|
||||
*/
|
||||
public function __construct() {
|
||||
$this->pop_conn = 0;
|
||||
$this->connected = false;
|
||||
$this->error = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Combination of public events - connect, login, disconnect
|
||||
* @access public
|
||||
* @param string $host
|
||||
* @param bool|int $port
|
||||
* @param bool|int $tval
|
||||
* @param string $username
|
||||
* @param string $password
|
||||
* @param int $debug_level
|
||||
* @return bool
|
||||
*/
|
||||
public function Authorise ($host, $port = false, $tval = false, $username, $password, $debug_level = 0) {
|
||||
$this->host = $host;
|
||||
|
||||
// If no port value is passed, retrieve it
|
||||
if ($port == false) {
|
||||
$this->port = $this->POP3_PORT;
|
||||
} else {
|
||||
$this->port = $port;
|
||||
}
|
||||
|
||||
// If no port value is passed, retrieve it
|
||||
if ($tval == false) {
|
||||
$this->tval = $this->POP3_TIMEOUT;
|
||||
} else {
|
||||
$this->tval = $tval;
|
||||
}
|
||||
|
||||
$this->do_debug = $debug_level;
|
||||
$this->username = $username;
|
||||
$this->password = $password;
|
||||
|
||||
// Refresh the error log
|
||||
$this->error = null;
|
||||
|
||||
// Connect
|
||||
$result = $this->Connect($this->host, $this->port, $this->tval);
|
||||
|
||||
if ($result) {
|
||||
$login_result = $this->Login($this->username, $this->password);
|
||||
|
||||
if ($login_result) {
|
||||
$this->Disconnect();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// We need to disconnect regardless if the login succeeded
|
||||
$this->Disconnect();
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Connect to the POP3 server
|
||||
* @access public
|
||||
* @param string $host
|
||||
* @param bool|int $port
|
||||
* @param integer $tval
|
||||
* @return boolean
|
||||
*/
|
||||
public function Connect ($host, $port = false, $tval = 30) {
|
||||
// Are we already connected?
|
||||
if ($this->connected) {
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
On Windows this will raise a PHP Warning error if the hostname doesn't exist.
|
||||
Rather than supress it with @fsockopen, let's capture it cleanly instead
|
||||
*/
|
||||
|
||||
set_error_handler(array(&$this, 'catchWarning'));
|
||||
|
||||
// Connect to the POP3 server
|
||||
$this->pop_conn = fsockopen($host, // POP3 Host
|
||||
$port, // Port #
|
||||
$errno, // Error Number
|
||||
$errstr, // Error Message
|
||||
$tval); // Timeout (seconds)
|
||||
|
||||
// Restore the error handler
|
||||
restore_error_handler();
|
||||
|
||||
// Does the Error Log now contain anything?
|
||||
if ($this->error && $this->do_debug >= 1) {
|
||||
$this->displayErrors();
|
||||
}
|
||||
|
||||
// Did we connect?
|
||||
if ($this->pop_conn == false) {
|
||||
// It would appear not...
|
||||
$this->error = array(
|
||||
'error' => "Failed to connect to server $host on port $port",
|
||||
'errno' => $errno,
|
||||
'errstr' => $errstr
|
||||
);
|
||||
|
||||
if ($this->do_debug >= 1) {
|
||||
$this->displayErrors();
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
// Increase the stream time-out
|
||||
|
||||
// Check for PHP 4.3.0 or later
|
||||
if (version_compare(phpversion(), '5.0.0', 'ge')) {
|
||||
stream_set_timeout($this->pop_conn, $tval, 0);
|
||||
} else {
|
||||
// Does not work on Windows
|
||||
if (substr(PHP_OS, 0, 3) !== 'WIN') {
|
||||
socket_set_timeout($this->pop_conn, $tval, 0);
|
||||
}
|
||||
}
|
||||
|
||||
// Get the POP3 server response
|
||||
$pop3_response = $this->getResponse();
|
||||
|
||||
// Check for the +OK
|
||||
if ($this->checkResponse($pop3_response)) {
|
||||
// The connection is established and the POP3 server is talking
|
||||
$this->connected = true;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Login to the POP3 server (does not support APOP yet)
|
||||
* @access public
|
||||
* @param string $username
|
||||
* @param string $password
|
||||
* @return boolean
|
||||
*/
|
||||
public function Login ($username = '', $password = '') {
|
||||
if ($this->connected == false) {
|
||||
$this->error = 'Not connected to POP3 server';
|
||||
|
||||
if ($this->do_debug >= 1) {
|
||||
$this->displayErrors();
|
||||
}
|
||||
}
|
||||
|
||||
if (empty($username)) {
|
||||
$username = $this->username;
|
||||
}
|
||||
|
||||
if (empty($password)) {
|
||||
$password = $this->password;
|
||||
}
|
||||
|
||||
$pop_username = "USER $username" . $this->CRLF;
|
||||
$pop_password = "PASS $password" . $this->CRLF;
|
||||
|
||||
// Send the Username
|
||||
$this->sendString($pop_username);
|
||||
$pop3_response = $this->getResponse();
|
||||
|
||||
if ($this->checkResponse($pop3_response)) {
|
||||
// Send the Password
|
||||
$this->sendString($pop_password);
|
||||
$pop3_response = $this->getResponse();
|
||||
|
||||
if ($this->checkResponse($pop3_response)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Disconnect from the POP3 server
|
||||
* @access public
|
||||
*/
|
||||
public function Disconnect () {
|
||||
$this->sendString('QUIT');
|
||||
|
||||
fclose($this->pop_conn);
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////
|
||||
// Private Methods
|
||||
/////////////////////////////////////////////////
|
||||
|
||||
/**
|
||||
* Get the socket response back.
|
||||
* $size is the maximum number of bytes to retrieve
|
||||
* @access private
|
||||
* @param integer $size
|
||||
* @return string
|
||||
*/
|
||||
private function getResponse ($size = 128) {
|
||||
$pop3_response = fgets($this->pop_conn, $size);
|
||||
|
||||
return $pop3_response;
|
||||
}
|
||||
|
||||
/**
|
||||
* Send a string down the open socket connection to the POP3 server
|
||||
* @access private
|
||||
* @param string $string
|
||||
* @return integer
|
||||
*/
|
||||
private function sendString ($string) {
|
||||
$bytes_sent = fwrite($this->pop_conn, $string, strlen($string));
|
||||
|
||||
return $bytes_sent;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks the POP3 server response for +OK or -ERR
|
||||
* @access private
|
||||
* @param string $string
|
||||
* @return boolean
|
||||
*/
|
||||
private function checkResponse ($string) {
|
||||
if (substr($string, 0, 3) !== '+OK') {
|
||||
$this->error = array(
|
||||
'error' => "Server reported an error: $string",
|
||||
'errno' => 0,
|
||||
'errstr' => ''
|
||||
);
|
||||
|
||||
if ($this->do_debug >= 1) {
|
||||
$this->displayErrors();
|
||||
}
|
||||
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* If debug is enabled, display the error message array
|
||||
* @access private
|
||||
*/
|
||||
private function displayErrors () {
|
||||
echo '<pre>';
|
||||
|
||||
foreach ($this->error as $single_error) {
|
||||
print_r($single_error);
|
||||
}
|
||||
|
||||
echo '</pre>';
|
||||
}
|
||||
|
||||
/**
|
||||
* Takes over from PHP for the socket warning handler
|
||||
* @access private
|
||||
* @param integer $errno
|
||||
* @param string $errstr
|
||||
* @param string $errfile
|
||||
* @param integer $errline
|
||||
*/
|
||||
private function catchWarning ($errno, $errstr, $errfile, $errline) {
|
||||
$this->error[] = array(
|
||||
'error' => "Connecting to the POP3 server raised a PHP warning: ",
|
||||
'errno' => $errno,
|
||||
'errstr' => $errstr
|
||||
);
|
||||
}
|
||||
|
||||
// End of class
|
||||
}
|
||||
?>
|
1003
_incl_data/class/mail/class.smtp.php
Normal file
1003
_incl_data/class/mail/class.smtp.php
Normal file
File diff suppressed because it is too large
Load Diff
34
_incl_data/mails.php
Normal file
34
_incl_data/mails.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/** Îòïðàâêà ïî÷òû */
|
||||
|
||||
function mails($to, $message, $subject = 'Áîéöîâñêèé êëóá')
|
||||
{
|
||||
require '_incl_data/class/mail/class.phpmailer.php';
|
||||
$message = mb_convert_encoding($message, 'UTF-8', 'CP1251');
|
||||
$subject = mb_convert_encoding($subject, '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 = mb_convert_encoding('Áîéöîâñêèé Êëóá', 'UTF-8', 'CP1251');
|
||||
$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;
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -1,394 +0,0 @@
|
||||
<?php
|
||||
if(!defined('GAME'))
|
||||
{
|
||||
die();
|
||||
}
|
||||
|
||||
/*$qst_hram = mysql_fetch_array(mysql_query('SELECT * FROM `dialog_act` WHERE `uid` = "'.$u->info['id'].'" AND `var` = "qsthram1" AND `val` = 1 LIMIT 1'));
|
||||
if(isset($qst_hram['id'])) {
|
||||
$qst_hram = true;
|
||||
}else{
|
||||
$qst_hram = false;
|
||||
unset($_GET['r']);
|
||||
}*/
|
||||
|
||||
$qst_hram = true;
|
||||
|
||||
if($u->room['file']=='ab/hram')
|
||||
{
|
||||
if(isset($_GET['itm']) && $qst_hram == true)
|
||||
{
|
||||
|
||||
if($_GET['itm']>0)
|
||||
{
|
||||
if($_GET['r']==1)
|
||||
{
|
||||
$_GET['itm'] = (int)$_GET['itm'];
|
||||
//Ïåðåïëàâêà âåùåé
|
||||
$resz = $u->plavka($_GET['itm'],1);
|
||||
$re = '<font color=red><b>'.$resz.'</b></font>';
|
||||
unset($resz);
|
||||
}elseif( $_GET['r'] == 2 ){
|
||||
//Ïåðåïëàâêà ðóí
|
||||
$resz = '';
|
||||
|
||||
$itm123 = explode('x',$_GET['itm']);
|
||||
|
||||
$itm1 = round((int)$itm123[0]);
|
||||
$itm2 = round((int)$itm123[1]);
|
||||
$itm3 = round((int)$itm123[2]);
|
||||
|
||||
|
||||
$itm1 = mysql_fetch_array(mysql_query('SELECT `a`.`id` AS `iid`,`a`.*,`b`.* FROM `items_users` AS `a` LEFT JOIN `items_main` AS `b` ON (`b`.`id` = `a`.`item_id` AND `b`.`type` = 31) WHERE `a`.`id` = "'.mysql_real_escape_string($itm1).'" AND `a`.`uid` = "'.$u->info['id'].'" AND `a`.`delete` = 0 AND `a`.`inShop` = 0 AND `a`.`inTransfer` = 0 LIMIT 1'));
|
||||
$itm2 = mysql_fetch_array(mysql_query('SELECT `a`.`id` AS `iid`,`a`.*,`b`.* FROM `items_users` AS `a` LEFT JOIN `items_main` AS `b` ON (`b`.`id` = `a`.`item_id` AND `b`.`type` = 31) WHERE `a`.`id` = "'.mysql_real_escape_string($itm2).'" AND `a`.`uid` = "'.$u->info['id'].'" AND `a`.`delete` = 0 AND `a`.`inShop` = 0 AND `a`.`inTransfer` = 0 LIMIT 1'));
|
||||
$itm3 = mysql_fetch_array(mysql_query('SELECT `a`.`id` AS `iid`,`a`.*,`b`.* FROM `items_users` AS `a` LEFT JOIN `items_main` AS `b` ON (`b`.`id` = `a`.`item_id` AND `b`.`type` = 31) WHERE `a`.`id` = "'.mysql_real_escape_string($itm3).'" AND `a`.`uid` = "'.$u->info['id'].'" AND `a`.`delete` = 0 AND `a`.`inShop` = 0 AND `a`.`inTransfer` = 0 LIMIT 1'));
|
||||
|
||||
if($itm1['iid'] == $itm2['iid'] || $itm2['iid'] == $itm3['iid'] || $itm1['iid'] == $itm3['iid'] ) {
|
||||
$resz = 'Íå óäàëîñü ðàñïëàâèòü îäíó ðóíó, îíà ñãîðåëà.';
|
||||
mysql_query('UPDATE `items_users` SET `delete` = "'.time().'" WHERE `id` = "'.$itm3['iid'].'" OR `id` = "'.$itm2['iid'].'" OR `id` = "'.$itm1['iid'].'"');
|
||||
}elseif(!isset($itm1['id']) || !isset($itm2['id']) || !isset($itm3['id'])) {
|
||||
$resz = 'Íåäîñòàòî÷íî êîìïîíåíòîâ äëÿ ïðåîáðàçîâàíèÿ.';
|
||||
}elseif( $itm1['level'] != $itm2['level'] || $itm1['level'] != $itm3['level'] ) {
|
||||
$resz = 'Ðóíû äîëæíû áûòü îäíîãî óðîâíÿ.';
|
||||
}elseif( $itm1['level'] == 1 ) {
|
||||
//$resz = 'Óíèðóíû íåëüçÿ ïðåîáðàçîâûâàòü';
|
||||
$itm4 = array();
|
||||
$sp = mysql_query('SELECT * FROM `items_main` WHERE `level` = "'.$itm1['level'].'" AND `type` = 31
|
||||
AND `id` != "'.$itm1['item_id'].'" AND `id` != "'.$itm2['item_id'].'" AND `id` != "'.$itm3['item_id'].'" AND `id` < 6000');
|
||||
while( $pl = mysql_fetch_array($sp) ) {
|
||||
$itm4[] = $pl;
|
||||
}
|
||||
$itm4 = $itm4[rand(0,count($itm4)-1)];
|
||||
mysql_query('UPDATE `items_users` SET `delete` = "'.time().'" WHERE `id` = "'.$itm3['iid'].'" OR `id` = "'.$itm2['iid'].'" OR `id` = "'.$itm1['iid'].'"');
|
||||
$u->rep['rep1'] += 10;
|
||||
mysql_query('UPDATE `rep` SET `rep1` = "'.$u->rep['rep1'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
||||
$u->addItem($itm4['id'],$u->info['id']);
|
||||
$resz = 'Óäà÷íî ïðåîáðàçîâàíû ðóíû "'.$itm1['name'].'","'.$itm2['name'].'" è "'.$itm3['name'].'" â "'.$itm4['name'].'".';
|
||||
$resz .= '<Br>Äîáàâëåíà ðåïóòàöèÿ Õðàìà Çíàíèé +10';
|
||||
}else{
|
||||
$itm4 = array();
|
||||
$sp = mysql_query('SELECT * FROM `items_main` WHERE `level` = "'.$itm1['level'].'" AND `type` = 31
|
||||
AND `id` != "'.$itm1['item_id'].'" AND `id` != "'.$itm2['item_id'].'" AND `id` != "'.$itm3['item_id'].'"');
|
||||
while( $pl = mysql_fetch_array($sp) ) {
|
||||
$itm4[] = $pl;
|
||||
}
|
||||
$itm4 = $itm4[rand(0,count($itm4)-1)];
|
||||
mysql_query('UPDATE `items_users` SET `delete` = "'.time().'" WHERE `id` = "'.$itm3['iid'].'" OR `id` = "'.$itm2['iid'].'" OR `id` = "'.$itm1['iid'].'"');
|
||||
$u->rep['rep1'] += 1;
|
||||
mysql_query('UPDATE `rep` SET `rep1` = "'.$u->rep['rep1'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
||||
$u->addItem($itm4['id'],$u->info['id']);
|
||||
$resz = 'Óäà÷íî ïðåîáðàçîâàíû ðóíû "'.$itm1['name'].'","'.$itm2['name'].'" è "'.$itm3['name'].'" â "'.$itm4['name'].'".';
|
||||
$resz .= '<Br>Äîáàâëåíà ðåïóòàöèÿ Õðàìà Çíàíèé +1';
|
||||
}
|
||||
|
||||
$re = '<font color=red><b>'.$resz.'</b></font>';
|
||||
unset($resz);
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
<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>
|
||||
<div id="hint3" style="visibility:hidden"></div>
|
||||
<? if(isset($_GET['r'])) { ?>
|
||||
<TABLE width="100%" cellspacing="0" cellpadding="0">
|
||||
<tr><td valign="top">
|
||||
<div align="center" class="pH3">Õðàì Çíàíèé <? if($_GET['r']==2){ echo ', Àëòàðü ðóí'; }elseif($_GET['r']==1){ echo ', Àëòàðü ïðåäìåòîâ'; } ?></div>
|
||||
<div align="left"><? if($re!=''){ echo '<font color="red"><b>'.$re.'</b></font>'; } ?></div>
|
||||
<td width="280" valign="top" align="right"><table align="right" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="100%"> </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=3.180.0.267&rnd=<? echo $code; ?>';" title="<? thisInfRm('3.180.0.267',1); ?>">Öåíòðàëüíàÿ ïëîùàäü</a></td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr> <tr>
|
||||
<td nowrap="nowrap"> </td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br /><br />
|
||||
<input type="button" class="btn" value="Îáíîâèòü" onclick="location.href = '<? if(isset($_GET['r'])) { echo 'main.php?r='.floor($_GET['r']); }else{ echo 'main.php'; } ?>';" /><? if(isset($_GET['r'])){ ?> <input class="btn" type="button" value="Âåðíóòüñÿ" onclick="location.href = 'main.php';" /><? } ?><br><br>
|
||||
</td>
|
||||
</table>
|
||||
<div id="textgo" style="visibility:hidden;"></div>
|
||||
<?
|
||||
}
|
||||
if(!isset($_GET['r'])) {
|
||||
//Äèàëîãîâûé ïåðñ
|
||||
?>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="250" valign="top"><? $usee = $u->getInfoPers($u->info['id'],0); if($usee!=false){ echo $usee[0]; }else{ echo 'information is lost.'; } ?></td>
|
||||
<td width="230" valign="top" style="padding-top:19px;"><? include('modules_data/stats_loc.php'); ?></td>
|
||||
<td valign="top"><div align="right">
|
||||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr align="right" valign="top">
|
||||
<td><? if($re!=''){ echo '<font color="red"><b>'.$re.'</b></font>'; } ?>
|
||||
<table width="500" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td><div style="position:relative; cursor: pointer;" id="ione"> <img src="https://img.new-combats.com/city/ap_bg13_1.jpg" alt="" name="img_ione" width="500" height="268" border="1" id="img_ione"/>
|
||||
<div id="buttons_on_image" style="cursor:pointer; font-weight:bold; color:#D8D8D8; font-size:10px;"> <span onmousemove="this.runtimeStyle.color = 'white';" onmouseout="this.runtimeStyle.color = this.parentElement.style.color;" onclick="window.open('https://new-combats.com/forum', 'forum', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')">Ôîðóì</span> </div>
|
||||
<script language="javascript" type="text/javascript">
|
||||
<!--
|
||||
if(document.getElementById('ione'))
|
||||
{
|
||||
document.getElementById('ione').appendChild(document.getElementById('buttons_on_image'));
|
||||
document.getElementById('buttons_on_image').style.position = 'absolute';
|
||||
document.getElementById('buttons_on_image').style.bottom = '8px';
|
||||
document.getElementById('buttons_on_image').style.right = '23px';
|
||||
}else{
|
||||
document.getElementById('buttons_on_image').style.display = 'none';
|
||||
}
|
||||
-->
|
||||
</script>
|
||||
<div style="position: absolute; left: 437px; top: 96px; width: 48px; height: 33px; z-index: 94;"><img <? thisInfRm('1.180.0.323'); ?> src="https://img.new-combats.com/city/ap_exit.gif" width="57" height="26" class="aFilter" /></div>
|
||||
<div style="position: absolute; left: 191px; top: 12px; width: 75px; height: 68px; z-index: 94;"><img onclick="location.href='main.php?talk=11'" src="https://img.new-combats.com/city/1269_igsetee.png" width="120" height="220" class="aFilter" title="Äèàëîã ñ Àðêâèåððî" /></div>
|
||||
<div style="position: absolute; left: 30px; top: 127px; width: 48px; height: 33px; z-index: 94;"><img <? if($qst_hram==false){ echo 'onclick="alert(\'Àðêâèåððî: Âû íå äîïóùåíû ê êîòëàì! (Âûïîëíèòå çàäàíèå)\');"'; }else{ ?> onclick="location.href='main.php?r=1'" <? } ?> title="Àëòàðü Ïðåäìåòîâ" src="https://img.new-combats.com/city/ap_altar1.gif" width="147" height="93" class="aFilter" /></div>
|
||||
<div style="position: absolute; left: 333px; top: 129px; width: 48px; height: 33px; z-index: 94;"><img <? if($qst_hram==false){ echo 'onclick="alert(\'Àðêâèåððî: Âû íå äîïóùåíû ê êîòëàì! (Âûïîëíèòå çàäàíèå)\');"'; }else{ ?> onclick="location.href='main.php?r=2'" <? } ?> title="Àëòàðü Ðóí" src="https://img.new-combats.com/city/ap_altar2.gif" width="147" height="93" class="aFilter" /></div>
|
||||
<div style="position: absolute; left: 437px; top: 96px; width: 48px; height: 33px; z-index: 94;"><img <? thisInfRm('3.180.0.267'); ?> src="https://img.new-combats.com/city/ap_exit.gif" width="57" height="26" class="aFilter" /></div>
|
||||
|
||||
|
||||
<div id="snow"></div>
|
||||
<? echo $goline; ?> </div></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div style="display:none; height:0px " id="moveto"></div>
|
||||
<INPUT class="btn" onclick="window.open('/forum?read=974&rnd=1', 'help', 'height=500,width=1024,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes')" value="Ïîäñêàçêà äëÿ íîâè÷êîâ" style="color:red;" type="button">
|
||||
</small></div></td>
|
||||
<td><!-- <br /><span class="menutop"><nobr>Êîìíàòà äëÿ íîâè÷êîâ</nobr></span>--></td>
|
||||
</tr>
|
||||
</table>
|
||||
<small>
|
||||
<hr />
|
||||
<br />
|
||||
<strong>Âíèìàíèå!</strong> Íèêîãäà è íèêîìó íå ãîâîðèòå ïàðîëü îò ñâîåãî ïåðñîíàæà. Íå ââîäèòå ïàðîëü íà äðóãèõ ñàéòàõ, òèïà "íîâûé ãîðîä", "ëîòåðåÿ", "òàì, ãäå âñå äàþò íà õàëÿâó". Ïàðîëü íå íóæåí íè ïàëàäèíàì, íè êëàíàì, íè àäìèíèñòðàöèè, <U>òîëüêî âçëîìùèêàì</U> äëÿ êðàæè âàøåãî ãåðîÿ.<br />
|
||||
<em>Àäìèíèñòðàöèÿ.</em></small> <br />
|
||||
<? echo $rowonmax; ?><br />
|
||||
</div></td>
|
||||
</tr>
|
||||
</table>
|
||||
<?
|
||||
}elseif($_GET['r']==1){
|
||||
$itmAll = ''; $itmAllSee = '';
|
||||
$itmAll = $u->genInv(11,'`iu`.`uid`="'.$u->info['id'].'" AND `iu`.`delete` = "0" AND `iu`.`inOdet`="0" AND `iu`.`inShop`="0" AND `iu`.`data` NOT LIKE "%fromshop=2%" ORDER BY `lastUPD` DESC');
|
||||
if($itmAll[0]==0){
|
||||
$itmAllSee = '<tr><td align="center" bgcolor="#e2e0e0">ÏÓÑÒÎ (íåò ïîäõîäÿùèõ ïðåäìåòîâ)</td></tr>';
|
||||
}else{
|
||||
$itmAllSee = $itmAll[2];
|
||||
}
|
||||
//Óäà÷íî ðàñòâîðåí ïðåäìåò "Óêðåïëåííûé Êîñòûëü". Ïîëó÷åíà ðóíà "Ìîíî Áàóíè".
|
||||
?>
|
||||
<script>
|
||||
function takeItRun(img,id,vl)
|
||||
{
|
||||
if(id!=urlras)
|
||||
{
|
||||
urlras = id;
|
||||
document.getElementById('use_item').innerHTML = '<img src="https://<?=$c['img'];?>/i/items/'+img+'" title="Ïðåäìåò äëÿ ïåðåïëàâêè"/><br><a href="javascript:void(0);" onClick="cancelItRun()">Îòìåíèòü</a>';
|
||||
if( vl == 0 ) {
|
||||
document.getElementById('add_rep').innerHTML = ' + '+vl+'<br><div><b><font color="red"><small>(Íåîáõîäèì ïðåäìåò ïîäõîäÿùåãî óðîâíÿ, èíà÷å âû íå ïîëó÷èòå ðåïóòàöèþ)</small></font></b></div>';
|
||||
}else{
|
||||
document.getElementById('add_rep').innerHTML = ' + '+vl;
|
||||
}
|
||||
}else{
|
||||
cancelItRun();
|
||||
}
|
||||
}
|
||||
function cancelItRun()
|
||||
{
|
||||
urlras = 0;
|
||||
document.getElementById('use_item').innerHTML = 'Ïðåäìåò íå âûáðàí';
|
||||
document.getElementById('add_rep').innerHTML = '';
|
||||
}
|
||||
urlras = 0;
|
||||
</script>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td align="center" valign="top" bgcolor="#D6D6D6"><?=$u->microLogin($u->info['id'],1)?></td>
|
||||
<td align="center" valign="top" bgcolor="#D6D6D6"><B>Ïîäõîäÿùèå ïðåäìåòû â èíâåíòàðå</B></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="300" valign="top">
|
||||
<b>Ðåïóòàöèÿ: <? echo 0+$u->rep['rep1']; ?></b><span id="add_rep"></span>
|
||||
<br /><br /><center><span id="use_item">Ïðåäìåò íå âûáðàí</span><br /><br />
|
||||
<input class="btn" type="button" value="Ðàñòâîðèòü" onclick="location = '?r=<?=$_GET['r'].'&rnd='.$code.'&itm=';?>'+urlras;" /></center>
|
||||
<br />
|
||||
<br /><small>
|
||||
<font color="red">Âíèìàíèå!</font><br />
|
||||
Ïðåäìåòû ïðè ðàñòâîðåíèè è ðóíû ïðè ñëèÿíèè íåîáðàòèìî òåðÿþòñÿ.</small>
|
||||
</td>
|
||||
<td valign="top">
|
||||
<!-- -->
|
||||
<table width="100%" border="0" cellspacing="1" align="center" cellpadding="0" bgcolor="#A5A5A5">
|
||||
<? if($u->info['invBlock']==0){ echo $itmAllSee; }else{ echo '<div align="center" style="padding:10px;background-color:#A5A5A5;"><form method="post" action="main.php?inv=1&otdel='.$_GET['otdel'].'&relockinvent"><b>Ðþêçàê çàêðûò.</b><br><img title="Çàìîê äëÿ ðþêçàêà" src="https://img.new-combats.com/i/items/box_lock.gif"> Ââåäèòå ïàðîëü: <input id="relockInv" name="relockInv" type="password"><input type="submit" value="Îòêðûòü"></form></div>'; } ?>
|
||||
</table>
|
||||
<!-- -->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<? }elseif( $_GET['r'] == 2 ) {
|
||||
$itmAll = ''; $itmAllSee = '';
|
||||
$itmAll = $u->genInv(14,'`iu`.`uid`="'.$u->info['id'].'" AND `iu`.`delete` = "0" AND `iu`.`inOdet`="0" AND `iu`.`inShop`="0" AND `im`.`type` = 31 ORDER BY `lastUPD` DESC');
|
||||
if($itmAll[0]==0){
|
||||
$itmAllSee = '<tr><td align="center" bgcolor="#e2e0e0">ÏÓÑÒÎ (íåò ïîäõîäÿùèõ ïðåäìåòîâ)</td></tr>';
|
||||
}else{
|
||||
$itmAllSee = $itmAll[2];
|
||||
}
|
||||
//Óäà÷íî ðàñòâîðåí ïðåäìåò "Óêðåïëåííûé Êîñòûëü". Ïîëó÷åíà ðóíà "Ìîíî Áàóíè".
|
||||
?>
|
||||
<script>
|
||||
function takeItRun(img,id,vl)
|
||||
{
|
||||
if(id!=urlras)
|
||||
{
|
||||
urlras = id;
|
||||
document.getElementById('use_item').innerHTML = '<img src="https://<?=$c['img'];?>/i/items/'+img+'" title="Ïðåäìåò äëÿ ïåðåïëàâêè"/><br><a href="javascript:void(0);" onClick="cancelItRun()">Îòìåíèòü</a>';
|
||||
}else{
|
||||
cancelItRun();
|
||||
}
|
||||
}
|
||||
function cancelItRun()
|
||||
{
|
||||
urlras = 0;
|
||||
document.getElementById('use_item').innerHTML = 'Ïóñòî';
|
||||
document.getElementById('add_rep').innerHTML = '';
|
||||
}
|
||||
urlras = 0;
|
||||
//
|
||||
function takeItRun2(img,id,vl)
|
||||
{
|
||||
if(id!=urlras2)
|
||||
{
|
||||
urlras2 = id;
|
||||
document.getElementById('use_item2').innerHTML = '<img src="https://<?=$c['img'];?>/i/items/'+img+'" title="Ïðåäìåò äëÿ ïåðåïëàâêè"/><br><a href="javascript:void(0);" onClick="cancelItRun2()">Îòìåíèòü</a>';
|
||||
}else{
|
||||
cancelItRun2();
|
||||
}
|
||||
}
|
||||
function cancelItRun2()
|
||||
{
|
||||
urlras2 = 0;
|
||||
document.getElementById('use_item2').innerHTML = 'Ïóñòî';
|
||||
}
|
||||
urlras2 = 0;
|
||||
//
|
||||
function takeItRun3(img,id,vl)
|
||||
{
|
||||
if(id!=urlras3)
|
||||
{
|
||||
urlras3 = id;
|
||||
document.getElementById('use_item3').innerHTML = '<img src="https://<?=$c['img'];?>/i/items/'+img+'" title="Ïðåäìåò äëÿ ïåðåïëàâêè"/><br><a href="javascript:void(0);" onClick="cancelItRun3()">Îòìåíèòü</a>';
|
||||
}else{
|
||||
cancelItRun3();
|
||||
}
|
||||
}
|
||||
function cancelItRun3()
|
||||
{
|
||||
urlras3 = 0;
|
||||
document.getElementById('use_item3').innerHTML = 'Ïóñòî';
|
||||
}
|
||||
urlras3 = 0;
|
||||
//
|
||||
function massTakeItRun(img,id,vl) {
|
||||
if( urlras == id ) {
|
||||
takeItRun(img,id,vl);
|
||||
}else if( urlras2 == id ) {
|
||||
takeItRun2(img,id,vl);
|
||||
}else if( urlras3 == id ) {
|
||||
takeItRun3(img,id,vl);
|
||||
}else if( urlras == 0 ) {
|
||||
takeItRun(img,id,vl);
|
||||
}else if( urlras2 == 0 ) {
|
||||
takeItRun2(img,id,vl);
|
||||
}else{
|
||||
takeItRun3(img,id,vl);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td align="center" valign="top" bgcolor="#D6D6D6"><?=$u->microLogin($u->info['id'],1)?></td>
|
||||
<td align="center" valign="top" bgcolor="#D6D6D6"><b>Ïîäõîäÿùèå ïðåäìåòû â èíâåíòàðå</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="300" valign="top">
|
||||
<b>Ðåïóòàöèÿ: <? echo 0+$u->rep['rep1']; ?></b><span id="add_rep"></span>
|
||||
<br /><br /><center>
|
||||
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="80" align="center"><span id="use_item">Ïóñòî</span></td>
|
||||
<td width="80" align="center"><span id="use_item2">Ïóñòî</span></td>
|
||||
<td width="80" align="center"><span id="use_item3">Ïóñòî</span></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br /><br />
|
||||
<input class="btn" type="button" value="Ïðåîáðàçîâàòü" onclick="location.href = '?r=<?=$_GET['r'].'&rnd='.$code.'&itm=';?>'+urlras+'x'+urlras2+'x'+urlras3;" /></center>
|
||||
<br />
|
||||
<br /><small>
|
||||
<font color="red">Âíèìàíèå!</font><br />
|
||||
Ïðåäìåòû ïðè ðàñòâîðåíèè è ðóíû ïðè ñëèÿíèè íåîáðàòèìî òåðÿþòñÿ.</small>
|
||||
</td>
|
||||
<td valign="top">
|
||||
<!-- -->
|
||||
<table width="100%" border="0" cellspacing="1" align="center" cellpadding="0" bgcolor="#A5A5A5">
|
||||
<? if($u->info['invBlock']==0){ echo $itmAllSee; }else{ echo '<div align="center" style="padding:10px;background-color:#A5A5A5;"><form method="post" action="main.php?inv=1&otdel='.$_GET['otdel'].'&relockinvent"><b>Ðþêçàê çàêðûò.</b><br><img title="Çàìîê äëÿ ðþêçàêà" src="https://img.new-combats.com/i/items/box_lock.gif"> Ââåäèòå ïàðîëü: <input id="relockInv" name="relockInv" type="password"><input type="submit" value="Îòêðûòü"></form></div>'; } ?>
|
||||
</table>
|
||||
<!-- -->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<? } } ?>
|
File diff suppressed because it is too large
Load Diff
@ -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']).' ïåðñîíàæó "<b>'.$ut['login'].'</b>"';
|
||||
$u->addDelo(3,$ut['id'],'Ïîëó÷åíî <b>'.($mn-$prc).' åêð.</b> ñî ñ÷åòà ¹'.getNum($u->bank['id']).' îò ïåðñîíàæà "'.$u->info['login'].'", êîìèññèÿ <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']).' ïåðñîíàæó "'.$ut['login'].'", êîìèññèÿ <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 = '"'.$u->info['login'].'" ['.$u->info['level'].'] ïåðåâåë ñî ñâîåãî áàíêîâñêîãî ñ÷åòà ¹'.$u->bank['id'].' íà ñ÷åò ¹'.$ub['id'].' ê ïåðñîíàæó "'.$ut['login'].'" ['.$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 = '"'.$alg.'[login:'.$u->info['login'].']" ïåðåâåë'.($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']).' ïåðñîíàæó "<b>'.$ut['login'].'</b>"';
|
||||
$u->addDelo(3,$ut['id'],'Ïîëó÷åíî <b>'.($mn-$prc).' êð.</b> ñî ñ÷åòà ¹'.getNum($u->bank['id']).' îò ïåðñîíàæà "'.$u->info['login'].'", êîìèññèÿ <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']).' ïåðñîíàæó "'.$ut['login'].'", êîìèññèÿ <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 = '"'.$u->info['login'].'" ['.$u->info['level'].'] ïåðåâåë ñî ñâîåãî áàíêîâñêîãî ñ÷åòà ¹'.$u->bank['id'].' íà ñ÷åò ¹'.$ub['id'].' ê ïåðñîíàæó "'.$ut['login'].'" ['.$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 = '"[login:'.$u->info['login'].']" ïåðåâåë'.($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 = '"'.$u->info['login'].'" ['.$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%"> </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> <input name="rdn01" type="radio" value="2"> <?=$u->zuby(15)?>
|
||||
</center>
|
||||
<hr />
|
||||
<? }else{
|
||||
?>
|
||||
<center>
|
||||
<input checked="checked" name="rdn01" type="radio" value="1"> <b>3.00 êð.</b>
|
||||
</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>
|
||||
<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"> </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
File diff suppressed because it is too large
Load Diff
2711
register.php
2711
register.php
File diff suppressed because it is too large
Load Diff
422
repass.php
422
repass.php
@ -1,266 +1,200 @@
|
||||
<?
|
||||
<?php
|
||||
require_once '_incl_data/mails.php';
|
||||
$step = 1;
|
||||
$error = '';
|
||||
|
||||
if(isset($_GET['login'])) {
|
||||
$_POST['relogin'] = $_GET['login'];
|
||||
if (isset($_GET['login'])) {
|
||||
$_POST['relogin'] = $_GET['login'];
|
||||
}
|
||||
|
||||
//die('Âîññòàíîâëåíèå ïàðîëÿ íåäîñòóïíî. Ñîçäàéòå íîâîãî ïåðñîíàæà è íàïèøèòå ëþáîìó ìîäåðàòîðó.');
|
||||
|
||||
function GetRealIp()
|
||||
{
|
||||
if (!empty($_SERVER['HTTP_CLIENT_IP']))
|
||||
{
|
||||
$ip=$_SERVER['HTTP_CLIENT_IP'];
|
||||
}
|
||||
elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR']))
|
||||
{
|
||||
$ip=$_SERVER['HTTP_X_FORWARDED_FOR'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$ip=$_SERVER['REMOTE_ADDR'];
|
||||
}
|
||||
return $ip;
|
||||
if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
|
||||
$ip = $_SERVER['HTTP_CLIENT_IP'];
|
||||
} elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
|
||||
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
|
||||
} else {
|
||||
$ip = $_SERVER['REMOTE_ADDR'];
|
||||
}
|
||||
return $ip;
|
||||
}
|
||||
|
||||
define('IP',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');
|
||||
|
||||
if(isset($_POST['relogin'])) {
|
||||
$_POST['relogin'] = htmlspecialchars($_POST['relogin'],NULL,'cp1251');
|
||||
|
||||
include('_incl_data/__config.php');
|
||||
define('GAME',true);
|
||||
include('_incl_data/class/__db_connect.php');
|
||||
|
||||
$usr = mysql_fetch_array(mysql_query('SELECT * FROM `users` WHERE `login` = "'.mysql_real_escape_string($_POST['relogin']).'" LIMIT 1'));
|
||||
if(isset($usr['id'])) {
|
||||
|
||||
if($usr['admin'] == 0 && $usr['banned'] == 0) {
|
||||
$step = 2;
|
||||
if(isset($_POST['redate'])) {
|
||||
//Òðåòèé øàã
|
||||
$lst_psw = mysql_fetch_array(mysql_query('SELECT * FROM `repass` WHERE `uid` = "'.$usr['id'].'" AND `time` > '.(time()-24*60*60).' AND `type` = "1" LIMIT 1'));
|
||||
if(isset($lst_psw['id'])) {
|
||||
$error = 'Âûñûëàòü ïàðîëü ìîæíî íå áîëåå îäíîãî ðàçà â ñóòêè.';
|
||||
}elseif(str_replace('0','',$_POST['redate']) == str_replace('0','',$usr['bithday']) && ($_POST['reanswer'] == $usr['q1'] || $usr['q1'] == '')) {
|
||||
$error = '<br><br><br>Ïàðîëü îò ïåðñîíàæà "'.$usr['login'].'" áûë óñïåøíî âûñëàí íà E-mail óêàçàííûé ïðè ðåãèñòðàöèè! <br><br><br>';
|
||||
$re = mysql_fetch_array(mysql_query('SELECT * FROM `logs_auth` WHERE `uid` = "'.$usr['id'].'" AND `type` = "0" AND `depass` != "" ORDER BY `id` DESC LIMIT 1'));
|
||||
if($u['securetime'] < $c['securetime'] ) {
|
||||
unset($re);
|
||||
}
|
||||
if(!isset($re['id'])) {
|
||||
$sm = array('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>';
|
||||
$txt .= 'Ñ IP-àäðåñà - <b>'.IP.'</b>, áûë çàïðîøåí ïàðîëü äëÿ âàøåãî ïåðñîíàæà.<br>Åñëè ýòî íå Âû, ïðîñòî óäàëèòå ýòî ïèñüìî.<br><br>';
|
||||
$txt .= 'Âàø ëîãèí: <b>'.$usr['login'].'</b><br>';
|
||||
$txt .= 'Âàø ïàðîëü: '.$re['depass'].'<br><br>';
|
||||
$txt .= 'Îòâå÷àòü íà äàííîå ïèñüìî íå íóæíî.<br><br>';
|
||||
$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))
|
||||
{
|
||||
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 = 'Íå óäàëîñü îòïðàâèòü ñîîáùåíèå. Ïîïðîáóéòå ïîçæå.';
|
||||
}
|
||||
|
||||
}else{
|
||||
$error = 'Íåâåðíûé îòâåò íà ñåêðåòíûé âîïðîñ èëè íåâåðíî óêàçàí äåíü ðîæäåíèÿ.';
|
||||
}
|
||||
}
|
||||
}else{
|
||||
$error = 'Ïåðñîíàæó "'.$_POST['relogin'].'" çàïðåùåíà âûñûëêà ïàðîëÿ!';
|
||||
}
|
||||
}else{
|
||||
$error = 'Ëîãèí "'.htmlspecialchars($_POST['relogin'],NULL,'cp1251').'" íå íàéäåí â áàçå.';
|
||||
}
|
||||
}
|
||||
include('_incl_data/__config.php');
|
||||
define('GAME', true);
|
||||
include('_incl_data/class/__db_connect.php');
|
||||
|
||||
$usr = mysql_fetch_array(mysql_query('SELECT * FROM `users` WHERE `login` = "' . mysql_real_escape_string($_POST['relogin']) . '" LIMIT 1'));
|
||||
if (isset($usr['id'])) {
|
||||
|
||||
if ($usr['admin'] == 0 && $usr['banned'] == 0) {
|
||||
$step = 2;
|
||||
if (isset($_POST['redate'])) {
|
||||
//Третий шаг
|
||||
$lst_psw = mysql_fetch_array(mysql_query('SELECT * FROM `repass` WHERE `uid` = "' . $usr['id'] . '" AND `time` > ' . (time() - 24 * 60 * 60) . ' AND `type` = "1" LIMIT 1'));
|
||||
if (isset($lst_psw['id'])) {
|
||||
$error = 'Высылать пароль можно не более одного раза в сутки.';
|
||||
} elseif (str_replace('0', '', $_POST['redate']) == str_replace('0', '', $usr['bithday']) && ($_POST['reanswer'] == $usr['q1'] || $usr['q1'] == '')) {
|
||||
$error = '<br><br><br>Пароль от персонажа "' . $usr['login'] . '" был успешно выслан на E-mail указанный при регистрации! <br><br><br>';
|
||||
$re = mysql_fetch_array(mysql_query('SELECT * FROM `logs_auth` WHERE `uid` = "' . $usr['id'] . '" AND `type` = "0" AND `depass` != "" ORDER BY `id` DESC LIMIT 1'));
|
||||
if ($u['securetime'] < $c['securetime']) {
|
||||
unset($re);
|
||||
}
|
||||
if (!isset($re['id'])) {
|
||||
$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);
|
||||
}
|
||||
$title = 'Восстановление пароля от "' . $usr['login'] . '".';
|
||||
$txt = 'Добрый день.<br>';
|
||||
$txt .= 'С IP-адреса - <b>' . IP . '</b>, был запрошен пароль для вашего персонажа.<br>Если это не Вы, просто удалите это письмо.<br><br>';
|
||||
$txt .= 'Ваш логин: <b>' . $usr['login'] . '</b><br>';
|
||||
$txt .= 'Ваш пароль: ' . $re['depass'] . '<br><br>';
|
||||
$txt .= 'Отвечать на данное письмо не нужно.<br><br>';
|
||||
$txt .= 'С уважением,<br>';
|
||||
$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 = $mail;
|
||||
}
|
||||
unset($mail);
|
||||
} else {
|
||||
$error = 'Неверный ответ на секретный вопрос или неверно указан день рождения.';
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$error = 'Персонажу "' . $_POST['relogin'] . '" запрещена высылка пароля!';
|
||||
}
|
||||
} else {
|
||||
$error = 'Логин "' . htmlspecialchars($_POST['relogin'], null, 'cp1251') . '" не найден в базе.';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="ru-RU">
|
||||
<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="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">
|
||||
<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="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">
|
||||
<tr>
|
||||
<td width="200" align="center" valign="middle"> </td>
|
||||
<td align="center" valign="middle"><p> </p>
|
||||
<p> </p></td>
|
||||
<td width="200"> </td>
|
||||
</tr>
|
||||
</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"> </td>
|
||||
<td width="135" align="right" valign="middle" background="https://top.new-combats.com/images/sitebk_02.jpg" style="background-repeat:repeat-x"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<!--LiveInternet counter-->
|
||||
|
||||
<!--/LiveInternet-->
|
||||
</td>
|
||||
<td height="150" align="center" valign="middle" class="menu">
|
||||
<p><b>Çàáûëè ïàðîëü îò ñâîåãî ïåðñîíàæà?</b></p>
|
||||
<p> <?
|
||||
if($error != '') {
|
||||
echo '<font color="red"><b>'.$error.'</b></font>';
|
||||
}
|
||||
?></p>
|
||||
<form method="post" action="https://new-combats.com/repass.php">
|
||||
<?
|
||||
if($step == 1){ ?>
|
||||
<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>
|
||||
</tr>
|
||||
</table><br>
|
||||
<input type="submit" class="btn" value="Ïåðåéòè ê ñëåäóþùåìó øàãó">
|
||||
<? }elseif($step == 2){ ?>
|
||||
<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>
|
||||
</tr>
|
||||
<?
|
||||
if($usr['a1'] != ''){ ?>
|
||||
<tr>
|
||||
<td>Âàø âîïðîñ:</td>
|
||||
<td> <b><?=$usr['a1']?></b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Âàø îòâåò:</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>
|
||||
</tr>
|
||||
</table>
|
||||
<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="submit" class="btn" value="Âûñëàòü ïàðîëü íà E-mail">
|
||||
<? } ?>
|
||||
</form>
|
||||
<br><br><br><br>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div align="center" class="menu">
|
||||
<a href="https://new-combats.com/">Âåðíóòñÿ íà ãëàâíóþ ñòðàíèöó</a>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="50" align="center" valign="middle"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="50" align="center"><span class="testro">«Ñòàðûé Áîéöîâñêèé Êëóá» 2018-<?=date('Y')?> © Áðàóçåðíàÿ îíëàéí èãðà</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="100" align="center" valign="middle">
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="200" align="center" valign="middle"> </td>
|
||||
<td align="center" valign="middle"><p> </p>
|
||||
<p> </p></td>
|
||||
<td width="200"> </td>
|
||||
</tr>
|
||||
</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">
|
||||
</td>
|
||||
<td width="135" align="right" valign="middle"
|
||||
background="https://top.new-combats.com/images/sitebk_02.jpg"
|
||||
style="background-repeat:repeat-x">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
</td>
|
||||
<td height="150" align="center" valign="middle" class="menu">
|
||||
<p><b>Забыли пароль от своего персонажа?</b></p>
|
||||
<p> <?
|
||||
if ($error != '') {
|
||||
echo '<font color="red"><b>' . $error . '</b></font>';
|
||||
}
|
||||
?></p>
|
||||
<form method="post" action="https://new-combats.com/repass.php">
|
||||
<?
|
||||
if ($step == 1) { ?>
|
||||
<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>
|
||||
</tr>
|
||||
</table><br>
|
||||
<input type="submit" class="btn" value="Перейти к следующему шагу">
|
||||
<? } elseif ($step == 2) { ?>
|
||||
<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>
|
||||
</tr>
|
||||
<?
|
||||
if ($usr['a1'] != '') { ?>
|
||||
<tr>
|
||||
<td>Ваш вопрос:</td>
|
||||
<td> <b><?= $usr['a1'] ?></b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Ваш ответ:</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>
|
||||
</tr>
|
||||
</table>
|
||||
<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="submit" class="btn" value="Выслать пароль на E-mail">
|
||||
<? } ?>
|
||||
</form>
|
||||
<br><br><br><br>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div align="center" class="menu">
|
||||
<a href="https://new-combats.com/">Вернутся на главную страницу</a>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="50" align="center" valign="middle"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="50" align="center"><span
|
||||
class="testro">«Старый Бойцовский Клуб» 2018-<?= date('Y') ?> © Браузерная онлайн игра</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue
Block a user