diff --git a/_incl_data/__config.php b/_incl_data/__config.php index b7ba8941..b2d03e0d 100644 --- a/_incl_data/__config.php +++ b/_incl_data/__config.php @@ -33,7 +33,9 @@ spl_autoload_register(function ($className) { }); $code = '1'; -$c = (new \Core\Config())->get(); +\Core\Config::init(); +$c = \Core\Config::get(); + if (isset($_GET['version'])) { die('Version: ' . $c['ver']); } diff --git a/_incl_data/autoload.php b/_incl_data/autoload.php index 2cbd855d..a6f92bb5 100644 --- a/_incl_data/autoload.php +++ b/_incl_data/autoload.php @@ -5,6 +5,7 @@ const GAME_VERSION = 'alpha-7.4'; // ВНИМАНИЕ! Не введено в эксплуатацию! require_once 'mysql_override.php'; +require_once 'class/Insallah/Config.php'; spl_autoload_register(function (string $className) { # 1 with namespaces diff --git a/_incl_data/class/CalculateFromString.php b/_incl_data/class/CalculateFromString.php deleted file mode 100644 index 7768ce24..00000000 --- a/_incl_data/class/CalculateFromString.php +++ /dev/null @@ -1,63 +0,0 @@ - self::PARENTHESIS_DEPTH){ - break; - } - } - - // Calculate the result - if(preg_match(self::PATTERN, $input, $match)){ - return $this->compute($match[0]); - } - // To handle the special case of expressions surrounded by global parenthesis like "(1+1)" - if(is_numeric($input)){ - return $input; - } - - return 0; - } - - return $input; - } - - private function compute($input){ - $compute = create_function('', 'return '.$input.';'); - - return 0 + $compute(); - } - - private function callback($input){ - if(is_numeric($input[1])){ - return $input[1]; - } - elseif(preg_match(self::PATTERN, $input[1], $match)){ - return $this->compute($match[0]); - } - - return 0; - } -} - -$Cal = new CalculateFromString(); -$xyz='(100 * 25000) + (250 * 25000) + ((500/100) * 25000)'; -$result = $Cal->calculate($xyz); -echo $result; - diff --git a/_incl_data/class/Chat.php b/_incl_data/class/Chat.php index da8774ea..f88de170 100644 --- a/_incl_data/class/Chat.php +++ b/_incl_data/class/Chat.php @@ -1,5 +1,15 @@ [0 => '', 1 => ' [*%l*]'], 'fingal' => [0 => ' ', 1 => ' [*%l*]'], 'eek' => [0 => '', 1 => ' [*%l*]'], 'smoke' => [0 => '', 1 => ' [*%l*] '], 'hi' => [0 => ' ', 1 => ' [*%l*]'], 'bye' => [0 => ' ', 1 => ' [*%l*]'], 'king' => [0 => ' :-)', 1 => ' [*%l*] !'], 'king2' => [0 => ' :-)', 1 => ' [*%l*] !'], 'boks2' => [0 => ' ', 1 => ' [*%l*] '], 'boks' => [0 => ' , !', 1 => ' [*%l*] '], 'gent' => [0 => ' ', 1 => ' [*%l*] '], 'lady' => [0 => ' ', 1 => ', [*%l*] '], 'tongue' => [0 => ' ', 1 => ' [*%l*]'], 'smil' => [0 => ' ', 1 => ', [*%l*] !'], 'ponder' => [0 => '- ', 1 => ' [*%l*]'], 'bow' => [0 => ' , ', 1 => ' [*%l*]'], 'angel' => [0 => ' ', 1 => ' [*%l*] '], 'angel2' => [0 => ' ', 1 => ' [*%l*] '], 'hello' => [0 => ' ', 1 => ' [*%l*]'], 'dont' => [0 => ' ', 1 => ' [*%l*] '], 'idea' => [0 => ' !', 1 => ' [*%l*] '], 'mol' => [0 => ' ', 1 => ' [*%l*]'], 'super' => [0 => ', , - , - !', 1 => ' [*%l*]'], 'beer' => [0 => ' ...', 1 => ' [*%l*] !'], 'drink' => [0 => ', ', 1 => ' [*%l*] '], 'baby' => [0 => ' ', 1 => ' , [*%l*] '], 'tongue2' => [0 => ' ', 1 => ' [*%l*] , '], 'sword' => [0 => ' ', 1 => ' [*%l*] !'], 'agree' => [0 => ' ', 1 => ' [*%l*]'], 'loveya' => [0 => ' ', 1 => ' [*%l*]'], 'kiss' => [0 => ' ', 1 => ' [*%l*]'], 'kiss2' => [0 => ' -...', 1 => ' [*%l*]'], 'kiss3' => [0 => '- ...', 1 => ' [*%l*]'], 'kiss4' => [0 => '- ...', 1 => ' [*%l*] ...'], 'rose' => [0 => ' - , ...', 1 => ' [*%l*] ...'], 'love' => [0 => ' ...', 1 => ', [loginfrom] + [*%l*]= !'], 'love2' => [0 => ' ...', 1 => ' [*%l*]'], 'confused' => [0 => ' ...', 1 => ' [*%l*]'], 'yes' => [0 => ' ', 1 => ' [*%l*] '], 'no' => [0 => ' ', 1 => ' [*%l*] '], 'shuffle' => [0 => ' ', 1 => ' [*%l*]'], 'nono' => [0 => ' !', 1 => ' [*%l*]'], 'maniac' => [0 => ' - - ...', 1 => ', [*%l*] ...'], 'privet' => [0 => ' ', 1 => ' [*%l*]'], 'ok' => [0 => ', ', 1 => ', [*%l*] '], 'ninja' => [0 => ' !', 1 => ' [*%l*] '], 'pif' => [0 => ' ', 1 => ', [*%l*]'], 'smash' => [0 => ' ', 1 => ' - [*%l*]'], 'alien' => [0 => ', !', 1 => ' , [*%l*] !'], 'pirate' => [0 => ', !...', 1 => ', [*%l*], !'], 'gun' => [0 => ' - ... :gun:', 1 => ', [*%l*] ! :gun:'], 'trup' => [0 => ' ', 1 => ', [*%l*], , !'], 'mdr' => [0 => ', ... :mdr:', 1 => ' [*%l*] :mdr:'], 'sneeze' => [0 => ' ', 1 => ' [*%l*], !'], 'mad' => [0 => ' !!!', 1 => ' [*%l*]!!!'], 'friday' => [0 => ' ...', 1 => ' [*%l*] '], 'cry' => [0 => ' ', 1 => ' [*%l*]'], 'grust' => [0 => '...', 1 => ' [*%l*]'], 'rupor' => [0 => ' ', 1 => ' [*%l*]'], 'fie' => [0 => ': , !!!', 1 => ' [*%l*] !'], 'nnn' => [0 => ' , , ...', 1 => ' , [*%l*]'], 'row' => [0 => ' ...', 1 => ' [*%l*]'], 'red' => [0 => ' ...', 1 => ' [*%l*]'], 'lick' => [0 => ', ', 1 => ' [*%l*]'], 'help' => [0 => ' !', 1 => ' [*%l*]'], 'wink' => [0 => ' ', 1 => ' [*%l*]'], 'jeer' => [0 => ' ...', 1 => ' [*%l*]'], 'tease' => [0 => '', 1 => ' [*%l*]'], 'nunu' => [0 => ' ...', 1 => ' [*%l*]'], 'inv' => [0 => ' ...', 1 => ' [*%l*] ...'], 'duel' => [0 => ' -...', 1 => ' [*%l*] !'], 'susel' => [0 => ': " , .." ...', 1 => ' [*%l*] !'], 'nun' => [0 => ' ', 1 => ' [*%l*] '], 'kruger' => [0 => ' :kruger:', 1 => ' [*%l*] '], 'flowers' => [0 => ' -21 - ', 1 => ' [*%l*] '], 'horse' => [0 => ' ', 1 => ' [*%l*] ! :horse:'], 'hug' => [0 => ' !', 1 => ' [*%l*]'], 'str' => [0 => ' !', 1 => ' [*%l*]'], 'alch' => [0 => ' :alch:', 1 => ' [*%l*] :alch:'], 'pal' => [0 => ' , , - ! :-)', 1 => ' [*%l*] !'], 'mag' => [0 => ' . . .', 1 => ' [*%l*]'], 'sniper' => [0 => ' ', 1 => ' [*%l*] '], 'fuck' => [0 => ' ', 1 => ' [*%l*] '], 'rotate' => [0 => ' ', 1 => ' [*%l*]']]; @@ -64,6 +74,24 @@ class Chat return $text; } + public function sendsys($text, $to = '', $color = '#933') + { + if (!$text) { + return; + } + + Db::sql('insert into chat (new, text, time, type, color, `to`) values (1,?,unix_timestamp(),6,?,?)', [ + trim($text), $color, $to + ]); + } + + public function debug($text) + { + Db::sql('insert into chat (new, text, time, type, color, `to`, login) values (1,?,unix_timestamp(),3,?,?,?)', [ + trim($text), 'crimson', 'Merlin', 'debugger' + ]); + } + public function send($color, $room, $city, $from, $to, $text, $time, $type, $toChat, $spam, $sound, $new = 0) { mysql_query("INSERT INTO `chat` (`new`,`sound`,`color`,`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`,`spam`) VALUES ('" . $new . "','" . $sound . "','" . $color . "','" . $city . "','" . $room . "','" . $from . "','" . $to . "','" . $text . "','" . $time . "','" . $type . "','" . $toChat . "','" . $spam . "')"); diff --git a/_incl_data/class/Insallah/Core/Db.php b/_incl_data/class/Insallah/Core/Db.php index 6a362d3a..e64b9728 100644 --- a/_incl_data/class/Insallah/Core/Db.php +++ b/_incl_data/class/Insallah/Core/Db.php @@ -118,7 +118,6 @@ class Db * @param $query * @param array $args * @return mixed - * @throws Exception */ public static function getRow($query, $args = []) { @@ -129,7 +128,6 @@ class Db * @param $query * @param array $args * @return array - * @throws Exception */ public static function getRows($query, $args = []) { @@ -140,7 +138,6 @@ class Db * @param $query * @param array $args * @return mixed - * @throws Exception */ public static function getValue($query, $args = []) { @@ -155,16 +152,12 @@ class Db * @param $query * @param array $args * @return array - * @throws Exception */ public static function getColumn($query, $args = []) { return self::run($query, $args)->fetchAll(PDO::FETCH_COLUMN); } - /** - * @throws Exception - */ public static function sql($query, $args = []) { self::run($query, $args); diff --git a/_incl_data/class/Uploader.php b/_incl_data/class/Uploader.php index 56abfdf8..bb8e52d8 100644 --- a/_incl_data/class/Uploader.php +++ b/_incl_data/class/Uploader.php @@ -3,8 +3,8 @@ /** * . * - * @version 1 * @author Ivor Barhansky + * @version 1 */ class Uploader @@ -16,15 +16,15 @@ class Uploader private $extensions = 'jpg|png|jpeg|gif'; private $extMatches = []; private $FILE; - private $cnm = null; + private $cnm; public static $error; public function __construct($name, $cnm = null) { - $this->FILE = $_FILES; - if (!$this->FILE[$name]) { + if (!isset($_FILES[$name])) { return; } + $this->FILE = $_FILES[$name]; $this->cnm = $cnm; } @@ -56,7 +56,7 @@ class Uploader */ public function setMaxFileSize($megabytes) { - $this->maxFileSizeMb = $megabytes * (1024 * 1024); + $this->maxFileSizeMb = $megabytes; } /** @@ -65,7 +65,7 @@ class Uploader */ public function setSavePath($path) { - $this->savePath = __DIR__ . '/' . $path; + $this->savePath = $_SERVER['DOCUMENT_ROOT'] . '/' . $path; } /** @@ -99,17 +99,20 @@ class Uploader private function hasNormalDimensions() { list($width, $height) = getimagesize($this->FILE['tmp_name']); + if (!$width || !$height) { + self::$error = ' .'; + return false; + } if ( - $width < $this->width['min'] || - $width > $this->width['max'] || - $height < $this->height['min'] || - $height > $this->height['max'] + ($width < $this->width['min'] || $width > $this->width['max']) || + ($height < $this->height['min'] || $height > $this->height['max']) ) { - self::$error = " [{$this->width['max']}x{$this->height['max']}] ."; + self::$error = ' : '; if ($this->width['min'] !== $this->width['max'] || $this->height['min'] !== $this->height['max']) { - self::$error .= " [{$this->width['min']}x{$this->height['min']}]."; + self::$error .= " [{$this->width['min']} x {$this->height['min']}] "; } - self::$error .= " [{$width}x$height]"; + self::$error .= "[{$this->width['max']} x {$this->height['max']}]."; + self::$error .= " [$width x $height]"; return false; } return true; @@ -120,7 +123,7 @@ class Uploader if (!$this->maxFileSizeMb) { $this->setMaxFileSize(2); } - if ($this->FILE['size'] > $this->maxFileSizeMb || $this->FILE['size'] <=0) { + if ($this->FILE['size'] > $this->maxFileSizeMb * (1024 * 1024) || $this->FILE['size'] <= 0) { self::$error = ' . ' . $this->maxFileSizeMb . ' '; return false; } diff --git a/_incl_data/class/magic/__magic.php b/_incl_data/class/magic/__magic.php index 8088eb26..f3c02f4c 100644 --- a/_incl_data/class/magic/__magic.php +++ b/_incl_data/class/magic/__magic.php @@ -4,7 +4,7 @@ if(!defined('GAME')) die(); } -class Magic2 +class Magic { public $youuse = 0; diff --git a/_incl_data/class/priem/121.php b/_incl_data/class/priem/121.php index 6b801fff..c60fc915 100644 --- a/_incl_data/class/priem/121.php +++ b/_incl_data/class/priem/121.php @@ -60,7 +60,11 @@ if( isset($pr_used_this) && isset($pr_moment) ) { mysql_query('UPDATE `eff_users` SET `data` = "'.$pvr['redata'].'" WHERE `id` = "'.$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['id'].'" LIMIT 1'); // $pvr['hp'] = floor($pvr['hp']); - + /*$pvr['hp'] = $priem->magatack( $u2, $u1, $pvr['hp'], '', 0 ); + $pvr['promah_type'] = $pvr['hp'][3]; + $pvr['promah'] = $pvr['hp'][2]; + $pvr['krit'] = $pvr['hp'][1]; + $pvr['hp'] = $pvr['hp'][0];*/ $pvr['hpSee'] = '--'; $pvr['hpNow'] = floor($btl->stats[$btl->uids[$u1]]['hpNow']); $pvr['hpAll'] = $btl->stats[$btl->uids[$u1]]['hpAll']; diff --git a/_incl_data/class/priem/122.php b/_incl_data/class/priem/122.php index 1e505746..47b1c4b5 100644 --- a/_incl_data/class/priem/122.php +++ b/_incl_data/class/priem/122.php @@ -60,7 +60,11 @@ if( isset($pr_used_this) && isset($pr_moment) ) { mysql_query('UPDATE `eff_users` SET `data` = "'.$pvr['redata'].'" WHERE `id` = "'.$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['id'].'" LIMIT 1'); // $pvr['hp'] = floor($pvr['hp']); - + /*$pvr['hp'] = $priem->magatack( $u2, $u1, $pvr['hp'], '', 0 ); + $pvr['promah_type'] = $pvr['hp'][3]; + $pvr['promah'] = $pvr['hp'][2]; + $pvr['krit'] = $pvr['hp'][1]; + $pvr['hp'] = $pvr['hp'][0];*/ $pvr['hpSee'] = '--'; $pvr['hpNow'] = floor($btl->stats[$btl->uids[$u1]]['hpNow']); $pvr['hpAll'] = $btl->stats[$btl->uids[$u1]]['hpAll']; diff --git a/_incl_data/class/priem/123.php b/_incl_data/class/priem/123.php index b9f0296e..146c2263 100644 --- a/_incl_data/class/priem/123.php +++ b/_incl_data/class/priem/123.php @@ -60,7 +60,11 @@ if( isset($pr_used_this) && isset($pr_moment) ) { mysql_query('UPDATE `eff_users` SET `data` = "'.$pvr['redata'].'" WHERE `id` = "'.$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['id'].'" LIMIT 1'); // $pvr['hp'] = floor($pvr['hp']); - + /*$pvr['hp'] = $priem->magatack( $u2, $u1, $pvr['hp'], '', 0 ); + $pvr['promah_type'] = $pvr['hp'][3]; + $pvr['promah'] = $pvr['hp'][2]; + $pvr['krit'] = $pvr['hp'][1]; + $pvr['hp'] = $pvr['hp'][0];*/ $pvr['hpSee'] = '--'; $pvr['hpNow'] = floor($btl->stats[$btl->uids[$u1]]['hpNow']); $pvr['hpAll'] = $btl->stats[$btl->uids[$u1]]['hpAll']; diff --git a/_incl_data/class/priem/124.php b/_incl_data/class/priem/124.php index f18b0b0c..84875ed0 100644 --- a/_incl_data/class/priem/124.php +++ b/_incl_data/class/priem/124.php @@ -60,7 +60,11 @@ if( isset($pr_used_this) && isset($pr_moment) ) { mysql_query('UPDATE `eff_users` SET `data` = "'.$pvr['redata'].'" WHERE `id` = "'.$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['id'].'" LIMIT 1'); // $pvr['hp'] = floor($pvr['hp']); - + /*$pvr['hp'] = $priem->magatack( $u2, $u1, $pvr['hp'], '', 0 ); + $pvr['promah_type'] = $pvr['hp'][3]; + $pvr['promah'] = $pvr['hp'][2]; + $pvr['krit'] = $pvr['hp'][1]; + $pvr['hp'] = $pvr['hp'][0];*/ $pvr['hpSee'] = '--'; $pvr['hpNow'] = floor($btl->stats[$btl->uids[$u1]]['hpNow']); $pvr['hpAll'] = $btl->stats[$btl->uids[$u1]]['hpAll']; diff --git a/_incl_data/class/priem/21.php b/_incl_data/class/priem/21.php index 66cce764..4ed87b06 100644 --- a/_incl_data/class/priem/21.php +++ b/_incl_data/class/priem/21.php @@ -59,9 +59,11 @@ if( isset($pr_used_this) && isset($pr_moment) && !isset($btl->info['id']) && !is mysql_query('UPDATE `eff_users` SET `data` = "'.$pvr['redata'].'" WHERE `id` = "'.$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['id'].'" LIMIT 1'); // $pvr['hp'] = floor($pvr['hp']); + //$pvr['hp'] = $priem->magatack( $u2, $u1, $pvr['hp'], '', 0 ); $pvr['promah_type'] = 0; $pvr['promah'] = false; $pvr['krit'] = false; + //$pvr['hp'] = $pvr['hp'][0]; $pvr['hpSee'] = '--'; $pvr['hpNow'] = floor($btl->stats[$btl->uids[$u1]]['hpNow']); $pvr['hpAll'] = $btl->stats[$btl->uids[$u1]]['hpAll']; diff --git a/_incl_data/class/priem/22.php b/_incl_data/class/priem/22.php index d2c542ee..ecd7afa1 100644 --- a/_incl_data/class/priem/22.php +++ b/_incl_data/class/priem/22.php @@ -57,7 +57,11 @@ if( isset($pr_used_this) && isset($pr_moment) ) { mysql_query('UPDATE `eff_users` SET `data` = "'.$pvr['redata'].'" WHERE `id` = "'.$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['id'].'" LIMIT 1'); // $pvr['hp'] = floor($pvr['hp']); - + /*$pvr['hp'] = $priem->magatack( $u2, $u1, $pvr['hp'], '', 0 ); + $pvr['promah_type'] = $pvr['hp'][3]; + $pvr['promah'] = $pvr['hp'][2]; + $pvr['krit'] = $pvr['hp'][1]; + $pvr['hp'] = $pvr['hp'][0];*/ $pvr['hpSee'] = '--'; $pvr['hpNow'] = floor($btl->stats[$btl->uids[$u1]]['hpNow']); $pvr['hpAll'] = $btl->stats[$btl->uids[$u1]]['hpAll']; diff --git a/_incl_data/class/priem/23.php b/_incl_data/class/priem/23.php index 87464437..698b4f80 100644 --- a/_incl_data/class/priem/23.php +++ b/_incl_data/class/priem/23.php @@ -57,7 +57,11 @@ if( isset($pr_used_this) && isset($pr_moment) ) { mysql_query('UPDATE `eff_users` SET `data` = "'.$pvr['redata'].'" WHERE `id` = "'.$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['id'].'" LIMIT 1'); // $pvr['hp'] = floor($pvr['hp']); - + /*$pvr['hp'] = $priem->magatack( $u2, $u1, $pvr['hp'], '', 0 ); + $pvr['promah_type'] = $pvr['hp'][3]; + $pvr['promah'] = $pvr['hp'][2]; + $pvr['krit'] = $pvr['hp'][1]; + $pvr['hp'] = $pvr['hp'][0];*/ $pvr['hpSee'] = '--'; $pvr['hpNow'] = floor($btl->stats[$btl->uids[$u1]]['hpNow']); $pvr['hpAll'] = $btl->stats[$btl->uids[$u1]]['hpAll']; diff --git a/_incl_data/class/priem/243.php b/_incl_data/class/priem/243.php index 0dbf6f04..a66d12c2 100644 --- a/_incl_data/class/priem/243.php +++ b/_incl_data/class/priem/243.php @@ -1,5 +1,5 @@ mintr($pl); } unset($pvr); +?> ?> \ No newline at end of file diff --git a/_incl_data/class/priem/25.php b/_incl_data/class/priem/25.php index 7a782c01..fe1cdfa4 100644 --- a/_incl_data/class/priem/25.php +++ b/_incl_data/class/priem/25.php @@ -2,8 +2,8 @@ /** * : {} - * @var $this Priems - * @var $btl Battle + * @var $this priems + * @var $btl battleClass * @var $id * @var $pl */ diff --git a/_incl_data/class/priem/252.php b/_incl_data/class/priem/252.php index 51cd9f8e..c77edc24 100644 --- a/_incl_data/class/priem/252.php +++ b/_incl_data/class/priem/252.php @@ -57,7 +57,11 @@ if( isset($pr_used_this) && isset($pr_moment) ) { mysql_query('UPDATE `eff_users` SET `data` = "'.$pvr['redata'].'" WHERE `id` = "'.$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['id'].'" LIMIT 1'); // $pvr['mp'] = floor($pvr['mp']*$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['x']); - + /*$pvr['hp'] = $priem->magatack( $u2, $u1, $pvr['hp'], '', 0 ); + $pvr['promah_type'] = $pvr['hp'][3]; + $pvr['promah'] = $pvr['hp'][2]; + $pvr['krit'] = $pvr['hp'][1]; + $pvr['hp'] = $pvr['hp'][0];*/ $pvr['mpSee'] = '--'; $pvr['mpNow'] = floor($btl->stats[$btl->uids[$u1]]['mpNow']); $pvr['mpAll'] = $btl->stats[$btl->uids[$u1]]['mpAll']; diff --git a/_incl_data/class/priem/260.php b/_incl_data/class/priem/260.php index d2382c6e..99292215 100644 --- a/_incl_data/class/priem/260.php +++ b/_incl_data/class/priem/260.php @@ -1,4 +1,4 @@ - 0) { $this->addEffPr($pl, $id); $prv['color2'] = '0af'; - $prv['text'] = $btl->addlt(1, 19, $btl->users[$btl->uids[$this->u->info['id']]]['sex'], null); + $prv['text'] = $btl->addlt(1, 19, $btl->users[$btl->uids[$u->info['id']]]['sex'], null); $prv['text2'] = '{tm1} ' . $prv['text']; $btl->priemAddLog($id, 1, 2, $u->info['id'], $this->ue['id'], '', diff --git a/_incl_data/class/priem/261.php b/_incl_data/class/priem/261.php index be48da78..e53d0793 100644 --- a/_incl_data/class/priem/261.php +++ b/_incl_data/class/priem/261.php @@ -1,7 +1,7 @@ addPriem($u1,278,'|add_yzm3=-'.($btl->users[$btl->uids[$u2]]['level']).'',2,77,2,$u2,100,'',0,0,1); $pvr['x55'] = mysql_fetch_array(mysql_query('SELECT `id`,`x` FROM `eff_users` WHERE `uid` = "'.$u1.'" AND `v2` = 25 AND `delete` = 0 LIMIT 1')); if( $pvr['x55']['x'] <1 ) { $priem->addPriem($u1,25,-1,2,77,-1,$u2,5,'',0,0,1); + //$priem->addPriem($u1,25,'|add_zm3=-20',2,77,-1,$u2,100,'',0,0,1); if( $pvr['used'] == 0 ) { $at['p'][$a]['atack'][$j]['yron']['plog'][] = '$this->priemAddLog( '.$id.', '.$b.', '.$a.', '.$u2.', '.$u1.', " ", diff --git a/_incl_data/class/priem/277.php b/_incl_data/class/priem/277.php index 75669120..bfc7832c 100644 --- a/_incl_data/class/priem/277.php +++ b/_incl_data/class/priem/277.php @@ -145,6 +145,8 @@ if( isset($pr_momental_this)) { }*/ //} // + //$priem->addPriem($u1,279,'|add_yzm3=-'.floor($btl->users[$btl->uids[$u2]]['level']*1.25).'',2,77,2,$u2,100,'',0,0,1); + //$priem->addPriem($u1,278,'|add_yzm3=-'.($btl->users[$btl->uids[$u2]]['level']).'',2,77,2,$u2,100,'',0,0,1); $pvr['x5'] = mysql_fetch_array(mysql_query('SELECT `id`,`x` FROM `eff_users` WHERE `uid` = "'.$u1.'" AND `v2` = 25 AND `delete` = 0 LIMIT 1')); if( $pvr['x5']['x'] < 5 ) { $priem->addPriem($u1,25,'|add_zm3=-20',2,77,-1,$u2,100,'',0,0,1); diff --git a/_incl_data/class/priem/28.php b/_incl_data/class/priem/28.php index 135c9698..05502181 100644 --- a/_incl_data/class/priem/28.php +++ b/_incl_data/class/priem/28.php @@ -2,8 +2,8 @@ /** * : {} - * @var $this Priems - * @var $btl Battle + * @var $this priems + * @var $btl battleClass * @var $id * @var $pl */ diff --git a/_incl_data/class/priem/294.php b/_incl_data/class/priem/294.php index 7ca59d50..e3a1a02d 100644 --- a/_incl_data/class/priem/294.php +++ b/_incl_data/class/priem/294.php @@ -39,12 +39,34 @@ if( isset($pr_used_this) && isset($pr_moment) ) { if( $pvr['hp'] < 1 ) { $pvr['hp'] = 1; } - + // + /* + $pvr['data'] = $priem->lookStatsArray($btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['data']); + $pvr['di'] = 0; + $pvr['dc'] = count($pvr['data']['atgm']); + $pvr['rd'] = 0; + $pvr['redata'] = ''; + while( $pvr['di'] < 4 ) { + if( isset($pvr['data']['atgm'][($pvr['dc']-$pvr['di'])]) ) { + if( $pvr['rd'] < 3 ) { + $pvr['hp'] += $pvr['data']['atgm'][($pvr['dc']-$pvr['di'])]; + $pvr['redata'] = 'atgm='.$pvr['data']['atgm'][($pvr['dc']-$pvr['di'])].'|'.$pvr['redata']; + $pvr['rd']++; + } + } + $pvr['di']++; + } + */ + // $btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['data'] = $pvr['redata']; mysql_query('UPDATE `eff_users` SET `data` = "'.$pvr['redata'].'" WHERE `id` = "'.$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['id'].'" LIMIT 1'); // $pvr['hp'] = floor($pvr['hp']); - + /*$pvr['hp'] = $priem->magatack( $u2, $u1, $pvr['hp'], '', 0 ); + $pvr['promah_type'] = $pvr['hp'][3]; + $pvr['promah'] = $pvr['hp'][2]; + $pvr['krit'] = $pvr['hp'][1]; + $pvr['hp'] = $pvr['hp'][0];*/ $pvr['hpSee'] = '--'; $pvr['hpNow'] = floor($btl->stats[$btl->uids[$u1]]['hpNow']); $pvr['hpAll'] = $btl->stats[$btl->uids[$u1]]['hpAll']; diff --git a/_incl_data/class/priem/295.php b/_incl_data/class/priem/295.php index 395a8381..07ecb25c 100644 --- a/_incl_data/class/priem/295.php +++ b/_incl_data/class/priem/295.php @@ -39,12 +39,34 @@ if( isset($pr_used_this) && isset($pr_moment) ) { if( $pvr['hp'] < 1 ) { $pvr['hp'] = 1; } - + // + /* + $pvr['data'] = $priem->lookStatsArray($btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['data']); + $pvr['di'] = 0; + $pvr['dc'] = count($pvr['data']['atgm']); + $pvr['rd'] = 0; + $pvr['redata'] = ''; + while( $pvr['di'] < 4 ) { + if( isset($pvr['data']['atgm'][($pvr['dc']-$pvr['di'])]) ) { + if( $pvr['rd'] < 3 ) { + $pvr['hp'] += $pvr['data']['atgm'][($pvr['dc']-$pvr['di'])]; + $pvr['redata'] = 'atgm='.$pvr['data']['atgm'][($pvr['dc']-$pvr['di'])].'|'.$pvr['redata']; + $pvr['rd']++; + } + } + $pvr['di']++; + } + */ + // $btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['data'] = $pvr['redata']; mysql_query('UPDATE `eff_users` SET `data` = "'.$pvr['redata'].'" WHERE `id` = "'.$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['id'].'" LIMIT 1'); // $pvr['hp'] = floor($pvr['hp']); - + /*$pvr['hp'] = $priem->magatack( $u2, $u1, $pvr['hp'], '', 0 ); + $pvr['promah_type'] = $pvr['hp'][3]; + $pvr['promah'] = $pvr['hp'][2]; + $pvr['krit'] = $pvr['hp'][1]; + $pvr['hp'] = $pvr['hp'][0];*/ $pvr['hpSee'] = '--'; $pvr['hpNow'] = floor($btl->stats[$btl->uids[$u1]]['hpNow']); $pvr['hpAll'] = $btl->stats[$btl->uids[$u1]]['hpAll']; diff --git a/_incl_data/class/priem/296.php b/_incl_data/class/priem/296.php index 6a3989fe..53aa2fe1 100644 --- a/_incl_data/class/priem/296.php +++ b/_incl_data/class/priem/296.php @@ -39,12 +39,34 @@ if( isset($pr_used_this) && isset($pr_moment) ) { if( $pvr['hp'] < 1 ) { $pvr['hp'] = 1; } - + // + /* + $pvr['data'] = $priem->lookStatsArray($btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['data']); + $pvr['di'] = 0; + $pvr['dc'] = count($pvr['data']['atgm']); + $pvr['rd'] = 0; + $pvr['redata'] = ''; + while( $pvr['di'] < 4 ) { + if( isset($pvr['data']['atgm'][($pvr['dc']-$pvr['di'])]) ) { + if( $pvr['rd'] < 3 ) { + $pvr['hp'] += $pvr['data']['atgm'][($pvr['dc']-$pvr['di'])]; + $pvr['redata'] = 'atgm='.$pvr['data']['atgm'][($pvr['dc']-$pvr['di'])].'|'.$pvr['redata']; + $pvr['rd']++; + } + } + $pvr['di']++; + } + */ + // $btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['data'] = $pvr['redata']; mysql_query('UPDATE `eff_users` SET `data` = "'.$pvr['redata'].'" WHERE `id` = "'.$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['id'].'" LIMIT 1'); // $pvr['hp'] = floor($pvr['hp']); - + /*$pvr['hp'] = $priem->magatack( $u2, $u1, $pvr['hp'], '', 0 ); + $pvr['promah_type'] = $pvr['hp'][3]; + $pvr['promah'] = $pvr['hp'][2]; + $pvr['krit'] = $pvr['hp'][1]; + $pvr['hp'] = $pvr['hp'][0];*/ $pvr['hpSee'] = '--'; $pvr['hpNow'] = floor($btl->stats[$btl->uids[$u1]]['hpNow']); $pvr['hpAll'] = $btl->stats[$btl->uids[$u1]]['hpAll']; diff --git a/_incl_data/class/priem/300.php b/_incl_data/class/priem/300.php index d0cfa0a8..4d416d0c 100644 --- a/_incl_data/class/priem/300.php +++ b/_incl_data/class/priem/300.php @@ -40,7 +40,23 @@ if( isset($pr_used_this) && isset($pr_moment) ) { // $pvr['hp'] = rand(15,25); - + /*// + $pvr['data'] = $priem->lookStatsArray($btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['data']); + $pvr['di'] = 0; + $pvr['dc'] = count($pvr['data']['atgm']); + $pvr['rd'] = 0; + $pvr['redata'] = ''; + while( $pvr['di'] < 4 ) { + if( isset($pvr['data']['atgm'][($pvr['dc']-$pvr['di'])]) ) { + if( $pvr['rd'] < 3 ) { + $pvr['hp'] += $pvr['data']['atgm'][($pvr['dc']-$pvr['di'])]; + $pvr['redata'] = 'atgm='.$pvr['data']['atgm'][($pvr['dc']-$pvr['di'])].'|'.$pvr['redata']; + $pvr['rd']++; + } + } + $pvr['di']++; + }*/ + // $pvr['hp'] = rand(15,25); if( $pvr['ijk'] == 1 ) { $pvr['mgtype'] = 5; @@ -85,7 +101,11 @@ if( isset($pr_used_this) && isset($pr_moment) ) { mysql_query('UPDATE `eff_users` SET `data` = "'.$pvr['redata'].'" WHERE `id` = "'.$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['id'].'" LIMIT 1'); // $pvr['hp'] = floor($pvr['hp']); - + /*$pvr['hp'] = $priem->magatack( $u2, $u1, $pvr['hp'], '', 0 ); + $pvr['promah_type'] = $pvr['hp'][3]; + $pvr['promah'] = $pvr['hp'][2]; + $pvr['krit'] = $pvr['hp'][1]; + $pvr['hp'] = $pvr['hp'][0];*/ $pvr['hpSee'] = '--'; $pvr['hpNow'] = floor($btl->stats[$btl->uids[$u1]]['hpNow']); $pvr['hpAll'] = $btl->stats[$btl->uids[$u1]]['hpAll']; diff --git a/_incl_data/class/priem/301.php b/_incl_data/class/priem/301.php index c32fce7d..82a4725b 100644 --- a/_incl_data/class/priem/301.php +++ b/_incl_data/class/priem/301.php @@ -41,12 +41,32 @@ if( isset($pr_used_this) && isset($pr_moment) ) { $pvr['promah'] = $pvr['hp'][2]; $pvr['krit'] = $pvr['hp'][1]; $pvr['hp'] = $pvr['hp'][0]; - + /*// + $pvr['data'] = $priem->lookStatsArray($btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['data']); + $pvr['di'] = 0; + $pvr['dc'] = count($pvr['data']['atgm']); + $pvr['rd'] = 0; + $pvr['redata'] = ''; + while( $pvr['di'] < 4 ) { + if( isset($pvr['data']['atgm'][($pvr['dc']-$pvr['di'])]) ) { + if( $pvr['rd'] < 3 ) { + $pvr['hp'] += $pvr['data']['atgm'][($pvr['dc']-$pvr['di'])]; + $pvr['redata'] = 'atgm='.$pvr['data']['atgm'][($pvr['dc']-$pvr['di'])].'|'.$pvr['redata']; + $pvr['rd']++; + } + } + $pvr['di']++; + }*/ + // $btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['data'] = $pvr['redata']; mysql_query('UPDATE `eff_users` SET `data` = "'.$pvr['redata'].'" WHERE `id` = "'.$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['id'].'" LIMIT 1'); // $pvr['hp'] = floor($pvr['hp']); - + /*$pvr['hp'] = $priem->magatack( $u2, $u1, $pvr['hp'], '', 0 ); + $pvr['promah_type'] = $pvr['hp'][3]; + $pvr['promah'] = $pvr['hp'][2]; + $pvr['krit'] = $pvr['hp'][1]; + $pvr['hp'] = $pvr['hp'][0];*/ $pvr['hpSee'] = '--'; $pvr['hpNow'] = floor($btl->stats[$btl->uids[$u1]]['hpNow']); $pvr['hpAll'] = $btl->stats[$btl->uids[$u1]]['hpAll']; diff --git a/_incl_data/class/priem/33.php b/_incl_data/class/priem/33.php index c80f9771..e38ab9d8 100644 --- a/_incl_data/class/priem/33.php +++ b/_incl_data/class/priem/33.php @@ -1,14 +1,17 @@ stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['id'].'" LIMIT 1'); // $pvr['hp'] = floor($pvr['hp']); - + /*$pvr['hp'] = $priem->magatack( $u2, $u1, $pvr['hp'], '', 0 ); + $pvr['promah_type'] = $pvr['hp'][3]; + $pvr['promah'] = $pvr['hp'][2]; + $pvr['krit'] = $pvr['hp'][1]; + $pvr['hp'] = $pvr['hp'][0];*/ $pvr['hpSee'] = '--'; $pvr['hpNow'] = floor($btl->stats[$btl->uids[$u1]]['hpNow']); $pvr['hpAll'] = $btl->stats[$btl->uids[$u1]]['hpAll']; diff --git a/_incl_data/class/priem/56.php b/_incl_data/class/priem/56.php index 4a8bddaf..3c7a4312 100644 --- a/_incl_data/class/priem/56.php +++ b/_incl_data/class/priem/56.php @@ -1,8 +1,8 @@ stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['id'].'" LIMIT 1'); // $pvr['hp'] = floor($pvr['hp']); - + /*$pvr['hp'] = $priem->magatack( $u2, $u1, $pvr['hp'], '', 0 ); + $pvr['promah_type'] = $pvr['hp'][3]; + $pvr['promah'] = $pvr['hp'][2]; + $pvr['krit'] = $pvr['hp'][1]; + $pvr['hp'] = $pvr['hp'][0];*/ $pvr['hpSee'] = '--'; $pvr['hpNow'] = floor($btl->stats[$btl->uids[$u1]]['hpNow']); $pvr['hpAll'] = $btl->stats[$btl->uids[$u1]]['hpAll']; diff --git a/_incl_data/class/priem/73.php b/_incl_data/class/priem/73.php index db0f5f19..bbf69211 100644 --- a/_incl_data/class/priem/73.php +++ b/_incl_data/class/priem/73.php @@ -59,6 +59,7 @@ if( isset($pr_used_this) && isset($pr_moment) && !isset($btl->info['id']) && !is mysql_query('UPDATE `eff_users` SET `data` = "'.$pvr['redata'].'" WHERE `id` = "'.$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['id'].'" LIMIT 1'); // $pvr['hp'] = floor($pvr['hp']); + //$pvr['hp'] = $priem->magatack( $u2, $u1, $pvr['hp'], '', 0 ); $pvr['promah_type'] = 0; $pvr['promah'] = false; $pvr['krit'] = false; diff --git a/_incl_data/class/priem/74.php b/_incl_data/class/priem/74.php index e83e8390..373d1500 100644 --- a/_incl_data/class/priem/74.php +++ b/_incl_data/class/priem/74.php @@ -59,6 +59,7 @@ if( isset($pr_used_this) && isset($pr_moment) && !isset($btl->info['id']) && !is mysql_query('UPDATE `eff_users` SET `data` = "'.$pvr['redata'].'" WHERE `id` = "'.$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['id'].'" LIMIT 1'); // $pvr['hp'] = floor($pvr['hp']); + //$pvr['hp'] = $priem->magatack( $u2, $u1, $pvr['hp'], '', 0 ); $pvr['promah_type'] = 0; $pvr['promah'] = false; $pvr['krit'] = false; diff --git a/_incl_data/class/priem/75.php b/_incl_data/class/priem/75.php index 5e48a70c..d2cfa215 100644 --- a/_incl_data/class/priem/75.php +++ b/_incl_data/class/priem/75.php @@ -59,6 +59,7 @@ if( isset($pr_used_this) && isset($pr_moment) && !isset($btl->info['id']) && !is mysql_query('UPDATE `eff_users` SET `data` = "'.$pvr['redata'].'" WHERE `id` = "'.$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['id'].'" LIMIT 1'); // $pvr['hp'] = floor($pvr['hp']); + //$pvr['hp'] = $priem->magatack( $u2, $u1, $pvr['hp'], '', 0 ); $pvr['promah_type'] = 0; $pvr['promah'] = false; $pvr['krit'] = false; diff --git a/_incl_data/class/priem/77.php b/_incl_data/class/priem/77.php index 9838fb0d..3c8e205a 100644 --- a/_incl_data/class/priem/77.php +++ b/_incl_data/class/priem/77.php @@ -61,6 +61,7 @@ if( isset($pr_used_this) && isset($pr_moment) && !isset($btl->info['id']) && !is mysql_query('UPDATE `eff_users` SET `data` = "'.$pvr['redata'].'" WHERE `id` = "'.$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['id'].'" LIMIT 1'); // $pvr['hp'] = floor($pvr['hp']); + //$pvr['hp'] = $priem->magatack( $u2, $u1, $pvr['hp'], '', 0 ); $pvr['promah_type'] = 0; $pvr['promah'] = false; $pvr['krit'] = false; diff --git a/_incl_data/class/priem/79.php b/_incl_data/class/priem/79.php index 2fa98418..f849eaca 100644 --- a/_incl_data/class/priem/79.php +++ b/_incl_data/class/priem/79.php @@ -59,6 +59,7 @@ if( isset($pr_used_this) && isset($pr_moment) && !isset($btl->info['id']) && !is mysql_query('UPDATE `eff_users` SET `data` = "'.$pvr['redata'].'" WHERE `id` = "'.$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['id'].'" LIMIT 1'); // $pvr['hp'] = floor($pvr['hp']); + //$pvr['hp'] = $priem->magatack( $u2, $u1, $pvr['hp'], '', 0 ); $pvr['promah_type'] = 0; $pvr['promah'] = false; $pvr['krit'] = false; diff --git a/_incl_data/class/priem/81.php b/_incl_data/class/priem/81.php index 2f2d4feb..febc0a7a 100644 --- a/_incl_data/class/priem/81.php +++ b/_incl_data/class/priem/81.php @@ -57,7 +57,11 @@ if( isset($pr_used_this) && isset($pr_moment) ) { mysql_query('UPDATE `eff_users` SET `data` = "'.$pvr['redata'].'" WHERE `id` = "'.$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['id'].'" LIMIT 1'); // $pvr['hp'] = floor($pvr['hp']); - + /*$pvr['hp'] = $priem->magatack( $u2, $u1, $pvr['hp'], '', 0 ); + $pvr['promah_type'] = $pvr['hp'][3]; + $pvr['promah'] = $pvr['hp'][2]; + $pvr['krit'] = $pvr['hp'][1]; + $pvr['hp'] = $pvr['hp'][0];*/ $pvr['hpSee'] = '--'; $pvr['hpNow'] = floor($btl->stats[$btl->uids[$u1]]['hpNow']); $pvr['hpAll'] = $btl->stats[$btl->uids[$u1]]['hpAll']; diff --git a/_incl_data/class/priem/82.php b/_incl_data/class/priem/82.php index f6c76eb7..a9039d96 100644 --- a/_incl_data/class/priem/82.php +++ b/_incl_data/class/priem/82.php @@ -57,7 +57,11 @@ if( isset($pr_used_this) && isset($pr_moment) ) { mysql_query('UPDATE `eff_users` SET `data` = "'.$pvr['redata'].'" WHERE `id` = "'.$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['id'].'" LIMIT 1'); // $pvr['hp'] = floor($pvr['hp']); - + /*$pvr['hp'] = $priem->magatack( $u2, $u1, $pvr['hp'], '', 0 ); + $pvr['promah_type'] = $pvr['hp'][3]; + $pvr['promah'] = $pvr['hp'][2]; + $pvr['krit'] = $pvr['hp'][1]; + $pvr['hp'] = $pvr['hp'][0];*/ $pvr['hpSee'] = '--'; $pvr['hpNow'] = floor($btl->stats[$btl->uids[$u1]]['hpNow']); $pvr['hpAll'] = $btl->stats[$btl->uids[$u1]]['hpAll']; diff --git a/_incl_data/class/priem/83.php b/_incl_data/class/priem/83.php index 9b4aac10..e638ff5d 100644 --- a/_incl_data/class/priem/83.php +++ b/_incl_data/class/priem/83.php @@ -57,7 +57,11 @@ if( isset($pr_used_this) && isset($pr_moment) ) { mysql_query('UPDATE `eff_users` SET `data` = "'.$pvr['redata'].'" WHERE `id` = "'.$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['id'].'" LIMIT 1'); // $pvr['hp'] = floor($pvr['hp']); - + /*$pvr['hp'] = $priem->magatack( $u2, $u1, $pvr['hp'], '', 0 ); + $pvr['promah_type'] = $pvr['hp'][3]; + $pvr['promah'] = $pvr['hp'][2]; + $pvr['krit'] = $pvr['hp'][1]; + $pvr['hp'] = $pvr['hp'][0];*/ $pvr['hpSee'] = '--'; $pvr['hpNow'] = floor($btl->stats[$btl->uids[$u1]]['hpNow']); $pvr['hpAll'] = $btl->stats[$btl->uids[$u1]]['hpAll']; diff --git a/_incl_data/class/priem/84.php b/_incl_data/class/priem/84.php index 1624515d..c54d3f7b 100644 --- a/_incl_data/class/priem/84.php +++ b/_incl_data/class/priem/84.php @@ -57,7 +57,11 @@ if( isset($pr_used_this) && isset($pr_moment) ) { mysql_query('UPDATE `eff_users` SET `data` = "'.$pvr['redata'].'" WHERE `id` = "'.$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['id'].'" LIMIT 1'); // $pvr['hp'] = floor($pvr['hp']); - + /*$pvr['hp'] = $priem->magatack( $u2, $u1, $pvr['hp'], '', 0 ); + $pvr['promah_type'] = $pvr['hp'][3]; + $pvr['promah'] = $pvr['hp'][2]; + $pvr['krit'] = $pvr['hp'][1]; + $pvr['hp'] = $pvr['hp'][0];*/ $pvr['hpSee'] = '--'; $pvr['hpNow'] = floor($btl->stats[$btl->uids[$u1]]['hpNow']); $pvr['hpAll'] = $btl->stats[$btl->uids[$u1]]['hpAll']; diff --git a/_incl_data/class/priems/curse_01.php b/_incl_data/class/priems/curse_01.php index edfec68e..b9b79a87 100644 --- a/_incl_data/class/priems/curse_01.php +++ b/_incl_data/class/priems/curse_01.php @@ -1,8 +1,52 @@ -testPower($this->stats[$this->uids[$uid1]],$this->stats[$this->uids[$uid2]],$hpmin,3,2); + //$hpmin = round($hpmin); + //if($hpmin < 0) { $hpmin = 0; } + //$hp2 = $this->stats[$this->uids[$uid2]]['hpNow']; + // + //// + // + //$hp2 -= $hpmin; + //if($hp2<0) + //{ + // $hp2 = 0; + //}elseif($hp2>$this->stats[$this->uids[$uid2]]['hpNow']) + //{ + // $hp2 = $this->stats[$this->uids[$uid2]]['hpNow']; + //} + // + //$this->takeExp($u->info['id'],$hpmin,$uid1,$uid2); + // + //// + //$this->users[$this->uids[$uid2]]['hpNow'] = $hp2; + //$this->stats[$this->uids[$uid2]]['hpNow'] = $hp2; + //mysql_query('UPDATE `stats` SET `hpNow` = '.$hp2.' WHERE `id` = "'.$uid2.'" LIMIT 1'); + // + //// + //$vLog = 'time1='.time().'||s1='.$this->users[$this->uids[$uid1]]['sex'].'||t1='.$this->users[$this->uids[$uid1]]['team'].'||login1='.$this->users[$this->uids[$uid1]]['login'].'||s2='.$this->users[$this->uids[$uid2]]['sex'].'||t2='.$this->users[$this->uids[$uid2]]['team'].'||login2='.$this->users[$this->uids[$uid2]]['login'].''; + //$mas1 = array('time'=>time(),'battle'=>$this->info['id'],'id_hod'=>($this->hodID),'text'=>'','vars'=>$vLog,'zona1'=>'','zonb1'=>'','zona2'=>'','zonb2'=>'','type'=>'1'); + //if($hpmin>0) + //{ + // $hpmin = '-'.$hpmin; + //}else{ + // $hpmin = '--'; + //} + //$mas1['text'] = '{tm1} {u2} "'.$itm['name'].'". '.$hpmin.' ['.ceil($hp2).'/'.$this->stats[$this->uids[$uid2]]['hpAll'].']'; + //$this->add_log($mas1); + } +} + + +?> \ No newline at end of file diff --git a/_incl_data/class/priems/itm286.end.php b/_incl_data/class/priems/itm286.end.php index cb1751a7..f1daadf8 100644 --- a/_incl_data/class/priems/itm286.end.php +++ b/_incl_data/class/priems/itm286.end.php @@ -12,6 +12,7 @@ if($e['bm_a1']=='itm286' && $end > 0) // $hpmin = rand(5,8); $hpmin += round($this->stats[$this->uids[$uid1]]['mg1']*1.35); + //$hpmin = $priem->testPower($this->stats[$this->uids[$uid1]],$this->stats[$this->uids[$uid2]],$hpmin,1,2); // $hpmin = $priem->magatack($uid1,$uid2,$hpmin,'',false); $hpmin = $hpmin[0]; diff --git a/_incl_data/class/priems/itm347.end.php b/_incl_data/class/priems/itm347.end.php index 8fe085b9..2ebfd8b1 100644 --- a/_incl_data/class/priems/itm347.end.php +++ b/_incl_data/class/priems/itm347.end.php @@ -12,6 +12,7 @@ if($e['bm_a1']=='itm347' && $end > 0) // $hpmin = rand(5,8); $hpmin += round($this->stats[$this->uids[$uid1]]['mg1']*1.35); + //$hpmin = $priem->testPower($this->stats[$this->uids[$uid1]],$this->stats[$this->uids[$uid2]],$hpmin,1,2); // $hpmin = $priem->magatack($uid1,$uid2,$hpmin,'',false); $hpmin = $hpmin[0]; diff --git a/_incl_data/class/quest/dailyquest.php b/_incl_data/class/quest/dailyquest.php index 90ba70e6..711498df 100644 --- a/_incl_data/class/quest/dailyquest.php +++ b/_incl_data/class/quest/dailyquest.php @@ -11,7 +11,7 @@ $txt .= '
'; */ -$txt = isset($txt) ?: ''; + $test = mysql_fetch_array(mysql_query('SELECT * FROM `actions` WHERE `uid` = "'.$u->info['id'].'" AND `vars`= "day_quest" LIMIT 1')); if (!isset($test['id'])) { diff --git a/hmonitor.php b/hmonitor.php index 38a84cac..842cb626 100644 --- a/hmonitor.php +++ b/hmonitor.php @@ -3,11 +3,12 @@ const GAME = true; if (!defined('GAME_VERSION')) { require_once '_incl_data/autoload.php'; } -include('_incl_data/__config.php'); +//include('_incl_data/__config.php'); //include('_incl_data/class/__db_connect.php'); +Core\Config::init(); Core\Database::init(); -$c = (new \Core\Config())->get(); +//$c = (new \Core\Config())->get(); $u = User::start(); ?> diff --git a/html/buy.php b/html/buy.php index 1ca94034..e69de29b 100644 --- a/html/buy.php +++ b/html/buy.php @@ -1,20 +0,0 @@ -'; - if( $bp != 75 ) { - echo '

  »   '.$pgd['title'].'


'; - }else{ - echo '

'.$pgd['title'].'


'; - } - echo $pgd['text']; - echo ''; -}else{ - echo ' !'; -} -?> \ No newline at end of file diff --git a/html/index.html b/html/index.html index afae9adc..e69de29b 100644 --- a/html/index.html +++ b/html/index.html @@ -1,461 +0,0 @@ - - - - - - - - - - - -
-
-
- -
-
-
- - - diff --git a/html/index.php b/html/index.php index 3c041dd4..e69de29b 100644 --- a/html/index.php +++ b/html/index.php @@ -1,24 +0,0 @@ - -
-
-
-
-
- - - - - - - - - -
-
-
-
-
- \ No newline at end of file diff --git a/html/m_forum.php b/html/m_forum.php index d61eae96..e69de29b 100644 --- a/html/m_forum.php +++ b/html/m_forum.php @@ -1,52 +0,0 @@ - '', - 'px' => 200 -); - -$rz = 1; -if( $url[2] > 0 ) { - $rz = $url[2]; -} - -$rz2 = 0; -if( $url[3] > 0 ) { - $rz2 = $url[3]; -} - -$sp = mysql_query('SELECT * FROM `forum_menu` WHERE `parent` = "0" ORDER BY `id` ASC'); -while($pl = mysql_fetch_array($sp)) { - if( $rz == $pl['id'] && $rz2 == 0 ) { - $frm['html'] .= '«'.$pl['name'].'»'; - }else{ - $frm['html'] .= '«'.$pl['name'].'»'; - } - $sp2 = mysql_query('SELECT * FROM `forum_menu` WHERE `parent` = "'.$pl['id'].'" ORDER BY `id` ASC'); - while($pl2 = mysql_fetch_array($sp2)) { - $pl2['name'] = '> '.$pl2['name'].''; - if( $rz2 == $pl2['id'] ) { - $frm['html'] .= ''.$pl2['name'].''; - }else{ - $frm['html'] .= ''.$pl2['name'].''; - } - $frm['px'] += 23; - } - $frm['px'] += 23; -} - -?> -
-
-
-
-
-
-
- -
-
-
-
-
-
-
\ No newline at end of file diff --git a/html/m_top.php b/html/m_top.php index cbf1eeb1..e69de29b 100644 --- a/html/m_top.php +++ b/html/m_top.php @@ -1,51 +0,0 @@ - '', - 'px' => 200 -); - -$rz = 1; - -if ($url[2] == 'referal') { - $rz = 2; -}elseif($url[2] == 'clans') { - $rz = 3; -} - -if( $rz == 1 ) { - $lib['html'] .= ' '; -}else{ - $lib['html'] .= ' '; -} - -if( $rz == 2 ) { - $lib['html'] .= ' '; -}else{ - $lib['html'] .= ' '; -} - -if( $rz == 3 ) { - $lib['html'] .= ' '; -}else{ - $lib['html'] .= ' '; -} - - -$lib['px'] += 23*2; - -?> -
-
-
-
-
-
-
- -
-
-
-
-
-
-
\ No newline at end of file diff --git a/modules_data/1_panel.php b/modules_data/1_panel.php index 150c6cf7..2a46c781 100644 --- a/modules_data/1_panel.php +++ b/modules_data/1_panel.php @@ -1,6 +1,6 @@ info['id'].'" LIMIT 1'); -}elseif(isset($_GET['usecopr'])) { - $cpr = mysql_fetch_array(mysql_query('SELECT * FROM `complects_priem` WHERE `id` = "'.mysql_real_escape_string($_GET['usecopr']).'" AND `uid` = "'.$u->info['id'].'" LIMIT 1')); - if(isset($cpr['id'])) { - $u->info['priems'] = $cpr['priems']; - mysql_query('UPDATE `stats` SET `priems` = "'.mysql_real_escape_string($cpr['priems']).'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1'); - } -} - -/* -$u->add_buf('',0); -echo time(); -$u->add_buf('',1,$u->info['id'],'inv'); -*/ - -// -if(isset($_POST['compname'])) -{ - $_POST['compname'] = htmlspecialchars($_POST['compname'],NULL,'cp1251'); - $_POST['compname'] = str_replace("'",'',$_POST['compname']); - $_POST['compname'] = str_replace('"','',$_POST['compname']); - $ptst = str_replace(' ','',$_POST['compname']); - if($ptst!='') - { - // - $ptst = ''; - $sp = mysql_query('SELECT `inOdet`,`id` FROM `items_users` WHERE `uid` = "'.$u->info['id'].'" AND `delete` = "0" AND `inOdet` > 0 AND `inShop` = "0" ORDER BY `inOdet` ASC LIMIT 250'); - while($pl = mysql_fetch_array($sp)) - { - $ptst .= $pl['inOdet'].'='.$pl['id'].'|'; - } - $tcm = mysql_fetch_array(mysql_query('SELECT * FROM `save_com` WHERE `uid` = "'.$u->info['id'].'" AND `name` = "'.mysql_real_escape_string($_POST['compname']).'" AND `delete` = "0" LIMIT 1')); - if(!isset($tcm['id'])) - { - // - $ins = mysql_query('INSERT INTO `save_com` (`uid`,`time`,`name`,`val`,`type`) VALUES ("'.$u->info['id'].'","'.time().'","'.mysql_real_escape_string($_POST['compname']).'","'.$ptst.'","0")'); - if($ins) - { - $u->error = ' "'.$_POST['compname'].'" '; - }else{ - $u->error = ' '; - } - }else{ - // - $ins = mysql_query('UPDATE `save_com` SET `val` = "'.$ptst.'" WHERE `id` = "'.$tcm['id'].'" LIMIT 1'); - if($ins) - { - $u->error = ' "'.$_POST['compname'].'" '; - }else{ - $u->error = ' '; - } - } - unset($ptst,$tcm,$inc); - } -}elseif(isset($_GET['delc1'])) -{ - $cmpl = mysql_query('UPDATE `save_com` SET `delete` = "'.time().'" WHERE `uid` = "'.$u->info['id'].'" AND `delete` = "0" AND `id` = "'.mysql_real_escape_string($_GET['delc1']).'" LIMIT 1'); - if($cmpl) - { - $u->error = ' '; - } -} -$filt='`iu`.`lastUPD` DESC'; -if(isset($_GET['boxsort'])){ - switch($_GET['boxsort']){ - case'name': - $filt='`im`.`name` ASC'; - break; - case'cost': - $filt='`im`.`price2` DESC, `im`.`price1` DESC'; - break; - case'type': - $filt='`im`.`inslot`'; - break; - } -} - -$pc = 20; -$pg = round((int)@$_GET['paged']); -$pxc = $pg*$pc; -$nlim = ''; -$pgs = mysql_fetch_array(mysql_query('SELECT COUNT(`iu`.`id`) FROM `items_users` AS `iu` LEFT JOIN `items_main` AS `im` ON `im`.`id` = `iu`.`item_id` WHERE `iu`.`uid`="'.$u->info['id'].'" AND `iu`.`delete`="0" AND `iu`.`inOdet`="0" AND `iu`.`inShop`="0" AND `im`.`inRazdel`="'.mysql_real_escape_string($_GET['otdel']).'" ORDER BY '.$filt.' LIMIT 1')); -$pgs = $pgs[0]; -$page_look = ''; - - - -if(isset($_SESSION['paged']))$page_look = ''; else $page_look = ''; -if($pgs > $pc) { - $nlim = ' LIMIT '.$pxc.' , '.$pc.''; - $page_look .= '
'; - $page_look .= '
'; - $page_look .= ': '; - $i = 1; - echo ''; - while($i <= ceil($pgs/$pc)) { - if($i-1 == $pg) { - $sep = 1; - }else{ - $sep = ''; - } - $page_look .= ''.$i.'  '; - $i++; - } - $page_look .= '
'; - $page_look .= '
              
