Пишет ошибку на 15 строке, у меня это "goto reloadonline;". Код не полный.
$select = $db->query("SELECT * FROM gen_monitoring ORDER BY id DESC");
if($db->num_rows($select)){
$monitoring = "";
include_once ('engine/api/api.class.php');
$lastcachetime = $dle_api->load_from_cache('lastcachetime');
if(!$lastcachetime){
$dle_api->save_to_cache ('lastcachetime',time());
goto reloadonline;
}
else if(time()-$lastcachetime > 180){
reloadonline:
include('MinecraftQuery.class.php');
while($srv = $db->get_row($select)){
$srvip = $srv['ip'];
$srvid = $srv['id'];
$srvport = $srv['port'];
$Query = new MinecraftQuery();
$Query->Connect($srvip, $srvport);
$srv = $Query->GetInfo();
$online = $srv['Players'];
$servername = $srv['HostName'];
if($servername) $dle_api->save_to_cache ("server$srvid", $online);
else $dle_api->save_to_cache ("server$srvid", "999");
}
}
Что не так?