Subversion Repositories ALCASAR

Rev

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

Rev 2182 Rev 2251
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 2182 2017-04-25 22:10:46Z tom.houdayer $
22
// $Id: portail.php 2251 2017-05-22 22:15:22Z tom.houdayer $
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 119... Line 119...
119
	$INSTALLEDVERSION = $conf['VERSION'];
119
	$INSTALLEDVERSION = $conf['VERSION'];
120
	$VERSIONBL = date ("F d Y", filemtime ('/etc/dansguardian/lists/blacklists/README'));
120
	$VERSIONBL = date ("F d Y", filemtime ('/etc/dansguardian/lists/blacklists/README'));
121
	$nbr_user = request ('user');
121
	$nbr_user = request ('user');
122
	$nbr_grp  = request ('group');
122
	$nbr_grp  = request ('group');
123
	$nbr_user_online = exec ("sudo /usr/sbin/chilli_query list | cut -d\" \" -f5 | grep \"1\" | wc -l");
123
	$nbr_user_online = exec ("sudo /usr/sbin/chilli_query list | cut -d\" \" -f5 | grep \"1\" | wc -l");
124
	if ((filtrageTest("/var/www/html/index.php","/network_pb = False/")) && (internetTest($INSTALLEDVERSION))){
124
	if ((filtrageTest("/var/www/html/index.php","/network_pb = false/")) && (internetTest($INSTALLEDVERSION))){
125
		$internet_status =  "<img src='/images/state_ok.gif'>".$text['enable'];
125
		$internet_status =  "<img src='/images/state_ok.gif'>".$text['enable'];
126
		$version = dns_get_record("version.alcasar.net",DNS_TXT);
126
		$version = dns_get_record("version.alcasar.net",DNS_TXT);
127
		$AVAILABLEDVERSION = $version[0]['txt'];
127
		$AVAILABLEDVERSION = $version[0]['txt'];
128
	} else {
128
	} else {
129
		$internet_status =  "<img src='/images/state_error.gif'>".$text['disable'];
129
		$internet_status =  "<img src='/images/state_error.gif'>".$text['disable'];