2022-06-06 21:30:34 +00:00
< ? php
# <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> IP
2022-12-19 18:26:14 +00:00
use Insallah\Db ;
2022-06-06 21:30:34 +00:00
2022-12-19 18:26:14 +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-12-19 18:26:14 +00:00
$query = 'select id, pass from users where battle in (select id from battle where team_win = -1 and time_over = 0 and time_start < unix_timestamp() - 3600)' ;
$sp = Db :: getRows ( $query );
2022-06-06 21:30:34 +00:00
2022-12-19 18:26:14 +00:00
foreach ( $sp as $pl ) {
if ( ! $pl [ 'id' ]) {
continue ;
}
$uid = $pl [ 'id' ];
$pass = $pl [ 'pass' ];
$cron_core = md5 ( $uid . '_brfCOreW@!_' . $pass );
echo file_get_contents ( " https://new-combats.com/jx/battle/refresh.php?uid= $uid &cron_core= $cron_core &pass= $pass " );
echo '<hr>' ;
2022-06-06 21:30:34 +00:00
}
2022-12-19 18:26:14 +00:00
$zv = new FightRequest ();
2022-06-06 21:30:34 +00:00
$zv -> testCronZv ();