Compare commits
No commits in common. "d8063d89001fcf751f4dded59767d76adf943b9b" and "9e45f170c749fbb7ff9f00d246957ffa03c82be5" have entirely different histories.
d8063d8900
...
9e45f170c7
@ -39,7 +39,7 @@ class Config
|
|||||||
$c['capitalcity'] = $c['host'];
|
$c['capitalcity'] = $c['host'];
|
||||||
$c['abandonedplain'] = $c['host'];
|
$c['abandonedplain'] = $c['host'];
|
||||||
$c['https'] = 'https://' . $c['host'] . DIRECTORY_SEPARATOR;
|
$c['https'] = 'https://' . $c['host'] . DIRECTORY_SEPARATOR;
|
||||||
$c['exit'] = '<script>top.location.href="' . $c['https'] . '";</script>';
|
$c['exit'] = '<script>top.location="' . $c['https'] . '";</script>';
|
||||||
$c['support'] = 'support@' . $c['host'];
|
$c['support'] = 'support@' . $c['host'];
|
||||||
|
|
||||||
|
|
||||||
|
@ -1201,50 +1201,56 @@ FROM `items_users` AS `iu` LEFT JOIN `items_main` AS `im` ON (`im`.`id` = `iu`.`
|
|||||||
return $bus['login_BIG'];
|
return $bus['login_BIG'];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function microLogin(int $id, int $t, int $nnz = 1): string
|
public function microLogin(int $id, $t, $nnz = 1): string
|
||||||
{
|
{
|
||||||
if ($t !== 1) {
|
if ($t == 1) {
|
||||||
$inf['id'] = $id;
|
$inf = mysql_fetch_array(
|
||||||
} else {
|
mysql_query(
|
||||||
$inf = Db::getRow(
|
'SELECT
|
||||||
'select
|
`u`.`id`,
|
||||||
users.id,
|
`u`.`align`,`u`.`align2`,
|
||||||
invis,
|
`u`.`login`,
|
||||||
users.align,
|
`u`.`clan`,
|
||||||
align2,
|
`u`.`level`,
|
||||||
clan,
|
`u`.`city`,
|
||||||
cityreg,
|
`u`.`online`,
|
||||||
login,
|
`u`.`sex`,`u`.`autospell`,`u`.`noplaw`,
|
||||||
users.level,
|
`u`.`cityreg`,
|
||||||
c.name_mini
|
`u`.`palpro`,
|
||||||
from users left join clan as c on c.id = users.clan
|
`u`.`invis`,
|
||||||
where users.id = ?',
|
`st`.`hpNow` FROM `users` AS `u` LEFT JOIN `stats` AS `st` ON (`u`.`id` = `st`.`id`) WHERE `u`.`id`="' . mysql_real_escape_string(
|
||||||
[$id]
|
$id
|
||||||
|
) . '" OR `u`.`login` = "' . mysql_real_escape_string((int)$id) . '" LIMIT 1'
|
||||||
|
)
|
||||||
);
|
);
|
||||||
|
} else {
|
||||||
|
$inf['id'] = $id;
|
||||||
}
|
}
|
||||||
$r = '';
|
$r = '';
|
||||||
if (
|
if (isset($inf['id']) && (($inf['invis'] < time(
|
||||||
isset($inf['id']) &&
|
) && $inf['invis'] != 1) || ($this->info['id'] == $inf['id'] && $nnz == 1))) {
|
||||||
(
|
|
||||||
($inf['invis'] < time() && $inf['invis'] !== 1) ||
|
|
||||||
($this->info['id'] == $inf['id'] && $nnz === 1)
|
|
||||||
)
|
|
||||||
) {
|
|
||||||
if ($inf['align'] > 0) {
|
if ($inf['align'] > 0) {
|
||||||
$r .= '<img src="https://' . Config::get('img') . '/i/align/align' . $inf['align'] . '.gif" />';
|
$r .= '<img src="https://img.new-combats.com/i/align/align' . $inf['align'] . '.gif" />';
|
||||||
}
|
}
|
||||||
if ($inf['align2'] > 0) {
|
if ($inf['align2'] > 0) {
|
||||||
$r .= '<img src="https://' . Config::get('img') . '/i/align/align' . $inf['align2'] . '.gif" />';
|
$r .= '<img src="https://img.new-combats.com/i/align/align' . $inf['align2'] . '.gif" />';
|
||||||
|
}
|
||||||
|
if ($inf['clan'] > 0) {
|
||||||
|
$cln = mysql_fetch_array(
|
||||||
|
mysql_query(
|
||||||
|
'SELECT `id`,`name`,`name_mini`,`align`,`type_m`,`money1`,`exp` FROM `clan` WHERE `id` = "' . $inf['clan'] . '" LIMIT 1'
|
||||||
|
)
|
||||||
|
);
|
||||||
|
if (isset($cln['id'])) {
|
||||||
|
$r .= '<img src="https://img.new-combats.com/i/clan/' . $cln['name_mini'] . '.gif" />';
|
||||||
}
|
}
|
||||||
if ($inf['name_mini']) {
|
|
||||||
$r .= '<img src="https://' . Config::get('img') . '/i/clan/' . $inf['name_mini'] . '.gif" />';
|
|
||||||
}
|
}
|
||||||
if ($inf['cityreg'] == '') {
|
if ($inf['cityreg'] == '') {
|
||||||
$inf['cityreg'] = 'capitalcity';
|
$inf['cityreg'] = 'capitalcity';
|
||||||
}
|
}
|
||||||
$r .= '<strong>' . $inf['login'] . '</strong> [' . $inf['level'] . ']<a target="_blank" href="' . Config::get('https') . '/info/' . $inf['id'] . '"><img src="https://' . Config::get('img') . '/i/inf_' . $inf['cityreg'] . '.gif" /></a>';
|
$r .= ' <strong>' . $inf['login'] . '</strong> [' . $inf['level'] . ']<a target="_blank" href="https://new-combats.com/info/' . $inf['id'] . '"><img src="https://img.new-combats.com/i/inf_' . $inf['cityreg'] . '.gif" /></a>';
|
||||||
} else {
|
} else {
|
||||||
$r = '<strong><i>Íåâèäèìêà</i></strong> [??]';
|
$r = '<strong><i>Íåâèäèìêà</i></strong> [??]<a target="_blank" href="https://new-combats.com/info/0"><img src="https://img.new-combats.com/i/inf_capitalcity.gif" /></a>';
|
||||||
}
|
}
|
||||||
return $r;
|
return $r;
|
||||||
}
|
}
|
||||||
@ -1294,7 +1300,6 @@ FROM `items_users` AS `iu` LEFT JOIN `items_main` AS `im` ON (`im`.`id` = `iu`.`
|
|||||||
$this->info = Db::getRow(
|
$this->info = Db::getRow(
|
||||||
'select
|
'select
|
||||||
*,
|
*,
|
||||||
users.id as id,
|
|
||||||
users.level as level,
|
users.level as level,
|
||||||
users.align as align,
|
users.align as align,
|
||||||
users.sex as sex,
|
users.sex as sex,
|
||||||
@ -1317,23 +1322,29 @@ FROM `items_users` AS `iu` LEFT JOIN `items_main` AS `im` ON (`im`.`id` = `iu`.`
|
|||||||
|
|
||||||
if (!isset($this->info['achiv']['id'])) {
|
if (!isset($this->info['achiv']['id'])) {
|
||||||
Db::sql('insert into users_achiv (id) value (?)', [$this->info['id']]);
|
Db::sql('insert into users_achiv (id) value (?)', [$this->info['id']]);
|
||||||
|
$this->info['achiv'] = mysql_fetch_array(
|
||||||
|
mysql_query('SELECT * FROM `users_achiv` WHERE `id`="' . $this->info['id'] . '" LIMIT 1')
|
||||||
|
);
|
||||||
$this->info['achiv'] = Db::getRow('select * from users_achiv where id = ?', [$this->info['id']]);
|
$this->info['achiv'] = Db::getRow('select * from users_achiv where id = ?', [$this->info['id']]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Core\Config::get('securetime') > 0) {
|
if (Core\Config::get('securetime') > 0) {
|
||||||
if (!defined('IP')) {
|
if (!defined('IP')) {
|
||||||
define('IP', $_SERVER['REMOTE_ADDR']);
|
$dip = $_SERVER['REMOTE_ADDR'];
|
||||||
|
define('IP', $dip);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($this->info['id']) && ($this->info['ip'] != IP || $this->info['banned'] > 0) && $_SERVER['REQUEST_URI'] != '/') {
|
if (isset($this->info['id']) && ($this->info['ip'] != IP || $this->info['banned'] > 0) && $_SERVER['REQUEST_URI'] != '/') {
|
||||||
unset($this->info, $_COOKIE['login'], $_COOKIE['pass']);
|
unset($this->info, $_COOKIE['login'], $_COOKIE['pass']);
|
||||||
die(Config::get('exit'));
|
die('<script>top.location.href="https://new-combats.com/";</script>');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($this->info['id']) && $this->info['exp'] > 300000 && $this->info['twink'] > 0) {
|
if (isset($this->info['id']) && $this->info['exp'] > 300000 && $this->info['twink'] > 0) {
|
||||||
$this->info['exp'] = 300000;
|
$this->info['exp'] = 300000;
|
||||||
Db::sql('update stats set exp = ? where id = ?', [$this->info['exp'], $this->info['id']]);
|
mysql_query(
|
||||||
|
'UPDATE `users` SET `exp` = ' . $this->info['exp'] . ' WHERE `id` = "' . $this->info['id'] . '" LIMIT 1'
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($this->info['id']) && $this->info['inUser']) {
|
if (isset($this->info['id']) && $this->info['inUser']) {
|
||||||
@ -1378,7 +1389,11 @@ FROM `items_users` AS `iu` LEFT JOIN `items_main` AS `im` ON (`im`.`id` = `iu`.`
|
|||||||
$this->info['__id'] = $md[8];
|
$this->info['__id'] = $md[8];
|
||||||
$this->info['__level'] = $md[9];
|
$this->info['__level'] = $md[9];
|
||||||
}
|
}
|
||||||
if (!isset ($_COOKIE['btl']) || $this->info['battle'] != $_COOKIE['btl']) {
|
if (isset ($_COOKIE['btl'])) {
|
||||||
|
if ($this->info['battle'] != $_COOKIE['btl']) {
|
||||||
|
setcookie('btl', $this->info['battle'], time() + 86400);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
setcookie('btl', $this->info['battle'], time() + 86400);
|
setcookie('btl', $this->info['battle'], time() + 86400);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1392,6 +1407,7 @@ FROM `items_users` AS `iu` LEFT JOIN `items_main` AS `im` ON (`im`.`id` = `iu`.`
|
|||||||
if (!isset($this->info['id'])) {
|
if (!isset($this->info['id'])) {
|
||||||
unset($this->info);
|
unset($this->info);
|
||||||
setcookie('login', '', time() - 60 * 60 * 24, '', Core\Config::get('host'));
|
setcookie('login', '', time() - 60 * 60 * 24, '', Core\Config::get('host'));
|
||||||
|
setcookie('pass', '', time() - 60 * 60 * 24, '', Core\Config::get('host'));
|
||||||
} else {
|
} else {
|
||||||
echo 'stats is lost.';
|
echo 'stats is lost.';
|
||||||
}
|
}
|
||||||
@ -1564,7 +1580,7 @@ FROM `items_users` AS `iu` LEFT JOIN `items_main` AS `im` ON (`im`.`id` = `iu`.`
|
|||||||
} else {
|
} else {
|
||||||
$t = mysql_fetch_array(
|
$t = mysql_fetch_array(
|
||||||
mysql_query(
|
mysql_query(
|
||||||
'SELECT `id`,`login`,`login2`,`pass`,`pass2`,`emailconfirmation`,`securetime`,`online`,`ip`,`ipreg`,`joinIP`,`admin`,`city`,`room`,`banned`,`auth`,`align`,`mod_zvanie`,`clan`,`nextMsg`,`molch1`,`molch2`,`molch3`,`level`,`money`,`battle`,`cityreg`,`invBlock`,`invBlockCode`,`zag`,`a1`,`q1`,`mail`,`name`,`bithday`,`sex`,`hobby`,`chatColor`,`timereg`,`add_smiles`,`obraz`,`win`,`lose`,`nich`,`host`,`info_delete`,`dateEnter`,`afk`,`dnd`,`timeMain`,`clan_prava`,`addpr`,`marry`,`city2`,`invis`,`bot_id`,`haos`,`host_reg`,`inUser`,`jail`,`animal`,`vip`,`catch`,`frg`,`no_ip`,`type_pers`,`bot_room` FROM `users` WHERE `login` = "' . mysql_real_escape_string(
|
'SELECT `id`,`login`,`login2`,`pass`,`pass2`,`emailconfirmation`,`securetime`,`sys`,`online`,`ip`,`ipreg`,`joinIP`,`admin`,`city`,`room`,`banned`,`auth`,`align`,`mod_zvanie`,`clan`,`nextMsg`,`molch1`,`molch2`,`molch3`,`level`,`money`,`battle`,`cityreg`,`invBlock`,`invBlockCode`,`zag`,`a1`,`q1`,`mail`,`name`,`bithday`,`sex`,`hobby`,`chatColor`,`timereg`,`add_smiles`,`obraz`,`win`,`lose`,`nich`,`cityreg2`,`host`,`info_delete`,`dateEnter`,`afk`,`dnd`,`timeMain`,`clan_prava`,`addpr`,`marry`,`city2`,`invis`,`bot_id`,`haos`,`host_reg`,`inUser`,`jail`,`animal`,`vip`,`catch`,`frg`,`no_ip`,`type_pers`,`bot_room` FROM `users` WHERE `login` = "' . mysql_real_escape_string(
|
||||||
$_POST['trnLogin']
|
$_POST['trnLogin']
|
||||||
) . '" AND `city` = "' . $this->info['city'] . '" LIMIT 1'
|
) . '" AND `city` = "' . $this->info['city'] . '" LIMIT 1'
|
||||||
)
|
)
|
||||||
@ -2061,7 +2077,7 @@ FROM `items_users` AS `iu` LEFT JOIN `items_main` AS `im` ON (`im`.`id` = `iu`.`
|
|||||||
return mysql_fetch_array(
|
return mysql_fetch_array(
|
||||||
mysql_query(
|
mysql_query(
|
||||||
'SELECT
|
'SELECT
|
||||||
`u`.`id`,`u`.`login`,`u`.`login2`,`u`.`pass`,`u`.`pass2`,`u`.`repass`,`u`.`notrhod`,`u`.`emailconfirmation`,`u`.`securetime`,`u`.`palpro`,`u`.`online`,`u`.`ip`,`u`.`ipreg`,`u`.`joinIP`,`u`.`admin`,`u`.`city`,`u`.`room`,`u`.`banned`,`u`.`auth`,`u`.`align`,`u`.`align2`,`u`.`align_lvl`,`u`.`align_exp`,`u`.`mod_zvanie`,`u`.`clan`,`u`.`nextMsg`,`u`.`molch1`,`u`.`molch2`,`u`.`molch3`,`u`.`level`,`u`.`money`,`u`.`money2`,`u`.`money4`,`u`.`money3`,`u`.`battle`,`u`.`cityreg`,`u`.`invBlock`,`u`.`allLock`,`u`.`invBlockCode`,`u`.`zag`,`u`.`a1`,`u`.`q1`,`u`.`mail`,`u`.`name`,`u`.`bithday`,`u`.`sex`,`u`.`autospell`,`u`.`noplaw`,`u`.`hobby`,`u`.`chatColor`,`u`.`timereg`,`u`.`add_smiles`,`u`.`obraz`,`u`.`win`,`u`.`win_bs`,`u`.`lose`,`u`.`nich`,`u`.`host`,`u`.`info_delete`,`u`.`dateEnter`,`u`.`afk`,`u`.`dnd`,`u`.`timeMain`,`u`.`clan_prava`,`u`.`addpr`,`u`.`marry`,`u`.`city2`,`u`.`invis`,`u`.`bot_id`,`u`.`haos`,`u`.`host_reg`,`u`.`inUser`,`u`.`inTurnir`,`u`.`inTurnirnew`,`u`.`jail`,`u`.`animal`,`u`.`vip`,`u`.`catch`,`u`.`frg`,`u`.`no_ip`,`u`.`type_pers`,`u`.`bot_room`,`u`.`clan_delay`,`u`.`bukmeker`,
|
`u`.`id`,`u`.`login`,`u`.`login2`,`u`.`pass`,`u`.`pass2`,`u`.`repass`,`u`.`notrhod`,`u`.`emailconfirmation`,`u`.`securetime`,`u`.`sys`,`u`.`palpro`,`u`.`online`,`u`.`ip`,`u`.`ipreg`,`u`.`joinIP`,`u`.`admin`,`u`.`city`,`u`.`room`,`u`.`banned`,`u`.`auth`,`u`.`align`,`u`.`align2`,`u`.`align_lvl`,`u`.`align_exp`,`u`.`mod_zvanie`,`u`.`clan`,`u`.`nextMsg`,`u`.`molch1`,`u`.`molch2`,`u`.`molch3`,`u`.`level`,`u`.`money`,`u`.`money2`,`u`.`money4`,`u`.`money3`,`u`.`battle`,`u`.`cityreg`,`u`.`invBlock`,`u`.`allLock`,`u`.`invBlockCode`,`u`.`zag`,`u`.`a1`,`u`.`q1`,`u`.`mail`,`u`.`name`,`u`.`bithday`,`u`.`sex`,`u`.`autospell`,`u`.`noplaw`,`u`.`hobby`,`u`.`chatColor`,`u`.`timereg`,`u`.`add_smiles`,`u`.`obraz`,`u`.`win`,`u`.`win_bs`,`u`.`lose`,`u`.`nich`,`u`.`cityreg2`,`u`.`host`,`u`.`info_delete`,`u`.`dateEnter`,`u`.`afk`,`u`.`dnd`,`u`.`timeMain`,`u`.`clan_prava`,`u`.`addpr`,`u`.`marry`,`u`.`city2`,`u`.`invis`,`u`.`bot_id`,`u`.`haos`,`u`.`host_reg`,`u`.`inUser`,`u`.`inTurnir`,`u`.`inTurnirnew`,`u`.`jail`,`u`.`animal`,`u`.`vip`,`u`.`catch`,`u`.`frg`,`u`.`no_ip`,`u`.`type_pers`,`u`.`bot_room`,`u`.`clan_delay`,`u`.`bukmeker`,
|
||||||
`st`.`id`,`st`.`lider`,`st`.`btl_cof`,`st`.`last_hp`,`st`.`last_pr`,`st`.`smena`,`st`.`stats`,`st`.`hpAll`,`st`.`mpAll`,`st`.`hpNow`,`st`.`mpNow`,`st`.`enNow`,`st`.`transfers`,`st`.`regHP`,`st`.`regMP`,`st`.`showmenu`,`st`.`prmenu`,`st`.`ability`,`st`.`skills`,`st`.`sskills`,`st`.`nskills`,`st`.`exp`,`st`.`minHP`,`st`.`minMP`,`st`.`zv`,`st`.`dn`,`st`.`dnow`,`st`.`team`,`st`.`battle_yron`,`st`.`battle_exp`,`st`.`enemy`,`st`.`last_a`,`st`.`last_b`,`st`.`battle_text`,`st`.`upLevel`,`st`.`wipe`,`st`.`bagStats`,`st`.`timeGo`,`st`.`timeGoL`,`st`.`nextAct`,`st`.`active`,`st`.`bot`,`st`.`lastAlign`,`st`.`tactic1`,`st`.`tactic2`,`st`.`tactic3`,`st`.`tactic4`,`st`.`tactic5`,`st`.`tactic6`,`st`.`tactic7`,`st`.`x`,`st`.`y`,`st`.`s`,`st`.`battleEnd`,`st`.`priemslot`,`st`.`priems`,`st`.`priems_z`,`st`.`bet`,`st`.`clone`,`st`.`atack`,`st`.`bbexp`,`st`.`ref_data`,`st`.`res_x`,`st`.`res_y`,`st`.`res_s`,`st`.`bn_capitalcity`,`st`.`bn_demonscity`
|
`st`.`id`,`st`.`lider`,`st`.`btl_cof`,`st`.`last_hp`,`st`.`last_pr`,`st`.`smena`,`st`.`stats`,`st`.`hpAll`,`st`.`mpAll`,`st`.`hpNow`,`st`.`mpNow`,`st`.`enNow`,`st`.`transfers`,`st`.`regHP`,`st`.`regMP`,`st`.`showmenu`,`st`.`prmenu`,`st`.`ability`,`st`.`skills`,`st`.`sskills`,`st`.`nskills`,`st`.`exp`,`st`.`minHP`,`st`.`minMP`,`st`.`zv`,`st`.`dn`,`st`.`dnow`,`st`.`team`,`st`.`battle_yron`,`st`.`battle_exp`,`st`.`enemy`,`st`.`last_a`,`st`.`last_b`,`st`.`battle_text`,`st`.`upLevel`,`st`.`wipe`,`st`.`bagStats`,`st`.`timeGo`,`st`.`timeGoL`,`st`.`nextAct`,`st`.`active`,`st`.`bot`,`st`.`lastAlign`,`st`.`tactic1`,`st`.`tactic2`,`st`.`tactic3`,`st`.`tactic4`,`st`.`tactic5`,`st`.`tactic6`,`st`.`tactic7`,`st`.`x`,`st`.`y`,`st`.`s`,`st`.`battleEnd`,`st`.`priemslot`,`st`.`priems`,`st`.`priems_z`,`st`.`bet`,`st`.`clone`,`st`.`atack`,`st`.`bbexp`,`st`.`ref_data`,`st`.`res_x`,`st`.`res_y`,`st`.`res_s`,`st`.`bn_capitalcity`,`st`.`bn_demonscity`
|
||||||
FROM `users` AS `u` LEFT JOIN `stats` AS `st` ON (`u`.`id` = `st`.`id`) WHERE ' . $whr . ' LIMIT 1'
|
FROM `users` AS `u` LEFT JOIN `stats` AS `st` ON (`u`.`id` = `st`.`id`) WHERE ' . $whr . ' LIMIT 1'
|
||||||
)
|
)
|
||||||
|
@ -10,8 +10,6 @@ Config::init();
|
|||||||
if (!empty($_GET['id']) && !empty($_GET['code'])) {
|
if (!empty($_GET['id']) && !empty($_GET['code'])) {
|
||||||
$status = Confirmation::byCode((int)$_GET['id'], (int)$_GET['code']);
|
$status = Confirmation::byCode((int)$_GET['id'], (int)$_GET['code']);
|
||||||
}
|
}
|
||||||
|
|
||||||
header('refresh:5;url=' . Config::get('https'));
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
@ -1,15 +1,18 @@
|
|||||||
<?php
|
<?
|
||||||
if (!defined('GAME')) {
|
if(!defined('GAME'))
|
||||||
|
{
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$re = '';
|
$re = '';
|
||||||
if (isset($u->error2)) {
|
if(isset($u->error2))
|
||||||
|
{
|
||||||
$re = $u->error2;
|
$re = $u->error2;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( isset($_GET['nightatack'])) {
|
if( isset($_GET['nightatack'])) {
|
||||||
|
//if( date('H') >= 22 || date('H') < 6 ) {
|
||||||
if(
|
if(
|
||||||
$u->room['name'] == 'Öåíòðàëüíàÿ ïëîùàäü' ||
|
$u->room['name'] == 'Öåíòðàëüíàÿ ïëîùàäü' ||
|
||||||
$u->room['name'] == 'Ñòðàøèëêèíà óëèöà' ||
|
$u->room['name'] == 'Ñòðàøèëêèíà óëèöà' ||
|
||||||
@ -19,30 +22,16 @@ if (isset($_GET['nightatack'])) {
|
|||||||
|
|
||||||
if($u->room['noatack'] == 0) {
|
if($u->room['noatack'] == 0) {
|
||||||
|
|
||||||
$ua = mysql_fetch_array(
|
$ua = mysql_fetch_array(mysql_query('SELECT `s`.*,`u`.* FROM `stats` AS `s` LEFT JOIN `users` AS `u` ON `s`.`id` = `u`.`id` WHERE `u`.`login` = "'.mysql_real_escape_string($_GET['login']).'" LIMIT 1'));
|
||||||
mysql_query(
|
|
||||||
'SELECT `s`.*,`u`.* FROM `stats` AS `s` LEFT JOIN `users` AS `u` ON `s`.`id` = `u`.`id` WHERE `u`.`login` = "' . mysql_real_escape_string(
|
|
||||||
$_GET['login']
|
|
||||||
) . '" LIMIT 1'
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
$battle = mysql_fetch_array(
|
$battle = mysql_fetch_array(mysql_query('SELECT `id` FROM `battle_last` WHERE `uid` = "'.$u->info['id'].'" AND `battle_id` = "'.$ua['battle'].'" LIMIT 1'));
|
||||||
mysql_query(
|
|
||||||
'SELECT `id` FROM `battle_last` WHERE `uid` = "' . $u->info['id'] . '" AND `battle_id` = "' . $ua['battle'] . '" LIMIT 1'
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
if(isset($ua['id']) && $ua['online'] > time()-520) {
|
if(isset($ua['id']) && $ua['online'] > time()-520) {
|
||||||
$usta = $u->getStats($ua['id'],0);
|
$usta = $u->getStats($ua['id'],0);
|
||||||
$minHp = $usta['hpAll']/100*33;
|
$minHp = $usta['hpAll']/100*33;
|
||||||
|
|
||||||
if($ua['battle'] > 0 ) {
|
if($ua['battle'] > 0 ) {
|
||||||
$uabt = mysql_fetch_array(
|
$uabt = mysql_fetch_array(mysql_query('SELECT `id` FROM `battle` WHERE `id` = "'.$ua['battle'].'" AND `team_win` = "-1" LIMIT 1'));
|
||||||
mysql_query(
|
|
||||||
'SELECT `id` FROM `battle` WHERE `id` = "' . $ua['battle'] . '" AND `team_win` = "-1" LIMIT 1'
|
|
||||||
)
|
|
||||||
);
|
|
||||||
if(!isset($uabt['id'])) {
|
if(!isset($uabt['id'])) {
|
||||||
$ua['battle'] = 0;
|
$ua['battle'] = 0;
|
||||||
}
|
}
|
||||||
@ -61,25 +50,36 @@ if (isset($_GET['nightatack'])) {
|
|||||||
$re = 'Íåëüçÿ âìåøàòüñÿ, âû óæå áûëè â ýòîì ïîåäèíêå.';
|
$re = 'Íåëüçÿ âìåøàòüñÿ, âû óæå áûëè â ýòîì ïîåäèíêå.';
|
||||||
}elseif($ua['admin']==1 && $u->info['admin'] == 0) {
|
}elseif($ua['admin']==1 && $u->info['admin'] == 0) {
|
||||||
$re = 'Íà êîãî ïðûãàåøü, ùåíîê?';
|
$re = 'Íà êîãî ïðûãàåøü, ùåíîê?';
|
||||||
} elseif ($ua['room'] == $u->info['room'] && ($minHp <= $usta['hpNow'] || $ua['battle'] > 0)) {
|
}elseif($ua['room']==$u->info['room'] && ($minHp <= $usta['hpNow'] || $ua['battle'] > 0))
|
||||||
$goodt = $magic->atackUser(
|
{
|
||||||
$u->info['id'], $ua['id'], $ua['team'], $ua['battle'], $ua['bbexp'], $ua['type_pers']
|
|
||||||
);
|
if( $ua['type_pers'] == 0 ) {
|
||||||
|
/*if( $cruw == 2 ) {
|
||||||
|
$ua['type_pers'] = 99;
|
||||||
|
}else{
|
||||||
|
$ua['type_pers'] = 50;
|
||||||
|
}*/
|
||||||
|
}
|
||||||
|
if( $ua['no_ip'] == 'trupojor' ) {
|
||||||
|
$ua['type_pers'] = 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
$goodt=$magic->atackUser($u->info['id'],$ua['id'],$ua['team'],$ua['battle'],$ua['bbexp'],$ua['type_pers']);
|
||||||
|
|
||||||
if( $u->error == '' ) {
|
if( $u->error == '' ) {
|
||||||
|
|
||||||
if( $cruw == 2 ) {
|
if( $cruw == 2 ) {
|
||||||
$rtxt = '[img[items/pal_button9.gif]] "'.$u->info['login'].'" ñîâåðøèë'.$sx.' êðîâàâîå íàïàäåíèå íà ïåðñîíàæà "'.$ua['login'].'".';
|
$rtxt = '[img[items/pal_button9.gif]] "'.$u->info['login'].'" ñîâåðøèë'.$sx.' êðîâàâîå íàïàäåíèå íà ïåðñîíàæà "'.$ua['login'].'".';
|
||||||
}else{
|
}else{
|
||||||
$rtxt = '[img[items/pal_button8.gif]] "'.$u->info['login'].'" ñîâåðøèë'.$sx.' íàïàäåíèå íà ïåðñîíàæà "'.$ua['login'].'".';
|
$rtxt = '[img[items/pal_button8.gif]] "'.$u->info['login'].'" ñîâåðøèë'.$sx.' íàïàäåíèå íà ïåðñîíàæà "'.$ua['login'].'".';
|
||||||
}
|
}
|
||||||
if ($goodt > 0) {
|
if ($goodt>0)
|
||||||
mysql_query(
|
{
|
||||||
"INSERT INTO `chat` (`new`,`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`,`typeTime`) VALUES (1,'" . $u->info['city'] . "','" . $u->info['room'] . "','','','" . $rtxt . "','" . time(
|
mysql_query("INSERT INTO `chat` (`new`,`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`,`typeTime`) VALUES (1,'".$u->info['city']."','".$u->info['room']."','','','".$rtxt."','".time()."','6','0','1')");
|
||||||
) . "','6','0','1')"
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
unset($goodt);
|
unset($goodt);
|
||||||
header('location: main.php');
|
header('location: main.php');
|
||||||
|
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
@ -93,6 +93,10 @@ if (isset($_GET['nightatack'])) {
|
|||||||
//Íà ïåðñîíàæà íåëüçÿ íàïàñòü
|
//Íà ïåðñîíàæà íåëüçÿ íàïàñòü
|
||||||
$u->error = 'Ïåðñîíàæ íå â èãðå, ëèáî íà íåì íåò ìåòêè';
|
$u->error = 'Ïåðñîíàæ íå â èãðå, ëèáî íà íåì íåò ìåòêè';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//$u->error = 'Âàì çàïðåùàåòñÿ àòàêîâàòü áåç ðàçðåøåíèÿ...1';
|
||||||
|
//$re = $u->error;
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
$re = 'Íàïàäàòü âîçìîæíî òîëüêî íà óëèöå...';
|
$re = 'Íàïàäàòü âîçìîæíî òîëüêî íà óëèöå...';
|
||||||
}
|
}
|
||||||
@ -101,68 +105,40 @@ if (isset($_GET['nightatack'])) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function thisInfRm($id, $tp = null, $json = false)
|
function thisInfRm($id,$tp = NULL, $json = false){
|
||||||
{
|
|
||||||
global $u;
|
global $u;
|
||||||
$rm = mysql_fetch_array(
|
$rm = mysql_fetch_array(mysql_query('SELECT * FROM `room` WHERE `code` = "'.mysql_real_escape_string($id).'" AND `city` = "'.$u->info['city'].'" LIMIT 1'));
|
||||||
mysql_query(
|
|
||||||
'SELECT * FROM `room` WHERE `code` = "' . mysql_real_escape_string(
|
|
||||||
$id
|
|
||||||
) . '" AND `city` = "' . $u->info['city'] . '" LIMIT 1'
|
|
||||||
)
|
|
||||||
);
|
|
||||||
$inf = 'Çäàíèå áûëî ðàçðóøåíî';
|
$inf = 'Çäàíèå áûëî ðàçðóøåíî';
|
||||||
if(isset($rm['id'])){
|
if(isset($rm['id'])){
|
||||||
$rown = mysql_fetch_array(
|
$rown = mysql_fetch_array(mysql_query('SELECT COUNT(`id`) FROM `users` WHERE `online` > '.(time()-120).' AND `city` = "'.$u->info['city'].'" AND `room` = "'.$rm['id'].'"'));
|
||||||
mysql_query(
|
if($tp==NULL){
|
||||||
'SELECT COUNT(`id`) FROM `users` WHERE `online` > ' . (time(
|
|
||||||
) - 120) . ' AND `city` = "' . $u->info['city'] . '" AND `room` = "' . $rm['id'] . '"'
|
|
||||||
)
|
|
||||||
);
|
|
||||||
if ($tp == null) {
|
|
||||||
$inf = '<b>'.$rm['name'].'</b><br>Ñåé÷àñ â êîìíàòå '.(0+$rown[0]).' ÷åë.';
|
$inf = '<b>'.$rm['name'].'</b><br>Ñåé÷àñ â êîìíàòå '.(0+$rown[0]).' ÷åë.';
|
||||||
}else{
|
}else{
|
||||||
$inf = $rm['name']."\nÑåé÷àñ â êîìíàòå ".(0+$rown[0]).' ÷åë.';
|
$inf = $rm['name']."\nÑåé÷àñ â êîìíàòå ".(0+$rown[0]).' ÷åë.';
|
||||||
}
|
}
|
||||||
if ($json) {
|
if($json == true)
|
||||||
return [$rm['code'], iconv("WINDOWS-1251", "UTF-8", $rm['name']), (0 + $rown[0])];
|
return array($rm['code'], iconv("WINDOWS-1251", "UTF-8", $rm['name']), (0+$rown[0]));
|
||||||
}
|
}
|
||||||
}
|
if($json == true)
|
||||||
if ($json) {
|
return array('false', iconv("WINDOWS-1251", "UTF-8", $inf), (0+$rown[0]));
|
||||||
return ['false', iconv("WINDOWS-1251", "UTF-8", $inf), (0 + $rown[0])];
|
if($tp==NULL){
|
||||||
}
|
|
||||||
if ($tp == null) {
|
|
||||||
echo 'onMouseOver="top.hi(this,\'<div align=right>'.$inf.'</div>\',event,0,1,1,1,\'max-height:240px\');" onMouseOut="top.hic();" onMouseDown="top.hic();" onClick="goLocal(\'main.php?loc='.$rm['code'].'\',\''.$rm['name'].'\');"';
|
echo 'onMouseOver="top.hi(this,\'<div align=right>'.$inf.'</div>\',event,0,1,1,1,\'max-height:240px\');" onMouseOut="top.hic();" onMouseDown="top.hic();" onClick="goLocal(\'main.php?loc='.$rm['code'].'\',\''.$rm['name'].'\');"';
|
||||||
}else{
|
}else{
|
||||||
echo $inf;
|
echo $inf;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($_GET['loc'])) {
|
if(isset($_GET['loc']))
|
||||||
$go = mysql_fetch_array(
|
{
|
||||||
mysql_query(
|
$go = mysql_fetch_array(mysql_query('SELECT * FROM `room` WHERE `code` = "'.mysql_real_escape_string($_GET['loc']).'" AND `city` = "'.$u->info['city'].'" LIMIT 1'));
|
||||||
'SELECT * FROM `room` WHERE `code` = "' . mysql_real_escape_string(
|
if($u->info['id']=='340379' or $u->info['id']=='399105'){
|
||||||
$_GET['loc']
|
//print_r($u->info);
|
||||||
) . '" AND `city` = "' . $u->info['city'] . '" LIMIT 1'
|
}
|
||||||
)
|
$tr_pl = mysql_fetch_array(mysql_query('SELECT `id`,`v1` FROM `eff_users` WHERE `id_eff` = 4 AND `uid` = "'.$u->info['id'].'" AND `delete` = "0" ORDER BY `v1` DESC LIMIT 1'));
|
||||||
);
|
|
||||||
$tr_pl = mysql_fetch_array(
|
|
||||||
mysql_query(
|
|
||||||
'SELECT `id`,`v1` FROM `eff_users` WHERE `id_eff` = 4 AND `uid` = "' . $u->info['id'] . '" AND `delete` = "0" ORDER BY `v1` DESC LIMIT 1'
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
//Ïðîâåðÿåì êîñòûëè
|
//Ïðîâåðÿåì êîñòûëè
|
||||||
$kos1 = mysql_fetch_array(
|
$kos1 = mysql_fetch_array(mysql_query('SELECT `id`,`item_id` FROM `items_users` WHERE `inOdet` = 3 AND `uid` = "'.$u->info['id'].'" AND `delete` = 0 LIMIT 1'));
|
||||||
mysql_query(
|
$kos2 = mysql_fetch_array(mysql_query('SELECT `id`,`item_id` FROM `items_users` WHERE `inOdet` = 14 AND `uid` = "'.$u->info['id'].'" AND `delete` = 0 LIMIT 1'));
|
||||||
'SELECT `id`,`item_id` FROM `items_users` WHERE `inOdet` = 3 AND `uid` = "' . $u->info['id'] . '" AND `delete` = 0 LIMIT 1'
|
|
||||||
)
|
|
||||||
);
|
|
||||||
$kos2 = mysql_fetch_array(
|
|
||||||
mysql_query(
|
|
||||||
'SELECT `id`,`item_id` FROM `items_users` WHERE `inOdet` = 14 AND `uid` = "' . $u->info['id'] . '" AND `delete` = 0 LIMIT 1'
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
if( $kos1['item_id'] == 630 || $kos1['item_id'] == 631 ) {
|
if( $kos1['item_id'] == 630 || $kos1['item_id'] == 631 ) {
|
||||||
$kos1['good'] = 1;
|
$kos1['good'] = 1;
|
||||||
@ -206,66 +182,71 @@ if (isset($_GET['loc'])) {
|
|||||||
//Òðàâìà...
|
//Òðàâìà...
|
||||||
}elseif($u->info['align'] == 2 && $go['nochaos'] == 1) {
|
}elseif($u->info['align'] == 2 && $go['nochaos'] == 1) {
|
||||||
$re = 'Ïðîõîä äëÿ õàîñíèêîâ çàêðûò!';
|
$re = 'Ïðîõîä äëÿ õàîñíèêîâ çàêðûò!';
|
||||||
} elseif ($u->info['inTurnir'] > 0) {
|
//}elseif($u->info['palpro'] < time()) {
|
||||||
|
//$re = '<div align="left">Äëÿ ïðîõîäà íóæíî ïðîéòè ïðîâåðêó ó ïàëàäèíîâ</div>';
|
||||||
|
}elseif($u->info['inTurnir'] > 0)
|
||||||
|
{
|
||||||
$re = 'Âû íå ìîæåòå ïåðåìåùàòüñÿ, Âû ïðèíÿëè çàÿâêó íà òóðíèð ...';
|
$re = 'Âû íå ìîæåòå ïåðåìåùàòüñÿ, Âû ïðèíÿëè çàÿâêó íà òóðíèð ...';
|
||||||
} elseif (($kos1['good'] == 0 && $kos2['good'] == 0) && ((!isset($zadej) || $zadej == 0) && $u->aves['now'] >= $u->aves['max'] && $u->room['name'] != 'Îáùåæèòèå' && $u->room['name'] != 'Îáù. Ýòàæ 1' && $u->room['name'] != 'Îáù. Ýòàæ 2' && $u->room['name'] != 'Îáù. Ýòàæ 3')) {
|
}elseif( ($kos1['good'] == 0 && $kos2['good'] == 0) && ((!isset($zadej) || $zadej == 0) && $u->aves['now']>=$u->aves['max'] && $u->room['name']!='Îáùåæèòèå' && $u->room['name']!='Îáù. Ýòàæ 1' && $u->room['name']!='Îáù. Ýòàæ 2' && $u->room['name']!='Îáù. Ýòàæ 3'))
|
||||||
|
{
|
||||||
$re = 'Âû íå ìîæåòå ïåðåìåùàòüñÿ, ðþêçàê ïåðåïîëíåí ...';
|
$re = 'Âû íå ìîæåòå ïåðåìåùàòüñÿ, ðþêçàê ïåðåïîëíåí ...';
|
||||||
} elseif (isset($go['id'])) {
|
elseif(isset($go['id']))
|
||||||
$rmgo = [];
|
{
|
||||||
|
$rmgo = array();
|
||||||
$rg = explode(',',$u->room['roomGo']);
|
$rg = explode(',',$u->room['roomGo']);
|
||||||
$mlvl = explode('-',$go['level']);
|
$mlvl = explode('-',$go['level']);
|
||||||
$i = 0;
|
$i = 0;
|
||||||
while ($i < count($rg)) {
|
while($i<count($rg))
|
||||||
if ($rg[$i] >= 0) {
|
{
|
||||||
|
if($rg[$i]>=0)
|
||||||
|
{
|
||||||
$rmgo[$rg[$i]] = 1;
|
$rmgo[$rg[$i]] = 1;
|
||||||
|
|
||||||
}
|
}
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
$sleep = $u->testAction('`vars` = "sleep" AND `uid` = "'.$u->info['id'].'" LIMIT 1',1);
|
$sleep = $u->testAction('`vars` = "sleep" AND `uid` = "'.$u->info['id'].'" LIMIT 1',1);
|
||||||
if (isset($sleep['id']) && $sleep['vars'] == 'sleep' && $go['name'] != 'Îáù. Ýòàæ 1' && $go['name'] != 'Îáù. Ýòàæ 2' && $go['name'] != 'Îáù. Ýòàæ 3') {
|
if(isset($sleep['id']) && $sleep['vars']=='sleep' && $go['name'] != 'Îáù. Ýòàæ 1' && $go['name'] != 'Îáù. Ýòàæ 2' && $go['name'] != 'Îáù. Ýòàæ 3')
|
||||||
|
{
|
||||||
$re = '<font color=red><b>Âû ìîæåòå ïåðåìåùàòüñÿ òîëüêî êîãäà áîäðñòâóåòå.</b></font>';
|
$re = '<font color=red><b>Âû ìîæåòå ïåðåìåùàòüñÿ òîëüêî êîãäà áîäðñòâóåòå.</b></font>';
|
||||||
echo ' '.$re;
|
echo ' '.$re;
|
||||||
} elseif ($u->info['timeGo'] >= time()) {
|
}elseif($u->info['timeGo']>=time())
|
||||||
|
{
|
||||||
$re = 'Âû íå ìîæåòå ïåðåìåùàòüñÿ åùå '.($u->info['timeGo']-time()).' ñåê.';
|
$re = 'Âû íå ìîæåòå ïåðåìåùàòüñÿ åùå '.($u->info['timeGo']-time()).' ñåê.';
|
||||||
} elseif ($rmgo[$go['id']] == 1) {
|
}elseif($rmgo[$go['id']]==1)
|
||||||
|
{
|
||||||
$alg = explode('-',$go['align']);
|
$alg = explode('-',$go['align']);
|
||||||
$ku = mysql_fetch_array(
|
$ku = mysql_fetch_array(mysql_query('SELECT `id` FROM `katok_zv` WHERE `uid` = "'.$u->info['id'].'" LIMIT 1'));
|
||||||
mysql_query('SELECT `id` FROM `katok_zv` WHERE `uid` = "' . $u->info['id'] . '" LIMIT 1')
|
|
||||||
);
|
|
||||||
|
|
||||||
if(isset($ku['id'])) {
|
if(isset($ku['id'])) {
|
||||||
$re = 'Âû ïîäàëè çàÿâêó íà òóðíèð è íå ìîæåòå ïåðåìåùàòüñÿ...';
|
$re = 'Âû ïîäàëè çàÿâêó íà òóðíèð è íå ìîæåòå ïåðåìåùàòüñÿ...';
|
||||||
} elseif (($alg[0] > $u->info['align'] || $alg[1] < $u->info['align']) && $go['align'] != 0 && $u->info['admin'] == 0) {
|
}elseif(($alg[0] > $u->info['align'] || $alg[1] < $u->info['align']) && $go['align']!=0 && $u->info['admin'] == 0)
|
||||||
|
{
|
||||||
$re = 'Òû íå òó ñêëîííîñòü âûáðàë.. Äðóæîê :)';
|
$re = 'Òû íå òó ñêëîííîñòü âûáðàë.. Äðóæîê :)';
|
||||||
} elseif ($u->info['zv'] > 0) {
|
}elseif($u->info['zv']>0)
|
||||||
$test_zv = mysql_fetch_array(
|
{
|
||||||
mysql_query(
|
$test_zv = mysql_fetch_array(mysql_query('SELECT * FROM `zayvki` WHERE `id` = "'.$u->info['zv'].'" AND `cancel` = 0 AND `start` = 0 AND `time` > "'.(time()-60*60*2).'" LIMIT 1'));
|
||||||
'SELECT * FROM `zayvki` WHERE `id` = "' . $u->info['zv'] . '" AND `cancel` = 0 AND `start` = 0 AND `time` > "' . (time(
|
|
||||||
) - 60 * 60 * 2) . '" LIMIT 1'
|
|
||||||
)
|
|
||||||
);
|
|
||||||
if(isset($test_zv['id'])) {
|
if(isset($test_zv['id'])) {
|
||||||
$re = 'Ïîäàëè çàÿâêó è óáåãàåì?.. Íå õîðîøî!';
|
$re = 'Ïîäàëè çàÿâêó è óáåãàåì?.. Íå õîðîøî!';
|
||||||
}else{
|
}else{
|
||||||
$re = 'Âàøà çàÿâêà áûëà óäàëåíà... Òåïåðü âû ìîæåòå ïåðåéòè â äðóãóþ ëîêàöèþ!';
|
$re = 'Âàøà çàÿâêà áûëà óäàëåíà... Òåïåðü âû ìîæåòå ïåðåéòè â äðóãóþ ëîêàöèþ!';
|
||||||
mysql_query('UPDATE `stats` SET `zv` = 0 WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
mysql_query('UPDATE `stats` SET `zv` = 0 WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
||||||
}
|
}
|
||||||
} elseif ((($go['clan'] > 0 && $u->info['clan'] != $go['clan']) || ($go['clan'] == -1 && $u->info['clan'] == 0)) && $u->info['admin'] == 0) {
|
}elseif((($go['clan'] > 0 && $u->info['clan'] != $go['clan']) || ($go['clan'] == -1 && $u->info['clan'] == 0)) && $u->info['admin'] == 0)
|
||||||
|
{
|
||||||
$re = 'Âû íå ìîæåòå ïîïàñòü â ýòó êîìíàòó';
|
$re = 'Âû íå ìîæåòå ïîïàñòü â ýòó êîìíàòó';
|
||||||
} elseif ($go['sex'] > 0 && $go['sex'] - 1 != $u->info['sex'] && $u->info['invis'] != 1 && $u->info['invis'] < time(
|
}elseif($go['sex']>0 && $go['sex']-1!=$u->info['sex'] && $u->info['invis'] != 1 && $u->info['invis'] < time() && $u->info['admin'] == 0)
|
||||||
) && $u->info['admin'] == 0) {
|
{
|
||||||
$re = 'Âû íå ìîæåòå ïîïàñòü â ýòó êîìíàòó';
|
$re = 'Âû íå ìîæåòå ïîïàñòü â ýòó êîìíàòó';
|
||||||
} elseif ($mlvl[0] > $u->info['level'] && $u->info['admin'] == 0) {
|
}elseif($mlvl[0]>$u->info['level'] && $u->info['admin']==0)
|
||||||
|
{
|
||||||
$re = 'Âû íå ìîæåòå ïîïàñòü â ýòó êîìíàòó, óðîâåíü ìàëîâàò ;)';
|
$re = 'Âû íå ìîæåòå ïîïàñòü â ýòó êîìíàòó, óðîâåíü ìàëîâàò ;)';
|
||||||
} elseif ($mlvl[1] < $u->info['level'] && $u->info['admin'] == 0) {
|
}elseif($mlvl[1]<$u->info['level'] && $u->info['admin']==0)
|
||||||
|
{
|
||||||
$re = 'Âû íå ìîæåòå ïîïàñòü â ýòó êîìíàòó, óðîâåíü âûñîêîâàò ;)';
|
$re = 'Âû íå ìîæåòå ïîïàñòü â ýòó êîìíàòó, óðîâåíü âûñîêîâàò ;)';
|
||||||
} elseif ($go['close'] == 0 || $u->info['admin'] > 0) {
|
}elseif($go['close']==0 || $u->info['admin']>0)
|
||||||
$travms = mysql_fetch_array(
|
{
|
||||||
mysql_query(
|
$travms = mysql_fetch_array(mysql_query('SELECT * FROM `eff_users` WHERE `uid` = "'.$u->info['id'].'" and (`v1`="2" or `v1`="3") and `delete`=0 ORDER by v1 DESC'));
|
||||||
'SELECT * FROM `eff_users` WHERE `uid` = "' . $u->info['id'] . '" and (`v1`="2" or `v1`="3") and `delete`=0 ORDER by v1 DESC'
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
//çàìåäëåíèå ïåðåìåøåíèÿ ïðè òðàâìàõ
|
//çàìåäëåíèå ïåðåìåøåíèÿ ïðè òðàâìàõ
|
||||||
$plus_timeGo = 0 + $zadej; // äîáàâî÷íîå âðåìÿ ïðè òðàâìå
|
$plus_timeGo = 0 + $zadej; // äîáàâî÷íîå âðåìÿ ïðè òðàâìå
|
||||||
@ -282,61 +263,50 @@ if (isset($_GET['loc'])) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$tr_nogo=false; // íåòó çàïðåùåíèÿ ïåðåìåùåíèÿ ïî òðàâìå
|
||||||
//end freez time go
|
//end freez time go
|
||||||
|
|
||||||
|
if($tr_nogo == false){
|
||||||
if($u->stats['silver'] >= 1 ) {//âðåìÿ ïåðåìåùåíèÿ -20%
|
if($u->stats['silver'] >= 1 ) {//âðåìÿ ïåðåìåùåíèÿ -20%
|
||||||
$go['timeGO'] = floor($go['timeGO']/100*80);
|
$go['timeGO'] = floor($go['timeGO']/100*80);
|
||||||
$plus_timeGo = floor($plus_timeGo/100*80);
|
$plus_timeGo = floor($plus_timeGo/100*80);
|
||||||
}
|
}
|
||||||
$u->info['timeGo'] = time()+$go['timeGO']+$plus_timeGo;
|
$u->info['timeGo'] = time()+$go['timeGO']+$plus_timeGo;
|
||||||
$u->info['timeGoL'] = time();
|
$u->info['timeGoL'] = time();
|
||||||
$upd = mysql_query(
|
$upd = mysql_query('UPDATE `stats` SET `timeGo` = "'.$u->info['timeGo'].'",`timeGoL` = "'.$u->info['timeGoL'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
||||||
'UPDATE `stats` SET `timeGo` = "' . $u->info['timeGo'] . '",`timeGoL` = "' . $u->info['timeGoL'] . '" WHERE `id` = "' . $u->info['id'] . '" LIMIT 1'
|
}
|
||||||
);
|
if($upd)
|
||||||
if ($upd) {
|
{
|
||||||
$upd2 = mysql_query(
|
$upd2 = mysql_query('UPDATE `users` SET `room` = "'.$go['id'].'",`online` = "'.time().'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
||||||
'UPDATE `users` SET `room` = "' . $go['id'] . '",`online` = "' . time(
|
if($upd2)
|
||||||
) . '" WHERE `id` = "' . $u->info['id'] . '" LIMIT 1'
|
{
|
||||||
);
|
|
||||||
if ($upd2) {
|
|
||||||
|
|
||||||
if( $u->room['file'] == 'bsenter' && $go['file'] != 'bsenter' ) {
|
if( $u->room['file'] == 'bsenter' && $go['file'] != 'bsenter' ) {
|
||||||
//Óäàëÿåì âñå ñòàâêè â ÁÑ
|
//Óäàëÿåì âñå ñòàâêè â ÁÑ
|
||||||
$sp_bs = mysql_query(
|
$sp_bs = mysql_query('SELECT `id`,`bsid`,`money` FROM `bs_zv` WHERE `uid` = "'.$u->info['id'].'" AND `inBot` = "0" AND `finish` = "0"');
|
||||||
'SELECT `id`,`bsid`,`money` FROM `bs_zv` WHERE `uid` = "' . $u->info['id'] . '" AND `inBot` = "0" AND `finish` = "0"'
|
|
||||||
);
|
|
||||||
while( $pl_bs = mysql_fetch_array($sp_bs) ) {
|
while( $pl_bs = mysql_fetch_array($sp_bs) ) {
|
||||||
mysql_query(
|
mysql_query('UPDATE `bs_turnirs` SET `users` = `users` - 1 WHERE `id` = "'.$pl_bs['bsid'].'" LIMIT 1');
|
||||||
'UPDATE `bs_turnirs` SET `users` = `users` - 1 WHERE `id` = "' . $pl_bs['bsid'] . '" LIMIT 1'
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
unset($sp_bs,$pl_bs);
|
unset($sp_bs,$pl_bs);
|
||||||
mysql_query(
|
mysql_query('UPDATE `bs_zv` SET `finish` = "'.time().'" WHERE `uid` = "'.$u->info['id'].'" AND `inBot` = "0" AND `finish` = "0"');
|
||||||
'UPDATE `bs_zv` SET `finish` = "' . time(
|
|
||||||
) . '" WHERE `uid` = "' . $u->info['id'] . '" AND `inBot` = "0" AND `finish` = "0"'
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$smt = $u->testAction(
|
$smt = $u->testAction('`uid` = "'.$u->info['id'].'" AND `time`>='.(time()-600).' AND `vars` = "create_snowball_cp" LIMIT 1',1);
|
||||||
'`uid` = "' . $u->info['id'] . '" AND `time`>=' . (time(
|
if(isset($smt['id']))
|
||||||
) - 600) . ' AND `vars` = "create_snowball_cp" LIMIT 1', 1
|
{
|
||||||
);
|
|
||||||
if (isset($smt['id'])) {
|
|
||||||
mysql_query('DELETE FROM `actions` WHERE `id` = "'.$smt['id'].'" LIMIT 1');
|
mysql_query('DELETE FROM `actions` WHERE `id` = "'.$smt['id'].'" LIMIT 1');
|
||||||
}
|
}
|
||||||
mysql_query(
|
mysql_query('UPDATE `eff_users` SET `delete` = "'.time().'" WHERE `id_eff` = "24" AND `uid` = "'.$u->info['id'].'" AND `delete` = "0" LIMIT 24');
|
||||||
'UPDATE `eff_users` SET `delete` = "' . time(
|
|
||||||
) . '" WHERE `id_eff` = "24" AND `uid` = "' . $u->info['id'] . '" AND `delete` = "0" LIMIT 24'
|
|
||||||
);
|
|
||||||
|
|
||||||
$u->info['room'] = $go['id'];
|
$u->info['room'] = $go['id'];
|
||||||
$u->room = $go;
|
$u->room = $go;
|
||||||
if (!isset($_GET['mAjax'])) {
|
if(!isset($_GET['mAjax']))
|
||||||
echo '<script>top.chat.reflesh();</script>';
|
echo '<script>top.chat.reflesh();</script>';
|
||||||
}
|
|
||||||
}else{
|
}else{
|
||||||
$re = 'Âû íå ñìîãëè ïåðåéòè â ëîêàöèþ, âîçìîæíî îíà áûëà ðàçðóøåíà';
|
$re = 'Âû íå ñìîãëè ïåðåéòè â ëîêàöèþ, âîçìîæíî îíà áûëà ðàçðóøåíà';
|
||||||
}
|
}
|
||||||
|
}elseif($tr_nogo==true){
|
||||||
|
$re = 'Âû òðàâìèðîâàíû. Íå âîçìîæíî ñ òàêèìè óâå÷èÿìè ïåðåäâèãàòüñÿ áåç êîñòûëåé.';
|
||||||
}else{
|
}else{
|
||||||
$re = 'Âû íå ñìîãëè ïåðåéòè â ëîêàöèþ';
|
$re = 'Âû íå ñìîãëè ïåðåéòè â ëîêàöèþ';
|
||||||
}
|
}
|
||||||
@ -353,13 +323,12 @@ if (isset($_GET['loc'])) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($u->info['room'] == 209) {
|
if($u->info['room']==209)
|
||||||
|
{
|
||||||
$zv = new FightRequest();
|
$zv = new FightRequest();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($re != '') {
|
if($re!=''){ $re = $re.' '; }
|
||||||
$re = $re . ' ';
|
|
||||||
}
|
|
||||||
|
|
||||||
if(isset($_GET['mAjax'])){
|
if(isset($_GET['mAjax'])){
|
||||||
$tmGo = $u->info['timeGo']-time()+1; //ñêîëüêî ñåêóíä îñòàëîñü
|
$tmGo = $u->info['timeGo']-time()+1; //ñêîëüêî ñåêóíä îñòàëîñü
|
||||||
@ -372,27 +341,16 @@ if (isset($_GET['mAjax'])) {
|
|||||||
}
|
}
|
||||||
$rowonmax = '';
|
$rowonmax = '';
|
||||||
$rowonmax2 = 0;
|
$rowonmax2 = 0;
|
||||||
$rowonmax2 = mysql_fetch_array(
|
$rowonmax2 = mysql_fetch_array(mysql_query('SELECT COUNT(`id`) FROM `users` WHERE `online` > '.(time()-520).' AND `inUser` = "0" AND `city` = "'.$u->info['city'].'" AND `no_ip` != "trupojor" AND `pass` != "saintlucia" AND `login` NOT LIKE "%(%" AND `banned` = 0 AND `bot_id` = 0 LIMIT 1'));
|
||||||
mysql_query(
|
|
||||||
'SELECT COUNT(`id`) FROM `users` WHERE `online` > ' . (time(
|
|
||||||
) - 520) . ' AND `inUser` = "0" AND `city` = "' . $u->info['city'] . '" AND `no_ip` != "trupojor" AND `pass` != "saintlucia" AND `login` NOT LIKE "%(%" AND `banned` = 0 AND `bot_id` = 0 LIMIT 1'
|
|
||||||
)
|
|
||||||
);
|
|
||||||
$rowonmax = 'Ñåé÷àñ â êëóáå:<b> '.$rowonmax2[0].'</b> ÷åë.';
|
$rowonmax = 'Ñåé÷àñ â êëóáå:<b> '.$rowonmax2[0].'</b> ÷åë.';
|
||||||
$rowonmax = ''.$rowonmax.'';
|
$rowonmax = ''.$rowonmax.'';
|
||||||
$rowonmax2c = mysql_fetch_array(
|
$rowonmax2c = mysql_fetch_array(mysql_query('SELECT COUNT(`id`) FROM `users` WHERE `online` > '.(time()-520).' AND `inUser` = "0" AND `no_ip` != "trupojor" AND `pass` != "saintlucia" AND `login` NOT LIKE "%(%" AND `banned` = 0 AND `bot_id` = 0 LIMIT 1'));
|
||||||
mysql_query(
|
$rowonmax3c = mysql_fetch_array(mysql_query('SELECT COUNT(`id`) FROM `users` WHERE `online` > '.(time()-520).' AND `inUser` = "0" AND `no_ip` != "trupojor" AND `pass` != "saintlucia" AND `login` NOT LIKE "%(%" AND `banned` = 0 AND `bot_id` = 0 LIMIT 1'));
|
||||||
'SELECT COUNT(`id`) FROM `users` WHERE `online` > ' . (time(
|
|
||||||
) - 520) . ' AND `inUser` = "0" AND `no_ip` != "trupojor" AND `pass` != "saintlucia" AND `login` NOT LIKE "%(%" AND `banned` = 0 AND `bot_id` = 0 LIMIT 1'
|
|
||||||
)
|
|
||||||
);
|
|
||||||
$rowonmax3c = mysql_fetch_array(
|
|
||||||
mysql_query(
|
|
||||||
'SELECT COUNT(`id`) FROM `users` WHERE `online` > ' . (time(
|
|
||||||
) - 520) . ' AND `inUser` = "0" AND `no_ip` != "trupojor" AND `pass` != "saintlucia" AND `login` NOT LIKE "%(%" AND `banned` = 0 AND `bot_id` = 0 LIMIT 1'
|
|
||||||
)
|
|
||||||
);
|
|
||||||
$rowonmaxc = 'Âñåãî â Èãðå: '.$rowonmax2c[0].' ÷åë.';
|
$rowonmaxc = 'Âñåãî â Èãðå: '.$rowonmax2c[0].' ÷åë.';
|
||||||
|
$rowonmaxc = ''.$rowonmaxc.'';
|
||||||
|
|
||||||
|
//$rowonmaxc = '';
|
||||||
|
//$rowonmax = '<span title="Ñåé÷àñ â ãîðîäå: '.$rowonmax3c[0].' ÷åë.">'.$rowonmax.'</span>';
|
||||||
unset($sil,$pil,$rowonmax2);
|
unset($sil,$pil,$rowonmax2);
|
||||||
|
|
||||||
if($u->room['file']!=''){
|
if($u->room['file']!=''){
|
||||||
@ -406,8 +364,7 @@ if (isset($_GET['ajaxHostel'])) { //
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
?>
|
?><svg height="0" xmlns="https://www.w3.org/2000/svg">
|
||||||
<svg height="0" xmlns="https://www.w3.org/2000/svg">
|
|
||||||
<filter id="drop-shadow">
|
<filter id="drop-shadow">
|
||||||
<feGaussianBlur in="SourceAlpha" stdDeviation="2"/>
|
<feGaussianBlur in="SourceAlpha" stdDeviation="2"/>
|
||||||
<feOffset dx="0" dy="0" result="offsetblur"/>
|
<feOffset dx="0" dy="0" result="offsetblur"/>
|
||||||
@ -424,7 +381,9 @@ if (isset($_GET['ajaxHostel'])) { //
|
|||||||
background:url(https://img.new-combats.com/i/move/wait2.gif) 0px 0px repeat-y;
|
background:url(https://img.new-combats.com/i/move/wait2.gif) 0px 0px repeat-y;
|
||||||
height:6px;
|
height:6px;
|
||||||
}
|
}
|
||||||
|
.aFilter {
|
||||||
|
|
||||||
|
}
|
||||||
.aFilter:hover {
|
.aFilter:hover {
|
||||||
-webkit-filter: drop-shadow(0px 0px 4px rgba(255,255,255,1));
|
-webkit-filter: drop-shadow(0px 0px 4px rgba(255,255,255,1));
|
||||||
filter: url(#drop-shadow);
|
filter: url(#drop-shadow);
|
||||||
@ -442,24 +401,28 @@ if (isset($_GET['ajaxHostel'])) { //
|
|||||||
var tgol = 0;
|
var tgol = 0;
|
||||||
var rgo_url = 0;
|
var rgo_url = 0;
|
||||||
var rgo_nm = '';
|
var rgo_nm = '';
|
||||||
|
function locGoLine()
|
||||||
function locGoLine() {
|
{
|
||||||
var line = document.getElementById('MoveLine');
|
var line = document.getElementById('MoveLine');
|
||||||
if (line !== undefined) {
|
if(line!=undefined)
|
||||||
|
{
|
||||||
prc = 100-Math.floor(tgo/tgol*100);
|
prc = 100-Math.floor(tgo/tgol*100);
|
||||||
sLoc1 = 64/100*prc;
|
sLoc1 = 64/100*prc;
|
||||||
if (sLoc1 < 0) {
|
if(sLoc1<0)
|
||||||
|
{
|
||||||
sLoc1 = 0;
|
sLoc1 = 0;
|
||||||
}
|
}
|
||||||
if (sLoc1 > 64) {
|
if(sLoc1>64)
|
||||||
|
{
|
||||||
sLoc1 = 64;
|
sLoc1 = 64;
|
||||||
}
|
}
|
||||||
line.style.width = sLoc1+'px';
|
line.style.width = sLoc1+'px';
|
||||||
if (tgo > 0) {
|
if(tgo>0)
|
||||||
|
{
|
||||||
tgo -= 1;
|
tgo -= 1;
|
||||||
setTimeout('locGoLine()',100);
|
setTimeout('locGoLine()',100);
|
||||||
}else{
|
}else{
|
||||||
if (rgo_url !== 0) {
|
if(rgo_url != 0) {
|
||||||
location = rgo_url;
|
location = rgo_url;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -478,7 +441,6 @@ if (isset($_GET['ajaxHostel'])) { //
|
|||||||
//}
|
//}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function goLocal(id,nm) {
|
function goLocal(id,nm) {
|
||||||
rgo_url = id;
|
rgo_url = id;
|
||||||
rgo_nm = nm;
|
rgo_nm = nm;
|
||||||
@ -495,7 +457,6 @@ if (isset($_GET['ajaxHostel'])) { //
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function gotoLocationCancel() {
|
function gotoLocationCancel() {
|
||||||
rgo_url = 0;
|
rgo_url = 0;
|
||||||
rgo_nm = '';
|
rgo_nm = '';
|
||||||
@ -503,9 +464,10 @@ if (isset($_GET['ajaxHostel'])) { //
|
|||||||
$('#moveto').html('');
|
$('#moveto').html('');
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<?php
|
<?
|
||||||
if(date('m') == 11 || date('m') == 12 || date('m') == 1 || date('m') == 2) {
|
if(date('m') == 11 || date('m') == 12 || date('m') == 1 || date('m') == 2) {
|
||||||
$rsnow = [
|
//if( $u->info['admin'] > 0 ) {
|
||||||
|
$rsnow = array(
|
||||||
234 => 1,
|
234 => 1,
|
||||||
267 => 1,
|
267 => 1,
|
||||||
9 => 1,
|
9 => 1,
|
||||||
@ -514,8 +476,9 @@ if (date('m') == 11 || date('m') == 12 || date('m') == 1 || date('m') == 2) {
|
|||||||
236 => 1,
|
236 => 1,
|
||||||
213 => 1,
|
213 => 1,
|
||||||
252 => 1,
|
252 => 1,
|
||||||
323 => 1,
|
323 => 1
|
||||||
];
|
);
|
||||||
|
//}
|
||||||
if($rsnow[$u->room['id']]==1) {
|
if($rsnow[$u->room['id']]==1) {
|
||||||
?>
|
?>
|
||||||
<script>
|
<script>
|
||||||
@ -534,7 +497,8 @@ if (date('m') == 11 || date('m') == 12 || date('m') == 1 || date('m') == 2) {
|
|||||||
stx = new Array();
|
stx = new Array();
|
||||||
sty = new Array();
|
sty = new Array();
|
||||||
|
|
||||||
Array.prototype.exists = function (el) {
|
Array.prototype.exists = function(el)
|
||||||
|
{
|
||||||
for(var i=0;i<this.length;i++)
|
for(var i=0;i<this.length;i++)
|
||||||
if(this[i]==el)
|
if(this[i]==el)
|
||||||
return true;
|
return true;
|
||||||
@ -588,7 +552,7 @@ if (date('m') == 11 || date('m') == 12 || date('m') == 1 || date('m') == 2) {
|
|||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<?php
|
<?
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -624,38 +588,34 @@ if (isset($u->room['id'])) {
|
|||||||
$rowonmax = '';
|
$rowonmax = '';
|
||||||
$rowonmax2 = 0;
|
$rowonmax2 = 0;
|
||||||
|
|
||||||
$rowonmax2 = mysql_fetch_array(
|
$rowonmax2 = mysql_fetch_array(mysql_query('SELECT COUNT(`id`) FROM `users` WHERE `online` > '.(time()-777).' AND `inUser` = "0" AND `city` = "'.$u->info['city'].'" AND `no_ip` != "trupojor" AND `pass` != "saintlucia" AND `login` NOT LIKE "%(%" AND `banned` = 0 AND `bot_id` = 0 LIMIT 1'));
|
||||||
mysql_query(
|
|
||||||
'SELECT COUNT(`id`) FROM `users` WHERE `online` > ' . (time(
|
|
||||||
) - 777) . ' AND `inUser` = "0" AND `city` = "' . $u->info['city'] . '" AND `no_ip` != "trupojor" AND `pass` != "saintlucia" AND `login` NOT LIKE "%(%" AND `banned` = 0 AND `bot_id` = 0 LIMIT 1'
|
|
||||||
)
|
|
||||||
);
|
|
||||||
$rowonmax = '<br><span style="font-size:14px;">Ñåé÷àñ â êëóáå<b> '.($rowonmax2[0]).'</b> ðåàëüíûõ ÷åë.</font>';
|
$rowonmax = '<br><span style="font-size:14px;">Ñåé÷àñ â êëóáå<b> '.($rowonmax2[0]).'</b> ðåàëüíûõ ÷åë.</font>';
|
||||||
$rowonmax2c = mysql_fetch_array(
|
$rowonmax = ''.$rowonmax.'';
|
||||||
mysql_query(
|
$rowonmax2c = mysql_fetch_array(mysql_query('SELECT COUNT(`id`) FROM `users` WHERE `online` > '.(time()-770).' AND `inUser` = "0" AND `no_ip` != "trupojor" AND `login` NOT LIKE "%(%" AND `banned` = 0 AND `bot_id` = 0 LIMIT 1'));
|
||||||
'SELECT COUNT(`id`) FROM `users` WHERE `online` > ' . (time(
|
$rowonmax3c = mysql_fetch_array(mysql_query('SELECT COUNT(`id`) FROM `users` WHERE `online` > '.(time()-770).' AND `inUser` = "0" AND `no_ip` != "trupojor" AND `login` NOT LIKE "%(%" AND `banned` = 0 AND `bot_id` = 0 LIMIT 1'));
|
||||||
) - 770) . ' AND `inUser` = "0" AND `no_ip` != "trupojor" AND `login` NOT LIKE "%(%" AND `banned` = 0 AND `bot_id` = 0 LIMIT 1'
|
|
||||||
)
|
|
||||||
);
|
|
||||||
$rowonmax3c = mysql_fetch_array(
|
|
||||||
mysql_query(
|
|
||||||
'SELECT COUNT(`id`) FROM `users` WHERE `online` > ' . (time(
|
|
||||||
) - 770) . ' AND `inUser` = "0" AND `no_ip` != "trupojor" AND `login` NOT LIKE "%(%" AND `banned` = 0 AND `bot_id` = 0 LIMIT 1'
|
|
||||||
)
|
|
||||||
);
|
|
||||||
if($rowonmax2c[0]-$rowonmax2[0] > 0) {
|
if($rowonmax2c[0]-$rowonmax2[0] > 0) {
|
||||||
$rowonmaxc = '<small>(Îáùèé îíëàéí ñ ó÷åòîì áîòîâ: '.($rowonmax2c[0]+5).' ÷åë.)</small>';
|
$rowonmaxc = '<small>(Îáùèé îíëàéí ñ ó÷åòîì áîòîâ: '.($rowonmax2c[0]+5).' ÷åë.)</small>';
|
||||||
}
|
}
|
||||||
|
$rowonmaxc = ''.$rowonmaxc.'';
|
||||||
|
|
||||||
$rowonmax = $rowonmax.'<br>'.$rowonmaxc;
|
$rowonmax = $rowonmax.'<br>'.$rowonmaxc;
|
||||||
|
|
||||||
|
//$rowonmaxc = '';
|
||||||
|
//$rowonmax = '<span title="Ñåé÷àñ â ãîðîäå: '.$rowonmax3c[0].' ÷åë.">'.$rowonmax.'</span>';
|
||||||
unset($sil,$pil,$rowonmax2);
|
unset($sil,$pil,$rowonmax2);
|
||||||
if($u->room['file']!=''){
|
if($u->room['file']!=''){
|
||||||
|
// if($u->room['roomAjax'] == 'false'){
|
||||||
include_once('modules_data/location/'.$u->room['file'].'.php');
|
include_once('modules_data/location/'.$u->room['file'].'.php');
|
||||||
if((date('m') == 11 || date('m') == 12 || date('m') == 1 || date('m') == 2) && $rsnow[$u->room['id']]==1) {
|
if((date('m') == 11 || date('m') == 12 || date('m') == 1 || date('m') == 2) && $rsnow[$u->room['id']]==1) {
|
||||||
echo '<script>DrawWeather(31);WeatherBegin();</script>';
|
echo '<script>DrawWeather(31);WeatherBegin();</script>';
|
||||||
}
|
}
|
||||||
|
// }else if($u->room['roomAjax'] == 'true'){
|
||||||
|
// include_once('modules_data/location/fight-club.php');
|
||||||
|
// }
|
||||||
echo '<div align="right">'.$c['counters'].'</div>';
|
echo '<div align="right">'.$c['counters'].'</div>';
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
echo 'Location is lost.';
|
echo 'Location is lost.';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
?>
|
Loading…
Reference in New Issue
Block a user