Beispiel #1
0
         }
     }
 }
 if (!file_exists($servers_file) || $forceupdate || $update_servers) {
     if ($server_offline == false) {
         $ttt1 = timpexec();
         filesuck($cccam_host, $webinfo_port, $webinfo_user, $webinfo_pass, "/servers", $servers_update);
         checkUpdateFile($servers_update);
         $ttt2 = timpexec();
         $difff = number_format(substr($ttt2, 0, 9) + substr($ttt2, -10) - substr($ttt1, 0, 9) - substr($ttt1, -10), 4);
         if ($downloadfacut == false) {
             $difff = "error";
         }
         $updatelog_text = $updatelog_text . "\nServers : " . $difff . " ms";
         if ($downloadfacut == true) {
             saveOnlineData(file($servers_update));
         }
     }
 }
 if (!file_exists($activeclients_file) || $forceupdate || $update_activeclients) {
     if ($server_offline == false) {
         $ttt1 = timpexec();
         filesuck($cccam_host, $webinfo_port, $webinfo_user, $webinfo_pass, "/activeclients", $activeclients_update);
         checkUpdateFile($activeclients_update);
         $ttt2 = timpexec();
         $difff = number_format(substr($ttt2, 0, 9) + substr($ttt2, -10) - substr($ttt1, 0, 9) - substr($ttt1, -10), 4);
         if ($downloadfacut == false) {
             $difff = "error";
         }
         $updatelog_text = $updatelog_text . "\nActiveclients : " . $difff . " ms";
     }
Beispiel #2
0
<?php

$cron_p = "";
if (isset($_GET['p'])) {
    $cron_p = $_GET['p'];
}
$cron_profil = (int) trim($cron_p);
$cron_update = true;
include "common.php";
$servers_data = filesuck($cccam_host, $webinfo_port, $webinfo_user, $webinfo_pass, "/servers", "");
$servers_data = stripcontents($servers_data);
saveOnlineData($servers_data);
$clients_data = filesuck($cccam_host, $webinfo_port, $webinfo_user, $webinfo_pass, "/clients", "");
$clients_data = stripcontents($clients_data);
saveUsageData($clients_data);