} $curl = new ccurl("https://{$hostname}:{$listen_port}/nodes.listener.php?PING=YES"); if ($send_listen_ip != null) { $curl->interface = $send_listen_ip; } $curlparms["listen_addr"] = $listen_addr; $curl = new ccurl("https://{$hostname}:{$listen_port}/nodes.listener.php"); if ($send_listen_ip != null) { $curl->interface = $send_listen_ip; } $curlparms["listen_addr"] = $listen_addr; $unix = new unix(); $curlparms["hostname"] = $unix->hostname_g(); $sql = "SELECT servername FROM freeweb"; $q = new mysql(); $results = $q->QUERY_SQL($sql, 'artica_backup'); while ($ligne = mysql_fetch_array($results, MYSQL_ASSOC)) { $curlparms["FREEWEBS_SRV"][$ligne["servername"]] = true; } @file_put_contents("/usr/share/artica-postfix/ressources/logs/web/com.txt", base64_encode(serialize($curlparms))); $net = new netagent(); $net->compress("/usr/share/artica-postfix/ressources/logs/web/com.txt", "/usr/share/artica-postfix/ressources/logs/web/com.txt.gz"); @unlink("/usr/share/artica-postfix/ressources/logs/web/com.txt"); $curl->x_www_form_urlencoded = true; if (!$curl->postFile("DNS_LINKER", "/usr/share/artica-postfix/ressources/logs/web/com.txt.gz", array("CREDS" => $EnableDNSLinkerCreds["CREDS"], "VERBOSE" => "TRUE"))) { echo "Posting informations Failed {$curl->error}...\n"; @unlink("/usr/share/artica-postfix/ressources/logs/web/com.txt.gz"); } if ($GLOBALS["VERBOSE"]) { echo $curl->data . "\n"; }