game/cron_zv.php
2022-12-19 20:26:14 +02:00

27 lines
680 B
PHP

<?php
# Ïîëó÷àåì IP
use Insallah\Db;
const GAME = true;
include('_incl_data/__config.php');
include('_incl_data/class/__db_connect.php');
$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);
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>';
}
$zv = new FightRequest();
$zv->testCronZv();