Line 1... |
Line 1... |
1 |
<?php
|
1 |
<?php
|
2 |
/***************************************************************************
|
2 |
/***************************************************************************
|
3 |
* Copyright (C) 2006 by phpSysInfo - A PHP System Information Script *
|
3 |
* Copyright (C) 2006 by phpSysInfo - A PHP System Information Script *
|
4 |
* http://phpsysinfo.sourceforge.net/ *
|
4 |
* http://phpsysinfo.sourceforge.net/ *
|
5 |
* Copyright (C) 2010 by 3abtux & Rexy for ALCASAR * *
|
5 |
* addons by 3abtux & Rexy for ALCASAR *
|
6 |
* This program is free software; you can redistribute it and/or modify *
|
6 |
* This program is free software; you can redistribute it and/or modify *
|
7 |
* it under the terms of the GNU General Public License as published by *
|
7 |
* it under the terms of the GNU General Public License as published by *
|
8 |
* the Free Software Foundation; either version 2 of the License, or *
|
8 |
* the Free Software Foundation; either version 2 of the License, or *
|
9 |
* (at your option) any later version. *
|
9 |
* (at your option) any later version. *
|
10 |
* *
|
10 |
* *
|
Line 27... |
Line 27... |
27 |
$strResult = 0;
|
27 |
$strResult = 0;
|
28 |
// Déclaration des paramètres de connexion
|
28 |
// Déclaration des paramètres de connexion
|
29 |
$host = "localhost";
|
29 |
$host = "localhost";
|
30 |
$DB_USER = "radius";
|
30 |
$DB_USER = "radius";
|
31 |
$DB_RADIUS = "radius";
|
31 |
$DB_RADIUS = "radius";
|
32 |
$radiuspwd = "W7AH5bp8";
|
32 |
$radiuspwd = "X01WDItQ";
|
33 |
// Connexion au serveur
|
33 |
// Connexion au serveur
|
34 |
mysql_connect($host, $DB_USER,$radiuspwd) or die("erreur de connexion au serveur");
|
34 |
mysql_connect($host, $DB_USER,$radiuspwd) or die("erreur de connexion au serveur");
|
35 |
mysql_select_db($DB_RADIUS) or die("erreur de connexion a la base de donnees");
|
35 |
mysql_select_db($DB_RADIUS) or die("erreur de connexion a la base de donnees");
|
36 |
// Creation et envoi de la requete
|
36 |
// Creation et envoi de la requete
|
37 |
if ($texte == 'user') {$query = "SELECT UserName FROM userinfo";}
|
37 |
if ($texte == 'user') {$query = "SELECT UserName FROM userinfo";}
|
Line 109... |
Line 109... |
109 |
$network_filter_status = $text['enable'];}
|
109 |
$network_filter_status = $text['enable'];}
|
110 |
else { $network_filter_status = $text['disable'];}
|
110 |
else { $network_filter_status = $text['disable'];}
|
111 |
if (filtrageTest("/etc/dansguardian/dansguardian.conf","/^reportinglevel = 3/")){
|
111 |
if (filtrageTest("/etc/dansguardian/dansguardian.conf","/^reportinglevel = 3/")){
|
112 |
$web_filter_status = $text['enable'];}
|
112 |
$web_filter_status = $text['enable'];}
|
113 |
else { $web_filter_status = $text['disable'];}
|
113 |
else { $web_filter_status = $text['disable'];}
|
- |
|
114 |
if (filtrageTest("/etc/dansguardian/dansguardian.conf","/^proxyport = 8090/")){
|
- |
|
115 |
$web_antivir_status = $text['enable'];}
|
- |
|
116 |
else { $web_antivir_status = $text['disable'];}
|
114 |
if (InternetTest()){
|
117 |
if (InternetTest()){
|
115 |
$internet_status = "<img src='/images/state_ok.gif'>".$text['enable'];
|
118 |
$internet_status = "<img src='/images/state_ok.gif'>".$text['enable'];
|
116 |
$version = dns_get_record("version.alcasar.info",DNS_TXT);
|
119 |
$version = dns_get_record("version.alcasar.info",DNS_TXT);
|
117 |
$AVAILABLEDVERSION = $version[0]['txt'];
|
120 |
$AVAILABLEDVERSION = $version[0]['txt'];
|
118 |
} else {
|
121 |
} else {
|
Line 135... |
Line 138... |
135 |
. " <tr>\n"
|
138 |
. " <tr>\n"
|
136 |
. " <td valign=\"top\"><font size=\"-1\">" . $text['groupe'] . "</font></td>\n"
|
139 |
. " <td valign=\"top\"><font size=\"-1\">" . $text['groupe'] . "</font></td>\n"
|
137 |
. " <td><font size=\"-1\">" . $nbr_grp . "</font></td>\n"
|
140 |
. " <td><font size=\"-1\">" . $nbr_grp . "</font></td>\n"
|
138 |
. " </tr>\n"
|
141 |
. " </tr>\n"
|
139 |
. " <tr>\n"
|
142 |
. " <tr>\n"
|
140 |
. " <td valign=\"top\"><font size=\"-1\">" . $text['bl-version'] . "</font></td>\n"
|
143 |
. " <td valign=\"top\"><font size=\"-1\">" . $text['net_filter'] . "</font></td>\n"
|
141 |
. " <td><font size=\"-1\">" . $VERSIONBL . "</font></td>\n"
|
144 |
. " <td><font size=\"-1\">" . $network_filter_status . "</font></td>\n"
|
- |
|
145 |
. " </tr>\n"
|
- |
|
146 |
. " <tr>\n"
|
- |
|
147 |
. " <td valign=\"top\"><font size=\"-1\">" . $text['web_filter'] . "</font></td>\n"
|
- |
|
148 |
. " <td><font size=\"-1\">antivirus : " . $web_antivir_status . ", domain/url : " . $web_filter_status . "</font></td>\n"
|
142 |
. " </tr>\n"
|
149 |
. " </tr>\n"
|
143 |
. " <tr>\n"
|
150 |
. " <tr>\n"
|
144 |
. " <td valign=\"top\"><font size=\"-1\">" . $text['filter'] . "</font></td>\n"
|
151 |
. " <td valign=\"top\"><font size=\"-1\">" . $text['bl-version'] . "</font></td>\n"
|
145 |
. " <td><font size=\"-1\">web : " . $web_filter_status . ", " . $text['network'] . " : " . $network_filter_status . "</font></td>\n"
|
152 |
. " <td><font size=\"-1\">" . $VERSIONBL . "</font></td>\n"
|
146 |
. " </tr>\n"
|
153 |
. " </tr>\n"
|
147 |
. " <tr>\n"
|
154 |
. " <tr>\n"
|
148 |
. " <td valign=\"top\"><font size=\"-1\">" . $text['internet_link'] . "</font></td>\n"
|
155 |
. " <td valign=\"top\"><font size=\"-1\">" . $text['internet_link'] . "</font></td>\n"
|
149 |
. " <td><font size=\"-1\">" . $internet_status . "</font></td>\n"
|
156 |
. " <td><font size=\"-1\">" . $internet_status . "</font></td>\n"
|
150 |
. " </tr>\n"
|
157 |
. " </tr>\n"
|