Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 832 → Rev 833

/web/acc/phpsysinfo/includes/xml/portail.php
56,7 → 56,7
return $_text;
}
// Fonction de test de connectivité internet
function internetTest(){
function internetTest($INSTALLEDVERSION){
$host = "www.google.com"; # Google Test
$host2 = "www.alcasar.net";
$port = "80";
70,7 → 70,7
fclose($sock);
$sock = fsockopen($host2, $port, $num, $error, 2);
if ($sock){
fputs($sock,"GET http://$host2/images/M_images/weblink24.png HTTP/1.0\n\n");
fputs($sock,"GET http://$host2/images/M_images/weblink$INSTALLEDVERSION.png HTTP/1.0\n\n");
fclose($sock); }
return true;
}
120,7 → 120,7
if (filtrageTest("/etc/dansguardian/dansguardian.conf","/^proxyport = 8090/")){
$web_antivir_status = $text['enable'];}
else { $web_antivir_status = $text['disable'];}
if ((filtrageTest("/var/www/html/index.php","/network_pb = False/")) && (internetTest())){
if ((filtrageTest("/var/www/html/index.php","/network_pb = False/")) && (internetTest($INSTALLEDVERSION))){
$internet_status = "<img src='/images/state_ok.gif'>".$text['enable'];
$version = dns_get_record("version.alcasar.net",DNS_TXT);
$AVAILABLEDVERSION = $version[0]['txt'];