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 1805 2016-03-10 11:53:23Z clement.siccardi $
|
22 |
// $Id: portail.php 2006 2016-07-22 13:07:10Z raphael.pion $
|
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 105... |
Line 105... |
105 |
fclose ($handle);
|
105 |
fclose ($handle);
|
106 |
$VERSIONBL = date ("F d Y", filemtime ('/etc/dansguardian/lists/blacklists/README'));
|
106 |
$VERSIONBL = date ("F d Y", filemtime ('/etc/dansguardian/lists/blacklists/README'));
|
107 |
$nbr_user = request ('user');
|
107 |
$nbr_user = request ('user');
|
108 |
$nbr_grp = request ('group');
|
108 |
$nbr_grp = request ('group');
|
109 |
$nbr_user_online = exec ("sudo /usr/sbin/chilli_query list | cut -d\" \" -f5 | grep \"1\" | wc -l");
|
109 |
$nbr_user_online = exec ("sudo /usr/sbin/chilli_query list | cut -d\" \" -f5 | grep \"1\" | wc -l");
|
110 |
if (filtrageTest("/usr/local/etc/alcasar.conf", "/^PROTOCOLS_FILTERING=on/")){
|
- |
|
111 |
$network_filter_status = $text['enable'];}
|
- |
|
112 |
else { $network_filter_status = $text['disable'];}
|
- |
|
113 |
if ((filtrageTest("/var/www/html/index.php","/network_pb = False/")) && (internetTest($INSTALLEDVERSION))){
|
110 |
if ((filtrageTest("/var/www/html/index.php","/network_pb = False/")) && (internetTest($INSTALLEDVERSION))){
|
114 |
$internet_status = "<img src='/images/state_ok.gif'>".$text['enable'];
|
111 |
$internet_status = "<img src='/images/state_ok.gif'>".$text['enable'];
|
115 |
$version = dns_get_record("version.alcasar.net",DNS_TXT);
|
112 |
$version = dns_get_record("version.alcasar.net",DNS_TXT);
|
116 |
$AVAILABLEDVERSION = $version[0]['txt'];
|
113 |
$AVAILABLEDVERSION = $version[0]['txt'];
|
117 |
} else {
|
114 |
} else {
|
Line 138... |
Line 135... |
138 |
. " <tr>\n"
|
135 |
. " <tr>\n"
|
139 |
. " <td valign=\"top\"><font size=\"-1\">" . $text['groupe'] . "</font></td>\n"
|
136 |
. " <td valign=\"top\"><font size=\"-1\">" . $text['groupe'] . "</font></td>\n"
|
140 |
. " <td><font size=\"-1\">" . $nbr_grp . "</font></td>\n"
|
137 |
. " <td><font size=\"-1\">" . $nbr_grp . "</font></td>\n"
|
141 |
. " </tr>\n"
|
138 |
. " </tr>\n"
|
142 |
. " <tr>\n"
|
139 |
. " <tr>\n"
|
143 |
. " <td valign=\"top\"><font size=\"-1\">" . $text['net_filter'] . "</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['bl-version'] . "</font></td>\n"
|
140 |
. " <td valign=\"top\"><font size=\"-1\">" . $text['bl-version'] . "</font></td>\n"
|
148 |
. " <td><font size=\"-1\">" . $VERSIONBL . "</font></td>\n"
|
141 |
. " <td><font size=\"-1\">" . $VERSIONBL . "</font></td>\n"
|
149 |
. " </tr>\n"
|
142 |
. " </tr>\n"
|
150 |
. "</table>\n";
|
143 |
. "</table>\n";
|
151 |
return $_text;
|
144 |
return $_text;
|