'; -} -$itmAll = $itmAllSee = ''; -if(isset($_GET['boxsort']) && $_GET['otdel']==5) { - if($_POST['subfilter']) { - $itmAll = $u->genInv(1,'`iu`.`uid`="'.$u->info['id'].'" AND `iu`.`delete`="0" AND `iu`.`inOdet`="0" AND `iu`.`inShop`="0" AND `name` LIKE "%'.addcslashes(mysql_real_escape_string($_POST['filter']), '%_').'%" ORDER by `name` ASC'); - } -}else{ - $itmAll = $u->genInv(1,'`iu`.`uid`="'.$u->info['id'].'" AND `iu`.`delete`="0" AND `iu`.`inOdet`="0" AND `iu`.`inShop`="0" AND `im`.`inRazdel`="'.mysql_real_escape_string($_GET['otdel']).'" ORDER BY '.$filt.''.$nlim); -} - -$itmAllSee = ''; -if($itmAll[0] > 0) - $itmAllSee = $itmAll[2]; - -$showItems = ' - - - - - - - - - -
- - - - - - - -
- - -
(:' . (0+$u->aves['now']) . ' / ' . $u->aves['max'] . ', : ' . $u->aves['items'] . ') -
' . $page_look . '
' . (( $u->info['invBlock'] == 0 ) ? $itmAllSee : '
.
:
' ) . '
- - - - -
   - - -
