Subversion Repositories ALCASAR

Rev

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

Rev 2370 Rev 2398
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: index.php 2370 2017-08-09 23:20:58Z tom.houdayer $
2
# $Id: index.php 2398 2017-08-27 13:45:33Z 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 484... Line 484...
484
<!DOCTYPE html>
484
<!DOCTYPE html>
485
<html>
485
<html>
486
	<head>
486
	<head>
487
		<meta charset="UTF-8">
487
		<meta charset="UTF-8">
488
		<title>ALCASAR - <?= $l_title ?></title>
488
		<title>ALCASAR - <?= $l_title ?></title>
489
		<link type="text/css" href="/css/style_intercept.css" rel="stylesheet">
489
		<link type="text/css" href="<?= ((!$direct_access) ? "//$hostname" : '') ?>/css/style_intercept.css" rel="stylesheet">
490
		<?php if ($direct_access): ?>
490
		<?php if ($direct_access): ?>
491
			<script>
491
			<script>
492
			function setBoxInfoContent(param){
492
			function setBoxInfoContent(param){
493
				document.getElementById('box_info').innerHTML = document.getElementById(param).innerHTML;
493
				document.getElementById('box_info').innerHTML = document.getElementById(param).innerHTML;
494
			}
494
			}
Line 511... Line 511...
511
					<p id="acces_controle" class="titre_refus"><?= $l_title ?></p>
511
					<p id="acces_controle" class="titre_refus"><?= $l_title ?></p>
512
			<?php endif; ?>
512
			<?php endif; ?>
513
		<?php endif; ?>
513
		<?php endif; ?>
514
 
514
 
515
			<div id="boite_logo">
515
			<div id="boite_logo">
516
				<img src="<?= $img_rep.$img_organisme ?>">
516
				<img src="<?= ((!$direct_access) ? "//$hostname" : '') ?><?= $img_rep.$img_organisme ?>">
517
			</div>
517
			</div>
518
		</div>
518
		</div>
519
		<div id="contenu_acces">
519
		<div id="contenu_acces">
520
			<div id="box_url">
520
			<div id="box_url">
521
				<?php if ((!$direct_access) && (!$network_pb) && (!isset($_GET['warn']))): // Print blacklist categories ?>
521
				<?php if ((!$direct_access) && (!$network_pb) && (!isset($_GET['warn']))): // Print blacklist categories ?>
Line 587... Line 587...
587
				<div id="box_info">
587
				<div id="box_info">
588
				</div>
588
				</div>
589
			<?php else: // the user is intercepted ?>
589
			<?php else: // the user is intercepted ?>
590
				<?php if (isset($_GET['warn']) && isset($_GET['url']) && $_GET['warn'] === '1'): // user need to be warned that someone reads his logs ?>
590
				<?php if (isset($_GET['warn']) && isset($_GET['url']) && $_GET['warn'] === '1'): // user need to be warned that someone reads his logs ?>
591
					<div id="box_refuse">
591
					<div id="box_refuse">
592
						<img src="<?= $img_rep.$img_warning ?>">
592
						<img src="//<?= $hostname.$img_rep.$img_warning ?>">
593
						<p><?= $l_explain_warn ?></p>
593
						<p><?= $l_explain_warn ?></p>
594
					</div>
594
					</div>
595
					<div id="liens_redir">
595
					<div id="liens_redir">
596
						<p><?= $l_continue_link ?></p>
596
						<p><?= $l_continue_link ?></p>
597
					</div>
597
					</div>
598
				<?php else: ?>
598
				<?php else: ?>
599
					<div id="box_refuse">
599
					<div id="box_refuse">
600
						<img src="<?= $img_rep.$img_false ?>">
600
						<img src="//<?= $hostname.$img_rep.$img_false ?>">
601
						<p><?= $l_explain ?></p>
601
						<p><?= $l_explain ?></p>
602
					</div>
602
					</div>
603
					<div id="liens_redir">
603
					<div id="liens_redir">
604
						<p><?= $l_back_page ?></p>
604
						<p><?= $l_back_page ?></p>
605
					</div>
605
					</div>