dev-php74 #30
@ -1,370 +1,413 @@
|
|||||||
<?
|
<?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'] == 'Ñòðàøèëêèíà óëèöà' ||
|
||||||
$u->room['name'] == 'Ïàðêîâàÿ óëèöà'||
|
$u->room['name'] == 'Ïàðêîâàÿ óëèöà' ||
|
||||||
$u->room['name'] == 'Áîëüøàÿ ïàðêîâàÿ óëèöà'
|
$u->room['name'] == 'Áîëüøàÿ ïàðêîâàÿ óëèöà'
|
||||||
) {
|
) {
|
||||||
|
|
||||||
if($u->room['noatack'] == 0) {
|
if ($u->room['noatack'] == 0) {
|
||||||
|
|
||||||
$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'));
|
$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'
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
$battle = mysql_fetch_array(mysql_query('SELECT `id` FROM `battle_last` WHERE `uid` = "'.$u->info['id'].'" AND `battle_id` = "'.$ua['battle'].'" LIMIT 1'));
|
$battle = mysql_fetch_array(
|
||||||
|
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(mysql_query('SELECT `id` FROM `battle` WHERE `id` = "'.$ua['battle'].'" AND `team_win` = "-1" LIMIT 1'));
|
$uabt = mysql_fetch_array(
|
||||||
if(!isset($uabt['id'])) {
|
mysql_query(
|
||||||
|
'SELECT `id` FROM `battle` WHERE `id` = "' . $ua['battle'] . '" AND `team_win` = "-1" LIMIT 1'
|
||||||
|
)
|
||||||
|
);
|
||||||
|
if (!isset($uabt['id'])) {
|
||||||
$ua['battle'] = 0;
|
$ua['battle'] = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if( $ua['level'] < 8 ) {
|
if ($ua['level'] < 8) {
|
||||||
$re = 'Íîâè÷êè íàõîäÿòñÿ ïîä çàùèòîé Ìèðîçäàòåëÿ...';
|
$re = 'Íîâè÷êè íàõîäÿòñÿ ïîä çàùèòîé Ìèðîçäàòåëÿ...';
|
||||||
} elseif($ua['id'] == $u->info['id']) {
|
} elseif ($ua['id'] == $u->info['id']) {
|
||||||
$re = 'Íà ñåáÿ íàïàäàòü íåëüçÿ...';
|
$re = 'Íà ñåáÿ íàïàäàòü íåëüçÿ...';
|
||||||
} elseif($u->info['level']>$ua['level']+1) {
|
} elseif ($u->info['level'] > $ua['level'] + 1) {
|
||||||
$re = 'Âû ñëèøêîì ñèëüíû';
|
$re = 'Âû ñëèøêîì ñèëüíû';
|
||||||
} elseif ($ua['no_ip'] == 'trupojor'){
|
} elseif ($ua['no_ip'] == 'trupojor') {
|
||||||
$re = 'Íåëüçÿ íàïàäàòü íà ãîðîäñêîãî ìîíñòà ñ ïîìîùüþ êíîïêè íàïàñòü!';
|
$re = 'Íåëüçÿ íàïàäàòü íà ãîðîäñêîãî ìîíñòà ñ ïîìîùüþ êíîïêè íàïàñòü!';
|
||||||
}elseif(isset($battle['id'])) {
|
} elseif (isset($battle['id'])) {
|
||||||
$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 ($u->error == '') {
|
||||||
/*if( $cruw == 2 ) {
|
if ($cruw == 2) {
|
||||||
$ua['type_pers'] = 99;
|
$rtxt = '[img[items/pal_button9.gif]] "' . $u->info['login'] . '" ñîâåðøèë' . $sx . ' êðîâàâîå íàïàäåíèå íà ïåðñîíàæà "' . $ua['login'] . '".';
|
||||||
}else{
|
} else {
|
||||||
$ua['type_pers'] = 50;
|
$rtxt = '[img[items/pal_button8.gif]] "' . $u->info['login'] . '" ñîâåðøèë' . $sx . ' íàïàäåíèå íà ïåðñîíàæà "' . $ua['login'] . '".';
|
||||||
}*/
|
|
||||||
}
|
}
|
||||||
if( $ua['no_ip'] == 'trupojor' ) {
|
if ($goodt > 0) {
|
||||||
$ua['type_pers'] = 500;
|
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')"
|
||||||
$goodt=$magic->atackUser($u->info['id'],$ua['id'],$ua['team'],$ua['battle'],$ua['bbexp'],$ua['type_pers']);
|
);
|
||||||
|
|
||||||
if( $u->error == '' ) {
|
|
||||||
|
|
||||||
if( $cruw == 2 ) {
|
|
||||||
$rtxt = '[img[items/pal_button9.gif]] "'.$u->info['login'].'" ñîâåðøèë'.$sx.' êðîâàâîå íàïàäåíèå íà ïåðñîíàæà "'.$ua['login'].'".';
|
|
||||||
}else{
|
|
||||||
$rtxt = '[img[items/pal_button8.gif]] "'.$u->info['login'].'" ñîâåðøèë'.$sx.' íàïàäåíèå íà ïåðñîíàæà "'.$ua['login'].'".';
|
|
||||||
}
|
|
||||||
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()."','6','0','1')");
|
|
||||||
}
|
}
|
||||||
unset($goodt);
|
unset($goodt);
|
||||||
header('location: main.php');
|
header('location: main.php');
|
||||||
|
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
}else{
|
} else {
|
||||||
if($ua['room'] != $u->info['room']){
|
if ($ua['room'] != $u->info['room']) {
|
||||||
$u->error = 'Ïåðñîíàæ íàõîäèòñÿ â äðóãîé êîìíàòå';
|
$u->error = 'Ïåðñîíàæ íàõîäèòñÿ â äðóãîé êîìíàòå';
|
||||||
}else{
|
} else {
|
||||||
$u->error = 'Ïåðñîíàæ èìååò ñëèøêîì ìàëûé óðîâåíü æèçíåé.';
|
$u->error = 'Ïåðñîíàæ èìååò ñëèøêîì ìàëûé óðîâåíü æèçíåé.';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}else{
|
} else {
|
||||||
//Íà ïåðñîíàæà íåëüçÿ íàïàñòü
|
//Íà ïåðñîíàæà íåëüçÿ íàïàñòü
|
||||||
$u->error = 'Ïåðñîíàæ íå â èãðå, ëèáî íà íåì íåò ìåòêè';
|
$u->error = 'Ïåðñîíàæ íå â èãðå, ëèáî íà íåì íåò ìåòêè';
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
//$u->error = 'Âàì çàïðåùàåòñÿ àòàêîâàòü áåç ðàçðåøåíèÿ...1';
|
|
||||||
//$re = $u->error;
|
|
||||||
|
|
||||||
}else{
|
|
||||||
$re = 'Íàïàäàòü âîçìîæíî òîëüêî íà óëèöå...';
|
$re = 'Íàïàäàòü âîçìîæíî òîëüêî íà óëèöå...';
|
||||||
}
|
}
|
||||||
}else{
|
} else {
|
||||||
$re = 'Íàïàäåíèÿ âîçìîæíû òîëüêî íî÷üþ...';
|
$re = 'Íàïàäåíèÿ âîçìîæíû òîëüêî íî÷üþ...';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function thisInfRm($id,$tp = NULL, $json = false){
|
function thisInfRm($id, $tp = null, $json = false)
|
||||||
|
{
|
||||||
global $u;
|
global $u;
|
||||||
$rm = mysql_fetch_array(mysql_query('SELECT * FROM `room` WHERE `code` = "'.mysql_real_escape_string($id).'" AND `city` = "'.$u->info['city'].'" LIMIT 1'));
|
$rm = mysql_fetch_array(
|
||||||
|
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(mysql_query('SELECT COUNT(`id`) FROM `users` WHERE `online` > '.(time()-120).' AND `city` = "'.$u->info['city'].'" AND `room` = "'.$rm['id'].'"'));
|
$rown = mysql_fetch_array(
|
||||||
if($tp==NULL){
|
mysql_query(
|
||||||
$inf = '<b>'.$rm['name'].'</b><br>Ñåé÷àñ â êîìíàòå '.(0+$rown[0]).' ÷åë.';
|
'SELECT COUNT(`id`) FROM `users` WHERE `online` > ' . (time(
|
||||||
}else{
|
) - 120) . ' AND `city` = "' . $u->info['city'] . '" AND `room` = "' . $rm['id'] . '"'
|
||||||
$inf = $rm['name']."\nÑåé÷àñ â êîìíàòå ".(0+$rown[0]).' ÷åë.';
|
)
|
||||||
|
);
|
||||||
|
if ($tp == null) {
|
||||||
|
$inf = '<b>' . $rm['name'] . '</b><br>Ñåé÷àñ â êîìíàòå ' . (0 + $rown[0]) . ' ÷åë.';
|
||||||
|
} else {
|
||||||
|
$inf = $rm['name'] . "\nÑåé÷àñ â êîìíàòå " . (0 + $rown[0]) . ' ÷åë.';
|
||||||
}
|
}
|
||||||
if($json == true)
|
if ($json) {
|
||||||
return array($rm['code'], iconv("WINDOWS-1251", "UTF-8", $rm['name']), (0+$rown[0]));
|
return [$rm['code'], iconv("WINDOWS-1251", "UTF-8", $rm['name']), (0 + $rown[0])];
|
||||||
}
|
}
|
||||||
if($json == true)
|
}
|
||||||
return array('false', iconv("WINDOWS-1251", "UTF-8", $inf), (0+$rown[0]));
|
if ($json) {
|
||||||
if($tp==NULL){
|
return ['false', iconv("WINDOWS-1251", "UTF-8", $inf), (0 + $rown[0])];
|
||||||
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{
|
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'] . '\');"';
|
||||||
|
} else {
|
||||||
echo $inf;
|
echo $inf;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(isset($_GET['loc']))
|
if (isset($_GET['loc'])) {
|
||||||
{
|
$go = mysql_fetch_array(
|
||||||
$go = mysql_fetch_array(mysql_query('SELECT * FROM `room` WHERE `code` = "'.mysql_real_escape_string($_GET['loc']).'" AND `city` = "'.$u->info['city'].'" LIMIT 1'));
|
mysql_query(
|
||||||
if($u->info['id']=='340379' or $u->info['id']=='399105'){
|
'SELECT * FROM `room` WHERE `code` = "' . mysql_real_escape_string(
|
||||||
//print_r($u->info);
|
$_GET['loc']
|
||||||
}
|
) . '" 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(mysql_query('SELECT `id`,`item_id` FROM `items_users` WHERE `inOdet` = 3 AND `uid` = "'.$u->info['id'].'" AND `delete` = 0 LIMIT 1'));
|
$kos1 = mysql_fetch_array(
|
||||||
$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'));
|
mysql_query(
|
||||||
|
'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;
|
||||||
}else{
|
} else {
|
||||||
$kos1['good'] = 0;
|
$kos1['good'] = 0;
|
||||||
}
|
}
|
||||||
if( $kos2['item_id'] == 630 || $kos2['item_id'] == 631 ) {
|
if ($kos2['item_id'] == 630 || $kos2['item_id'] == 631) {
|
||||||
$kos2['good'] = 1;
|
$kos2['good'] = 1;
|
||||||
}else{
|
} else {
|
||||||
$kos2['good'] = 0;
|
$kos2['good'] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( isset($tr_pl['id']) ) {
|
if (isset($tr_pl['id'])) {
|
||||||
|
|
||||||
$zadej = 0;
|
$zadej = 0;
|
||||||
|
|
||||||
if( $tr_pl['v1'] == 1 ) {
|
if ($tr_pl['v1'] == 1) {
|
||||||
//âñå îê
|
//âñå îê
|
||||||
}elseif( $tr_pl['v1'] == 2 ) {
|
} elseif ($tr_pl['v1'] == 2) {
|
||||||
if( $kos1['good'] == 0 && $kos2['good'] == 0 ) {
|
if ($kos1['good'] == 0 && $kos2['good'] == 0) {
|
||||||
$re = 'Âû òðàâìèðîâàíû. Íå âîçìîæíî ñ òàêèìè óâå÷èÿìè ïåðåäâèãàòüñÿ áåç êîñòûëåé.';
|
$re = 'Âû òðàâìèðîâàíû. Íå âîçìîæíî ñ òàêèìè óâå÷èÿìè ïåðåäâèãàòüñÿ áåç êîñòûëåé.';
|
||||||
$zadej = -1;
|
$zadej = -1;
|
||||||
}else{
|
} else {
|
||||||
$zadej = 20;
|
$zadej = 20;
|
||||||
}
|
}
|
||||||
}elseif( $tr_pl['v1'] == 3 || $tr_pl['v1'] == 4) {
|
} elseif ($tr_pl['v1'] == 3 || $tr_pl['v1'] == 4) {
|
||||||
if( $kos1['good'] == 0 || $kos2['good'] == 0 ) {
|
if ($kos1['good'] == 0 || $kos2['good'] == 0) {
|
||||||
$re = 'Âû òðàâìèðîâàíû. Íå âîçìîæíî ñ òàêèìè óâå÷èÿìè ïåðåäâèãàòüñÿ áåç êîñòûëåé.';
|
$re = 'Âû òðàâìèðîâàíû. Íå âîçìîæíî ñ òàêèìè óâå÷èÿìè ïåðåäâèãàòüñÿ áåç êîñòûëåé.';
|
||||||
$zadej = -1;
|
$zadej = -1;
|
||||||
}else{
|
} else {
|
||||||
$zadej = 30;
|
$zadej = 30;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if( $u->room['extdlg'] > 0 ) {
|
if ($u->room['extdlg'] > 0) {
|
||||||
header('location: main.php?talk='.$u->room['extdlg'].'');
|
header('location: main.php?talk=' . $u->room['extdlg'] . '');
|
||||||
}elseif( isset($zadej) && $zadej == -1 ) {
|
} elseif (isset($zadej) && $zadej == -1) {
|
||||||
if( !isset($re) || $re == '' ) {
|
if (!isset($re) || $re == '') {
|
||||||
$re = 'Ó âàñ òðàâìà, íåëüçÿ ïåðåìåùàòüñÿ...';
|
$re = 'Ó âàñ òðàâìà, íåëüçÿ ïåðåìåùàòüñÿ...';
|
||||||
}
|
}
|
||||||
//Òðàâìà...
|
//Òðàâìà...
|
||||||
}elseif($u->info['align'] == 2 && $go['nochaos'] == 1) {
|
} elseif ($u->info['align'] == 2 && $go['nochaos'] == 1) {
|
||||||
$re = 'Ïðîõîä äëÿ õàîñíèêîâ çàêðûò!';
|
$re = 'Ïðîõîä äëÿ õàîñíèêîâ çàêðûò!';
|
||||||
//}elseif($u->info['palpro'] < time()) {
|
} elseif ($u->info['inTurnir'] > 0) {
|
||||||
//$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']);
|
||||||
{
|
$ku = mysql_fetch_array(
|
||||||
$alg = explode('-',$go['align']);
|
mysql_query('SELECT `id` FROM `katok_zv` WHERE `uid` = "' . $u->info['id'] . '" LIMIT 1')
|
||||||
$ku = mysql_fetch_array(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(
|
||||||
$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'));
|
mysql_query(
|
||||||
if(isset($test_zv['id'])) {
|
'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'])) {
|
||||||
$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() && $u->info['admin'] == 0)
|
} elseif ($go['sex'] > 0 && $go['sex'] - 1 != $u->info['sex'] && $u->info['invis'] != 1 && $u->info['invis'] < time(
|
||||||
{
|
) && $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(
|
||||||
$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'));
|
mysql_query(
|
||||||
|
'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; // äîáàâî÷íîå âðåìÿ ïðè òðàâìå
|
||||||
if( $plus_timeGo < 0 ) {
|
if ($plus_timeGo < 0) {
|
||||||
$plus_timeGo = 0;
|
$plus_timeGo = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( ((!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')) {
|
if (((!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')) {
|
||||||
$plus_timeGo += 2 * 60;
|
$plus_timeGo += 2 * 60;
|
||||||
if( $kos1['good'] == 0 ) {
|
if ($kos1['good'] == 0) {
|
||||||
$plus_timeGo += 1.5 * 60;
|
$plus_timeGo += 1.5 * 60;
|
||||||
}elseif( $kos1['good'] == 0 ) {
|
} elseif ($kos1['good'] == 0) {
|
||||||
$plus_timeGo += 1.5 * 60;
|
$plus_timeGo += 1.5 * 60;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$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('UPDATE `stats` SET `timeGo` = "'.$u->info['timeGo'].'",`timeGoL` = "'.$u->info['timeGoL'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
$upd = mysql_query(
|
||||||
}
|
'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('UPDATE `users` SET `room` = "'.$go['id'].'",`online` = "'.time().'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
$upd2 = mysql_query(
|
||||||
if($upd2)
|
'UPDATE `users` SET `room` = "' . $go['id'] . '",`online` = "' . time(
|
||||||
{
|
) . '" 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('SELECT `id`,`bsid`,`money` FROM `bs_zv` WHERE `uid` = "'.$u->info['id'].'" AND `inBot` = "0" AND `finish` = "0"');
|
$sp_bs = mysql_query(
|
||||||
while( $pl_bs = mysql_fetch_array($sp_bs) ) {
|
'SELECT `id`,`bsid`,`money` FROM `bs_zv` WHERE `uid` = "' . $u->info['id'] . '" AND `inBot` = "0" AND `finish` = "0"'
|
||||||
mysql_query('UPDATE `bs_turnirs` SET `users` = `users` - 1 WHERE `id` = "'.$pl_bs['bsid'].'" LIMIT 1');
|
);
|
||||||
|
while ($pl_bs = mysql_fetch_array($sp_bs)) {
|
||||||
|
mysql_query(
|
||||||
|
'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('UPDATE `bs_zv` SET `finish` = "'.time().'" WHERE `uid` = "'.$u->info['id'].'" AND `inBot` = "0" AND `finish` = "0"');
|
mysql_query(
|
||||||
|
'UPDATE `bs_zv` SET `finish` = "' . time(
|
||||||
|
) . '" WHERE `uid` = "' . $u->info['id'] . '" AND `inBot` = "0" AND `finish` = "0"'
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
$smt = $u->testAction('`uid` = "'.$u->info['id'].'" AND `time`>='.(time()-600).' AND `vars` = "create_snowball_cp" LIMIT 1',1);
|
$smt = $u->testAction(
|
||||||
if(isset($smt['id']))
|
'`uid` = "' . $u->info['id'] . '" AND `time`>=' . (time(
|
||||||
{
|
) - 600) . ' AND `vars` = "create_snowball_cp" LIMIT 1', 1
|
||||||
mysql_query('DELETE FROM `actions` WHERE `id` = "'.$smt['id'].'" LIMIT 1');
|
);
|
||||||
|
if (isset($smt['id'])) {
|
||||||
|
mysql_query('DELETE FROM `actions` WHERE `id` = "' . $smt['id'] . '" LIMIT 1');
|
||||||
}
|
}
|
||||||
mysql_query('UPDATE `eff_users` SET `delete` = "'.time().'" WHERE `id_eff` = "24" AND `uid` = "'.$u->info['id'].'" AND `delete` = "0" LIMIT 24');
|
mysql_query(
|
||||||
|
'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){
|
} else {
|
||||||
$re = 'Âû òðàâìèðîâàíû. Íå âîçìîæíî ñ òàêèìè óâå÷èÿìè ïåðåäâèãàòüñÿ áåç êîñòûëåé.';
|
|
||||||
}else{
|
|
||||||
$re = 'Âû íå ñìîãëè ïåðåéòè â ëîêàöèþ';
|
$re = 'Âû íå ñìîãëè ïåðåéòè â ëîêàöèþ';
|
||||||
}
|
}
|
||||||
} elseif($go['destroy'] == 1) {
|
} elseif ($go['destroy'] == 1) {
|
||||||
$re = 'Çäàíèå áûëî ðàçðóøåíî, â äàííûé ìîìåíò îíî ðåñòàâðèðóåòñÿ';
|
$re = 'Çäàíèå áûëî ðàçðóøåíî, â äàííûé ìîìåíò îíî ðåñòàâðèðóåòñÿ';
|
||||||
}else{
|
} else {
|
||||||
$re = 'Âðåìåííî çàêðûòî';
|
$re = 'Âðåìåííî çàêðûòî';
|
||||||
}
|
}
|
||||||
}else{
|
} else {
|
||||||
$re = 'Ïðîõîä íå ñóùåñòâóåò';
|
$re = 'Ïðîõîä íå ñóùåñòâóåò';
|
||||||
}
|
}
|
||||||
}else{
|
} else {
|
||||||
$re = 'Ïðîõîä íå ñóùåñòâóåò';
|
$re = 'Ïðîõîä íå ñóùåñòâóåò';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($u->info['room']==209)
|
if ($u->info['room'] == 209) {
|
||||||
{
|
|
||||||
$zv = new FightRequest();
|
$zv = new FightRequest();
|
||||||
}
|
}
|
||||||
|
|
||||||
if($re!=''){ $re = $re.' '; }
|
if ($re != '') {
|
||||||
|
$re = $re . ' ';
|
||||||
|
}
|
||||||
|
|
||||||
if(isset($_GET['mAjax'])){
|
if (isset($_GET['mAjax'])) {
|
||||||
$tmGo = $u->info['timeGo']-time()+1; //ñêîëüêî ñåêóíä îñòàëîñü
|
$tmGo = $u->info['timeGo'] - time() + 1; //ñêîëüêî ñåêóíä îñòàëîñü
|
||||||
$tmGol = $u->info['timeGo']-$u->info['timeGoL']+1; //ñêîëüêî ñåêóíä èäòè âñåãî
|
$tmGol = $u->info['timeGo'] - $u->info['timeGoL'] + 1; //ñêîëüêî ñåêóíä èäòè âñåãî
|
||||||
if($tmGo<0){
|
if ($tmGo < 0) {
|
||||||
$tmGo = 0;
|
$tmGo = 0;
|
||||||
}
|
}
|
||||||
if($tmGol<1){
|
if ($tmGol < 1) {
|
||||||
$tmGol = 1;
|
$tmGol = 1;
|
||||||
}
|
}
|
||||||
$rowonmax = '';
|
$rowonmax = '';
|
||||||
$rowonmax2 = 0;
|
$rowonmax2 = 0;
|
||||||
$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'));
|
$rowonmax2 = mysql_fetch_array(
|
||||||
$rowonmax = 'Ñåé÷àñ â êëóáå:<b> '.$rowonmax2[0].'</b> ÷åë.';
|
mysql_query(
|
||||||
$rowonmax = ''.$rowonmax.'';
|
'SELECT COUNT(`id`) FROM `users` WHERE `online` > ' . (time(
|
||||||
$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'));
|
) - 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'
|
||||||
$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 = ''.$rowonmaxc.'';
|
$rowonmax = 'Ñåé÷àñ â êëóáå:<b> ' . $rowonmax2[0] . '</b> ÷åë.';
|
||||||
|
$rowonmax = '' . $rowonmax . '';
|
||||||
|
$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'
|
||||||
|
)
|
||||||
|
);
|
||||||
|
$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] . ' ÷åë.';
|
||||||
|
unset($sil, $pil, $rowonmax2);
|
||||||
|
|
||||||
//$rowonmaxc = '';
|
if ($u->room['file'] != '') {
|
||||||
//$rowonmax = '<span title="Ñåé÷àñ â ãîðîäå: '.$rowonmax3c[0].' ÷åë.">'.$rowonmax.'</span>';
|
|
||||||
unset($sil,$pil,$rowonmax2);
|
|
||||||
|
|
||||||
if($u->room['file']!=''){
|
|
||||||
include_once('modules_data/location/fight-club.database.php');
|
include_once('modules_data/location/fight-club.database.php');
|
||||||
}
|
}
|
||||||
exit(json_encode($Response));
|
exit(json_encode($Response));
|
||||||
}
|
}
|
||||||
|
|
||||||
if(isset($_GET['ajaxHostel'])){ // Äëÿ îáùåæèòèÿ, ïðîâåðêà íà ëèìèò ïîëîæåííûõ ïðåäìåòîâ â ñóíäóê.
|
if (isset($_GET['ajaxHostel'])) { // Äëÿ îáùåæèòèÿ, ïðîâåðêà íà ëèìèò ïîëîæåííûõ ïðåäìåòîâ â ñóíäóê.
|
||||||
include_once('modules_data/location/room_hostel.php');
|
include_once('modules_data/location/room_hostel.php');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
?><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"/>
|
||||||
@ -375,99 +418,94 @@ if(isset($_GET['ajaxHostel'])){ //
|
|||||||
<feMergeNode in="SourceGraphic"/>
|
<feMergeNode in="SourceGraphic"/>
|
||||||
</feMerge>
|
</feMerge>
|
||||||
</filter>
|
</filter>
|
||||||
</svg>
|
</svg>
|
||||||
<style>
|
<style>
|
||||||
.MoveLine {
|
.MoveLine {
|
||||||
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);
|
||||||
-ms-filter: "progid:DXImageTransform.Microsoft.Dropshadow(OffX=0, OffY=0, Color='#FFF')";
|
-ms-filter: "progid:DXImageTransform.Microsoft.Dropshadow(OffX=0, OffY=0, Color='#FFF')";
|
||||||
filter: "progid:DXImageTransform.Microsoft.Dropshadow(OffX=0, OffY=0, Color='#FFF')";
|
filter: "progid:DXImageTransform.Microsoft.Dropshadow(OffX=0, OffY=0, Color='#FFF')";
|
||||||
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script type="text/javascript" src="js/jquery.js"></script>
|
<script type="text/javascript" src="js/jquery.js"></script>
|
||||||
<script>
|
<script>
|
||||||
var speedLoc = 0;
|
var speedLoc = 0;
|
||||||
var sLoc1 = 0;
|
var sLoc1 = 0;
|
||||||
var sLoc2 = 0;
|
var sLoc2 = 0;
|
||||||
var tgo = 0;
|
var tgo = 0;
|
||||||
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//if( nm != undefined ) {
|
//if( nm != undefined ) {
|
||||||
if($('#moveto') != null && $('#moveto') != undefined) {
|
if ($('#moveto') != null && $('#moveto') != undefined) {
|
||||||
if(rgo_nm != '') {
|
if (rgo_nm != '') {
|
||||||
if( $('#moveto').html() == '' ) {
|
if ($('#moveto').html() == '') {
|
||||||
$('#moveto').css({'display':'','height':'auto'});
|
$('#moveto').css({'display': '', 'height': 'auto'});
|
||||||
$('#moveto').html('<div onclick="gotoLocationCancel();" style="cursor:pointer;padding:5px;">Âû ïåðåéäåòå â: <b>' + rgo_nm + '</b> (<a onclick="gotoLocationCancel();" href="javascript:void(0)">îòìåíà</a>)</div>');
|
$('#moveto').html('<div onclick="gotoLocationCancel();" style="cursor:pointer;padding:5px;">Âû ïåðåéäåòå â: <b>' + rgo_nm + '</b> (<a onclick="gotoLocationCancel();" href="javascript:void(0)">îòìåíà</a>)</div>');
|
||||||
}
|
}
|
||||||
}else{
|
} else {
|
||||||
$('#moveto').css({'display':'none','height':'1px'});
|
$('#moveto').css({'display': 'none', 'height': '1px'});
|
||||||
$('#moveto').html('');
|
$('#moveto').html('');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//}
|
//}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function goLocal(id,nm) {
|
|
||||||
|
function goLocal(id, nm) {
|
||||||
rgo_url = id;
|
rgo_url = id;
|
||||||
rgo_nm = nm;
|
rgo_nm = nm;
|
||||||
if($('#moveto') != null && $('#moveto') != undefined && nm != undefined) {
|
if ($('#moveto') != null && $('#moveto') != undefined && nm != undefined) {
|
||||||
if(rgo_nm != '') {
|
if (rgo_nm != '') {
|
||||||
$('#moveto').css({'display':'','height':'auto'});
|
$('#moveto').css({'display': '', 'height': 'auto'});
|
||||||
$('#moveto').html('<div onclick="gotoLocationCancel(); return false;" style="cursor:pointer;padding:5px;">Âû ïåðåéäåòå â: <b>' + nm + '</b> (<a onclick="gotoLocationCancel();" href="javascript:void(0)">îòìåíà</a>)</div>');
|
$('#moveto').html('<div onclick="gotoLocationCancel(); return false;" style="cursor:pointer;padding:5px;">Âû ïåðåéäåòå â: <b>' + nm + '</b> (<a onclick="gotoLocationCancel();" href="javascript:void(0)">îòìåíà</a>)</div>');
|
||||||
if(sLoc1 == 64) {
|
if (sLoc1 == 64) {
|
||||||
location = rgo_url;
|
location = rgo_url;
|
||||||
}
|
}
|
||||||
}else{
|
} else {
|
||||||
$('#moveto').css({'display':'none','height':'1px'});
|
$('#moveto').css({'display': 'none', 'height': '1px'});
|
||||||
$('#moveto').html('');
|
$('#moveto').html('');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function gotoLocationCancel() {
|
|
||||||
|
function gotoLocationCancel() {
|
||||||
rgo_url = 0;
|
rgo_url = 0;
|
||||||
rgo_nm = '';
|
rgo_nm = '';
|
||||||
$('#moveto').css({'display':'none','height':'1px'});
|
$('#moveto').css({'display': 'none', 'height': '1px'});
|
||||||
$('#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) {
|
||||||
//if( $u->info['admin'] > 0 ) {
|
$rsnow = [
|
||||||
$rsnow = array(
|
|
||||||
234 => 1,
|
234 => 1,
|
||||||
267 => 1,
|
267 => 1,
|
||||||
9 => 1,
|
9 => 1,
|
||||||
@ -476,47 +514,45 @@ 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>
|
||||||
var no = 50; // snow number
|
var no = 50; // snow number
|
||||||
var speed = 17; // smaller number moves the snow faster
|
var speed = 17; // smaller number moves the snow faster
|
||||||
var sp_rel = 1.4; //speed relevation
|
var sp_rel = 1.4; //speed relevation
|
||||||
var snowflake1 = "/i/itimeges/snow1.gif";
|
var snowflake1 = "/i/itimeges/snow1.gif";
|
||||||
var snowflake2 = "/i/itimeges/snow2.gif";
|
var snowflake2 = "/i/itimeges/snow2.gif";
|
||||||
|
|
||||||
var i, doc_width, doc_height;
|
var i, doc_width, doc_height;
|
||||||
|
|
||||||
dx = new Array();
|
dx = new Array();
|
||||||
xp = new Array();
|
xp = new Array();
|
||||||
yp = new Array();
|
yp = new Array();
|
||||||
am = new Array();
|
am = new Array();
|
||||||
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;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
var rooms = ['1.100', '1.107', '1.111', '1.120'];
|
var rooms = ['1.100', '1.107', '1.111', '1.120'];
|
||||||
|
|
||||||
function SetVariable(c) {
|
function SetVariable(c) {
|
||||||
dx[c] = 0; // set coordinate variables
|
dx[c] = 0; // set coordinate variables
|
||||||
am[c] = Math.random()*15; // set amplitude variables
|
am[c] = Math.random() * 15; // set amplitude variables
|
||||||
xp[c] = Math.random()*(doc_width-35) + 0 + am[c]; // set position variables
|
xp[c] = Math.random() * (doc_width - 35) + 0 + am[c]; // set position variables
|
||||||
yp[c] = 0;
|
yp[c] = 0;
|
||||||
stx[c] = 0.02 + Math.random()/10; // set step variables
|
stx[c] = 0.02 + Math.random() / 10; // set step variables
|
||||||
sty[c] = 0.7 + Math.random(); // set step variables
|
sty[c] = 0.7 + Math.random(); // set step variables
|
||||||
}
|
}
|
||||||
|
|
||||||
function DrawWeather(room) {
|
function DrawWeather(room) {
|
||||||
|
|
||||||
doc_width = document.getElementById('ione').width;
|
doc_width = document.getElementById('ione').width;
|
||||||
doc_height = document.getElementById('ione').height;
|
doc_height = document.getElementById('ione').height;
|
||||||
@ -525,50 +561,50 @@ function DrawWeather(room) {
|
|||||||
doc_height = 312;
|
doc_height = 312;
|
||||||
|
|
||||||
var div = '';
|
var div = '';
|
||||||
for (i = 0; i < no; ++ i) {
|
for (i = 0; i < no; ++i) {
|
||||||
SetVariable(i);
|
SetVariable(i);
|
||||||
div += "<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: 30" + i +"; VISIBILITY: visible; TOP: " + 0 + "px; LEFT: " + 0 + "px;\"><img id=\"im"+ i +"\" src=\"" + (sty[i]<sp_rel ? snowflake2 : snowflake1 ) + "\" border=\"0\" alt=\"Ñíåæèíêà\"></div>";
|
div += "<div id=\"dot" + i + "\" style=\"POSITION: absolute; Z-INDEX: 30" + i + "; VISIBILITY: visible; TOP: " + 0 + "px; LEFT: " + 0 + "px;\"><img id=\"im" + i + "\" src=\"" + (sty[i] < sp_rel ? snowflake2 : snowflake1) + "\" border=\"0\" alt=\"Ñíåæèíêà\"></div>";
|
||||||
}
|
}
|
||||||
|
|
||||||
document.getElementById('snow').innerHTML = div;
|
document.getElementById('snow').innerHTML = div;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
function WeatherBegin() { // IE main animation function
|
function WeatherBegin() { // IE main animation function
|
||||||
|
|
||||||
for (i = 0; i < no; ++ i) { // iterate for every dot
|
for (i = 0; i < no; ++i) { // iterate for every dot
|
||||||
yp[i] += sty[i] < sp_rel ? sty[i]/2 : sty[i];
|
yp[i] += sty[i] < sp_rel ? sty[i] / 2 : sty[i];
|
||||||
if (yp[i] > doc_height-40) {
|
if (yp[i] > doc_height - 40) {
|
||||||
SetVariable(i);
|
SetVariable(i);
|
||||||
var im = document.getElementById('im'+i);
|
var im = document.getElementById('im' + i);
|
||||||
im.src = (sty[i] < sp_rel) ? snowflake2 : snowflake1;
|
im.src = (sty[i] < sp_rel) ? snowflake2 : snowflake1;
|
||||||
}
|
}
|
||||||
dx[i] += stx[i];
|
dx[i] += stx[i];
|
||||||
document.getElementById('dot'+i).style.top = yp[i]+'px';
|
document.getElementById('dot' + i).style.top = yp[i] + 'px';
|
||||||
document.getElementById('dot'+i).style.left = xp[i] + am[i]*Math.sin(dx[i])+'px';
|
document.getElementById('dot' + i).style.left = xp[i] + am[i] * Math.sin(dx[i]) + 'px';
|
||||||
}
|
}
|
||||||
setTimeout('WeatherBegin()', speed);
|
setTimeout('WeatherBegin()', speed);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<?
|
<?php
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(isset($u->room['id'])){
|
if (isset($u->room['id'])) {
|
||||||
$tmGo = $u->info['timeGo']-time()+1; //ñêîëüêî ñåêóíä îñòàëîñü
|
$tmGo = $u->info['timeGo'] - time() + 1; //ñêîëüêî ñåêóíä îñòàëîñü
|
||||||
$tmGol = $u->info['timeGo']-$u->info['timeGoL']+1; //ñêîëüêî ñåêóíä èäòè âñåãî
|
$tmGol = $u->info['timeGo'] - $u->info['timeGoL'] + 1; //ñêîëüêî ñåêóíä èäòè âñåãî
|
||||||
if($tmGo<0){
|
if ($tmGo < 0) {
|
||||||
$tmGo = 0;
|
$tmGo = 0;
|
||||||
}
|
}
|
||||||
if($tmGol<1){
|
if ($tmGol < 1) {
|
||||||
$tmGol = 1;
|
$tmGol = 1;
|
||||||
}
|
}
|
||||||
//îíëàéí â ýòîé êîìíàòå
|
//îíëàéí â ýòîé êîìíàòå
|
||||||
$goLis = '<table height="15" border="0" cellspacing="0" cellpadding="0">
|
$goLis = '<table height="15" border="0" cellspacing="0" cellpadding="0">
|
||||||
<tr>
|
<tr>
|
||||||
<td id="locobobr" rowspan="3" valign="bottom"><a href="main.php?rnd='.$code.'"><img style="display:block;" src="https://img.new-combats.com/i/move/rel_1.gif" width="15" height="16" title="Îáíîâèòü" border="0" /></a></td>
|
<td id="locobobr" rowspan="3" valign="bottom"><a href="main.php?rnd=' . $code . '"><img style="display:block;" src="https://img.new-combats.com/i/move/rel_1.gif" width="15" height="16" title="Îáíîâèòü" border="0" /></a></td>
|
||||||
<td colspan="3"><img style="display:block;" src="https://img.new-combats.com/i/move/navigatin_462s.gif" width="80" height="4" /></td>
|
<td colspan="3"><img style="display:block;" src="https://img.new-combats.com/i/move/navigatin_462s.gif" width="80" height="4" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@ -580,42 +616,46 @@ if(isset($u->room['id'])){
|
|||||||
<td colspan="3"><img style="display:block;" src="https://img.new-combats.com/i/move/navigatin_tt1_532.gif" width="80" height="4" /></td>
|
<td colspan="3"><img style="display:block;" src="https://img.new-combats.com/i/move/navigatin_tt1_532.gif" width="80" height="4" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<div id="test"></div><script>var tgo = '.($tmGo*10).'; var tgol = '.($tmGol*10).';locGoLine();</script>';
|
<div id="test"></div><script>var tgo = ' . ($tmGo * 10) . '; var tgol = ' . ($tmGol * 10) . ';locGoLine();</script>';
|
||||||
|
|
||||||
$goline = '<div style="position:absolute; top:0px; z-index:101; right:12px; width:80px;">
|
$goline = '<div style="position:absolute; top:0px; z-index:101; right:12px; width:80px;">
|
||||||
'.$goLis.'
|
' . $goLis . '
|
||||||
</div>';
|
</div>';
|
||||||
$rowonmax = '';
|
$rowonmax = '';
|
||||||
$rowonmax2 = 0;
|
$rowonmax2 = 0;
|
||||||
|
|
||||||
$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'));
|
$rowonmax2 = mysql_fetch_array(
|
||||||
$rowonmax = '<br><span style="font-size:14px;">Ñåé÷àñ â êëóáå<b> '.($rowonmax2[0]).'</b> ðåàëüíûõ ÷åë.</font>';
|
mysql_query(
|
||||||
$rowonmax = ''.$rowonmax.'';
|
'SELECT COUNT(`id`) FROM `users` WHERE `online` > ' . (time(
|
||||||
$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'));
|
) - 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'
|
||||||
$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) {
|
);
|
||||||
$rowonmaxc = '<small>(Îáùèé îíëàéí ñ ó÷åòîì áîòîâ: '.($rowonmax2c[0]+5).' ÷åë.)</small>';
|
$rowonmax = '<br><span style="font-size:14px;">Ñåé÷àñ â êëóáå<b> ' . ($rowonmax2[0]) . '</b> ðåàëüíûõ ÷åë.</font>';
|
||||||
|
$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'
|
||||||
|
)
|
||||||
|
);
|
||||||
|
$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) {
|
||||||
|
$rowonmaxc = '<small>(Îáùèé îíëàéí ñ ó÷åòîì áîòîâ: ' . ($rowonmax2c[0] + 5) . ' ÷åë.)</small>';
|
||||||
}
|
}
|
||||||
$rowonmaxc = ''.$rowonmaxc.'';
|
$rowonmax = $rowonmax . '<br>' . $rowonmaxc;
|
||||||
|
unset($sil, $pil, $rowonmax2);
|
||||||
$rowonmax = $rowonmax.'<br>'.$rowonmaxc;
|
if ($u->room['file'] != '') {
|
||||||
|
include_once('modules_data/location/' . $u->room['file'] . '.php');
|
||||||
//$rowonmaxc = '';
|
if ((date('m') == 11 || date('m') == 12 || date('m') == 1 || date('m') == 2) && $rsnow[$u->room['id']] == 1) {
|
||||||
//$rowonmax = '<span title="Ñåé÷àñ â ãîðîäå: '.$rowonmax3c[0].' ÷åë.">'.$rowonmax.'</span>';
|
|
||||||
unset($sil,$pil,$rowonmax2);
|
|
||||||
if($u->room['file']!=''){
|
|
||||||
// if($u->room['roomAjax'] == 'false'){
|
|
||||||
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) {
|
|
||||||
echo '<script>DrawWeather(31);WeatherBegin();</script>';
|
echo '<script>DrawWeather(31);WeatherBegin();</script>';
|
||||||
}
|
}
|
||||||
// }else if($u->room['roomAjax'] == 'true'){
|
echo '<div align="right">' . $c['counters'] . '</div>';
|
||||||
// include_once('modules_data/location/fight-club.php');
|
|
||||||
// }
|
|
||||||
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