'; -if(isset($_GET['mAjax'])){ - exit($showItems); -} -?> - - - - - - -
getInfoPers($u->info['id'],0,0,1); if($usee!=false){ echo $usee[0]; }else{ echo 'information is lost.'; } - if($u->info['level']>1 && $u->info['inTurnir'] == 0) - { - $priem = new Priems(); - $priem->seeMy(1); - } - if( $u->info['inTurnir'] > 0 ) { - echo '
'; - } - echo '
'.$u->info_remont(); - - ?> -
info['inTurnir'] == 0) { include('stats_inv.php'); }else{ include('stats_inv2.php'); } ?> - - error != '' ) { ?> - - - - - - - - - - - - - -
-
error; ?>
-
- info['animal'] != 0) - { - echo ' '; - } - ?> - info['inTurnir'] == 0) { ?> - - - info['id'].'" AND `clan` = "0") OR `clan` = "'.$u->info['clan'].'") AND `good` > 0 AND `bad` = "0" LIMIT 1')); - if($gl[0] > 0) { ?> - - - - - info['inTurnir'] == 0) { ?> - - - - - - -
-
-
\ No newline at end of file diff --git a/modules_data/location/enterptp.php b/modules_data/location/enterptp.php index 91b8ead2..284843d0 100644 --- a/modules_data/location/enterptp.php +++ b/modules_data/location/enterptp.php @@ -24,7 +24,7 @@ $dungeon = mysql_fetch_assoc(mysql_query('SELECT `id` as room, `dungeon_id` as i $dungeon['list'] = array( // , . // , `rep`. - // - , User.php , \, . + // - , __user.php , \, . // , , , - . - capitalcity. 1=>'capitalcity', 2=>'demonscity', diff --git a/modules_data/location/kinght.php b/modules_data/location/kinght.php index 49b469ab..e69de29b 100644 --- a/modules_data/location/kinght.php +++ b/modules_data/location/kinght.php @@ -1,81 +0,0 @@ -room['file']=='kinght') -{ -?> - - - - - - -
- getInfoPers($u->info['id'],0); if($usee!=false){ echo $usee[0]; }else{ echo 'information is lost.'; } ?> -
- error != '' ) { ?> - - error; ?> - - - - - - -
- '.$re.''; } ?> - - - - -
-
- -
- -
-
-
onclick="location='main.php?loc=1.180.0.220';" onmouseover="this.className='aFilterhover';" onmouseout="this.className='aFilter';" src="https://img.new-combats.com/i/images/300x225/map_2stair.gif" width="120" height="35" class="aFilter" />
- -
- -
-
onclick="location='main.php?loc=1.180.0.XX';" onmouseover="this.className='aFilterhover';" onmouseout="this.className='aFilter';" src="https://img.new-combats.com/i/images/300x225/map_sec7.gif" width="123" height="39" class="aFilter" />
-
-
onclick="location='main.php?loc=1.180.0.223';" onmouseover="this.className='aFilterhover';" onmouseout="this.className='aFilter';" src="https://img.new-combats.com/i/images/300x225/map_sec4.gif" width="89" height="32" class="aFilter" />
-
- -
-
- - info['level']<6) - { - echo ' - ? , ? . , ? , ? , . Capital city. . - '; - }else{ - echo ', - .'; - } ?> -
- -
- -
- - - testHome(); if(!isset($hgo['id'])){ ?> - -
- ! , , .
- .

-
- -
- \ No newline at end of file diff --git a/modules_data/location/penter.php b/modules_data/location/penter.php index 44f958cd..e69de29b 100644 --- a/modules_data/location/penter.php +++ b/modules_data/location/penter.php @@ -1,391 +0,0 @@ -room['file']=='penter') -{ - -$dun = 1; // 2-7 - -$er = ''; - -$dzs = ''; - -$g111 = 1; -$g11 = $u->testAction('`uid` = "'.$u->info['id'].'" AND `vars` = "psh1" AND `time`>'.(time()-7200).' LIMIT 1',1); - -$moder = mysql_fetch_array(mysql_query('SELECT * FROM `moder` WHERE `align` = "'.$u->info['align'].'" LIMIT 1')); - - - -if($u->info['dn']>0) -{ - $zv = mysql_fetch_array(mysql_query('SELECT * FROM `dungeon_zv` WHERE `id`="'.$u->info['dn'].'" AND `delete` = "0" LIMIT 1')); - if(!isset($zv['id'])) - { - mysql_query('UPDATE `stats` SET `dn` = "0" WHERE `id` = "'.$u->info['id'].'" LIMIT 1'); - $u->info['dn'] = 0; - } -} - -if(isset($g11['id'])) -{ - $g111 = 0; - if(isset($_GET['start'])) - { - $re = ' . : '.$u->timeOut(7200-time()+$g11['time']); - } -} -if(isset($_GET['start']) && $zv['uid']==$u->info['id'] && $g111 == 1) -{ - // - // - $ig = 1; - if($ig>0) - { - // - //$u->addAction(time(),'psh1',''); - $ins = mysql_query('INSERT INTO `dungeon_now` (`city`,`uid`,`id2`,`name`,`time_start`) - VALUES ("'.$zv['city'].'","'.$zv['uid'].'","'.$dun.'","","'.time().'")'); - if($ins) - { - $zid = mysql_insert_id(); - // - $su = mysql_query('SELECT `u`.`id`,`st`.`dn` FROM `stats` AS `st` LEFT JOIN `users` AS `u` ON (`st`.`id` = `u`.`id`) WHERE `st`.`dn`="'.$zv['id'].'" LIMIT '.($zv['team_max']+1).''); - $ids = ''; - while($pu = mysql_fetch_array($su)) - { - $ids .= ' `id` = "'.$pu['id'].'" OR'; - $u->addAction(time(),'psh1','',$pu['id']); - } - $ids = rtrim($ids,'OR'); - $upd1 = mysql_query('UPDATE `stats` SET `x`="0",`y`="0",`dn` = "0",`dnow` = "'.$zid.'" WHERE '.$ids.' LIMIT '.($zv['team_max']+1).''); - if($upd1) - { - $upd2 = mysql_query('UPDATE `users` SET `room` = "189" WHERE '.$ids.' LIMIT '.($zv['team_max']+1).''); - // $zid for_dn = $dun - // - $vls = ''; - $sp = mysql_query('SELECT * FROM `dungeon_bots` WHERE `for_dn` = "'.$dun.'"'); - while($pl = mysql_fetch_array($sp)) - { - $vls .= '("'.$zid.'","'.$pl['id_bot'].'","'.$pl['colvo'].'","'.$pl['items'].'","'.$pl['x'].'","'.$pl['y'].'","'.$pl['dialog'].'","'.$pl['items'].'"),'; - } - $vls = rtrim($vls,','); - $ins1 = mysql_query('INSERT INTO `dungeon_bots` (`dn`,`id_bot`,`colvo`,`items`,`x`,`y`,`dialog`,`atack`) VALUES '.$vls.''); - // - $vls = ''; - $sp = mysql_query('SELECT * FROM `dungeon_obj` WHERE `for_dn` = "'.$dun.'"'); - while($pl = mysql_fetch_array($sp)) - { - $vls .= '("'.$zid.'","'.$pl['name'].'","'.$pl['img'].'","'.$pl['x'].'","'.$pl['y'].'","'.$pl['action'].'","'.$pl['type'].'","'.$pl['w'].'","'.$pl['h'].'","'.$pl['s'].'","'.$pl['s2'].'","'.$pl['os1'].'","'.$pl['os2'].'","'.$pl['os3'].'","'.$pl['os4'].'","'.$pl['type2'].'","'.$pl['top'].'","'.$pl['left'].'","'.$pl['date'].'"),'; - } - $vls = rtrim($vls,','); - $ins2 = mysql_query('INSERT INTO `dungeon_obj` (`dn`,`name`,`img`,`x`,`y`,`action`,`type`,`w`,`h`,`s`,`s2`,`os1`,`os2`,`os3`,`os4`,`type2`,`top`,`left`,`date`) VALUES '.$vls.''); - - if($upd2 && $ins1 && $ins2) - { - mysql_query('UPDATE `dungeon_zv` SET `delete` = "'.time().'" WHERE `id` = "'.$zv['id'].'" LIMIT 1'); - die(''); - }else{ - $re = ' ...'; - } - }else{ - $re = ' ...'; - } - }else{ - $re = ' ...'; - } - } -}elseif(isset($_POST['go'],$_POST['goid']) && $g111==1) -{ - if(!isset($zv['id'])) - { - $zv = mysql_fetch_array(mysql_query('SELECT * FROM `dungeon_zv` WHERE `city` = "'.$u->info['city'].'" AND `id`="'.mysql_real_escape_string($_POST['goid']).'" AND `delete` = "0" LIMIT 1')); - if(isset($zv['id'])) - { - if($zv['lvlmin']==$u->info['level'] || $u->info['admin']>0) - { - $row = 0; - if($zv['team_max']>$row || $u->info['admin']>0) - { - $upd = mysql_query('UPDATE `stats` SET `dn` = "'.$zv['id'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1'); - if(!$upd) - { - $re = ' '; - unset($zv); - }else{ - $u->info['dn'] = $zv['id']; - } - }else{ - $re = ' '; - unset($zv); - } - }else{ - $re = ' '; - unset($zv); - } - }else{ - $re = ' '; - } - }else{ - $re = ' '; - } -}elseif(isset($_POST['leave']) && isset($zv['id']) && $g111 == 1) -{ - if($zv['uid']==$u->info['id']) - { - // - $ld = mysql_fetch_array(mysql_query('SELECT `id` FROM `stats` WHERE `dn` = "'.$zv['id'].'" AND `id` != "'.$u->info['id'].'" LIMIT 1')); - if(isset($ld['id'])) - { - $zv['uid'] = $ld['id']; - mysql_query('UPDATE `dungeon_zv` SET `uid` = "'.$zv['uid'].'" WHERE `id` = "'.$zv['id'].'" LIMIT 1'); - mysql_query('UPDATE `stats` SET `dn` = "0" WHERE `id` = "'.$u->info['id'].'" LIMIT 1'); - $u->info['dn'] = 0; - unset($zv); - }else{ - // - mysql_query('UPDATE `dungeon_zv` SET `delete` = "'.time().'" WHERE `id` = "'.$zv['id'].'" LIMIT 1'); - mysql_query('UPDATE `stats` SET `dn` = "0" WHERE `id` = "'.$u->info['id'].'" LIMIT 1'); - $u->info['dn'] = 0; - unset($zv); - } - }else{ - // - mysql_query('UPDATE `stats` SET `dn` = "0" WHERE `id` = "'.$u->info['id'].'" LIMIT 1'); - $u->info['dn'] = 0; - unset($zv); - } -}elseif(isset($_POST['add']) && $u->info['level']>1 && $g111 == 1) -{ - if($u->info['dn']==0) - { - $lmn = $u->info['level']-1; - $lmx = $u->info['level']+1; - $tmx = 0; - - if($lmn<2){ $lmn = 2; } - if($lmn>7){ $lmn = 7; } - if($lmx<2){ $lmx = 2; } - if($lmx>7){ $lmx = 7; } - - if($u->info['level']>=6 && $u->info['admin']==0) - { - $tmx = 0; - }else{ - $tmx = 5; - } - - // - $lmn = $u->info['level']; - - $ins = mysql_query('INSERT INTO `dungeon_zv` - (`city`,`time`,`uid`,`dun`,`pass`,`com`,`lvlmin`,`lvlmax`,`team_max`) VALUES - ("'.$u->info['city'].'","'.time().'","'.$u->info['id'].'","'.$dun.'", - "'.mysql_real_escape_string($_POST['pass']).'", - "'.mysql_real_escape_string($_POST['text']).'", - "'.$lmn.'", - "'.$lmx.'", - "'.$tmx.'")'); - if($ins) - { - $u->info['dn'] = mysql_insert_id(); - $zv['id'] = $u->info['dn']; - $zv['uid'] = $u->info['id']; - mysql_query('UPDATE `stats` SET `dn` = "'.$u->info['dn'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1'); - $re = ' '; - }else{ - $re = ' '; - } - }else{ - $re = ' '; - } -} - -// -$sp = mysql_query('SELECT * FROM `dungeon_zv` WHERE `city` = "'.$u->info['city'].'" AND `lvlmin` = "'.$u->info['level'].'" AND `delete` = "0" AND `time` > "'.(time()-60*60*2).'"'); -while($pl = mysql_fetch_array($sp)) -{ - $dzs .= '
'; - if($u->info['dn']==0) - { - $dzs .= ''; - } - $dzs .= ''.date('H:i',$pl['time']).' '; - - $pus = ''; // - $su = mysql_query('SELECT `u`.`id`,`u`.`login`,`u`.`level`,`u`.`align`,`u`.`clan`,`st`.`dn`,`u`.`city`,`u`.`room` FROM `stats` AS `st` LEFT JOIN `users` AS `u` ON (`st`.`id` = `u`.`id`) WHERE `st`.`dn`="'.$pl['id'].'" LIMIT '.($pl['team_max']+1).''); - while($pu = mysql_fetch_array($su)) - { - $pus .= ''.$pu['login'].' ['.$pu['level'].']'; - $pus .= ', '; - } - $pus = trim($pus,', '); - - $dzs .= $pus; - - if($pl['com']!='') - { - $dl = ''; - if(($moder['boi']==1 || $u->info['admin']>0) && $pl['dcom']==0) - { - $dl .= ' ( )'; - if(isset($_GET['delcom']) && $_GET['delcom']==$pl['id'] && $u->newAct($_GET['key'])==true) - { - mysql_query('UPDATE `dungeon_zv` SET `dcom` = "'.$u->info['id'].'" WHERE `id` = "'.$pl['id'].'" LIMIT 1'); - $pl['dcom'] = $u->info['id']; - } - } - - $pl['com'] = htmlspecialchars($pl['com'],NULL,'cp1251'); - - if($pl['dcom']>0) - { - $dl = ' '; - } - - if($pl['dcom']>0) - { - if($moder['boi']==1 || $u->info['admin']>0) - { - $pl['com'] = ''.$pl['com'].''; - }else{ - $pl['com'] = ''; - } - } - - $dzs .= ' | '.$pl['com'].''.$dl.''; - } - - $dzs .= '
'; -} -?> - - - - - - -
-

room['name']; ?>

-
- - - - - -
  - - - -
- - - - - - -
- - - - -
info['city']=='fallenearth'){ - echo " "; - }else { - echo " "; - } - ?>
-
-'.$re.'
'; -} - -// -if($dzs=='') -{ - $dzs = ''; -}else{ - if(!isset($zv['id'])) - { - if($g111==1) - { - $pr = ''; - } - $dzs = '
'.$pr.'
'.$dzs.''.$pr.'
'; - } - $dzs .= '
'; -} - -echo $dzs; -if($g111 == 1) -{ -if($u->info['dn']==0) -{ -?> - - - - -
-
-
- - - -
- - -
- -  
-
-
-
-info['id']) - { - $psh_start = '  '; - } - - echo '
-
- - '.$psh_start.' - -
-
'; - } -} -?> - -timeOut(7200-time()+$g11['time']).'
" " ;)'; -} -} - -?> diff --git a/modules_data/stats_loc.php b/modules_data/stats_loc.php index 6e6963f9..27653c43 100644 --- a/modules_data/stats_loc.php +++ b/modules_data/stats_loc.php @@ -274,17 +274,11 @@ mysql_query("INSERT INTO `chat` (`new`,`city`,`room`,`login`,`to`,`text`,`time`, info['level'] > 15 || $u->stats['s9']!=0){ ?> : stats['s9']; ?>
info['level'] > 16 || $u->stats['s10']!=0){ ?>: stats['s10']; ?>
stats['s11']; ?>   [info['enNow'],3)?>/stats['enAll']?>]
-*/ if($u->info['ability'] > 0 || ($u->info['skills'] > 0 && $u->info['level'] > 0)) { echo '+
'; } -/*if($u->info['skills'] > 0 && $u->info['level'] > 0) -{ -echo '• 
'; -} */ + ?>  
info['exp'], 0, ",", " "); ?>
@@ -306,31 +300,10 @@ echo '•  echo '
'; } ?> -rep['rep3'] >= 0) { - +rep['rep3'] >= 0) { $repovo=$u->rep['rep3']-$u->rep['rep3_buy']; ?> :  .
info['level'] > 9) - { - $check = mysql_fetch_array(mysql_query('SELECT * FROM `actions` WHERE `uid` = "'.$u->info['id'].'" AND `vars`= "end_trup" AND `time` > "'.(time()-3*60*60).'" ORDER BY `actions`.`time` DESC LIMIT 1;')); - if (!isset($check['id'])) - { - echo ' : .
'; - } - else - { - echo ' : '.date('d.m.Y H:i',($check['time']+10800)).'.
'; - } - } - if ($u->info['palpro'] > time()) - { - echo ' : '.date('d.m.Y H:i',$u->info['palpro']).'.
'; - } - else - { - echo ' :  .
'; - }*/ ?> : info['relik']['relik'];/*$u->info['ang_g'];*/ ?> .
@@ -338,28 +311,31 @@ $repovo=$u->rep['rep3']-$u->rep['rep3_buy']; : dayquest($u->info['id'])?>
-info['level'] > 0 and $u->info['exp'] <= 499999998) { ?> +info['level'] <= 0 || $u->info['exp'] > 499999998) {return;} +?> pensia(false)?>
-info['level'] > 2 ) { - $bns = mysql_fetch_array(mysql_query('SELECT `id`,`time` FROM `aaa_bonus` WHERE `uid` = "'.$u->info['id'].'" AND `time` > '.time().' LIMIT 1')); - if(isset($_GET['takebns']) && $u->newAct($_GET['takebns'])==true && !isset($bns['id'])) { +info['level'] <= 2 ) {return;} + +$bns = mysql_fetch_array(mysql_query('SELECT `id`,`time` FROM `aaa_bonus` WHERE `uid` = "'.$u->info['id'].'" AND `time` > '.time().' LIMIT 1')); + if(isset($_GET['takebns']) && $u->newAct($_GET['takebns']) && !isset($bns['id'])) { $u->takeBonus(); $bns = mysql_fetch_array(mysql_query('SELECT `id`,`time` FROM `aaa_bonus` WHERE `uid` = "'.$u->info['id'].'" AND `time` > '.time().' LIMIT 1')); } - if(isset($bns['id'])) { - + if (isset($bns['id'])) { + echo ''; }else{ - + // ?> - info['nextAct'].'&getb1w=3\';">!'; + \ No newline at end of file diff --git a/modules_data/vip.php b/modules_data/vip.php index 3f15f647..462256d1 100644 --- a/modules_data/vip.php +++ b/modules_data/vip.php @@ -176,6 +176,7 @@ $vi = array( $i = 0; $seet = ''; $vnr = array(0 => ' ',1 => ' '); while($i < count($ability[$account])) { + if($ability[$account][$i][1]>0) { $itm = mysql_fetch_array(mysql_query('SELECT * FROM `items_main` WHERE `id` = "'.$ability[$account][$i][0].'" LIMIT 1')); diff --git a/modules_data/vip1.php b/modules_data/vip1.php index f24ae629..e69de29b 100644 --- a/modules_data/vip1.php +++ b/modules_data/vip1.php @@ -1,108 +0,0 @@ -stats['silver']<1) -{ - die(); -} - -if($u->error!='') -{ - echo ''.$u->error.'
'; -} - -$vt = mysql_fetch_array(mysql_query('SELECT * FROM `eff_users` WHERE `uid` = "'.$u->info['id'].'" AND `delete` = "0" AND `data` LIKE "%add_silver=%" LIMIT 1')); -$vu = array(0,0,0,0,0,0,0); -$vi = array( - // - array(4412,array( 0 , 5 , 5 , 5 , 10 , 10 ),0,0,1,'useOnLogin=1|musor=1|noremont=1|sudba='.$u->info['login'].'|srok=600',1), - array(4413,array( 0 , 5 , 5 , 5 , 10 , 10 ),0,0,1,'useOnLogin=1|musor=1|noremont=1|sudba='.$u->info['login'].'|srok=600',1), - array(4414,array( 0 , 5 , 5 , 5 , 10 , 10 ),0,0,1,'useOnLogin=1|musor=1|noremont=1|sudba='.$u->info['login'].'|srok=600',1), - - // - array(865, array( 0 , 0 , 0 , 0 , 0 , 0 ),0,0,1,'useOnLogin=1|musor=1|noremont=1|sudba='.$u->info['login'].'|srok=43200',1), - array(2391,array( 0 , 0 , 0 , 0 , 10 , 20 ),0,0,1,'useOnLogin=1|musor=1|noremont=1|sudba='.$u->info['login'].'|srok=43200',2), - - // - array(2543,array( 0 , 0 , 0 , 0 , 0 , 0 ),0,0,1,'useOnLogin=1|musor=1|noremont=1|sudba='.$u->info['login'].'|srok=21600|magic_hpNow=45',2), - array(2544,array( 0 , 0 , 0 , 0 , 0 , 0 ),0,0,1,'useOnLogin=1|musor=1|noremont=1|sudba='.$u->info['login'].'|srok=21600|magic_hpNow=60',2), - array(2545,array( 0 , 0 , 0 , 0 , 0 , 0 ),0,0,1,'useOnLogin=1|musor=1|noremont=1|sudba='.$u->info['login'].'|srok=21600|magic_hpNow=600',2), - - // - array(994, array( 0 , 0 , 0 , 0 , 5 , 10 ),0,0,1,'musor=1|noremont=1|onlyOne=1|oneType=6|sudba='.$u->info['login'].'|srok=600',1), - array(1001,array( 0 , 0 , 0 , 0 , 5 , 10 ),0,0,1,'musor=1|noremont=1|onlyOne=1|oneType=7|sudba='.$u->info['login'].'|srok=600',1), - array(1460,array( 0 , 0 , 0 , 0 , 5 , 10 ),0,0,1,'musor=1|noremont=1|onlyOne=1|oneType=25|sudba='.$u->info['login'].'|srok=600',1), - array(3102,array( 0 , 0 , 0 , 0 , 5 , 10 ),0,0,1,'musor=1|noremont=1|onlyOne=1|oneType=33|sudba='.$u->info['login'].'|srok=600',1), - array(4371,array( 5 , 5 , 5 , 5 , 5 , 5 ),0,0,1,'musor=1|noremont=1|onlyOne=1|oneType=36|sudba='.$u->info['login'].'|srok=600',1), - - // - array(2144,array( 0 , 0 , 0 , 0 , 0 , 3 ),0,0,1,'nohaos=1|onlyOne=1|oneType=12|musor=2|noremont=1|srok=600',1), - array(2143,array( 0 , 0 , 0 , 0 , 0 , 3 ),0,0,1,'nohaos=1|onlyOne=1|oneType=7|musor=2|noremont=1|srok=600',1), - //array(3101,array( 0 , 0 , 0 , 0 , 0 , 0 ),0,0,1,'onlyOne=1|oneType=33|noremont=1|musor=1|srok=600',1), - - //. - array(1461,array( 0 , 0 , 0 , 0 , 0 , 0 ),0,0,1,'musor=1|noremont=1|onlyOne=1|oneType=24|sudba='.$u->info['login'].'|srok=600',1), - array(1462,array( 0 , 0 , 0 , 0 , 0 , 0 ),0,0,1,'musor=1|noremont=1|onlyOne=1|oneType=24|sudba='.$u->info['login'].'|srok=600',1), - array(1463,array( 0 , 0 , 0 , 0 , 0 , 0 ),0,0,1,'musor=1|noremont=1|onlyOne=1|oneType=24|sudba='.$u->info['login'].'|srok=600',1) - - //array(2143,1,2,10,1,'musor=1|noremont=1|onlyOne=1|oneType=3|sudba='.$u->info['login'].'|srok=600',1), - //array(2144,1,2,10,1,'musor=1|noremont=1|onlyOne=1|oneType=3|sudba='.$u->info['login'].'|srok=600',1)*/ -); -?> - - - - - - - - -

, info['login']?>!

stats['silver']?> .

:

-

:
- ( )

-

- ' ',1 => ' '); - while($i < count($vi)) { - if($vi[$i][1][$u->stats['silver']]>0) { - $itm = mysql_fetch_array(mysql_query('SELECT * FROM `items_main` WHERE `id` = "'.$vi[$i][0].'" LIMIT 1')); - if(isset($itm['id'])) { - $vix = 0; - if($vi[$i][4] == 0) { - // - $vix = $u->testAction('`uid` = "'.$u->info['id'].'" AND `time`>='.strtotime('now 00:00:00').' AND `vars` = "vitm_'.$itm['id'].'" LIMIT '.$vi[$i][1][$u->stats['silver']],2); - $vix = $vix[0]; - }else{ - // - $vix = $u->testAction('`uid` = "'.$u->info['id'].'" AND `time`>='.$vt['timeUse'].' AND `vars` = "vitm_'.$itm['id'].'" LIMIT '.$vi[$i][1][$u->stats['silver']],2); - $vix = $vix[0]; - } - - if($vi[$i][1][$u->stats['silver']]-$vix > 0) { - if(isset($_GET['take_item_vip']) && $_GET['take_item_vip'] == $itm['id']) { - $vix++; - $nitm = $u->addItem($itm['id'],$u->info['id'],$vi[$i][5]); - if($vi[$i][6]>0) { - mysql_query('UPDATE `items_users` SET `data`="'.$vi[$i][5].'",`iznosMAX` = "'.$vi[$i][6].'",`1price` = "0.01" WHERE `id` = "'.$nitm.'" AND `uid` = "'.$u->info['id'].'" LIMIT 1'); - } - $u->addAction(time(),'vitm_'.$itm['id'],''); - echo ' "'.$itm['name'].'" ( '.$vnr[$vi[$i][4]].': '.($vi[$i][1][$u->stats['silver']]-$vix).' .).

'; - } - } - - $seet0 = ''; - $seet0 .= ' '; - if($vi[$i][1][$u->stats['silver']]-$vix > 0) { - $seet0 = ''.$seet0.''; - }else{ - $seet0 = ''.$seet0.''; - } - $seet .= $seet0; - } - } - $i++; - } - echo $seet; - ?> -

- ! 10 .
diff --git a/modules_data/worklist.php b/modules_data/worklist.php deleted file mode 100644 index 6fc67cf6..00000000 --- a/modules_data/worklist.php +++ /dev/null @@ -1,82 +0,0 @@ -info['admin'] == 0 ) { - die(' , ?'); -} - -if(isset($_POST['wtext'])) { - $txt = $_POST['wtext']; - $typ = (int)$_POST['select']; - if( $typ < 0 ) { $typ = 0; } - if( $typ > 5 ) { $typ = 5; } - mysql_query('INSERT INTO `worklist` ( - `time`,`uid`,`text`,`complete`,`delete`,`prior` - ) VALUES ( - "'.time().'","'.$u->info['id'].'","'.mysql_real_escape_string($txt).'","0","0","'.mysql_real_escape_string($typ).'" - )'); - header('location: /main.php?worklist&addgood'); - die(); -}elseif(isset($_GET['addgood'])) { - echo '
. !
'; -} - -?> - - - - - - - - - - - - - - - - - info['id'].'" WHERE `id` = "'.$pl['id'].'" LIMIT 1'); - }else{ - $pl['text'] = str_replace("\n",'
',$pl['text']); - $plp = array( - ' ',' ','',' ',' ','!!!','' - ); - echo ' - - - - - - '; - } - } - ?> -

-   

! :)

  - - -
-



:
   
-    : - - -
#'.$pl['id'].'   |   '.date('d.m.Y H:i',$pl['time']).'
: '.$plp[$pl['prior']].'
'.$pl['text'].'  -
-



\ No newline at end of file diff --git a/repass.php b/repass.php index 96046158..4e34efe2 100644 --- a/repass.php +++ b/repass.php @@ -1,5 +1,12 @@ ' . (time() - 24 * 60 * 60) . ' AND `type` = "1" LIMIT 1')); + $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'] == '')) { + } elseif (str_replace('0', '', $_POST['redate']) == str_replace( + '0', '', $usr['bithday'] + ) && ($_POST['reanswer'] == $usr['q1'] || $usr['q1'] == '')) { $error = '


"' . $usr['login'] . '" E-mail !


'; - $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']) { + $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'] < Config::get('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); + $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 = ' .
'; @@ -44,10 +69,20 @@ if (isset($_POST['relogin'])) { $txt .= ' ,
'; $txt .= ' '; - $mail = mails($usr['mail'], $txt, $title); + //$mail = mails($usr['mail'], $txt, $title); + $mail = Core\Mail::send($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() . '")'); + 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; diff --git a/seasons.php b/seasons.php deleted file mode 100644 index e9d24802..00000000 --- a/seasons.php +++ /dev/null @@ -1,303 +0,0 @@ -\n"; - var_dump($vars); - echo "\n"; - if ($d) { - exit(); - } -} - -define('IP', GetRealIp()); - -die('off'); - -include('_incl_data/__config.php'); -const GAME = true; -include('_incl_data/class/__db_connect.php'); -$u = User::start(); -$filter = new Filter(); - -if (isset($_GET['upi'])) { - $k = explode(',', $_GET['upi']); - $i = 0; - while ($i < count($k)) { - // - $i1 = mysql_fetch_array( - mysql_query( - 'SELECT * FROM `items_main` WHERE `id` = "' . mysql_real_escape_string($k[$i - 1]) . '" LIMIT 1' - ) - ); - $i2 = mysql_fetch_array( - mysql_query('SELECT * FROM `items_main` WHERE `id` = "' . mysql_real_escape_string($k[$i]) . '" LIMIT 1') - ); - $i3 = mysql_fetch_array( - mysql_query( - 'SELECT * FROM `items_main` WHERE `id` = "' . mysql_real_escape_string($k[$i + 1]) . '" LIMIT 1' - ) - ); - if (isset($i2['id'])) { - // - if (isset($i3['id'])) { - // i2 -> i3 - $test = mysql_fetch_array( - mysql_query( - 'SELECT * FROM `items_upgrade` WHERE `iid` = "' . $i2['id'] . '" AND `iup` = "' . $i3['id'] . '" LIMIT 1' - ) - ); - if (!isset($test['id'])) { - mysql_query( - 'INSERT INTO `items_upgrade` (`iid`,`iup`,`price1`,`price2`) VALUES ( - "' . $i2['id'] . '","' . $i3['id'] . '","0","' . ($i3['price2'] - $i2['price2']) . '" - )' - ); - echo '[' . $i2['id'] . ']->[' . $i3['id'] . '] ' . ($i3['price2'] - $i2['price2']) . '.
'; - } - } - if (isset($i1['id']) || !isset($i3['id'])) { - // i2 - echo '[ ' . $i2['id'] . ' ]
'; - mysql_query('UPDATE `items_shop` SET `kolvo` = 0 WHERE `item_id` = "' . $i2['id'] . '"'); - } - } - // - $i++; - } -} else { - die(); -} - -$tjs = ''; - -if ($u->info['bithday'] == '01.01.1800' && $u->info['inTurnirnew'] == 0) { - header('location: main.php'); - die(); -} - -if ($u->info['id'] == 1000001) { - $u->info['admin'] = 0; -} - -#-------- , -if ($u->info['online'] < time() - 60) { - $filter->setOnline($u->info['online'], $u->info['id']); - $u->onlineBonus(); - mysql_query( - "UPDATE `users` SET `online`='" . time() . "',`timeMain`='" . time( - ) . "' WHERE `id`='" . $u->info['id'] . "' LIMIT 1" - ); -} elseif ($u->info['timeMain'] < time() - 60) { - mysql_query( - "UPDATE `users` SET `online`='" . time() . "',`timeMain`='" . time( - ) . "' WHERE `id`='" . $u->info['id'] . "' LIMIT 1" - ); -} - -if (!isset($u->info['id']) || ($u->info['joinIP'] == 1 && $u->info['ip'] != $_SERVER['HTTP_X_REAL_IP']) || $u->info['banned'] > 0) { - die($c['exit']); -} - -/* */ -$rz = 1; -if (isset($_GET['rz'])) { - if ($_GET['rz'] == 2) { - $rz = 2; - } -} -/* */ -Season::$date['Y'] = date('Y'); -Season::$date['m'] = date('m'); -Season::$date['d'] = date('d'); -Season::$yy = Season::$yy[Season::$date['m']]; - - -?> - - - - - - - - - - - - - -

,

- - - - -
- - Season::$date['d']) { - // - $html .= '
' . - '

' . $pl['dd'] . '.' . Season::$date['m'] . '.' . Season::$date['Y'] . '
' . - '
'; - } else { - // - $html .= '
' . - '
!
' . - '
'; - } - } - if ($html == '') { - $html = ' '; - } - echo '
' . $html . '
'; - } elseif ($rz == 2) { - // - $html = ''; - Season::data($_GET['mis']); - if (!isset(Season::$m['id'])) { - $html = ' '; - } else { - if (Season::$m['dd'] > Season::$date['d']) { - // - $html .= '
' . - '

' . Season::$m['dd'] . '.' . Season::$date['m'] . '.' . Season::$date['Y'] . '
' . - '
'; - } else { - // - $html .= '
' . - '
  :
0 / ??
' . - '
'; - // - $sp = mysql_query('SELECT * FROM `sss_q` WHERE `m` = "' . Season::$m['id'] . '"'); - $ends = []; - $i = 0; - $lstms = mysql_fetch_array( - mysql_query( - 'SELECT * FROM `sss_f` WHERE `uid` = "' . $u->info['id'] . '" ORDER BY `id` DESC LIMIT 1' - ) - ); - while ($pl = mysql_fetch_array($sp)) { - - $qe = 0; - $tss = strtotime('01-' . Season::$m['s'] . '-' . Season::$date['Y'] . ''); - if (isset($lstms['id'])) { - $tss = strtotime( - '' . date('d', $lstms['time']) . '-' . date('m', $lstms['time']) . '-' . date( - 'Y', $lstms['time'] - ) . '' - ); - } - // - if ($pl['type'] == 1) { - // - $c1 = mysql_fetch_array( - mysql_query( - 'SELECT COUNT(*) FROM `items_users` WHERE `time_create` > "' . $tss . '" AND `uid` = "' . $u->info['id'] . '" AND `delete` < 1001 AND `item_id` = "' . $pl['value'] . '" LIMIT 1' - ) - ); - $qe = $c1[0]; - } elseif ($pl['type'] == 2 || $pl['type'] == 3) { - $c1 = mysql_fetch_array( - mysql_query( - 'SELECT COUNT(*) FROM `actions` WHERE `time` > "' . $tss . '" AND `uid` = "' . $u->info['id'] . '" AND `vars` LIKE "%win_bot_' . $pl['value'] . '" LIMIT 1' - ) - ); - $qe = $c1[0]; - } - // - if ($qe > $pl['var']) { - $qe = $pl['var']; - } - $f = 0; - // - $nogo = false; - if (!isset($ends[$i - 1]) && $i != 0) { - $nogo = true; - } - // - $plf = mysql_fetch_array( - mysql_query( - 'SELECT * FROM `sss_f` WHERE `uid` = "' . $u->info['id'] . '" AND `m` = "' . $pl['id'] . '" AND `y` = "' . Season::$date['Y'] . '" LIMIT 1' - ) - ); - if (isset($plf['id'])) { - $f = 1; - } - // - $html .= '
'; - $html .= '
'; - - $html .= '
' . $pl['info'] . '
'; - - if ($nogo == true) { - // - } elseif ($f == 1) { - // - } elseif ($nogo == false && $f == 0 && isset($_GET['endq']) && $_GET['endq'] == $pl['id'] && $qe == $pl['var']) { - $f = 1; - mysql_query( - 'INSERT INTO `sss_f` (`m`,`y`,`uid`,`time`) VALUES ( - "' . $pl['id'] . '", - "' . Season::$date['Y'] . '", - "' . $u->info['id'] . '", - "' . time() . '" - )' - ); - } else { - $html .= '
'; - if ($qe == $pl['var']) { - $html .= ' '; - } - $html .= '   ' . $qe . ' / ' . $pl['var'] . ''; - } - - if ($f == 1) { - $ends[$i] = true; - $html .= ' .'; - } elseif ($nogo == true) { - $html .= ' .'; - } - - $html .= '
'; - $html .= '
'; - // - $html .= ''; - $i++; - } - } - } - echo '
' . $html . '
'; - } - ?> - -
- -