Subversion Repositories ALCASAR

Rev

Rev 2823 | Rev 2887 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2823 Rev 2853
Line 76... Line 76...
76
	$l_available = "Version disponible";
76
	$l_available = "Version disponible";
77
	$l_users = "Nombre d'utilisateurs / connectés";
77
	$l_users = "Nombre d'utilisateurs / connectés";
78
	$l_groups = "Nombre de groupes";
78
	$l_groups = "Nombre de groupes";
79
	$l_bl_version = "Date de la blacklist";
79
	$l_bl_version = "Date de la blacklist";
80
}
80
}
-
 
81
else if ($Language === 'es') {
-
 
82
	$l_title = "Bienvenido al ACC (Centro de Control de ALCASAR)";
-
 
83
	$l_internet_link = "Conexión a Internet";
-
 
84
	$l_enable = "Activo";
-
 
85
	$l_disable = "Desactivado";
-
 
86
	$l_version = "Versión instalada";
-
 
87
	$l_available = "Versión disponible";
-
 
88
	$l_users = "Número de usuarios / conectados";
-
 
89
	$l_groups = "Número de grupos";
-
 
90
	$l_bl_version = "Fecha de la lista negra";
-
 
91
}
81
else {
92
else {
82
	$l_title = "Welcome in ACC (ALCASAR Control Center)";
93
	$l_title = "Welcome in ACC (ALCASAR Control Center)";
83
	$l_internet_link = "Internet connection";
94
	$l_internet_link = "Internet connection";
84
	$l_enable = "Enabled";
95
	$l_enable = "Enabled";
85
	$l_disable = "Disabled";
96
	$l_disable = "Disabled";
Line 121... Line 132...
121
$nb_groups  = request ('group');
132
$nb_groups  = request ('group');
122
$nb_online_users = exec ("sudo /usr/sbin/chilli_query list | cut -d\" \" -f5 | grep \"1\" | wc -l");
133
$nb_online_users = exec ("sudo /usr/sbin/chilli_query list | cut -d\" \" -f5 | grep \"1\" | wc -l");
123
if ((filtrageTest("/var/www/html/index.php","/network_pb = false/")) && (internetTest())) {
134
if ((filtrageTest("/var/www/html/index.php","/network_pb = false/")) && (internetTest())) {
124
	$internet_status =  "<img src='/images/state_ok.gif'>".$l_enable;
135
	$internet_status =  "<img src='/images/state_ok.gif'>".$l_enable;
125
	$version = dns_get_record("version.alcasar.net",DNS_TXT);
136
	$version = dns_get_record("version.alcasar.net",DNS_TXT);
-
 
137
	if (!empty($version)) {
126
	$AVAILABLEDVERSION = $version[0]['txt'];
138
		$AVAILABLEDVERSION = $version[0]['txt'];
-
 
139
	} else {
-
 
140
		$AVAILABLEDVERSION = "-";
-
 
141
	}
127
} else {
142
} else {
128
	$internet_status =  "<img src='/images/state_error.gif'>".$l_disable;
143
	$internet_status =  "<img src='/images/state_error.gif'>".$l_disable;
129
	$AVAILABLEDVERSION = "-";
144
	$AVAILABLEDVERSION = "-";
130
}
145
}
131
echo $l_internet_link."	: ".$internet_status."<br>\n";
146
echo $l_internet_link."	: ".$internet_status."<br>\n";