Beispiel #1
0
     if ($server_offline == false) {
         $ttt1 = timpexec();
         filesuck($cccam_host, $webinfo_port, $webinfo_user, $webinfo_pass, "/entitlements", $entitlements_update);
         checkUpdateFile($entitlements_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 . "\nEntitlements : " . $difff . " ms";
     }
 }
 if (!file_exists($shares_file) || $forceupdate || $update_shares) {
     if ($server_offline == false) {
         $ttt1 = timpexec();
         filesuck($cccam_host, $webinfo_port, $webinfo_user, $webinfo_pass, "/shares", $shares_update);
         checkUpdateFile($shares_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 . "\nShares : " . $difff . " ms";
     }
 }
 if ($downloadfacut == true) {
     CopyUpdate($caminfo_update, $caminfo_file);
     CopyUpdate($servers_update, $servers_file);
     CopyUpdate($shares_update, $shares_file);
     CopyUpdate($clients_update, $clients_file);
     CopyUpdate($activeclients_update, $activeclients_file);
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);