Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2817 → Rev 2818

/web/index.php
55,7 → 55,6
$remote_ip = preg_match('#^([0-9]{1,3}\.){3}[0-9]{1,3}$#', $_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : '';
$connection_history = '';
$nb_connection_history = 3;
 
$redirect_link = 'www.euronews.com'; // Default redirection for HTTPS interception (beware, this website must run in HTTP)
 
// Check if the SMS service is enable
172,11 → 171,7
}
$l_password_change = "<a href=\"https://$hostname/password.php\">Changer votre mot de passe</a>";
$l_password_change_explain = "Vous devez avoir un compte internet valide.";
$l_sms_explain = "Vous redirige vers la page explicative de l'auto enregistrement par SMS.<br><br><strong>Identifiant:</strong> votre numéro de téléphone<br><strong>Mot de passe:</strong> votre message";
$l_back_page = "<a href=\"javascript:history.back()\">Page précédente</a>";
$l_service_sms = "Service SMS actif";
$l_service_sms_n = "Service SMS non actif";
$l_acc_sms = "Auto enregistrement par SMS";
$l_explain_warn = "L'administrateur a créé une archive contenant vos journaux de connexion dans le cadre d'une affaire judiciaire.";
if (isset($_GET['url'])) {
$l_continue_link = "<a href=\"index.php?redirect=1&url=".urlencode($_GET['url'])."\" class=\"button\">Je comprends et je souhaite continuer ma navigation.</a>";
219,11 → 214,7
}
$l_password_change = "<a href=\"https://$hostname/password.php\">Mudar sua senha</a>";
$l_password_change_explain = "Você será redirecionado à página de alteração de senha.<br><br> e deverá ter uma conta de usuário valido para efetuar a troca e acessar à Internet.";
$l_sms_explain = "Redirect you on auto registration page.<br><br><strong>Login:</strong> your phone number<br><strong>Password:</strong> SMS content";
$l_back_page = "<a href=\"javascript:history.back()\">Página anterior</a>";
$l_service_sms = "SMS service enable";
$l_service_sms_n = "SMS service disable";
$l_acc_sms = "Auto registration by SMS";
$l_explain_warn = "El administrador ha creado un archivo que contiene los periódicos de inicio de sesión como parte de un proceso judicial.";
if (isset($_GET['url'])) {
$l_continue_link = "<a href=\"index.php?redirect=1&url=".urlencode($_GET['url'])."\" class=\"button\">Lo comprendo y deseo continuar mi navegación.</a>";
266,11 → 257,7
}
$l_password_change = "<a href=\"https://$hostname/password.php\">更改您的密码</a>";
$l_password_change_explain = "重新指向密码修改页面。<br><br> 您需要一个可用的网络账户。";
$l_sms_explain = "重新指向短信登录页面。<br><br><strong>用户名:</strong>您的电话号码<br><strong>密码:</strong>您的信息";
$l_back_page = "<a href=\"javascript:history.back()\">上一页</a>";
$l_service_sms = "短信服务可用";
$l_service_sms_n = "短信服务禁用";
$l_acc_sms = "短信自动注册";
$l_explain_warn = "管理员创建了一份可用于司法调查的连接日志文档。";
if (isset($_GET['url'])) {
$l_continue_link = "<a href=\"index.php?redirect=1&url=".urlencode($_GET['url'])."\" class=\"button\">我明白并希望继续浏览。</a>";
332,12 → 319,8
$your_phone_text = "رقم الهاتف الخاص بك";
$pass_text = "كلمة السر";
$your_message_text = "رسالتك";
$l_sms_explain = "$your_message_text <strong>$pass_text</strong><br>$your_phone_text <strong>$login_text</strong><br><br>$redirect_sms_text";
$previous_text = "الصفحة السابقة";
$l_back_page = "<a href=\"javascript:history.back()\">$previous_text</a>";
$l_service_sms = "نشطة SMS خدمة";
$l_service_sms_n = "غير نشطة SMS خدمة";
$l_acc_sms = "تسجيل ذاتي عن طريق SMS";
$l_explain_warn = "المسؤول أنشأ أرشيفاً تحتوي على سجلات الاتصال في إطار تحقيق قضائي";
$understand_text = "أنا متفهم و أريد ان أواصل التصفح";
if (isset($_GET['url'])) {
381,11 → 364,7
}
$l_password_change = "<a href=\"https://$hostname/password.php\">Passwort ändern</a>";
$l_password_change_explain = "Leitet Sie auf die Seite der Passwortänderung weiter.<br><br> Sie sollten bereits einen Account für den Internetzugriff haben.";
$l_sms_explain = "Leitet Sie auf die automatische Registrierungsseite weiter.<br><br><strong>Login:</strong> Ihre Telefonnummer<br><strong>Passwort:</strong> SMS content";
$l_back_page = "<a href=\"javascript:history.back()\">Previous page</a>";
$l_service_sms = "SMS-Service aktivieren";
$l_service_sms_n = "SMS-Service deaktivieren";
$l_acc_sms = "Automatische Registrierung per SMS";
$l_explain_warn = "Der Administrator wird ein Archiv erstellen, welches Ihre Logdaten für den Fall einer gerichtlichen Untersuchung beinhaltet.";
if (isset($_GET['url'])) {
$l_continue_link = "<a href=\"index.php?redirect=1&url=".urlencode($_GET['url'])."\" class=\"button\">Ich verstehe und möchte fortfahren.</a>";
429,11 → 408,7
}
$l_password_change = "<a href=\"https://$hostname/password.php\">Change your password</a>";
$l_password_change_explain = "You should already have an Internet access account.";
$l_sms_explain = "Redirect you on auto registration page.<br><br><strong>Login:</strong> your phone number<br><strong>Password:</strong> SMS content";
$l_back_page = "<a href=\"javascript:history.back()\">Previous page</a>";
$l_service_sms = "SMS service enable";
$l_service_sms_n = "SMS service disable";
$l_acc_sms = "Auto registration by SMS";
$l_explain_warn = "The administrator created an archive which contains your imputabilities logs for a judicial investigation.";
if (isset($_GET['url'])) {
$l_continue_link = "<a href=\"index.php?redirect=1&url=".urlencode($_GET['url'])."\" class=\"button\">I understand and I wish to continue.</a>";
519,7 → 494,7
}
////////////////////////////////////////////////////////////////////////
/////////////////////////// TEST VARIABLES /////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
//$service_SMS_status = true;
//$direct_access = true;
//$network_pb = false;
527,10 → 502,8
// 'name' => 'name_test',
// 'domain' => 'domain_test'
//];
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////
 
 
 
// Cleaning the cache
header('Expires: Tue, 01 Jan 2000 00:00:00 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
547,10 → 520,8
<title>ALCASAR - <?= $l_title ?></title>
<link type="text/css" href="<?= ((!$direct_access) ? "//$hostname" : '') ?>/css/bootstrap.min.css" rel="stylesheet">
<link type="text/css" href="/css/index.css" rel="stylesheet">
 
</head>
<body>
 
<div class="col-xs-12 col-md-10 col-md-offset-1" id="gui">
 
<!-- HeaderBox -->
562,7 → 533,6
 
<!-- Title -->
<div id="cadre_titre" class="col-xs-12 col-sm-8">
<?php if ($direct_access): ?>
<p id="acces_controle" class="titre_controle"><?= $l_title ?></p>
<?php if ($network_pb): ?>
569,13 → 539,10
<div class="explanation_net_pb"><?= $l_explain_net_pb ?></div>
<?php endif; ?>
<?php else: // the user is intercepted ?>
 
<?php // if user need to be warned that someone reads his logs ?>
<?php if (isset($_GET['warn']) && isset($_GET['url']) && $_GET['warn'] == '1'): ?>
<?php if (isset($_GET['warn']) && isset($_GET['url']) && $_GET['warn'] == '1'): // if user need to be warm that someone reads his log ?>
<div id="cadre_titre" class="titre_refus">
<p id="acces_controle" class="titre_refus"><?= $l_title_warn ?></p>
</div>
<?php else: // the user is blacklisted (or whitelisted) ?>
<div id="cadre_titre" class="titre_refus">
<p id="acces_controle" class="titre_refus"><?= $l_title ?></p>
588,14 → 555,12
<!-- Main content box -->
<div class="row">
<div id="contenu_acces" class="col-xs-12 col-lg-offset-1 col-lg-10">
<?php if ((!$direct_access) && (!$network_pb) && (!isset($_GET['warn']))): // print blacklist categories ?>
<div id="box_url">
<?php // Print blacklist categories ?>
<?php if ((!$direct_access) && (!$network_pb) && (!isset($_GET['warn']))): ?>
<?= $filteredUrlHtml ?>
<?php endif; ?>
<?= $filteredUrlHtml ?>
</div>
<?php endif; ?>
 
 
<!-- Menu -->
<div class="menu-container container col_xs_12 col-sm-7">
<?php if ($direct_access): ?>
621,15 → 586,14
</div>
 
<?php if ($service_SMS_status === true): ?>
<div class="box_menu_right box_menu" id="box_acc">
<span><?= $l_sms_access ?></span>
<div class="menu-image">
<img class="img-responsive menu-image" src="<?= $img_rep.$img_sms ?>">
</div>
<div class="box_menu_right box_menu" id="box_acc">
<span><?= $l_sms_access ?></span>
<div class="menu-image">
<img class="img-responsive menu-image" src="<?= $img_rep.$img_sms ?>">
</div>
</div>
<?php endif; ?>
</div>
 
<!-- Info Box -->
<div class="info-box-container col-sm-5">
651,11 → 615,6
<h2 class="box_infos_titles"><?= $l_password_change ?></h2>
<p class="box_infos_explanations"><?= $l_password_change_explain ?></p>
<?php if ($service_SMS_status === true): ?>
<h2 class="box_infos_titles"><?= $l_sms_access ?></h2>
<p class="box_infos_explanations"><?= $l_sms_explain ?></p>
<p style="color: green; text-align: center;"><?= $l_service_sms ?></p>
<?php endif; ?>
<?php else: // the user is intercepted ?>
<?php if (isset($_GET['warn']) && isset($_GET['url']) && $_GET['warn'] === '1'): // user need to be warned that someone reads his logs ?>
<div id="box_refuse">
681,13 → 640,11
<span>Diagnostic : <?= $diagnostic ?></span>
<?php endif; ?>
</div>
<?php if ($direct_access): // display the admin logo (wheel) at the bottom right ?>
<div id="corner">
<div id="adm" class="corn">
<a href="<?= "https://$hostname/acc/" ?>"><img src="<?= $img_rep.$img_adm ?>"></a>
</div>
<div id="corner">
<div id="adm" class="corn">
<a href="<?= "https://$hostname/acc/" ?>"><img src="<?= $img_rep.$img_adm ?>"></a>
</div>
</div>
</div>
<?php endif; ?>
697,7 → 654,5
<img class="img-responsive img-organisme" src="<?= ((!$direct_access) ? "//$hostname" : '') ?><?= $img_rep.$img_organisme ?>">
</div>
</div>
 
 
</body>
</html>