2022-06-06 21:30:34 +00:00
< ? php
2022-08-25 11:23:36 +00:00
function getIP ()
{
return getIPblock ();
2022-06-06 21:30:34 +00:00
}
# <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> IP
2022-08-25 11:23:36 +00:00
function getIPblock ()
{
return isset ( $_SERVER [ 'HTTP_X_REAL_IP' ]) ? $_SERVER [ 'HTTP_X_REAL_IP' ] : $_SERVER [ 'REMOTE_ADDR' ];
2022-06-06 21:30:34 +00:00
}
# <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> .
2022-08-25 11:23:36 +00:00
if ( getIPblock () != $_SERVER [ 'SERVER_ADDR' ] && getIPblock () != '127.0.0.1' && getIPblock () != '' && getIPblock (
) != '31.131.97.206' ) {
die ( getIPblock () . '<br>' . $_SERVER [ 'SERVER_ADDR' ]);
2022-06-06 21:30:34 +00:00
}
2022-08-25 11:23:36 +00:00
const GAME = true ;
2022-06-06 21:30:34 +00:00
include ( '_incl_data/__config.php' );
include ( '_incl_data/class/__db_connect.php' );
2022-08-25 11:23:36 +00:00
$u = User :: start ();
2022-06-06 21:30:34 +00:00
2022-08-25 11:23:36 +00:00
$sp = mysql_query (
'SELECT `u`.*,`s`.*,`u`.`id`,`s`.`id` FROM `users` AS `u` LEFT JOIN `stats` AS `s` ON ( `s`.`id` = `u`.`id` AND `s`.`bot` = 0 ) WHERE `login` = "Crowley"'
);
while ( $pl = mysql_fetch_array ( $sp )) {
if ( $pl [ 'inUser' ] > 0 && $pl [ 'inTurnir' ] > 0 ) {
$txt = '<font color=red><3E> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> !</font><b><font color=darkgreen><u><3E> <> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> , <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> !</u></font></b>' ;
mysql_query (
" INSERT INTO `chat` (`new`,`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`,`typeTime`) VALUES (1,' " . $u -> info [ 'city' ] . " ',' " . $u -> info [ 'room' ] . " ','','',' " . $txt . " ',' " . time (
) . " ','6','0','1') "
);
}
if ( $pl [ 'dnow' ] > 0 ) {
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
mysql_query (
'INSERT INTO `save_dungeon` (`x`,`y`,`dnow`,`time`,`uid`) VALUES ("' . $pl [ 'x' ] . '","' . $pl [ 'y' ] . '","' . $pl [ 'dnow' ] . '","' . time (
) . '","' . $pl [ 'id' ] . '")'
);
//
mysql_query ( 'UPDATE `stats` SET `dnow` = "0" WHERE `id` = "' . $pl [ 'id' ] . '"' );
mysql_query ( 'UPDATE `users` SET `room` = "9",`battle` = "0" WHERE `id` = "' . $pl [ 'id' ] . '"' );
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
mysql_query ( 'DELETE FROM `eff_users` WHERE `uid` = "' . $pl [ 'id' ] . '" AND `v1` = "priem" AND `delete` = "0"' );
mysql_query ( 'DELETE FROM `battle` WHERE `id` = "' . $pl [ 'battle' ] . '"' );
mysql_query ( 'DELETE FROM `battle_act` WHERE `battle` = "' . $pl [ 'battle' ] . '"' );
mysql_query (
'DELETE FROM `battle_actions` WHERE `btl` = "' . $pl [ 'battle' ] . '" AND `uid` = "' . $pl [ 'id' ] . '"'
);
mysql_query ( 'DELETE FROM `battle_end` WHERE `battle_id` = "' . $pl [ 'battle' ] . '"' );
mysql_query ( 'DELETE FROM `battle_last` WHERE `battle_id` = "' . $pl [ 'battle' ] . '"' );
mysql_query ( 'DELETE FROM `battle_logs` WHERE `battle` = "' . $pl [ 'battle' ] . '"' );
mysql_query ( 'DELETE FROM `battle_out` WHERE `battle` = "' . $pl [ 'battle' ] . '"' );
mysql_query ( 'DELETE FROM `battle_stat` WHERE `battle` = "' . $pl [ 'battle' ] . '"' );
mysql_query ( 'DELETE FROM `battle_users` WHERE `battle` = "' . $pl [ 'battle' ] . '"' );
} else {
$txt = '<font color=red><b><3E> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> !</b></font><font color=darkgreen><b> <20> <> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> 22:00 <20> <> 00:00! <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> +100%, <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> , <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> !' ;
mysql_query (
" INSERT INTO `chat` (`new`,`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`,`typeTime`) VALUES (1,' " . $pl [ 'city' ] . " ','','','',' " . $txt . " ',' " . time (
) . " ','6','0','1') "
);
}
2022-06-06 21:30:34 +00:00
}