Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2765 → Rev 2766

/web/intercept.php
215,39 → 215,39
$l_uam_domain = ":المواقع المسموحة ";
$l_autoregistration = "تسجيل ذاتي (SMS)";
} else if ($Language === 'de') { // German
$l_ChilliError = "Die Authentifizierung ist erfolgreich durch die Nutzung des Portals erfolgt.";
$l_login = "Erfolgreiche Authentifizierung.<HR>Schlißen dieses fensters unterbricht die sitzung";
$l_ChilliError = "Sie wurden erfolgreich durch das Portal authentifiziert.";
$l_login = "Erfolgreiche Authentifizierung.<HR>Schlißen dieses fensters unterbricht die Sitzung";
$l_logout = "Beenden der Verbindung";
$l_loginfailed = "Authentifizierungsfehler Eigenverbrauch";
$l_loggingin = "Kennzeichnung auf dem Eigenverbrauch";
$l_loggedcont = "Zutrittskontrolle";
$l_loggedout = "Ihre Sitzung ist geschlossen";
$l_loginfailed = "Authentifizierungsfehler";
$l_loggingin = "Authentifizierung auf dem Portal";
$l_loggedcont = "Zugangskontrolle";
$l_loggedout = "Ihre Sitzung wurde geschlossen";
$l_user = "Benutzer";
$l_password = "Passwort";
$l_wait = "Bitte warten Sie einen Moment ...";
$l_onlinetime = "Online-Zeit:";
$l_remainingtime = "Abmelden:";
$l_encrypted = "Die Öffnung muß der Anschluß Zahlen";
$l_encrypted = "Die Verbindung muss verschlüsselt sein";
$l_boutonO = "Authentifizierung";
$l_boutonF = "Schließen";
$l_loggedin_stringl1 = "Information System Security";
$l_loggedin_stringl2 = "Dieses Portal wurde eingerichtet, um ordnungsgemäß die Rückverfolgbarkeit, der Zurechenbarkeit und der Nicht-Anerkennung der Verbindungen.";
$l_loggedin_stringl3 = "Ihre Tätigkeit im Netzwerk registriert ist nach Schutz der Privatsphäre.";
$l_loggedin_stringl4 = "Die gespeicherten Daten nicht pouront genutzt werden, dass von einer Justizbehörde im Rahmen einer Untersuchung.";
$l_loggedin_stringl5 = "Diese Daten werden automatisch gelöscht nach einem Jahr.";
$l_loggedin_stringl6 = "Click <a href=\"$alcasarpath\">here</a> to change your password or to integrate the security certificate in your browser";
$l_loggedout_string = "Trennung des Portals erfolgt Gefangener!";
$l_loggedin_stringl2 = "Dieses Portal wurde eingerichtet, um ordnungsgemäß die Rückverfolgbarkeit, die Zurechenbarkeit und die Nicht-Abstreitbarkeit der Verbindungen zu sichern.";
$l_loggedin_stringl3 = "Ihre Tätigkeiten im Netzwerk werden im Hinblick auf den Schutz Ihrer Privatsphäre gespeichert.";
$l_loggedin_stringl4 = "Die gespeicherten Daten können von einer Justizbehörde im Falle einer Untersuchung genutzt werden.";
$l_loggedin_stringl5 = "Diese Daten werden nach einem Jahr automatisch gelöscht.";
$l_loggedin_stringl6 = "Klicken Sie <a href=\"$alcasarpath\">hier</a> um Ihr Password zu ändern oder das Sicherheitszertifikat für Ihren Browser herunterzuladen";
$l_loggedout_string = "Sie wurden vom Portal getrennt!";
$l_reply_0 = "Falscher Benutzername oder falsches Passwort";
$l_reply_1 = "Ihr Tageskontingent wurde erreicht (Dauer oder Volumen)";
$l_reply_2 = "Ihr monatliches Kontingent wurde erreicht (Dauer oder Volumen)";
$l_reply_3 = "You try to connect outside of your allowed timespan";
$l_reply_4 = "your account expired";
$l_reply_5 = "You have reached the maximum number of simultaneous logins";
$l_reply_6 = "Your authorized connexion time has been reached";
$l_online_time = "Online-zeit";
$l_remaining_time = "Restzeit";
$l_uam_domain = "Autorisierten websites : ";
$l_autoregistration = "Automatische registrierung";
$l_reply_3 = "Sie haben versucht sich außerhalb der erlaubten Zeiten zu verbinden";
$l_reply_4 = "Ihr Account ist abgelaufen";
$l_reply_5 = "Sie haben die maximale Anzahl an simultanen Verbindungen erreicht";
$l_reply_6 = "Ihre maximale Verbindungszeit wurde erreicht";
$l_online_time = "Online-Zeit";
$l_remaining_time = "Verbleibende Zeit";
$l_uam_domain = "Authorisierte Webseiten : ";
$l_autoregistration = "Automatische Registrierung";
} else if ($Language === 'nl') { // Dutch
$l_ChilliError = "De authenticatie moet een succes worden via de captive portal dienst.";
$l_login = "Succesvolle authenticatie.<HR>Dit venster te sluiten onderbreekt uw sessie.";
486,6 → 486,16
exit();
}
 
