Subversion Repositories ALCASAR

Rev

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

Rev 2215 Rev 2216
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: index.php 2215 2017-05-09 20:08:32Z tom.houdayer $
2
# $Id: index.php 2216 2017-05-09 20:31:16Z tom.houdayer $
3
#
3
#
4
# index.php for ALCASAR by Rexy
4
# index.php for ALCASAR by Rexy
5
# UI & css style by stephane ERARD
5
# UI & css style by stephane ERARD
6
# The contents of this file may be used under the terms of the GNU
6
# The contents of this file may be used under the terms of the GNU
7
# General Public License Version 2, provided that the above copyright
7
# General Public License Version 2, provided that the above copyright
Line 497... Line 497...
497
	</div>
497
	</div>
498
		<div id="contenu_acces">
498
		<div id="contenu_acces">
499
			<div id="box_url">
499
			<div id="box_url">
500
				<?php 
500
				<?php 
501
				// Search blacklist categories
501
				// Search blacklist categories
502
				if ((!$direct_access) && (!$network_pb) && (!isset($_GET['warn']))) {
502
				if ((!$direct_access) && (!$display_menu) && (!$network_pb) && (!isset($_GET['warn']))) {
503
					$pattern = str_replace('www.', '', $_SERVER['HTTP_HOST']);
503
					$pattern = str_replace('www.', '', $_SERVER['HTTP_HOST']);
504
					exec('grep -Re ' . escapeshellarg('^'.$pattern.'$') . " /etc/dansguardian/lists/blacklists/*/domains | cut -d'/' -f6", $output);
504
					exec('grep -Re ' . escapeshellarg('^'.$pattern.'$') . " /etc/dansguardian/lists/blacklists/*/domains | cut -d'/' -f6", $output);
505
					$lists = [];
505
					$lists = [];
506
					foreach ($output as $line) {
506
					foreach ($output as $line) {
507
						$lists[] = $line;
507
						$lists[] = $line;