Subversion Repositories ALCASAR

Rev

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

Rev 2450 Rev 2521
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: index.php 2450 2017-12-05 21:53:42Z tom.houdayer $
2
# $Id: index.php 2521 2018-04-02 19:46:16Z armand.ito $
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 460... Line 460...
460
 
460
 
461
// Search blacklist categories
461
// Search blacklist categories
462
if ((!$direct_access) && (!$network_pb) && (!isset($_GET['warn']))) {
462
if ((!$direct_access) && (!$network_pb) && (!isset($_GET['warn']))) {
463
	$pattern = str_replace('www.', '', $_SERVER['HTTP_HOST']);
463
	$pattern = str_replace('www.', '', $_SERVER['HTTP_HOST']);
464
	$output = [];
464
	$output = [];
465
	exec('grep -Re ' . escapeshellarg('^'.$pattern.'$') . " /etc/dansguardian/lists/blacklists/*/domains | cut -d'/' -f6", $output);
465
	exec('grep -Re ' . escapeshellarg('^'.$pattern.'$') . " /etc/e2guardian/lists/blacklists/*/domains | cut -d'/' -f6", $output);
466
	$lists = [];
466
	$lists = [];
467
	foreach ($output as $line) {
467
	foreach ($output as $line) {
468
		$lists[] = $line;
468
		$lists[] = $line;
469
	}
469
	}
470
 
470