//////////////////////////////////////////////
///////////// TEST VARIABLES /////////////////
//////////////////////////////////////////////////////////////////
//$result = 5; // = 1/2/3/4/5
// reply is a displayed sentence
//$reply = 'dsfsdfsdfdsf'; // = ''/'Incorrect user/password'
//$service_SMS_status = true; // = true/false
// test of domain Allowed
//////////////////////////////////////////////////////////////////
 
// 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');
527,96 → 537,163
}
}
</script>
<link rel="stylesheet" href="/css/style_intercept.css" type="text/css">
<link rel="stylesheet" href="/css/bootstrap.min.css" type="text/css">
<link rel="stylesheet" href="/css/intercepts.css" type="text/css">
 
</head>
<body onLoad="javascript:doOnLoad(<?= $result ?>,'<?= $userurl ?>','<?= $redirurl ?>','<?= $adminurl ?>','<?= $timeleft ?>')">
<center>
<div class="col-xs-12">
<?php if ($result === 2 || $result === 3 || $result === 5): // failed or logoff or notyet ?>
<div class ="row">
<div class="col-xs-12 col-sm-10 col-sm-offset-1">
<div class="row banner">
<div class="col-xs-8 col-xs-offset-2 col-sm-12 col-sm-offset-0">
<h1 class="organisme"><?= $organisme ?></h1>
</div>
</div>
<div class="row">
<form name="form1" class="form-horizontal col-xs-12 col-sm-12 col-md-10 col-md-offset-1 background-form" method="post" action="<?= $loginpath ?>">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-6 col-md-offset-3">
<h2 class="titre-controle-acces"><?= $l_loggedcont ?></h2>
</div>
<div class="hidden-xs hidden-sm col-md-3">
<?php
// Read the "Domain allowed" file
$tab = file(DOMAIN_ALLOWED_LIST);
if ($tab) { // the file isn't empty
echo '<div id="authorized_domain">'.$l_uam_domain.'</div>';
echo '<ul>';
foreach ($tab as $line) {
if (trim($line) !== '') { // the line isn't empty
$domain_allowed = explode('#', $line);
if (trim($domain_allowed[1]) !== '') {
$domain = explode('"', $domain_allowed[0]);
// remove every '.' from the beginning of domain
$domain[1] = ltrim($domain[1], '.');
echo '<li><a href="http://'.trim($domain[1]).'">'.trim($domain_allowed[1]).'</a></li>';
}
}
}
echo '</ul>';
}
?>
 
<?php if ($result === 2 || $result === 3 || $result === 5): // failed or logoff or notyet ?>
<div id="logon">
<table id="mobile-logon-header">
<tr>
<td width="20%">
<img id="logo-organ" class="mobile-only" src="/images/organisme.png">
</td>
<td width="60%">
<h1><?= $organisme ?></h1>
<h2><?= $l_loggedcont ?></h2>
<?php if ($result === 2): // failed ?>
<h3 style="text-align: center"><?= $l_loginfailed ?></h3>
<?php if ($reply): // traitement du reply ... ?>
<center><?= $reply ?><br><br></center>
</div>
</div>
<div>
<?php if ($result === 2): // failed ?>
<h3 class="titre-erreur"><?= $l_loginfailed ?>
<?php if ($reply): // traitement du reply ... ?>
: <?= $reply ?>
<?php endif; ?>
</h3>
<?php endif;
if ($userurl === 'http://logout/') $userurl = 'http://www.google.com'; // Avoid cyclic logout
?>
 
</div>
 
<div class="row inputs">
<div class="hidden-xs col-sm-2">
<img id="logo-organ" class="img-responsive" src="/images/organisme.png">
</div>
<div class="col-xs-12 col-sm-8">
<input type="hidden" name="challenge" value="<?= $challenge ?>">
<input type="hidden" name="userurl" value="<?= $userurl ?>">
<div class="form-group row">
<div class="col-xs-2 col-sm-2 control-label">
<p class="boite-info-text"><?= $l_user ?></p>
</div>
<div class="col-xs-8 col-sm-8" id="input_username">
<input type="text" class="form-control boite-info-text" name="username" autocomplete="off" placeholder="<?= $l_user ?>">
</div>
</div>
<div class="form-group row">
<div class="col-xs-2 col-sm-2 control-label">
<p class="boite-info-text"><?= $l_password ?></p>
</div>
<div class="col-xs-8 col-sm-8" id="input_password">
<input type="password" class="form-control boite-info-text" name="password" autocomplete="off" placeholder="<?= $l_password ?>">
</div>
</div>
</div>
<div class="hidden-xs col-sm-2">
</div>
</div>
<div class="row row_button">
<div class="col-xs-12 text-center">
<input value="<?= $l_boutonO ?>" class="btn btn-primary button" type="submit" name="button">
</div>
</div>
<?php if ($service_SMS_status): ?>
<div class= "row autoregistration_sms">
<a href="autoregistrationinfo.php"><?= $l_autoregistration ?></a>
</div>
<?php endif; ?>
<?php endif;
if ($userurl === 'http://logout/') $userurl = 'http://www.google.com'; // Avoid cyclic logout
?>
</td>
<td width="20%">
</td>
</tr>
</table>
</form>
</div>
</div>
</div>
<div class="row boite-info-spacing">
<div class="col-xs-12 col-sm-10 col-sm-offset-1 col-md-8 col-md-offset-2 boite-info-spacing">
<table id="boite-info" cellSpacing="0" cellPadding="0">
<tr class="boite-info-titre">
<td align="center"><font color="red"><b><?= $l_loggedin_stringl1 ?></b></font></td>
</tr>
<tr class="boite-info-text">
<td align="left">
<ul>
<li><?= $l_loggedin_stringl2 ?></li>
<li><?= $l_loggedin_stringl4 ?></li>
<li><?= $l_loggedin_stringl3 ?></li>
<li><?= $l_loggedin_stringl5 ?></li>
<li><?= $l_loggedin_stringl6 ?></li>
</ul>
</td>
</tr>
</table>
</div>
<div class="hidden-xs hidden-sm col-md-2">
<img id="logo-alcasar" class="img-responsive" src="/images/logo-alcasar.png">
</div>
</div>
<div class="row">
<div class="col-xs-6 col-sm-12 hidden-md hidden-lg">
<img id="logo-alcasar" class="img-responsive img-xs-bottom" src="/images/logo-alcasar.png">
</div>
 
