Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 3130 → Rev 3132

/web/acc/admin/network.php
48,7 → 48,7
$l_network_title = "Configuration réseau";
$l_internet_legend = "INTERNET";
$l_ip_mask = "Masque";
$l_ip_router = "Passerelle";
$l_ip_router = "Routeur";
$l_ip_public = "Adresse IP publique";
$l_ip_dns1 = "DNS n°1";
$l_ip_dns2 = "DNS n°2";
118,7 → 118,7
$l_network_title = "Configuración de Red";
$l_internet_legend = "INTERNET";
$l_ip_mask = "Máscara";
$l_ip_router = "Puerta de enlace";
$l_ip_router = "Router";
$l_ip_public = "IP Pública";
$l_ip_dns1 = "DNS n°1";
$l_ip_dns2 = "DNS n°2";
187,7 → 187,7
$l_network_title = "Network configuration";
$l_internet_legend = "INTERNET";
$l_ip_mask = "Mask";
$l_ip_router = "Gateway";
$l_ip_router = "Router";
$l_ip_public = "Public IP address";
$l_ip_dns1 = "DNS n°1";
$l_ip_dns2 = "DNS n°2";
/web/acc/manager/htdocs/activity.php
59,7 → 59,7
$l_captureon = "Autoriser et capturer";
$l_captureoff = "Arrêter la capture";
$l_captureonly_on = "Capturer";
$l_gw = "Passerelle";
$l_gw = "Routeur";
} else if ($Language === 'es') {
$l_activity = "Actividad en la LAN";
$l_ip_adr = "Dirección IP";
78,7 → 78,7
$l_captureon = "Autorizar y capturar";
$l_captureoff = "Detener la captura";
$l_captureonly_on = "Captura";
$l_gw = "Rasarela";
$l_gw = "Router";
} else {
$l_activity = "Activity on the consultation LAN";
$l_ip_adr = "IP Address";
97,7 → 97,7
$l_captureon = "Authorize and capture";
$l_captureoff = "Stop capture";
$l_captureonly_on = "Capture";
$l_gw = "Gateway";
$l_gw = "Router";
}
function taille_fichier($fichier)
{
/web/acc/welcome.php
8,7 → 8,7
$host = "localhost";
$DB_USER = "radius";
$DB_RADIUS = "radius";
$radiuspwd = "pJHKcy9Jv1HrCMHM";
$radiuspwd = "";
// Connexion au serveur
$mysqli = new mysqli($host, $DB_USER, $radiuspwd, $DB_RADIUS);
if ($texte == 'user') {$query = "SELECT UserName FROM userinfo";}
158,14 → 158,26
$lan_status = $l_lan." "." <img src='/images/state_error.gif'> ";
}
 
// Router status
// Router(s) status
$mask = strrchr($conf['PUBLIC_IP'],"/");
if(routerTest($conf['GW'],$conf['EXTIF']) && ($conf['GW'].$mask != $conf['PUBLIC_IP'])){
if(routerTest($conf['GW'],$conf['EXTIF']) && ($conf['GW'].$mask != $conf['PUBLIC_IP'])){ //test only if ALCASAR is not directly connected to Internet
$router_status = $l_router." "." <img src='/images/state_ok.gif'> ";
} else{
$router_status = $l_router." "." <img src='/images/state_error.gif'> ";
}
 
if($conf['MULTIWAN'] == 'on'){
exec("grep \"^WAN\" " . CONF_FILE . " | wc -l", $nb_gw);
for ($i = 1; $i <= $nb_gw[0]; $i++){
$gw="WAN".$i; $tmp=explode(',', $conf[$gw], 2);
$gw_ip=trim(str_replace('"', '', $tmp[0]));
$nro_router = $i + 1;
if(routerTest($gw_ip,$conf['EXTIF'])){
$router_status = $router_status." $l_router"."$nro_router"." <img src='/images/state_ok.gif'> ";
} else{
$router_status = $router_status." $l_router"."$nro_router"." <img src='/images/state_error.gif'> ";
}
}
}
// Internet status
if ((searchString("/var/www/html/index.php","/network_pb = false/")) && (internetTest())) {
$internet_status = $l_DNS." "." <img src='/images/state_ok.gif'> ";