Subversion Repositories ALCASAR

Rev

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

Rev 842 Rev 843
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 842 2012-03-19 21:26:52Z richard $
22
// $Id: portail.php 843 2012-03-20 22:17:24Z 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 109... Line 109...
109
	$nbr_grp  = request ('group');
109
	$nbr_grp  = request ('group');
110
	$nbr_user_online = exec ("sudo /usr/sbin/chilli_query list | cut -d\" \" -f5 | grep \"1\" | wc -l");
110
	$nbr_user_online = exec ("sudo /usr/sbin/chilli_query list | cut -d\" \" -f5 | grep \"1\" | wc -l");
111
	if (filtrageTest("/usr/local/etc/alcasar.conf", "/^PROTOCOLS_FILTERING=on/")){
111
	if (filtrageTest("/usr/local/etc/alcasar.conf", "/^PROTOCOLS_FILTERING=on/")){
112
		$network_filter_status = $text['enable'];}
112
		$network_filter_status = $text['enable'];}
113
	else {	$network_filter_status = $text['disable'];}
113
	else {	$network_filter_status = $text['disable'];}
114
	if (filtrageTest("/etc/dansguardian/dansguardian.conf","/^reportinglevel = 3/")){
114
	if (filtrageTest("/usr/local/etc/alcasar.conf","/^DNS_FILTERING=on/")){
115
		$web_filter_status = $text['enable'];}
115
		$domain_filter_status = $text['enable'];}
116
	else {	$web_filter_status = $text['disable'];}
116
	else {	$domain_filter_status = $text['disable'];}
117
	if (filtrageTest("/usr/local/etc/alcasar.conf","/^WEB_ANTIVIRUS=on/")){
117
	if (filtrageTest("/usr/local/etc/alcasar.conf","/^WEB_ANTIVIRUS=on/")){
118
		$web_antivir_status = $text['enable'];}
118
		$web_antivir_status = $text['enable'];}
119
	else {	$web_antivir_status = $text['disable'];}
119
	else {	$web_antivir_status = $text['disable'];}
120
	if ((filtrageTest("/var/www/html/index.php","/network_pb = False/")) && (internetTest($INSTALLEDVERSION))){
120
	if ((filtrageTest("/var/www/html/index.php","/network_pb = False/")) && (internetTest($INSTALLEDVERSION))){
121
		$internet_status =  "<img src='/images/state_ok.gif'>".$text['enable'];
121
		$internet_status =  "<img src='/images/state_ok.gif'>".$text['enable'];
Line 149... Line 149...
149
		. "  <tr>\n"
149
		. "  <tr>\n"
150
		. "    <td valign=\"top\"><font size=\"-1\">" . $text['net_filter'] . "</font></td>\n"
150
		. "    <td valign=\"top\"><font size=\"-1\">" . $text['net_filter'] . "</font></td>\n"
151
		. "    <td><font size=\"-1\">" . $network_filter_status . "</font></td>\n"
151
		. "    <td><font size=\"-1\">" . $network_filter_status . "</font></td>\n"
152
		. "  </tr>\n"
152
		. "  </tr>\n"
153
		. "  <tr>\n"
153
		. "  <tr>\n"
-
 
154
		. "    <td valign=\"top\"><font size=\"-1\">" . $text['web_antivirus'] . "</font></td>\n"
-
 
155
		. "    <td><font size=\"-1\">" . $web_antivir_status . "</font></td>\n"
-
 
156
		. "  </tr>\n"
-
 
157
		. "  <tr>\n"
154
		. "    <td valign=\"top\"><font size=\"-1\">" . $text['web_filter'] . "</font></td>\n"
158
		. "    <td valign=\"top\"><font size=\"-1\">" . $text['domain_filter'] . "</font></td>\n"
155
		. "    <td><font size=\"-1\">antivirus : " . $web_antivir_status . ", domain/url : " . $web_filter_status . "</font></td>\n"
159
		. "    <td><font size=\"-1\">" . $domain_filter_status . "</font></td>\n"
156
		. "  </tr>\n"
160
		. "  </tr>\n"
157
		. "  <tr>\n"
161
		. "  <tr>\n"
158
		. "    <td valign=\"top\"><font size=\"-1\">" . $text['bl-version'] . "</font></td>\n"
162
		. "    <td valign=\"top\"><font size=\"-1\">" . $text['bl-version'] . "</font></td>\n"
159
		. "    <td><font size=\"-1\">" . $VERSIONBL . "</font></td>\n"
163
		. "    <td><font size=\"-1\">" . $VERSIONBL . "</font></td>\n"
160
		. "  </tr>\n"
164
		. "  </tr>\n"