Subversion Repositories ALCASAR

Rev

Rev 2450 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2450 Rev 2521
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 2450 2017-12-05 21:53:42Z tom.houdayer $
22
// $Id: portail.php 2521 2018-04-02 19:46:16Z armand.ito $
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 115... Line 115...
115
	fclose($file_conf);
115
	fclose($file_conf);
116
 
116
 
117
	exec ("sudo /usr/local/bin/alcasar-watchdog.sh -lt");
117
	exec ("sudo /usr/local/bin/alcasar-watchdog.sh -lt");
118
	// Get current version
118
	// Get current version
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/e2guardian/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())) {
124
	if ((filtrageTest("/var/www/html/index.php","/network_pb = false/")) && (internetTest())) {
125
		$internet_status =  "<img src='/images/state_ok.gif'>".$text['enable'];
125
		$internet_status =  "<img src='/images/state_ok.gif'>".$text['enable'];