Subversion Repositories ALCASAR

Rev

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

Rev 834 Rev 835
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 834 2012-03-11 09:25:30Z franck $
22
// $Id: portail.php 835 2012-03-11 22:21:27Z richard $
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
		$network_filter_status = $text['enable'];}
115
		$network_filter_status = $text['enable'];}
116
	else {	$network_filter_status = $text['disable'];}
116
	else {	$network_filter_status = $text['disable'];}
117
	if (filtrageTest("/etc/dansguardian/dansguardian.conf","/^reportinglevel = 3/")){
117
	if (filtrageTest("/etc/dansguardian/dansguardian.conf","/^reportinglevel = 3/")){
118
		$web_filter_status = $text['enable'];}
118
		$web_filter_status = $text['enable'];}
119
	else {	$web_filter_status = $text['disable'];}
119
	else {	$web_filter_status = $text['disable'];}
120
	if (filtrageTest("/etc/dansguardian/dansguardian.conf","/^proxyport = 8090/")){
120
	if (filtrageTest("/usr/local/etc/alcasar.conf","/^WEB_ANTIVIRUS=on/")){
121
		$web_antivir_status = $text['enable'];}
121
		$web_antivir_status = $text['enable'];}
122
	else {	$web_antivir_status = $text['disable'];}
122
	else {	$web_antivir_status = $text['disable'];}
123
	if ((filtrageTest("/var/www/html/index.php","/network_pb = False/")) && (internetTest($INSTALLEDVERSION))){
123
	if ((filtrageTest("/var/www/html/index.php","/network_pb = False/")) && (internetTest($INSTALLEDVERSION))){
124
		$internet_status =  "<img src='/images/state_ok.gif'>".$text['enable'];
124
		$internet_status =  "<img src='/images/state_ok.gif'>".$text['enable'];
125
		$version = dns_get_record("version.alcasar.net",DNS_TXT);
125
		$version = dns_get_record("version.alcasar.net",DNS_TXT);