Line 17... |
Line 17... |
17 |
* along with this program; if not, write to the *
|
17 |
* along with this program; if not, write to the *
|
18 |
* Free Software Foundation, Inc., *
|
18 |
* Free Software Foundation, Inc., *
|
19 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
19 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
20 |
***************************************************************************/
|
20 |
***************************************************************************/
|
21 |
|
21 |
|
22 |
// $Id: portail.php 696 2011-08-08 20:59:53Z franck $
|
22 |
// $Id: portail.php 697 2011-08-16 15:27:36Z franck $
|
23 |
|
23 |
|
24 |
// xml_utilisateur()
|
24 |
// xml_utilisateur()
|
25 |
|
25 |
|
26 |
function request ($texte) {
|
26 |
function request ($texte) {
|
27 |
$strResult = 0;
|
27 |
$strResult = 0;
|
Line 106... |
Line 106... |
106 |
$VERSIONBL = fread ($handle, filesize ($file_bl));
|
106 |
$VERSIONBL = fread ($handle, filesize ($file_bl));
|
107 |
fclose ($handle);
|
107 |
fclose ($handle);
|
108 |
$nbr_user = request ('user');
|
108 |
$nbr_user = request ('user');
|
109 |
$nbr_grp = request ('group');
|
109 |
$nbr_grp = request ('group');
|
110 |
$nbr_user_online = exec ("sudo /usr/sbin/chilli_query list | cut -d\" \" -f5 | grep \"1\" | wc -l");
|
110 |
$nbr_user_online = exec ("sudo /usr/sbin/chilli_query list | cut -d\" \" -f5 | grep \"1\" | wc -l");
|
111 |
if (filtrageTest("/usr/local/bin/alcasar-iptables.sh", "/^FILTERING=\"yes\"/")){
|
111 |
if (filtrageTest("/usr/local/etc/alcasar.conf", "/^PROTOCOLS_FILTERING=on/")){
|
112 |
$network_filter_status = $text['enable'];}
|
112 |
$network_filter_status = $text['enable'];}
|
113 |
else { $network_filter_status = $text['disable'];}
|
113 |
else { $network_filter_status = $text['disable'];}
|
114 |
if (filtrageTest("/etc/dansguardian/dansguardian.conf","/^reportinglevel = 3/")){
|
114 |
if (filtrageTest("/etc/dansguardian/dansguardian.conf","/^reportinglevel = 3/")){
|
115 |
$web_filter_status = $text['enable'];}
|
115 |
$web_filter_status = $text['enable'];}
|
116 |
else { $web_filter_status = $text['disable'];}
|
116 |
else { $web_filter_status = $text['disable'];}
|
117 |
if (filtrageTest("/etc/dansguardian/dansguardian.conf","/^proxyport = 8090/")){
|
117 |
if (filtrageTest("/etc/dansguardian/dansguardian.conf","/^proxyport = 8090/")){
|
118 |
$web_antivir_status = $text['enable'];}
|
118 |
$web_antivir_status = $text['enable'];}
|
119 |
else { $web_antivir_status = $text['disable'];}
|
119 |
else { $web_antivir_status = $text['disable'];}
|
120 |
if (InternetTest()){
|
120 |
if (internetTest()){
|
121 |
$internet_status = "<img src='/images/state_ok.gif'>".$text['enable'];
|
121 |
$internet_status = "<img src='/images/state_ok.gif'>".$text['enable'];
|
122 |
$version = dns_get_record("version.alcasar.info",DNS_TXT);
|
122 |
$version = dns_get_record("version.alcasar.info",DNS_TXT);
|
123 |
$AVAILABLEDVERSION = $version[0]['txt'];
|
123 |
$AVAILABLEDVERSION = $version[0]['txt'];
|
124 |
} else {
|
124 |
} else {
|
125 |
$internet_status = "<img src='/images/state_error.gif'>".$text['disable'];
|
125 |
$internet_status = "<img src='/images/state_error.gif'>".$text['disable'];
|