dev-php74 #30
@ -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']);
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -1,63 +0,0 @@
|
||||
<?php
|
||||
/** Ïîëó÷àåì íà âõîä ñòðîêó, à íà âûõîä ðåçóëüòàò ìàòåìàòè÷åñêîé îïåðàöèè â ñòðîêå. */
|
||||
class CalculateFromString
|
||||
{
|
||||
const PATTERN = '/(?:\-?\d+(?:\.?\d+)?[\+\-\*\/])+\-?\d+(?:\.?\d+)?/';
|
||||
const PARENTHESIS_DEPTH = 10;
|
||||
|
||||
public function calculate($input){
|
||||
if(strpos($input, '+') != null || strpos($input, '-') != null || strpos($input, '/') != null || strpos($input, '*') != null){
|
||||
// Remove white spaces and invalid math chars
|
||||
$input = str_replace(',', '.', $input);
|
||||
$input = str_replace(' ', '', $input);
|
||||
$input = preg_replace('[^0-9\.\+\-\*\/\(\)]', '', $input);
|
||||
|
||||
// Calculate each of the parenthesis from the top
|
||||
$i = 0;
|
||||
while(strpos($input, '(') || strpos($input, ')')){
|
||||
$input = preg_replace_callback('/\(([^\(\)]+)\)/', 'self::callback', $input);
|
||||
|
||||
$i++;
|
||||
if($i > 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;
|
||||
|
File diff suppressed because one or more lines are too long
@ -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);
|
||||
|
@ -3,8 +3,8 @@
|
||||
/**
|
||||
* Åäèíàÿ ôóíêöèÿ äëÿ çàëèâêè ôàéëîâ íà ñåðâåð.
|
||||
*
|
||||
* @version 1
|
||||
* @author Ivor Barhansky <me@lopar.space>
|
||||
* @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 .= " <span style='color:red;'>[{$width}x$height]</span>";
|
||||
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;
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ if(!defined('GAME'))
|
||||
die();
|
||||
}
|
||||
|
||||
class Magic2
|
||||
class Magic
|
||||
{
|
||||
|
||||
public $youuse = 0;
|
||||
|
@ -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'];
|
||||
|
@ -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'];
|
||||
|
@ -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'];
|
||||
|
@ -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'];
|
||||
|
@ -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'];
|
||||
|
@ -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'];
|
||||
|
@ -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'];
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
/**@var $this Priems*/
|
||||
/**@var $this priems*/
|
||||
if(!defined('GAME')) {
|
||||
die();
|
||||
}
|
||||
|
@ -108,4 +108,5 @@ if (
|
||||
$this->mintr($pl);
|
||||
}
|
||||
unset($pvr);
|
||||
?>
|
||||
?>
|
@ -2,8 +2,8 @@
|
||||
|
||||
/**
|
||||
* Ïðèåì: Öåëü {ñòèõèÿ}
|
||||
* @var $this Priems
|
||||
* @var $btl Battle
|
||||
* @var $this priems
|
||||
* @var $btl battleClass
|
||||
* @var $id
|
||||
* @var $pl
|
||||
*/
|
||||
|
@ -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'];
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?
|
||||
|
||||
if (!defined('GAME')) {
|
||||
die();
|
||||
@ -16,7 +16,7 @@ if ($pvr['x5']['x'] > 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'],
|
||||
'<font color^^^^#' . $prv['color2'] . '>Ñòàòèêà</font>',
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* Прием: Заряд: Поражение
|
||||
* @var Battle $btl
|
||||
* @var battleClass $btl
|
||||
* @var $id
|
||||
* @var $pl
|
||||
*/
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
/**
|
||||
* Ïðèåì: Öåëü {ñòèõèÿ}
|
||||
* @var $this Priems
|
||||
* @var $btl Battle
|
||||
* @var $this priems
|
||||
* @var $btl battleClass
|
||||
* @var $id
|
||||
* @var $pl
|
||||
*/
|
||||
|
@ -101,9 +101,11 @@ if( isset($pr_momental_this)) {
|
||||
//
|
||||
|
||||
//
|
||||
//$priem->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.',
|
||||
"<font color^^^^#'.$prv['color2'].'>Öåëü Âîäû</font>",
|
||||
|
@ -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);
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
/**
|
||||
* Ïðèåì: Öåëü {ñòèõèÿ}
|
||||
* @var $this Priems
|
||||
* @var $btl Battle
|
||||
* @var $this priems
|
||||
* @var $btl battleClass
|
||||
* @var $id
|
||||
* @var $pl
|
||||
*/
|
||||
|
@ -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'];
|
||||
|
@ -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'];
|
||||
|
@ -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'];
|
||||
|
@ -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'];
|
||||
|
@ -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'];
|
||||
|
@ -1,14 +1,17 @@
|
||||
<?php
|
||||
|
||||
/** Ïðèåì: Ïîæèðàþùåå Ïëàìÿ [6]
|
||||
* @var $this Priems
|
||||
* @var $btl Battle
|
||||
/**
|
||||
* @var $this priems
|
||||
* @var $btl battleClass
|
||||
* @var $id int
|
||||
* @var $pl array
|
||||
*/
|
||||
if (!$id) {
|
||||
exit();
|
||||
}
|
||||
/*
|
||||
Ïðèåì: Ïîæèðàþùåå Ïëàìÿ [6]
|
||||
*/
|
||||
|
||||
if (isset($pr_used_this) && isset($pr_moment)) {
|
||||
//Êàæäûé õîä
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
/**
|
||||
* Ïðèåì: Âñïûøêà [8]
|
||||
* @var $this Priems
|
||||
* @var $btl Battle
|
||||
* @var $this priems
|
||||
* @var $btl battleClass
|
||||
* @var $id
|
||||
*/
|
||||
|
||||
|
@ -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'];
|
||||
|
@ -1,8 +1,8 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @var $this Priems
|
||||
* @var $btl Battle
|
||||
* @var $this priems
|
||||
* @var $btl battleClass
|
||||
* @var $id int
|
||||
* @var $pl array
|
||||
*/
|
||||
|
@ -1,8 +1,8 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @var $this Priems
|
||||
* @var $btl Battle
|
||||
* @var $this priems
|
||||
* @var $btl battleClass
|
||||
* @var $id int
|
||||
* @var $pl array
|
||||
*/
|
||||
|
@ -1,8 +1,8 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @var $this Priems
|
||||
* @var $btl Battle
|
||||
* @var $this priems
|
||||
* @var $btl battleClass
|
||||
* @var $id int
|
||||
* @var $pl array
|
||||
*/
|
||||
|
@ -1,8 +1,8 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @var $this Priems
|
||||
* @var $btl Battle
|
||||
* @var $this priems
|
||||
* @var $btl battleClass
|
||||
* @var $id int
|
||||
* @var $pl array
|
||||
*/
|
||||
|
@ -1,8 +1,8 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @var $this Priems
|
||||
* @var $btl Battle
|
||||
* @var $this priems
|
||||
* @var $btl battleClass
|
||||
* @var $id int
|
||||
* @var $pl array
|
||||
*/
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
/**
|
||||
* Ïðèåì: Âñïûøêà [9]
|
||||
* @var $this Priems
|
||||
* @var $btl Battle
|
||||
* @var $this priems
|
||||
* @var $btl battleClass
|
||||
* @var $id
|
||||
*/
|
||||
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
/**
|
||||
* Ïðèåì: Âñïûøêà [10]
|
||||
* @var $this Priems
|
||||
* @var $btl Battle
|
||||
* @var $this priems
|
||||
* @var $btl battleClass
|
||||
* @var $id
|
||||
*/
|
||||
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
/**
|
||||
* Ïðèåì: Âñïûøêà [11]
|
||||
* @var $this Priems
|
||||
* @var $btl Battle
|
||||
* @var $this priems
|
||||
* @var $btl battleClass
|
||||
* @var $id
|
||||
*/
|
||||
|
||||
|
@ -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'];
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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'];
|
||||
|
@ -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'];
|
||||
|
@ -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'];
|
||||
|
@ -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'];
|
||||
|
@ -1,8 +1,52 @@
|
||||
<?php
|
||||
<?
|
||||
if( !defined('GAME') ) { die(); }
|
||||
/*
|
||||
Наложенное заклятие: Проклятье Древних
|
||||
Зачарованный пояс имеет шанс временно понизить характиристики атаковавшего противника. Если противник бьет в пояс, 5% вероятности срабатывания проклятия.
|
||||
Отнимает у противника 5 выносливости, 5 ловкости, 5 интуиции, 5 силы, 5 интеллекта на 5 разменов.
|
||||
Шанс срабатывания: 5%
|
||||
*/
|
||||
*/
|
||||
|
||||
if($e['bm_a1']=='curse_01'){
|
||||
if(rand(0,10000)<500){
|
||||
//íàíîñèì óðîí ìàãè÷åñêèì êîëüöîì
|
||||
//$hpmin = rand(5,10);
|
||||
//$hpmin = $priem->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} ïîëó÷èë ïîâðåæäåíèå îò ìàãè÷åñêîãî ïðåäìåòà "<b>'.$itm['name'].'</b>". <b title=Òèï óðîíà: õîëîä ><font color=#0000FF>'.$hpmin.'</font></b> ['.ceil($hp2).'/'.$this->stats[$this->uids[$uid2]]['hpAll'].']';
|
||||
//$this->add_log($mas1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
@ -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];
|
||||
|
@ -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];
|
||||
|
@ -11,7 +11,7 @@
|
||||
$txt .= '<br><b><font color=red>Âû óæå ïîëó÷èëè </b></font>';
|
||||
|
||||
*/
|
||||
$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']))
|
||||
{
|
||||
|
@ -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();
|
||||
?>
|
||||
|
||||
|
20
html/buy.php
20
html/buy.php
@ -1,20 +0,0 @@
|
||||
<?
|
||||
$bp = 75;
|
||||
if( isset($_GET['bp']) ) {
|
||||
$bp = round((int)$_GET['bp']);
|
||||
}
|
||||
|
||||
$pgd = mysql_fetch_array(mysql_query('SELECT * FROM `library_content` WHERE `id` = "'.mysql_real_escape_string($bp).'" LIMIT 1'));
|
||||
if( isset($pgd['id']) ) {
|
||||
echo '<div style="padding:10px;">';
|
||||
if( $bp != 75 ) {
|
||||
echo '<h3><a href="https://new-combats.com/buy/">Óñëóãè</a> » '.$pgd['title'].'</h3><br>';
|
||||
}else{
|
||||
echo '<h3>'.$pgd['title'].'</h3><br>';
|
||||
}
|
||||
echo $pgd['text'];
|
||||
echo '</div>';
|
||||
}else{
|
||||
echo 'Ñòðàíèöà íå íàäåíà!';
|
||||
}
|
||||
?>
|
461
html/index.html
461
html/index.html
@ -1,461 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="https://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
|
||||
<title>Áîéöîâñêèé Êëóá</title>
|
||||
</head>
|
||||
<link href="https://img.new-combats.com/css/main.css" rel="stylesheet" type="text/css">
|
||||
<script type="text/javascript" src="https://new-combats.com/js/jquery.js"></script>
|
||||
<style>
|
||||
html, body {
|
||||
width:100%;
|
||||
height:100%;
|
||||
padding:0;
|
||||
margin:0;
|
||||
}
|
||||
|
||||
.log_input:hover, .log_input:focus, .log_input:active, .log_input:-webkit-autofill {
|
||||
border: 0px !important;outline:none!important;
|
||||
background: none!important;
|
||||
background-color: transparent!important;
|
||||
}
|
||||
|
||||
.mainbackground {
|
||||
background-image:url("index_img/bg2_center.jpg");
|
||||
background-position:center;
|
||||
width:100%;
|
||||
min-height:100%;
|
||||
text-align:center;
|
||||
position:relative;
|
||||
}
|
||||
|
||||
.mainback {
|
||||
background-image:url("index_img/bg2_top.jpg");
|
||||
background-repeat:no-repeat;
|
||||
background-position:center top;
|
||||
width:100%;
|
||||
min-height:100%;
|
||||
text-align:center;
|
||||
position:relative;
|
||||
}
|
||||
|
||||
.mainback-top-logo {
|
||||
background-image:url("index_img/bg2_top1.jpg");
|
||||
background-repeat:no-repeat;
|
||||
width:1056px;
|
||||
min-height:660px;
|
||||
display:inline-block;
|
||||
}
|
||||
|
||||
.mainback-top-back {
|
||||
background-image:url("index_img/bg2_center2.jpg");
|
||||
width:1056px;
|
||||
min-height:100%;
|
||||
display:inline-block;
|
||||
margin-left:1px;
|
||||
}
|
||||
|
||||
.main-class {
|
||||
width:928px;
|
||||
height:100%;
|
||||
margin-left:65px;
|
||||
}
|
||||
|
||||
.main-class-glob {
|
||||
width:940px;
|
||||
margin-top:490px;
|
||||
}
|
||||
|
||||
.menu-left {
|
||||
float:left;
|
||||
width:285px;
|
||||
}
|
||||
|
||||
.menu-right {
|
||||
float:right;
|
||||
width:654px;
|
||||
padding-right:1px;
|
||||
padding-bottom:10px;
|
||||
}
|
||||
|
||||
.flag-one {
|
||||
background-image:url("index_img/f2.png");
|
||||
width:283px;
|
||||
}
|
||||
|
||||
.flag-two {
|
||||
background-image:url("index_img/f1.png");
|
||||
background-repeat:no-repeat;
|
||||
background-position:top;
|
||||
width:283px;
|
||||
min-height:189px;
|
||||
}
|
||||
|
||||
.flag-three {
|
||||
background-image:url("index_img/f3.png");
|
||||
background-repeat:no-repeat;
|
||||
background-position:bottom;
|
||||
width:283px;
|
||||
min-height:372px;
|
||||
padding-bottom:50px;
|
||||
}
|
||||
|
||||
.flag-zero {
|
||||
width:283px;
|
||||
min-height:183px;
|
||||
color:#FFF;
|
||||
}
|
||||
|
||||
.flag-home {
|
||||
padding:10px;
|
||||
}
|
||||
|
||||
.flag-home hr {
|
||||
border-bottom:#500 solid 1px;
|
||||
border-top:#400 solid 1px;
|
||||
margin-left:10px;
|
||||
margin-right:15px;
|
||||
}
|
||||
|
||||
.perg-one {
|
||||
background-image:url("index_img/p2.png");
|
||||
width:654px;
|
||||
}
|
||||
|
||||
.perg-two {
|
||||
background-image:url("index_img/p1.png");
|
||||
background-repeat:no-repeat;
|
||||
background-position:top;
|
||||
width:654px;
|
||||
min-height:189px;
|
||||
}
|
||||
|
||||
.perg-three {
|
||||
background-image:url("index_img/p3.png");
|
||||
background-repeat:no-repeat;
|
||||
background-position:bottom;
|
||||
width:654px;
|
||||
min-height:372px;
|
||||
padding-bottom:5px;
|
||||
}
|
||||
|
||||
.perg-zero {
|
||||
width:654px;
|
||||
min-height:183px;
|
||||
}
|
||||
|
||||
.perg-home {
|
||||
padding:10px;
|
||||
}
|
||||
|
||||
.news-one {
|
||||
background-image:url("index_img/n2.png");
|
||||
width:618px;
|
||||
}
|
||||
|
||||
.news-two {
|
||||
background-image:url("index_img/n1.png");
|
||||
background-repeat:no-repeat;
|
||||
background-position:top;
|
||||
width:618px;
|
||||
min-height:10px;
|
||||
}
|
||||
|
||||
.news-three {
|
||||
background-image:url("index_img/n3.png");
|
||||
background-repeat:no-repeat;
|
||||
background-position:bottom;
|
||||
width:618px;
|
||||
min-height:72px;
|
||||
padding-bottom:5px;
|
||||
}
|
||||
|
||||
.news-zero {
|
||||
width:618px;
|
||||
min-height:10px;
|
||||
margin-left:6px;
|
||||
margin-bottom:2px;
|
||||
}
|
||||
|
||||
.news-home {
|
||||
padding:10px 14px 10px 10px;
|
||||
}
|
||||
|
||||
.news-home-title {
|
||||
display: block;
|
||||
padding: 8px;
|
||||
color: #900;
|
||||
font-size: 12px;
|
||||
font-style: italic;
|
||||
font-weight: bolder;
|
||||
border-left:10px #990000 solid;
|
||||
margin-left:4px;
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
.news-home-text {
|
||||
display: block;
|
||||
padding: 20px;
|
||||
color:#452d0e;
|
||||
}
|
||||
|
||||
.top-btn {
|
||||
background-image:url("index_img/bk2_top1_btn.jpg");
|
||||
width:639px;
|
||||
height:81px;
|
||||
padding-top:1px;
|
||||
}
|
||||
|
||||
.top-btn a {
|
||||
text-decoration: none;
|
||||
display:inline-block;
|
||||
height:65px;
|
||||
width:104px;
|
||||
background-image:url("index_img/btn_css2.jpg");
|
||||
float:left;
|
||||
}
|
||||
|
||||
.top-btn a:hover {
|
||||
background-position-y: -65px;
|
||||
}
|
||||
|
||||
.top-btn a:active {
|
||||
background-position-y: -129px;
|
||||
}
|
||||
|
||||
.top-btn1 {
|
||||
background-position:0px 0px;
|
||||
margin-left:10px;
|
||||
}
|
||||
.top-btn2 {
|
||||
background-position:-104px 0px;
|
||||
}
|
||||
.top-btn3 {
|
||||
background-position:-208px 0px;
|
||||
}
|
||||
.top-btn4 {
|
||||
background-position:-312px 0px;
|
||||
}
|
||||
.top-btn5 {
|
||||
background-position:-416px 0px;
|
||||
}
|
||||
.top-btn6 {
|
||||
background-position:-520px 0px;
|
||||
}
|
||||
|
||||
.enter-post {
|
||||
width:222px;
|
||||
height:92px;
|
||||
background-image:url("index_img/en.png");
|
||||
background-repeat:no-repeat;
|
||||
margin-left:20px;
|
||||
}
|
||||
|
||||
.enter-btn {
|
||||
width:186px;
|
||||
height:74px;
|
||||
display:inline-block;
|
||||
background-image:url("index_img/bn1.png");
|
||||
background-repeat:no-repeat;
|
||||
margin-left:35px;
|
||||
}
|
||||
|
||||
.enter-btn:hover {
|
||||
background-position:0 -71px;
|
||||
}
|
||||
|
||||
.enter-btn:active {
|
||||
background-position:0 -69px;
|
||||
}
|
||||
|
||||
.enter-post-f1 {
|
||||
padding:14px 14px 14px 37px;
|
||||
}
|
||||
|
||||
.enter-post-f1 input {
|
||||
width: 144px;
|
||||
height: 20px;
|
||||
margin: 8px;
|
||||
border: 0;
|
||||
background-color: transparent;
|
||||
padding-left: 5px;
|
||||
padding-bottom: 2px;
|
||||
font-size: 12px;
|
||||
font-weight: bolder;
|
||||
color:#630;
|
||||
}
|
||||
|
||||
.register-btn {
|
||||
width:222px;
|
||||
height:104px;
|
||||
display:inline-block;
|
||||
background-image:url("index_img/reg.png");
|
||||
background-repeat:no-repeat;
|
||||
margin-left:24px;
|
||||
}
|
||||
|
||||
.register-btn:hover {
|
||||
background-position:0 -105px;
|
||||
}
|
||||
|
||||
.register-btn:active {
|
||||
background-position:0 -104px;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
|
||||
<div align="center" class="mainbackground">
|
||||
<div align="center" class="mainback">
|
||||
<div class="mainback-top-back">
|
||||
<div class="mainback-top-logo">
|
||||
<div class="main-class">
|
||||
<div align="left" class="main-class-glob">
|
||||
<div class="menu-left">
|
||||
<!-- -->
|
||||
<div class="flag-zero">
|
||||
<div class="flag-one">
|
||||
<div class="flag-two">
|
||||
<div class="flag-three">
|
||||
<div class="flag-home">
|
||||
<!-- -->
|
||||
<br />
|
||||
<a href="#" class="register-btn"> </a>
|
||||
<hr />
|
||||
<!-- -->
|
||||
<form method="post" name="F1" id="F1" action="https://new-combats.com/enter.php">
|
||||
<p>
|
||||
<div class="enter-post">
|
||||
<div class="enter-post-f1">
|
||||
<input autocomplete="off" class="log_input" type="text" name="login" onfocus="if ( 'Ëîãèí' == value ) { value = ''; } " onblur="if ( '' == value ) { value = 'Ëîãèí'; } " value="Ëîãèí" /><br />
|
||||
<input autocomplete="off" class="log_input" type="password" name="pass" onfocus="if ( 'Ïàðîëü' == value ) { value = ''; } " onblur="if ( '' == value ) { value = 'Ïàðîëü'; } " value="Ïàðîëü" />
|
||||
</div>
|
||||
</div>
|
||||
<a href="javascript:void(0)" onclick="$('#F1').submit();" class="enter-btn"> </a>
|
||||
</p>
|
||||
</form>
|
||||
<!-- -->
|
||||
<br />
|
||||
<br />
|
||||
<br />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- -->
|
||||
</div>
|
||||
<!-- -->
|
||||
|
||||
<div class="menu-right">
|
||||
<!-- -->
|
||||
<div class="top-btn">
|
||||
<a href="#" class="top-btn1"> </a>
|
||||
<a href="#" class="top-btn2"> </a>
|
||||
<a href="#" class="top-btn3"> </a>
|
||||
<a href="#" class="top-btn4"> </a>
|
||||
<a href="#" class="top-btn5"> </a>
|
||||
<a href="#" class="top-btn6"> </a>
|
||||
</div>
|
||||
<!-- -->
|
||||
<div class="perg-zero">
|
||||
<div class="perg-one">
|
||||
<div class="perg-two">
|
||||
<div class="perg-three">
|
||||
<div class="perg-home">
|
||||
<!-- -->
|
||||
<div class="news-zero">
|
||||
<div class="news-one">
|
||||
<div class="news-two">
|
||||
<div class="news-three">
|
||||
<div class="news-home">
|
||||
<span class="news-home-title">
|
||||
Îáíîâëåíèå èíôîðìàöèîííîé ÷àñòè ïðîåêòà
|
||||
</span>
|
||||
<span class="news-home-text">
|
||||
<b>Óâàæàåìûå èãðîêè!</b> Â íàñòîÿùèé ìîìåíò ìû ðàáîòàåì íàä óñòàíîâêîé íîâîãî äèçàéíà
|
||||
äëÿ <b>ñëåäóþùèõ ðàçäåëîâ</b>: ãëàâíîé ñòðàíèöû, áèáëèîòåêè, ðåéòèíãà, óñëóã, à òàê-æå ñîáûòèé.<br /><br />
|
||||
Äàííûå ðàáîòû çàéìóò âñå âûõîäíûå.
|
||||
<span style="float:right"><b>04.04.2014</b></span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- -->
|
||||
<div class="news-zero">
|
||||
<div class="news-one">
|
||||
<div class="news-two">
|
||||
<div class="news-three">
|
||||
<div class="news-home">
|
||||
<span class="news-home-title">
|
||||
Îáíîâëåíèå èíôîðìàöèîííîé ÷àñòè ïðîåêòà
|
||||
</span>
|
||||
<span class="news-home-text">
|
||||
<b>Óâàæàåìûå èãðîêè!</b> Â íàñòîÿùèé ìîìåíò ìû ðàáîòàåì íàä óñòàíîâêîé íîâîãî äèçàéíà
|
||||
äëÿ <b>ñëåäóþùèõ ðàçäåëîâ</b>: ãëàâíîé ñòðàíèöû, áèáëèîòåêè, ðåéòèíãà, óñëóã, à òàê-æå ñîáûòèé.<br /><br />
|
||||
Äàííûå ðàáîòû çàéìóò âñå âûõîäíûå.
|
||||
<span style="float:right"><b>04.04.2014</b></span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- -->
|
||||
<div class="news-zero">
|
||||
<div class="news-one">
|
||||
<div class="news-two">
|
||||
<div class="news-three">
|
||||
<div class="news-home">
|
||||
<span class="news-home-title">
|
||||
Îáíîâëåíèå èíôîðìàöèîííîé ÷àñòè ïðîåêòà
|
||||
</span>
|
||||
<span class="news-home-text">
|
||||
<b>Óâàæàåìûå èãðîêè!</b> Â íàñòîÿùèé ìîìåíò ìû ðàáîòàåì íàä óñòàíîâêîé íîâîãî äèçàéíà
|
||||
äëÿ <b>ñëåäóþùèõ ðàçäåëîâ</b>: ãëàâíîé ñòðàíèöû, áèáëèîòåêè, ðåéòèíãà, óñëóã, à òàê-æå ñîáûòèé.<br /><br />
|
||||
Äàííûå ðàáîòû çàéìóò âñå âûõîäíûå.
|
||||
<span style="float:right"><b>04.04.2014</b></span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- -->
|
||||
<div class="news-zero">
|
||||
<div class="news-one">
|
||||
<div class="news-two">
|
||||
<div class="news-three">
|
||||
<div class="news-home">
|
||||
<span class="news-home-title">
|
||||
Îáíîâëåíèå èíôîðìàöèîííîé ÷àñòè ïðîåêòà
|
||||
</span>
|
||||
<span class="news-home-text">
|
||||
<b>Óâàæàåìûå èãðîêè!</b> Â íàñòîÿùèé ìîìåíò ìû ðàáîòàåì íàä óñòàíîâêîé íîâîãî äèçàéíà
|
||||
äëÿ <b>ñëåäóþùèõ ðàçäåëîâ</b>: ãëàâíîé ñòðàíèöû, áèáëèîòåêè, ðåéòèíãà, óñëóã, à òàê-æå ñîáûòèé.<br /><br />
|
||||
Äàííûå ðàáîòû çàéìóò âñå âûõîäíûå.
|
||||
<span style="float:right"><b>04.04.2014</b></span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -1,24 +0,0 @@
|
||||
<?
|
||||
$sp = mysql_query('SELECT * FROM `events_news` WHERE `comment` = "0" AND `delete` = "0" AND `r` = "1" AND `clear` = "0" ORDER BY `id` DESC LIMIT 4');
|
||||
while( $pl = mysql_fetch_array($sp) ) {
|
||||
?>
|
||||
<div class="news-zero">
|
||||
<div class="news-one">
|
||||
<div class="news-two">
|
||||
<div class="news-three">
|
||||
<div class="news-home">
|
||||
<span class="news-home-title">
|
||||
<?=$pl['title']?>
|
||||
</span>
|
||||
<span class="news-home-text">
|
||||
<small>
|
||||
<?=$pl['text']?>
|
||||
</small>
|
||||
<span style="float:right"><b><?=date('d.m.Y',$pl['time'])?></b></span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<? } ?>
|
@ -1,52 +0,0 @@
|
||||
<?
|
||||
$frm = array(
|
||||
'html' => '',
|
||||
'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'] .= '<span class="frm-title-sel">«'.$pl['name'].'»</span>';
|
||||
}else{
|
||||
$frm['html'] .= '<a href="https://new-combats.com/forum/'.$pl['id'].'/" class="frm-title">«'.$pl['name'].'»</a>';
|
||||
}
|
||||
$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'] .= '<span class="frm-title-sel2">'.$pl2['name'].'</span>';
|
||||
}else{
|
||||
$frm['html'] .= '<a href="https://new-combats.com/forum/'.$pl['id'].'/'.$pl2['id'].'/" class="frm-title2">'.$pl2['name'].'</a>';
|
||||
}
|
||||
$frm['px'] += 23;
|
||||
}
|
||||
$frm['px'] += 23;
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="lib-ground" style="height:<?=$frm['px']?>px">
|
||||
<div class="lib-zero">
|
||||
<div class="lib-one">
|
||||
<div class="top-two">
|
||||
<div class="top-three">
|
||||
<div class="lib-home">
|
||||
<div class="top-bg">
|
||||
<?=$frm['html']?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
@ -1,51 +0,0 @@
|
||||
<?
|
||||
$lib = array(
|
||||
'html' => '',
|
||||
'px' => 200
|
||||
);
|
||||
|
||||
$rz = 1;
|
||||
|
||||
if ($url[2] == 'referal') {
|
||||
$rz = 2;
|
||||
}elseif($url[2] == 'clans') {
|
||||
$rz = 3;
|
||||
}
|
||||
|
||||
if( $rz == 1 ) {
|
||||
$lib['html'] .= '<span class="top-title-sel">Ðåéòèíã âîèíîâ</span>';
|
||||
}else{
|
||||
$lib['html'] .= '<a href="https://new-combats.com/top/warriors/" class="top-title">Ðåéòèíã âîèíîâ</a>';
|
||||
}
|
||||
|
||||
if( $rz == 2 ) {
|
||||
$lib['html'] .= '<span class="top-title-sel">Ðåéòèíã ðåôåðàëîâ</span>';
|
||||
}else{
|
||||
$lib['html'] .= '<a href="https://new-combats.com/top/referal/" class="top-title">Ðåéòèíã ðåôåðàëîâ</a>';
|
||||
}
|
||||
|
||||
if( $rz == 3 ) {
|
||||
$lib['html'] .= '<span class="top-title-sel">Ðåéòèíã êëàíîâ</span>';
|
||||
}else{
|
||||
$lib['html'] .= '<a href="https://new-combats.com/top/clans/" class="top-title">Ðåéòèíã êëàíîâ</a>';
|
||||
}
|
||||
|
||||
|
||||
$lib['px'] += 23*2;
|
||||
|
||||
?>
|
||||
<div class="lib-ground" style="height:<?=$lib['px']?>px">
|
||||
<div class="lib-zero">
|
||||
<div class="lib-one">
|
||||
<div class="top-two">
|
||||
<div class="top-three">
|
||||
<div class="lib-home">
|
||||
<div class="top-bg">
|
||||
<?=$lib['html']?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* @var User $u
|
||||
* @var user $u
|
||||
* @var array $c from _config.php
|
||||
* @var array $vt
|
||||
*/
|
||||
|
@ -1,275 +0,0 @@
|
||||
<?
|
||||
|
||||
session_start();
|
||||
if(!defined('GAME'))
|
||||
{
|
||||
die();
|
||||
}
|
||||
|
||||
|
||||
|
||||
if(!isset($_GET['otdel']) || ($_GET['otdel']!=1 && $_GET['otdel']!=2 && $_GET['otdel']!=3 && $_GET['otdel']!=4 && $_GET['otdel']!=5 && $_GET['otdel']!=6))
|
||||
{
|
||||
$_GET['otdel'] = 1; // Åñëè ðàçäåë íå óêàçàí.
|
||||
$_GET['paged'] = $_SESSION['paged'] = 0;
|
||||
}
|
||||
|
||||
if(isset($_GET['otdel'])){
|
||||
if(!isset($_GET['paged']) && (isset($_GET['use_pid']) || isset($_GET['sid']) || isset($_GET['oid']) || isset($_GET['usecopr']) || isset($_GET['delcop']))){
|
||||
$_GET['paged'] = $_SESSION['paged']; // use item and load old paging
|
||||
}
|
||||
elseif(isset($_GET['paged']) && $_GET['paged']!='')
|
||||
{
|
||||
$_SESSION['paged'] = $_GET['paged']; // Çàäàåì íîâóþ ñòðàíèöó.
|
||||
}
|
||||
elseif(isset($_SESSION['paged']) && $_SESSION['paged']!='' && $_SESSION['otdel']==$_GET['otdel'])
|
||||
{
|
||||
$_GET['paged'] = $_SESSION['paged']; // Åñëè ñòðàíèöà óæå èìååòñÿ â ñåññèè, âîçâðàùàåì å¸ â òåêóùóþ.
|
||||
}
|
||||
else
|
||||
{
|
||||
$_GET['paged'] = $_SESSION['paged'] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
$_SESSION['otdel'] = $_GET['otdel']; // äëÿ îòëàäêè.
|
||||
|
||||
if(isset($_GET['delcop'])) {
|
||||
mysql_query('DELETE FROM `complects_priem` WHERE `id` = "'.mysql_real_escape_string($_GET['delcop']).'" AND `uid` = "'.$u->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 = '<!-- PAGED SEE '.round((int)@$_SESSION['paged']).'-->'; else $page_look = '<!-- PAGED '.$_SESSION['paged'].' -->';
|
||||
if($pgs > $pc) {
|
||||
$nlim = ' LIMIT '.$pxc.' , '.$pc.'';
|
||||
$page_look .= '<table border=0 cellpadding=0 cellspacing=0 width=100% bgcolor="#A5A5A5"><tr><td width=99% align=center>';
|
||||
$page_look .= '<div style="padding:10px;">';
|
||||
$page_look .= 'Ñòðàíèöû: ';
|
||||
$i = 1;
|
||||
echo '<style>.pgdas { display:inline-block;background-color:#AEAEAE; padding:3px 7px 3px 7px; } .pgdas1 { display:inline-block;background-color:#EAEAEA; padding:3px 7px 3px 7px; }</style>';
|
||||
while($i <= ceil($pgs/$pc)) {
|
||||
if($i-1 == $pg) {
|
||||
$sep = 1;
|
||||
}else{
|
||||
$sep = '';
|
||||
}
|
||||
$page_look .= '<a class="pgdas'.$sep.'" href="javascript:void(0);" onclick="inventoryAjax(\'main.php?paged='.($i-1).'&inv&mAjax=true&otdel='.round($_GET['otdel']).'\');">'.$i.'</a> ';
|
||||
$i++;
|
||||
}
|
||||
$page_look .= '</div>';
|
||||
$page_look .= '<td nowrap> </td></tr></table>';
|
||||
}
|
||||
$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 = '<tr><td align="center" bgcolor="#e2e0e0">ÏÓÑÒÎ</td></tr>';
|
||||
if($itmAll[0] > 0)
|
||||
$itmAllSee = $itmAll[2];
|
||||
|
||||
$showItems = '<table width="100%" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td valign="top"><table width="100%" cellspacing="0" cellpadding="5" bgcolor="#c7c7c7">
|
||||
<tr>
|
||||
<td width="20%" align=center bgcolor="' . (($_GET['otdel'] == 1) ? '#A5A5A5' : '' ) .'"><a href="javascript:void(0);" onclick="inventoryAjax(\'main.php?inv=1&mAjax=true&otdel=1&rn=1.1\');">Îáìóíäèðîâàíèå</a></td>
|
||||
<td width="20%" align=center bgcolor="' . (($_GET['otdel'] == 2) ? '#A5A5A5' : '' ) .'"><a href="javascript:void(0);" onclick="inventoryAjax(\'main.php?inv=1&mAjax=true&otdel=2&rn=2.1\');">Çàêëÿòèÿ</a></td>
|
||||
<td width="20%" align=center bgcolor="' . (($_GET['otdel'] == 3) ? '#A5A5A5' : '' ) .'"><a href="javascript:void(0);" onclick="inventoryAjax(\'main.php?inv=1&mAjax=true&otdel=3&rn=3.1\');">Ýëèêñèðû</a></td>
|
||||
<td width="20%" align=center bgcolor="' . (($_GET['otdel'] == 6) ? '#A5A5A5' : '' ) .'"><a href="javascript:void(0);" onclick="inventoryAjax(\'main.php?inv=1&mAjax=true&otdel=6&rn=6.1\');">Ðóíû</a></td>
|
||||
<td width="20%" align=center bgcolor="' . (($_GET['otdel'] == 4) ? '#A5A5A5' : '' ) .'"><a href="javascript:void(0);" onclick="inventoryAjax(\'main.php?inv=1&mAjax=true&otdel=4&rn=4.1\');">Ïðî÷åå</a></td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center"><table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#A5A5A5">
|
||||
<tr>
|
||||
<td width="99%" align="center"><b>Ðþêçàê (ìàññà:' . (0+$u->aves['now']) . ' / ' . $u->aves['max'] . ', ïðåäìåòîâ: ' . $u->aves['items'] . ')</b>
|
||||
</tr>
|
||||
</table>' . $page_look . '</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" align="center"><table width="100%" border="0" cellspacing="1" align="center" cellpadding="0" bgcolor="#A5A5A5">' . (( $u->info['invBlock'] == 0 ) ? $itmAllSee : '<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>
|
||||
<table width="100%" bgcolor="#A5A5A5">
|
||||
<tr>
|
||||
<td align="left"> Âûðîâíÿòü ïî
|
||||
<input type="button" onclick="inventoryAjax(\'main.php?inv=1&mAjax=true&boxsort=name&otdel=' . intval($_GET['otdel']) . '\');" value="íàçâàíèþ" />
|
||||
<input type="button" onclick="inventoryAjax(\'main.php?inv=1&mAjax=true&boxsort=cost&otdel=' . intval($_GET['otdel']) . '\');" value="öåíå" />
|
||||
<input type="button" onclick="inventoryAjax(\'main.php?inv=1&mAjax=true&boxsort=type&otdel=' . intval($_GET['otdel']) . '\');" value="òèïó" /></td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
</table>';
|
||||
if(isset($_GET['mAjax'])){
|
||||
exit($showItems);
|
||||
}
|
||||
?>
|
||||
<script type="text/javascript" src="js/jquery.js"></script>
|
||||
<script>
|
||||
function inventoryAjax(url){
|
||||
$('#ShowInventory').html('<div align="center" style="padding:10px;background-color:#A5A5A5;"><b>Çàãðóçêà...</b></div>');
|
||||
$.ajax({
|
||||
url: url,
|
||||
cache: false,
|
||||
dataType: 'html',
|
||||
success: function (html) {
|
||||
$('#ShowInventory').html(html);
|
||||
}
|
||||
});
|
||||
}
|
||||
function seetext(id) {
|
||||
var id = document.getElementById('close_text_itm'+id);
|
||||
if(id.style.display == 'none') {
|
||||
id.style.display = '';
|
||||
}else{
|
||||
id.style.display = 'none';
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="250" valign="top" align="right"><div align="center"><? $usee = $u->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 '<center><a href="/main.php?inv&remitem&otdel='.round((int)$_GET['otdel']).'">Ñíÿòü âñå</a></center>';
|
||||
}
|
||||
echo '<br>'.$u->info_remont();
|
||||
|
||||
?>
|
||||
</div></td>
|
||||
<td width="242" valign="top" align="left"><? if( $u->info['inTurnir'] == 0) { include('stats_inv.php'); }else{ include('stats_inv2.php'); } ?></td>
|
||||
<td valign="top">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" noresize="noresize">
|
||||
<? if( $u->error != '' ) { ?>
|
||||
<tr>
|
||||
<td>
|
||||
<div style="min-height:18px;padding-left:0px;"><font color="#FF0000"><b><? echo $u->error; ?></b></font></div>
|
||||
</td>
|
||||
</tr>
|
||||
<? } ?>
|
||||
<tr>
|
||||
<td width="60%" height="45" align="right" valign="top">
|
||||
<?
|
||||
if($u->info['animal'] != 0)
|
||||
{
|
||||
echo ' <input class="btnnew" type="button" onclick="top.frames[\'main\'].location=\'main.php?pet=1&rnd='.$code.'\'" value="Çâåðü" />';
|
||||
}
|
||||
?>
|
||||
<? if ($u->info['inTurnir'] == 0) { ?>
|
||||
<input class="btnnew" type="button" onclick="top.frames['main'].location='main.php?obraz&rnd=<? echo $code; ?>'" value="Îáðàç" />
|
||||
<? } ?>
|
||||
<?
|
||||
$gl = mysql_fetch_array(mysql_query('SELECT COUNT(*) FROM `reimage` WHERE ((`uid` = "'.$u->info['id'].'" AND `clan` = "0") OR `clan` = "'.$u->info['clan'].'") AND `good` > 0 AND `bad` = "0" LIMIT 1'));
|
||||
if($gl[0] > 0) { ?>
|
||||
<input class="btnnew" type="button" onclick="top.frames['main'].location='main.php?galery&rnd=<? echo $code; ?>'" value="Ãàëåðåÿ" />
|
||||
<? } unset($gl); ?>
|
||||
<input class="btnnew" type="button" onclick="top.frames['main'].location='main.php?skills&side=1&rn=<? echo $code; ?>'" value="Óìåíèÿ" />
|
||||
<input class="btnnew" type="button" onclick="top.frames['main'].location='main.php?anketa&rn=<? echo $code; ?>'" value="Àíêåòà" />
|
||||
<? if ($u->info['inTurnir'] == 0) { ?>
|
||||
<input class="btnnew2" style="background-color:#A9AFC0" type="button" onclick="location.href='main.php?referals'" value="Íàñòàâíè÷åñòâî" />
|
||||
<? } ?>
|
||||
<input class="btnnew" type="button" onclick="top.frames['main'].location='main.php?act_trf=1&rn=<? echo $code; ?>'" value="Îò÷åò î ïåðåâîäàõ" />
|
||||
<input class="btnnew" type="button" style="font-weight:bold;" value="Áåçîïàñíîñòü" onclick="top.frames['main'].location='main.php?security&rn=<? echo $code; ?>'" />
|
||||
<input class="btnnew" type="button" style="background-color:#A9AFC0" onClick="alert('Ðàçäåë îòñóòñòâóåò');" value="Ïîäñêàçêè" />
|
||||
|
||||
<input class="btnnew" type="button" onclick="top.frames['main'].location='main.php'" value="Âåðíóòüñÿ" /> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id="ShowInventory"><?php echo $showItems; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div align="right"><?php echo $c['counters']; ?></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
@ -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',
|
||||
|
@ -1,81 +0,0 @@
|
||||
<?
|
||||
if(!defined('GAME'))
|
||||
{
|
||||
die();
|
||||
}
|
||||
|
||||
if($u->room['file']=='kinght')
|
||||
{
|
||||
?>
|
||||
<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;"><? require_once('modules_data/stats_loc.php'); ?></td>
|
||||
<td valign="top"><div align="right">
|
||||
<? if( $u->error != '' ) { ?>
|
||||
<font color=red><b>
|
||||
<? echo $u->error; ?></font></b>
|
||||
<? } ?>
|
||||
<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; width: 500;" id="ione"><img src="https://img.new-combats.com/i/images/300x225/club/navig3.jpg" id="img_ione" width="500" height="240" border="1"/>
|
||||
|
||||
<div style="position:absolute; left:118px; top:175px; width:101px; height:37px; z-index:90;"><img onmouseover="this.className='aFilterhover';" onmouseout="this.className='aFilter';" src="https://img.new-combats.com/i/images/300x225/map_sec3.gif" width="101" height="37" class="aFilter" /></div>
|
||||
|
||||
<div style="position:absolute; left:279px; top:55px; width:16px; height:18px; z-index:90;"><img src="https://img.new-combats.com/i/images/300x225/fl1.gif" width="16" height="18" title="Âû íàõîäèòåñü â '<? echo $u->room['name']; ?>'" /></div>
|
||||
<div style="position:absolute; left:281px; top:173px; width:122px; height:31px; z-index:90;"><img onmouseover="this.className='aFilterhover';" onmouseout="this.className='aFilter';" src="https://img.new-combats.com/i/images/300x225/map_sec5.gif" width="122" height="31" class="aFilter" /></div>
|
||||
<div style="position:absolute; left:23px; top:116px; width:120px; height:35px; z-index:90;"><img <? thisInfRm('1.180.0.220'); ?> 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" /></div>
|
||||
|
||||
<div style="position:absolute; left:36px; top:41px; width:63px; height:40px; z-index:90;"><img onmouseover="this.className='aFilterhover';" onmouseout="this.className='aFilter';" src="https://img.new-combats.com/i/images/300x225/map_sec2.gif" width="63" height="40" class="aFilter" /></div>
|
||||
|
||||
<div style="position:absolute; left:24px; top:180px; width:91px; height:43px; z-index:90;"><img onmouseover="this.className='aFilterhover';" onmouseout="this.className='aFilter';" src="https://img.new-combats.com/i/images/300x225/map_sec1.gif" width="91" height="43" class="aFilter" /></div>
|
||||
<div style="position:absolute; left:122px; top:52px; width:123px; height:39px; z-index:90;"><img <? thisInfRm('1.180.0.XX'); ?> 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" /></div>
|
||||
<div style="position:absolute; left:305px; top:51px; width:123px; height:30px; z-index:90;"><img onmouseover="this.className='aFilterhover';" onmouseout="this.className='aFilter';" src="https://img.new-combats.com/i/images/300x225/map_sec6.gif" width="123" height="30" class="aFilter" /></div>
|
||||
<div style="position:absolute; left:391px; top:120px; width:89px; height:32px; z-index:90;"><img <? thisInfRm('1.180.0.223'); ?> 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" /></div>
|
||||
<div id="snow"></div>
|
||||
<? echo $goline; ?>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div style="display:none; height:0px " id="moveto"></div>
|
||||
<?php
|
||||
if($u->info['level']<6)
|
||||
{
|
||||
echo '
|
||||
Âàì âñå âðåìÿ êàæåòñÿ ÷òî çà âàìè ñëåäÿò? ×óäèòñÿ, ÷òî ñëó÷àéíûé ïîïóò÷èê ìå÷òàåò âñàäèòü âàì òîïîð â ñïèíó? Ïðè ñîâåðøåíèè î÷åðåäíîé ïîêóïêè â ãîñ. ìàãàçèíå ìó÷àåò îùóùåíèå, ÷òî âàñ îáìàíóëè? Êàæåòñÿ, ÷òî ñèìïàòè÷íàÿ äåâóøêà íàïðîòèâ ñìîòðèò íà âàñ êàê íà ïèùó? Óñïîêîéòåñü, ýòî íå ïàðàíîéÿ. Ýòî ðåàëèè Capital city. Ãîðîäà Òüìû.
|
||||
';
|
||||
}else{
|
||||
echo 'Âîçìîæíî, âû îøèáëèñü ýòàæîì - íàñòîÿùèå ñðàæåíèÿ ïðîõîäÿò ýòàæîì âûøå.';
|
||||
} ?>
|
||||
</small></div></td>
|
||||
<td>
|
||||
<!-- <br /><span class="menutop"><nobr>Êîìíàòà äëÿ íîâè÷êîâ</nobr></span>-->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<small>
|
||||
<HR>
|
||||
<INPUT id="forum" class="btn btn-inverse" onclick="window.open('https://new-combats.com/news/', 'news', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')" value="Íîâîñòè" type="button" name="forum">
|
||||
<INPUT onclick="location.href='main.php?zayvka=<? echo $code; ?>';" class="btn btn-inverse" value="Ïîåäèíêè" type="button" name="combats">
|
||||
<? $hgo = $u->testHome(); if(!isset($hgo['id'])){ ?><INPUT onclick="location.href='main.php?homeworld=<? echo $code; ?>';" class="btn btn-inverse" value="Âîçâðàò" type="button" name="combats2"><? } unset($hgo); ?>
|
||||
<INPUT id="forum" class="btn btn-inverse" onclick="window.open('https://new-combats.com/forum/', 'forum', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')" value="Ôîðóì" type="button" name="forum">
|
||||
<br />
|
||||
<strong>Âíèìàíèå!Ñìåíèòå ïàðîëü íà óíèêàëüíûé,êîòîðûé íå èñïîëüçîâàëñÿ ðàíåå â ïîäîáíûõ ïðîåêòàõ,ýòî îáåçîïàñèò âàøåãî ïåðñîíàæà îò âçëîìà.<BR>
|
||||
<em>Àäìèíèñòðàöèÿ.</strong> </em></small> <BR>
|
||||
<? echo $rowonmax; ?><BR>
|
||||
|
||||
</div></td>
|
||||
</tr>
|
||||
</table>
|
||||
<?
|
||||
}
|
||||
|
||||
?>
|
@ -1,391 +0,0 @@
|
||||
<?
|
||||
if(!defined('GAME'))
|
||||
{
|
||||
die();
|
||||
}
|
||||
|
||||
if($u->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('<script>location="main.php?rnd='.$code.'";</script>');
|
||||
}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 .= '<div style="padding:2px;">';
|
||||
if($u->info['dn']==0)
|
||||
{
|
||||
$dzs .= '<input type="radio" name="goid" id="goid" value="'.$pl['id'].'" />';
|
||||
}
|
||||
$dzs .= '<span class="date">'.date('H:i',$pl['time']).'</span> ';
|
||||
|
||||
$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 .= '<b>'.$pu['login'].'</b> ['.$pu['level'].']<a href="info/'.$pu['id'].'" target="_blank"><img src="https://img.new-combats.com/i/inf_capitalcity.gif" title="Èíô. î '.$pu['login'].'"></a>';
|
||||
$pus .= ', ';
|
||||
}
|
||||
$pus = trim($pus,', ');
|
||||
|
||||
$dzs .= $pus;
|
||||
|
||||
if($pl['com']!='')
|
||||
{
|
||||
$dl = '';
|
||||
if(($moder['boi']==1 || $u->info['admin']>0) && $pl['dcom']==0)
|
||||
{
|
||||
$dl .= ' (<a href="?delcom='.$pl['id'].'&key='.$u->info['nextAct'].'&rnd='.$code.'">óäàëèòü êîììåíòàðèé</a>)';
|
||||
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 = ' <font color="grey"><i>êîììåíòàðèé óäàëåí ìîäåðàòîðîì</i></font>';
|
||||
}
|
||||
|
||||
if($pl['dcom']>0)
|
||||
{
|
||||
if($moder['boi']==1 || $u->info['admin']>0)
|
||||
{
|
||||
$pl['com'] = '<font color="red">'.$pl['com'].'</font>';
|
||||
}else{
|
||||
$pl['com'] = '';
|
||||
}
|
||||
}
|
||||
|
||||
$dzs .= '<small> | '.$pl['com'].''.$dl.'</small>';
|
||||
}
|
||||
|
||||
$dzs .= '</div>';
|
||||
}
|
||||
?>
|
||||
<style>
|
||||
body
|
||||
{
|
||||
background-color:#E2E2E2;
|
||||
background-image: url(https://img.new-combats.com/i/misc/showitems/dungeon.jpg);
|
||||
background-repeat:no-repeat;background-position:top right;
|
||||
}
|
||||
</style>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td><div style="padding-left:0px;" align="center">
|
||||
<h3><? echo $u->room['name']; ?></h3>
|
||||
</div></td>
|
||||
<td width="200"><div align="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=<? if($u->info['city']=='fallenearth'){ echo '6.180.0.102'; } else {echo '1.180.0.321'; }?>&rnd=<? echo $code; ?>';" title="<?
|
||||
if($u->info['city']=='fallenearth'){
|
||||
thisInfRm('6.180.0.102',1);
|
||||
}else {
|
||||
thisInfRm('1.180.0.321',1);
|
||||
}
|
||||
?>"><?
|
||||
if($u->info['city']=='fallenearth'){
|
||||
echo "Òåìíûé Ïîðòàë";
|
||||
}else {
|
||||
echo "Ìàãè÷åñêèé Ïîðòàë";
|
||||
}
|
||||
?></a></td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div></td>
|
||||
</tr>
|
||||
</table>
|
||||
<?
|
||||
if($re!='')
|
||||
{
|
||||
echo '<font color="red"><b>'.$re.'</b></font><br>';
|
||||
}
|
||||
|
||||
//îòîáðàæàåì
|
||||
if($dzs=='')
|
||||
{
|
||||
$dzs = '';
|
||||
}else{
|
||||
if(!isset($zv['id']))
|
||||
{
|
||||
if($g111==1)
|
||||
{
|
||||
$pr = '<input name="go" type="submit" value="Âñòóïèòü â ãðóïïó">';
|
||||
}
|
||||
$dzs = '<form action="main.php?rnd='.$code.'" method="post">'.$pr.'<br>'.$dzs.''.$pr.'</form>';
|
||||
}
|
||||
$dzs .= '<hr>';
|
||||
}
|
||||
|
||||
echo $dzs;
|
||||
if($g111 == 1)
|
||||
{
|
||||
if($u->info['dn']==0)
|
||||
{
|
||||
?>
|
||||
<table width="350" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td valign="top">
|
||||
<form autocomplete="off" id="from" name="from" action="main.php?pz1=<? echo $code; ?>" method="post">
|
||||
<fieldset style='padding-left: 5; width=50%'>
|
||||
<legend><b> Ãðóïïà </b> </legend>
|
||||
Êîììåíòàðèé
|
||||
<input type="text" name="text" maxlength="40" size="40" />
|
||||
<br />
|
||||
Ïàðîëü
|
||||
<input type="password" name="pass" maxlength="25" size="25" />
|
||||
<br />
|
||||
<input type="submit" name="add" value="Ñîçäàòü ãðóïïó" />
|
||||
<br />
|
||||
</fieldset>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<?
|
||||
}else{
|
||||
$psh_start = '';
|
||||
if(isset($zv['id']))
|
||||
{
|
||||
if($zv['uid']==$u->info['id'])
|
||||
{
|
||||
$psh_start = '<INPUT type=\'button\' name=\'start\' value=\'Íà÷àòü\' onClick="top.frames[\'main\'].location = \'main.php?start=1&rnd='.$code.'\'"> ';
|
||||
}
|
||||
|
||||
echo '<br><FORM id="REQUEST" method="post" style="width:210px;" action="main.php?rnd='.$code.'">
|
||||
<FIELDSET style=\'padding-left: 5; width=50%\'>
|
||||
<LEGEND><B> Ãðóïïà </B> </LEGEND>
|
||||
'.$psh_start.'
|
||||
<INPUT type=\'submit\' name=\'leave\' value=\'Ïîêèíóòü ãðóïïó\'>
|
||||
</FIELDSET>
|
||||
</FORM>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<?
|
||||
}else{
|
||||
echo 'Ïîõîä â ïåùåðû ðàçðåøåí îäèí ðàç â äâà ÷àñà. Îñòàëîñü åùå: '.$u->timeOut(7200-time()+$g11['time']).'<br><small style="color:grey">Íî Âû âñåãäà ìîæåòå ïðèîáðåñòè êëþ÷ îò ïðîõîäà ó ëþáîãî "êîïàòåëÿ ïåùåð" â Òîðãîâîì çàëå ;)</small>';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
@ -274,17 +274,11 @@ mysql_query("INSERT INTO `chat` (`new`,`city`,`room`,`login`,`to`,`text`,`time`,
|
||||
<? if($u->info['level'] > 15 || $u->stats['s9']!=0){ ?>Ñâîáîäà äóõà: <b><? echo 0+$u->stats['s9']; ?></b><br /><? } ?>
|
||||
<? if($u->info['level'] > 16 || $u->stats['s10']!=0){ ?>Áîæåñòâåííûé: <b><? echo 0+$u->stats['s10']; ?></b><br /><? } ?>
|
||||
<?
|
||||
/*
|
||||
Ýíåðãèÿ: <? echo 0+$u->stats['s11']; ?> <small>[<?=round($u->info['enNow'],3)?>/<?=$u->stats['enAll']?>]</small><br />
|
||||
*/
|
||||
if($u->info['ability'] > 0 || ($u->info['skills'] > 0 && $u->info['level'] > 0))
|
||||
{
|
||||
echo '<a href="main.php?skills=1&side=1">+ Ñïîñîáíîñòè</a><br />';
|
||||
}
|
||||
/*if($u->info['skills'] > 0 && $u->info['level'] > 0)
|
||||
{
|
||||
echo '• <a href="main.php?skills=1&side=1">Îáó÷åíèå</a><br />';
|
||||
} */
|
||||
|
||||
?>
|
||||
<br />
|
||||
Îïûò: <a href="https://new-combats.com/exp" target="_blank"><? echo number_format($u->info['exp'], 0, ",", " "); ?></a><br />
|
||||
@ -306,31 +300,10 @@ echo '• <a href="main.php?skills=1&side=1">
|
||||
echo '<br>';
|
||||
}
|
||||
?>
|
||||
<? if($u->rep['rep3'] >= 0) {
|
||||
|
||||
<? if($u->rep['rep3'] >= 0) {
|
||||
$repovo=$u->rep['rep3']-$u->rep['rep3_buy'];
|
||||
?>
|
||||
Âîèíñòâåííîñòü: <b style="color:green"><? echo $repovo; ?> åä.</b><br><? }
|
||||
/*if ($u->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 'Ïðàâî íà ïîäâèã: <b style="color:green">Äîñòóïíî.</b><br />';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo 'Ïðàâî íà ïîäâèã: <b style="color:green">'.date('d.m.Y H:i',($check['time']+10800)).'.</b><br />';
|
||||
}
|
||||
}
|
||||
if ($u->info['palpro'] > time())
|
||||
{
|
||||
echo 'Ïðîâåðêà äî: <b style="color:green">'.date('d.m.Y H:i',$u->info['palpro']).'.</b><br />';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo 'Ïðîâåðêà äî: <b style="color:red"> Îòñóòñòâóåò.</b><br />';
|
||||
}*/
|
||||
|
||||
?>
|
||||
Ðåëèêâèé: <b style="color:green"><? echo $u->info['relik']['relik'];/*$u->info['ang_g'];*/ ?> øò.</b><br>
|
||||
@ -338,28 +311,31 @@ $repovo=$u->rep['rep3']-$u->rep['rep3_buy'];
|
||||
<b><font color='red'>Âçÿòèå Åæåäíåâíîãî çàäàíèÿ: </font> <?=$u->dayquest($u->info['id'])?></b><br>
|
||||
|
||||
|
||||
<? if( $u->info['level'] > 0 and $u->info['exp'] <= 499999998) { ?>
|
||||
<?php
|
||||
if ($u->info['level'] <= 0 || $u->info['exp'] > 499999998) {return;}
|
||||
?>
|
||||
|
||||
<b>Âàø Áîíóñ <?=$u->pensia(false)?></b><br>
|
||||
<?
|
||||
if( $u->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'])) {
|
||||
<?php
|
||||
if ($u->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 '<button style="width:164px;margin-top:5px;" disabled="disabled" offclick="alert(\' ×åðåç '.$u->timeOut($bns['time']-time()).'\');" class="btn btn-danger"> ×åðåç '.$u->timeOut($bns['time']-time()).' </button>';
|
||||
}else{
|
||||
|
||||
|
||||
//Ñòðàíèöà ðîäèòåëÿ
|
||||
?>
|
||||
<button style="width:164px;margin-top:5px;margin-bottom:5px;" class="btn btn-success" onclick="myWindow5(this)">Çàïðîñèòü!</button></div>
|
||||
<script>
|
||||
function myWindow5(e) {// ñîçäàòü iframe è äîáàâèòü åãî ïîñëå êíîïêè
|
||||
if (e.nextSibling.nodeName.toLowerCase() != "iframe")
|
||||
if (e.nextSibling.nodeName.toLowerCase() != "iframe")
|
||||
{// åñëè ïîñëå êíîïêè íåò iframe
|
||||
var iframe = document.createElement('iframe');
|
||||
iframe.setAttribute('src', 'https://new-combats.com/bonuss.php');
|
||||
@ -370,22 +346,12 @@ if( $u->info['level'] > 2 ) {
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
iframe[src^="https://new-combats.com/bonuss.php"]
|
||||
iframe[src^="https://new-combats.com/bonuss.php"]
|
||||
{ /* êàêîé-òî ñòèëü ó iframe. Åãî ìîæíî îòöåíòðèðîâàòü ñòèëÿìè CSS ïî öåíòðó îêíà áðàóçåðà, ñäåëàòü îáùèé ôîí ñòðàíèöû çàòóìàíåííûì */
|
||||
width: 100%;
|
||||
border: none;
|
||||
}
|
||||
</style>
|
||||
<?
|
||||
|
||||
//echo '<button style="width:164px;margin-top:5px;" class="btn btn-success" onclick="location.href=\'main.php?takebns='.$u->info['nextAct'].'&getb1w=3\';">Ïîëó÷èòü!</button></div>';
|
||||
<?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'));
|
||||
|
@ -1,108 +0,0 @@
|
||||
<?
|
||||
if(!defined('GAME') || $u->stats['silver']<1)
|
||||
{
|
||||
die();
|
||||
}
|
||||
|
||||
if($u->error!='')
|
||||
{
|
||||
echo '<font color="red"><b>'.$u->error.'</b></font><br>';
|
||||
}
|
||||
|
||||
$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)*/
|
||||
);
|
||||
?>
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td align="center"><h3>Äîáðî ïîæàëîâàòü, <?=$u->info['login']?>!</h3><center>Ó âàñ äåéñòâóåò <img width="15" height="15" style="display:inline-block; vertical-align:text-bottom;" src="https://img.new-combats.com/blago/<?=$u->stats['silver']?>.png" /><b>Áëàãîñëîâëåíèÿ Àíãåëîâ</b> <?=$u->stats['silver']?> óðîâíÿ.</center></td>
|
||||
<td width="150" align="right"><input type="button" value="îáíîâèòü" onclick="location='main.php?vip=1';" /> <input type="button" value="Âåðíóòüñÿ" onclick="location='main.php';" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><b>Äîñòóïíûå âîçìîæíîñòè:</b> <a href="https://new-combats.com/benediction/" target="_blank">Ïîñìîòðåòü âîçìîæíîñòè</a></p>
|
||||
<p><b>Äîñòóïíûå ïðåäìåòû:</b><br />
|
||||
<small>(×òîáû çàáðàòü ïðåäìåò ïðîñòî íàæìèòå íà åãî èçîáðàæåíèå)</small></p>
|
||||
<p>
|
||||
<?
|
||||
$i = 0; $seet = '';
|
||||
$vnr = array(0 => 'íà ñåãîäíÿ',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 '<font color="red">Ïðåäìåò "<b>'.$itm['name'].'</b>" ïåðåìåùåí ê Âàì â èíâåíòàðü (Îñòàëîñü '.$vnr[$vi[$i][4]].': '.($vi[$i][1][$u->stats['silver']]-$vix).' øò.).</font><br><br>';
|
||||
}
|
||||
}
|
||||
|
||||
$seet0 = '';
|
||||
$seet0 .= '<img '.$vix.' title="'.$itm['name'].'
|
||||
(Îñòàëîñü '.$vnr[$vi[$i][4]].': '.($vi[$i][1][$u->stats['silver']]-$vix).' øò.)" style="height:25px;" src="https://img.new-combats.com/i/items/'.$itm['img'].'"> ';
|
||||
if($vi[$i][1][$u->stats['silver']]-$vix > 0) {
|
||||
$seet0 = '<a href="main.php?vip=1&take_item_vip='.$itm['id'].'">'.$seet0.'</a>';
|
||||
}else{
|
||||
$seet0 = '<span style="filter: alpha(opacity=20); -moz-opacity: 0.20; -khtml-opacity: 0.20; opacity: 0.20;">'.$seet0.'</span>';
|
||||
}
|
||||
$seet .= $seet0;
|
||||
}
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
echo $seet;
|
||||
?>
|
||||
</p>
|
||||
<font color=red><b>Âíèìàíèå!</b> Ñðîê ãîäíîñòè âûäàâàåìûõ ïðåäìåòîâ 10 ìèí.</font><Br /></td>
|
||||
</tr>
|
||||
</table>
|
@ -1,82 +0,0 @@
|
||||
<?
|
||||
if(!defined('GAME'))
|
||||
{
|
||||
die();
|
||||
}
|
||||
|
||||
if( $u->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 '<div><b><font color="red">Çàäàíèå óñïåøíî äîáàâëåíî. Òåïåðü îñòàëîñü åãî âûïîëíèòü!</font></b></div>';
|
||||
}
|
||||
|
||||
?>
|
||||
<table width="100%" cellspacing="0" cellpadding="0">
|
||||
<form method="post" action="main.php?inv">
|
||||
<tr>
|
||||
<td valign="top" align="left"><img src="https://img.new-combats.com/1x1.gif" alt="" width="1" height="5" /><br />
|
||||
</td>
|
||||
<td align="center"><h3>Òåêóùèé ïëàí ïî çàõâàòó Ìèðà! :)</h3></td>
|
||||
<td align="right">
|
||||
<input class="btnnew" type="button" onclick="location.href='main.php?worklist'" name="edit" value="Îáíîâèòü" />
|
||||
<input class="btnnew" type="submit" name="edit" value="Âåðíóòüñÿ" />
|
||||
<br />
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td align="left"><hr /></td>
|
||||
<td align="center"><hr /></td>
|
||||
<td align="right"><hr /></td></tr>
|
||||
</form>
|
||||
<form id="form1" name="form1" method="post" action="">
|
||||
<tr>
|
||||
<td align="left"></td>
|
||||
<td align="left">Äîáàâèòü íîâóþ çàïèñü:<br /><textarea name="wtext" style="width:100%;height:100px;"></textarea></td>
|
||||
<td align="left"> <input class="btnnew" type="submit" value="Äîáàâèòü" /><br />
|
||||
Ïðèîðèòåò:
|
||||
<label for="select"></label>
|
||||
<select name="select" id="select">
|
||||
<option value="0" selected="selected">Íå âàæíî</option>
|
||||
<option value="1">Ìåëî÷ü</option>
|
||||
<option value="2">Íåäî÷åò</option>
|
||||
<option value="3">Áàã</option>
|
||||
<option value="4">Ñåðüåçíûé áàã</option>
|
||||
<option value="5">ÂÀÆÍÎ!!!</option>
|
||||
</select>
|
||||
</td></tr></form>
|
||||
<?
|
||||
$sp = mysql_query('SELECT * FROM `worklist` WHERE `delete` = 0 ORDER BY `prior` DESC, `time` ASC');
|
||||
while( $pl = mysql_fetch_array($sp) ) {
|
||||
if(isset($_GET['del']) && $pl['id'] == $_GET['del']) {
|
||||
mysql_query('UPDATE `worklist` SET `delete` = "'.$u->info['id'].'" WHERE `id` = "'.$pl['id'].'" LIMIT 1');
|
||||
}else{
|
||||
$pl['text'] = str_replace("\n",'<br>',$pl['text']);
|
||||
$plp = array(
|
||||
'<font color=grey>Íå âàæíî</font>','<font color=maroon>Íå âàæíî</font>','<font color=green>Íåäî÷åò</font>','<font color=blue>Íå âàæíî</font>','<font color=red>Íå âàæíî</font>','<b><font color=red>ÂÀÆÍÎ!!!</font></b>',''
|
||||
);
|
||||
echo '<tr>
|
||||
<td width="230" valign="top" align="left">#'.$pl['id'].' <small style="color:#adadad">|</small> '.date('d.m.Y H:i',$pl['time']).'<br>Ïðèîðèòåò: '.$plp[$pl['prior']].'</td>
|
||||
<td align="left">'.$pl['text'].'</td>
|
||||
<td align="right"> <input onclick="location.href=\'/main.php?worklist&del='.$pl['id'].'\';" class="btnnew" type="button" value="X" />
|
||||
<br />
|
||||
</td></tr><tr>
|
||||
<td align="left"><hr /></td>
|
||||
<td align="center"><hr /></td>
|
||||
<td align="right"><hr /></td></tr>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
</table>
|
61
repass.php
61
repass.php
@ -1,5 +1,12 @@
|
||||
<?php
|
||||
require_once '_incl_data/mails.php';
|
||||
|
||||
use Core\Config;
|
||||
use Core\Database;
|
||||
|
||||
if (!defined('GAME_VERSION')) {
|
||||
require_once '_incl_data/autoload.php';
|
||||
}
|
||||
|
||||
$step = 1;
|
||||
$error = '';
|
||||
|
||||
@ -10,30 +17,48 @@ if (isset($_GET['login'])) {
|
||||
if (isset($_POST['relogin'])) {
|
||||
$_POST['relogin'] = htmlspecialchars($_POST['relogin'], null, 'cp1251');
|
||||
|
||||
define('GAME', true);
|
||||
require_once('_incl_data/__config.php');
|
||||
require_once('_incl_data/class/__db_connect.php');
|
||||
Config::init();
|
||||
Database::init();
|
||||
define('IP', UserIp::get());
|
||||
|
||||
$usr = mysql_fetch_array(mysql_query('SELECT * FROM `users` WHERE `login` = "' . mysql_real_escape_string($_POST['relogin']) . '" LIMIT 1'));
|
||||
|
||||
$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'));
|
||||
$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 = '<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']) {
|
||||
$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 = 'Äîáðûé äåíü.<br>';
|
||||
@ -44,10 +69,20 @@ if (isset($_POST['relogin'])) {
|
||||
$txt .= 'Ñ óâàæåíèåì,<br>';
|
||||
$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;
|
||||
|
303
seasons.php
303
seasons.php
@ -1,303 +0,0 @@
|
||||
<?php
|
||||
function GetRealIp()
|
||||
{
|
||||
if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
|
||||
return $_SERVER['HTTP_CLIENT_IP'];
|
||||
} elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
|
||||
return $_SERVER['HTTP_X_FORWARDED_FOR'];
|
||||
}
|
||||
return $_SERVER['REMOTE_ADDR'];
|
||||
}
|
||||
|
||||
function var_info($vars, $d = false)
|
||||
{
|
||||
echo "<pre style='border: 1px solid gray;border-radius: 5px;padding: 3px 6px;background: #cecece;color: black;font-family: Arial;font-size: 12px;'>\n";
|
||||
var_dump($vars);
|
||||
echo "</pre>\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']) . 'åêð.<br>';
|
||||
}
|
||||
}
|
||||
if (isset($i1['id']) || !isset($i3['id'])) {
|
||||
//Óäàëÿåì i2 èç ìàãàçèíà
|
||||
echo '[Óäàëÿåì ' . $i2['id'] . ' ñ ïðèëàâêà]<br>';
|
||||
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']];
|
||||
|
||||
|
||||
?>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "https://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"/>
|
||||
<meta http-equiv=Cache-Control Content=no-cache>
|
||||
<meta http-equiv=PRAGMA content=NO-CACHE>
|
||||
<meta http-equiv=Expires Content=0>
|
||||
<link href="https://img.new-combats.com/css/main.css" rel="stylesheet" type="text/css">
|
||||
<link href="/sss_css.css" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
<body style="padding-top:0px; margin-top:7px; background-color:#E2E0E0;">
|
||||
<script type="text/javascript" src="js/jquery.js"></script>
|
||||
<h3 style="font-size:25px;"><?= Season::$yy[3] ?> ñåçîí, <?= Season::$date['Y'] ?></h3>
|
||||
<table width="912" border="0" align="center" cellpadding="0" cellspacing="0" class="sss_bg<?= Season::$date['m'] ?>">
|
||||
<tr>
|
||||
<td style="min-height:450px;">
|
||||
<!-- -->
|
||||
<?
|
||||
if ($rz == 1) {
|
||||
//Ñåçîííàÿ ëèíåéêà
|
||||
$html = '';
|
||||
$sp = mysql_query(
|
||||
'SELECT * FROM `sss_m` WHERE `s` = "' . mysql_real_escape_string(Season::$date['m']) . '"'
|
||||
);
|
||||
while ($pl = mysql_fetch_array($sp)) {
|
||||
if ($pl['dd'] > Season::$date['d']) {
|
||||
//Ìèññèÿ åùå çàêðûòà
|
||||
$html .= '<div onClick="location.href=\'seasons.php?rz=2&mis=' . $pl['id'] . '\';" style="background-image:url(https://img.new-combats.com/ss_boss0.png);" class="sss_block_m">' .
|
||||
'<div class="sss_block_m_in2" align="center"><small>Äàòà îòêðûòèÿ</small><br>' . $pl['dd'] . '.' . Season::$date['m'] . '.' . Season::$date['Y'] . '</div>' .
|
||||
'</div>';
|
||||
} else {
|
||||
//Îòêðûòàÿ ìèññèÿ
|
||||
$html .= '<div onClick="location.href=\'seasons.php?rz=2&mis=' . $pl['id'] . '\';" style="background-image:url(https://img.new-combats.com/' . $pl['img'] . ');" class="sss_block_m">' .
|
||||
'<div class="sss_block_m_in">Ïðèñòóïèòü!</div>' .
|
||||
'</div>';
|
||||
}
|
||||
}
|
||||
if ($html == '') {
|
||||
$html = 'Íåò ìèññèé äëÿ òåêóùåãî ñåçîíà';
|
||||
}
|
||||
echo '<div align="center">' . $html . '</div>';
|
||||
} elseif ($rz == 2) {
|
||||
//Îòêðûòàÿ ìèññèÿ
|
||||
$html = '';
|
||||
Season::data($_GET['mis']);
|
||||
if (!isset(Season::$m['id'])) {
|
||||
$html = 'Ìèññèÿ äëÿ òåêóùåãî ñåçîíà íå íàéäåíà';
|
||||
} else {
|
||||
if (Season::$m['dd'] > Season::$date['d']) {
|
||||
//Ìèññèÿ åùå çàêðûòà
|
||||
$html .= '<div onClick="location.href=\'seasons.php?rz=2&mis=' . Season::$m['id'] . '\';" style="background-image:url(https://img.new-combats.com/ss_boss0.png);" class="sss_block_m">' .
|
||||
'<div class="sss_block_m_in2" align="center"><small>Äàòà îòêðûòèÿ</small><br>' . Season::$m['dd'] . '.' . Season::$date['m'] . '.' . Season::$date['Y'] . '</div>' .
|
||||
'</div>';
|
||||
} else {
|
||||
//Îòêðûòàÿ ìèññèÿ
|
||||
$html .= '<div onClick="location.href=\'seasons.php?rz=2&mis=' . Season::$m['id'] . '\';" style="float:left;background-image:url(https://img.new-combats.com/' . Season::$m['img'] . ');" class="sss_block_m">' .
|
||||
'<div class="sss_block_m_in3"> <small>Âûïîëíåíî çàäàíèé:<br>0 / ??</small></div>' .
|
||||
'</div>';
|
||||
//Çàäàíèÿ â ìèññèè
|
||||
$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 .= '<div style="float:right;padding-top:25px;"';
|
||||
if ($nogo == true) {
|
||||
$html .= ' class="graysc"';
|
||||
}
|
||||
$html .= '>';
|
||||
//
|
||||
$html .= '<div align="left" class="sss_mis_div">';
|
||||
$html .= '<img src="https://img.new-combats.com/ss_ico' . $pl['type'] . '.png">';
|
||||
$html .= '<div style="float:right;width:530px;color:#efefef;" align="left">';
|
||||
|
||||
$html .= '<div style="width:500px;margin-top:10px;height:50px;"><small>' . $pl['info'] . '</small></div>';
|
||||
|
||||
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 .= '<div class="sss_line1"><div style="width:' . round(
|
||||
$qe / $pl['var'] * 300
|
||||
) . 'px;" class="sss_line2"></div></div>';
|
||||
if ($qe == $pl['var']) {
|
||||
$html .= ' <button onclick="location.href=\'seasons.php?rz=2&mis=' . round(
|
||||
(int)$_GET['mis']
|
||||
) . '&endq=' . $pl['id'] . '\';" class="sss_btn1">Çàâåðøèòü</button>';
|
||||
}
|
||||
$html .= ' ' . $qe . ' / ' . $pl['var'] . '';
|
||||
}
|
||||
|
||||
if ($f == 1) {
|
||||
$ends[$i] = true;
|
||||
$html .= '<b style="color:#efefef"><img src="https://img.new-combats.com/i/ico/wins.gif"> Çàäàíèå âûïîëíåíî.</b>';
|
||||
} elseif ($nogo == true) {
|
||||
$html .= '<i style="color:#ffa5a5"><img src="https://img.new-combats.com/i/ico/draw.gif"> Òðåáóåò âûïîëíåíèå ïðåäûäóùåãî çàäàíèÿ.</i>';
|
||||
}
|
||||
|
||||
$html .= '</div>';
|
||||
$html .= '</div>';
|
||||
//
|
||||
$html .= '</div>';
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
}
|
||||
echo '<div align="center">' . $html . '</div>';
|
||||
}
|
||||
?>
|
||||
<!-- -->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user