<div class="col-xs-6 hidden-sm hidden-md hidden-lg">
<img id="logo-organ" class="img-responsive img-xs-bottom" src="/images/organisme.png">
 
<img id="logo-alcasar" src="/images/logo-alcasar.png">
<form name="form1" method="post" action="<?= $loginpath ?>">
<input type="hidden" name="challenge" value="<?= $challenge ?>">
<input type="hidden" name="userurl" value="<?= $userurl ?>">
<table id="boite-logon">
<tr>
<td class="desktop-only" width="20%" rowspan="4"> <img id="logo-organ" src="/images/organisme.png"></td>
<td class="desktop-only" width="30%" align="right"><?= $l_user ?></td>
<td id="username_input" width="100%" align="center"><input type="text" maxLength="32" name="username" autocomplete="off" placeholder="<?= $l_user ?>"></td>
</tr>
<tr>
<td class="desktop-only" align="right"><?= $l_password ?></td>
<td id="password_input" width="100%" align="center"><input maxLength="32" type="password" name="password" autocomplete="off" placeholder="<?= $l_password ?>"></td>
</tr>
<tr>
<td height="23" id="authenticate-button" align="center"><input value="<?= $l_boutonO ?>" type="submit" name="button"></td>
<?php if ($service_SMS_status): ?>
<td><a href="autoregistrationinfo.php"><?= $l_autoregistration ?></a></td>
<?php endif; ?>
</tr>
</table>
</form>
<table id="boite-info" cellSpacing="0" cellPadding="0" width="80%">
<tr>
<td align="center"><font color="red"><b><?= $l_loggedin_stringl1 ?></b></font></td>
</tr>
<tr>
<td align="left">
<ul>
<li><?= $l_loggedin_stringl2 ?></li>
<li><?= $l_loggedin_stringl4 ?></li>
<li><?= $l_loggedin_stringl3 ?></li>
<li><?= $l_loggedin_stringl5 ?></li>
<li><?= $l_loggedin_stringl6 ?></li>
</ul>
</td>
</tr>
</table>
<?php
// Read the "Domain allowed" file
$tab = file(DOMAIN_ALLOWED_LIST);
if ($tab) { // the file isn't empty
echo '<div id="authorized_domain">'.$l_uam_domain;
foreach ($tab as $line) {
if (trim($line) !== '') { // the line isn't empty
$domain_allowed = explode('#', $line);
if (trim($domain_allowed[1]) !== '') {
$domain = explode('"', $domain_allowed[0]);
// remove every '.' from the beginning of domain
$domain[1] = ltrim($domain[1], '.');
echo '<a href="http://'.trim($domain[1]).'">'.trim($domain_allowed[1]).'</a> ';
</div>
</div>
<div class="row" style="text-align: center">
<div class="col-xs-8 col-xs-offset-2 col-sm-6 col-sm-offset-3 hidden-md hidden-lg">
<?php
// Read the "Domain allowed" file
$tab = file(DOMAIN_ALLOWED_LIST);
if ($tab) { // the file isn't empty
echo '<div id="authorized_domain">'.$l_uam_domain.'</div>';
echo '<ul>';
foreach ($tab as $line) {
if (trim($line) !== '') { // the line isn't empty
$domain_allowed = explode('#', $line);
if (trim($domain_allowed[1]) !== '') {
$domain = explode('"', $domain_allowed[0]);
// remove every '.' from the beginning of domain
$domain[1] = ltrim($domain[1], '.');
echo '<li><a href="http://'.trim($domain[1]).'">'.trim($domain_allowed[1]).'</a></li>';
}
}
}
echo '</ul>';
}
echo '</div>';
}
?>
?>
</div>
</div>
</div>
<?php endif; ?>
 
</center>
</body>
</html>