Subversion Repositories ALCASAR

Rev

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

Rev 2186 Rev 2215
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: index.php 2186 2017-04-26 18:12:04Z tom.houdayer $
2
# $Id: index.php 2215 2017-05-09 20:08:32Z 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 495... Line 495...
495
			<img src="<?php echo "$img_rep$img_organisme"; ?>">
495
			<img src="<?php echo "$img_rep$img_organisme"; ?>">
496
		</div>
496
		</div>
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
-
 
502
				if ((!$direct_access) && (!$network_pb) && (!isset($_GET['warn']))) {
-
 
503
					$pattern = str_replace('www.', '', $_SERVER['HTTP_HOST']);
501
# search here in the blacklist categories if we want to display it (if ((! $direct_access) && (! $network_pb)){}
504
					exec('grep -Re ' . escapeshellarg('^'.$pattern.'$') . " /etc/dansguardian/lists/blacklists/*/domains | cut -d'/' -f6", $output);
-
 
505
					$lists = [];
-
 
506
					foreach ($output as $line) {
-
 
507
						$lists[] = $line;
-
 
508
					}
-
 
509
 
-
 
510
					echo $l_required_domain.' : '.htmlspecialchars($_SERVER['HTTP_HOST']);
-
 
511
					if (!empty($lists)) {
-
 
512
						echo "<br>$l_category ".implode(', ', $lists);
-
 
513
					}
-
 
514
				}
502
?>
515
				?>
503
			</div>
516
			</div>
504
<?php
517
<?php
505
# Check if the SMS service is enable
518
# Check if the SMS service is enable
506
$service_SMS_status="false";
519
$service_SMS_status="false";
507
if ($service_SMS_status == "true"){
520
if ($service_SMS_status == "true"){