175,26 → 175,26 |
} else if ($Language === 'de') { // German |
$l_login1 = "Erfolgreiche Authentifizierung"; |
$l_logout = "Beenden der Verbindung"; |
$l_logout_question = "Möchten Sie die Verbindung jetzt wirklich trennen?"; |
$l_logout_question = "Möchten Sie die Sitzung wirklich beenden?"; |
$l_loggedout = "Ihre Sitzung ist geschlossen"; |
$l_wait = "Bitte warten Sie einen Moment ..."; |
$l_state_label = "State"; // to translate |
$l_session_id_label = "Session ID"; // to translate |
$l_max_session_time_label = "Max Session Time"; // to translate |
$l_max_idle_time_label = "Max Idle Time"; // to translate |
$l_start_time_label = "Start Time"; // to translate |
$l_session_time_label = "Online-zeit"; |
$l_idle_time_label = "Idle Time"; // to translate |
$l_downloaded_label = "Downloaded"; // to translate |
$l_uploaded_label = "Uploaded"; // to translate |
$l_original_url_label = "Original URL"; // to translate |
$l_not_available = "Not available"; // to translate |
$l_error = "error"; // to translate |
$l_welcome = "Welcome"; // to translate |
$l_conn_history = "Your last $nb_connection_history connections"; // to translate |
$l_connected = "logged"; // to translate |
$l_a_connection = "You have"; // to translate |
$l_a_connection_time = "active connections on the network"; // to translate |
$l_state_label = "Status"; |
$l_session_id_label = "Sitzungs-ID"; |
$l_max_session_time_label = "Maximale Sitzungszeit"; |
$l_max_idle_time_label = "Maximale Leerlaufzeit"; |
$l_start_time_label = "Startzeit"; |
$l_session_time_label = "Online-Zeit"; |
$l_idle_time_label = "Leerlaufzeit"; |
$l_downloaded_label = "Heruntergeladen"; |
$l_uploaded_label = "Hochgeladen"; |
$l_original_url_label = "Angefragze URL"; |
$l_not_available = "Nicht verfügbar"; |
$l_error = "Fehler"; |
$l_welcome = "Willkommen"; |
$l_conn_history = "Ihre letzten $nb_connection_history Verbindungen"; |
$l_connected = "gespeichert"; |
$l_a_connection = "Sie haben"; |
$l_a_connection_time = "aktive Sitzungen auf dem Netzwerk"; |
$l_close_warning = "Warnung: Sie werden getrennt, wenn Sie dieses Fenster schließen"; |
$l_back_homepage = "Zurück zur Startseite"; |
} else if ($Language === 'nl') { // Dutch |
292,7 → 292,7 |
} else { |
$connected = secondsToDuration($row['acctsessiontime']); |
} |
$connection_history .= '<li>'.date_format($start_conn, 'd M Y - H:i:s')." - ($connected)</li>"; |
$connection_history .= '<li>'.date_format($start_conn, 'd M Y - H:i:s').'</li>';//." - ($connected)</>"; |
} |
$connection_history .= '</ul>'; |
} |
319,6 → 319,13 |
$user_needKeepOpen = (preg_match("/^$remote_ip:PERM/m", file_get_contents($filename)) === 0); |
} |
|
//////////////////////////////////////////////////////////////////////////////////////// |
/////////////////////// TEST VARIABLES /////////////////////// |
////////////////////////////////////////////////////////////// |
//$nb_open_session = 2; // >2 |
//$user_needKeepOpen = true; // true/false |
//////////////////////////////////////////////////////////////////////////////////////// |
|
// 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'); |
331,7 → 338,10 |
<head> |
<meta charset="UTF-8"> |
<title>ALCASAR - <?= $organisme ?></title> |
<link type="text/css" href="css/status.css" rel="stylesheet"> |
|
<link rel="stylesheet" href="/css/bootstrap.min.css" type="text/css"> |
<link type="text/css" href="/css/status.css" rel="stylesheet"> |
|
<script src="js/ChilliLibrary.js"></script> |
<script> |
chilliController.host = '<?= $conf['HOSTNAME'].'.'.$conf['DOMAIN'] ?>'; |
341,125 → 351,149 |
<script src="js/statusControler.js"></script> |
</head> |
<body> |
<div id="Chilli"> |
<div id="locationName"></div> |
<div id="chilliPage"> |
<div id="loggedOutPage" class="c1"> |
<table id="disconnectTable"> |
<tr> |
<td><img height="150" src="images/logo-alcasar.png" alt="logo"></td> |
<td> |
<p class="text_auth"><?= $l_loggedout ?></p> |
<p class="text_homelink"><a href="<?= $homepage_url ?>"><?= $l_back_homepage ?></a></p> |
</td> |
</tr> |
</table> |
<div id="Chilli" class="col-xs-12 col-sm-12"> |
<div id="chilliPage" class="row"> |
<div id="loggedOutPage" class="c1 col-xs-12 col-sm-12"> |
<div id="disconnectTable" class="row logout_box"> |
<div class="col-xs-3 col-sm-3 logout_msg"> |
<img height="150" src="images/logo-alcasar.png" alt="logo"> |
</div> |
<div class="col-xs-6 col-sm-6 logout_msg"> |
<p class="text_auth"><?= $l_loggedout ?></p> |
<p class="text_homelink"><a href="<?= $homepage_url ?>"><?= $l_back_homepage ?></a></p> |
</div> |
</div> |
<div id="statusPage" class="c1"> |
<table border="0" id="statusTable"> |
<tr> |
<td colspan="2"> |
<table border="0" cellpadding="0" cellspacing="0" width="100%"> |
<tr> |
<td valign="top" rowspan="4"> |
<img height="150" src="images/logo-alcasar.png" alt="logo"> |
</td> |
<td class="text_auth_welcom"> |
<?= $l_login1 ?> |
</td> |
</tr> |
<tr> |
<td class="text_auth"> |
<?= $l_welcome ?><br><?= $cn ?> |
</td> |
</tr> |
<tr> |
<td class="alert"> |
<?= ((isset($nb_open_session) && ($nb_open_session > 1)) ? $l_a_connection.' '.$nb_open_session.' '.$l_a_connection_time : '') ?> |
</td> |
</tr> |
<tr> |
<td colspan="2" align="center" class="link_logout"> |
<a href="#" onclick="return logoutWithConfirmation('<?= $l_logout_question ?>');" class="lien_deco"><?= $l_logout ?></a> |
</td> |
</tr> |
</table> |
</td> |
</tr> |
<!-- |
<tr id="connectRow"> |
<td id="statusMessageLabel" class="chilliLabel"><strong><?= $l_state_label ?></strong></td> |
<td id="statusMessage" class="chilliValue">Connected</td> |
</tr> |
<tr id="sessionIdRow"> |
<td id="sessionIdLabel" class="chilliLabel"><strong><?= $l_session_id_label ?></strong></td> |
<td id="sessionId" class="chilliValue"><?= $l_not_available ?></td> |
</tr> |
--> |
<tr id="sessionTimeoutRow"> |
<td id="sessionTimeoutLabel" class="chilliLabel"><?= $l_max_session_time_label ?></td> |
<td id="sessionTimeout" class="chilliValue"><?= $l_not_available ?></td> |
</tr> |
<tr id="idleTimeoutRow"> |
<td id="idleTimeoutLabel" class="chilliLabel"><?= $l_max_idle_time_label ?></td> |
<td id="idleTimeout" class="chilliValue"><?= $l_not_available ?></td> |
</tr> |
<tr id="startTimeRow"> |
<td id="startTimeLabel" class="chilliLabel"><?= $l_start_time_label ?></td> |
<td id="startTime" class="chilliValue"><?= $l_not_available ?></td> |
</tr> |
<tr id="sessionTimeRow"> |
<td id="sessionTimeLabel" class="chilliLabel"><?= $l_session_time_label ?></td> |
<td id="sessionTime" class="chilliValue"><?= $l_not_available ?></td> |
</tr> |
<tr id="idleTimeRow"> |
<td id="idleTimeLabel" class="chilliLabel"><?= $l_idle_time_label ?></td> |
<td id="idleTime" class="chilliValue"><?= $l_not_available ?></td> |
</tr> |
<tr id="inputOctetsRow"> |
<td id="inputOctetsLabel" class="chilliLabel"><?= $l_downloaded_label ?></td> |
<td id="inputOctets" class="chilliValue"><?= $l_not_available ?></td> |
</tr> |
<tr id="outputOctetsRow"> |
<td id="outputOctetsLabel" class="chilliLabel"><?= $l_uploaded_label ?></td> |
<td id="outputOctets" class="chilliValue"><?= $l_not_available ?></td> |
</tr> |
<!-- |
<tr id="originalURLRow"> |
<td id="originalURLLabel" class="chilliLabel"><?= $l_original_url_label ?></td> |
<td id="originalURL" class="chilliValue"><?= $l_not_available ?></td> |
</tr> |
--> |
<tr> |
<td colspan="2" id="conHistoryLabel" class="chilliLabel"><?= $l_conn_history ?></td> |
</tr> |
<tr id="conHistoryRow"> |
<td colspan="2" id="conHistory" class="chilliValue"><?= $connection_history ?></td> |
</tr> |
<?php if (isset($user_needKeepOpen) && ($user_needKeepOpen === true)): ?> |
<tr> |
<td colspan="2" id="close-warning">(<?= $l_close_warning ?>)</td> |
</tr> |
<?php endif; ?> |
</table> |
</div> |
<div id="statusPage" class="col-xs-12 col-sm-12"> |
<div class="row"> |
<div class="col-xs-12 col-sm-12 col-md-10 col-md-offset-1"> |
<div class="row header_background"> |
<div class="header_img hidden-xs col-sm-2"> |
<img class="img-responsive image-resize" src="images/logo-alcasar.png" alt="logo"> |
</div> |
<div class="header_title col-xs-12 col-sm-8"> |
<p class="login-status"><?= $l_login1 ?></p> |
</div> |
</div> |
</div> |
</div> |
<div id="waitPage"> |
<table id="waitTable"> |
<tr> |
<td><img height="150" src="images/logo-alcasar.png" alt="logo"></td> |
<td><p class="text_auth"><img src="images/wait.gif" width="16" height="16" class="wait" alt="<?= $l_wait ?>"><?= $l_wait ?></p></td> |
</tr> |
</table> |
<div class="row main_box"> |
<div class="col-xs-12 col-sm-10 col-sm-offset-1 col-md-8 col-md-offset-2"> |
<div class="row background-display"> |
<div class="col-xs-12 col-sm-10 col-sm-offset-1"> |
<div class="row"> |
<p class="welcome-user"><?= $l_welcome ?> <?= $cn ?></p> |
</div> |
<div class="row nb_open_session"> |
<?= ((isset($nb_open_session) && ($nb_open_session > 1)) ? $l_a_connection.' '.$nb_open_session.' '.$l_a_connection_time : '') ?> |
</div> |
<div class="row"> |
<table class="table table-striped" id="statusTable"> |
<!-- |
<tr id="connectRow"> |
<td id="statusMessageLabel" class="chilliLabel"><strong><?= $l_state_label ?></strong></td> |
<td id="statusMessage" class="chilliValue">Connected</td> |
</tr> |
<tr id="sessionIdRow"> |
<td id="sessionIdLabel" class="chilliLabel"><strong><?= $l_session_id_label ?></strong></td> |
<td id="sessionId" class="chilliValue"><?= $l_not_available ?></td> |
</tr> |
--> |
<tr id="sessionTimeoutRow" class="table-border"> |
<td id="sessionTimeoutLabel" class="chilliLabel"><?= $l_max_session_time_label ?>: </td> |
<td id="sessionTimeout" class="chilliValue"><?= $l_not_available ?></td> |
</tr> |
<tr id="idleTimeoutRow"> |
<td id="idleTimeoutLabel" class="chilliLabel"><?= $l_max_idle_time_label ?>: </td> |
<td id="idleTimeout" class="chilliValue"><?= $l_not_available ?></td> |
</tr> |
<tr id="startTimeRow"> |
<td id="startTimeLabel" class="chilliLabel"><?= $l_start_time_label ?>: </td> |
<td id="startTime" class="chilliValue"><?= $l_not_available ?></td> |
</tr> |
<tr id="sessionTimeRow"> |
<td id="sessionTimeLabel" class="chilliLabel"><?= $l_session_time_label ?>: </td> |
<td id="sessionTime" class="chilliValue"><?= $l_not_available ?></td> |
</tr> |
<tr id="idleTimeRow"> |
<td id="idleTimeLabel" class="chilliLabel"><?= $l_idle_time_label ?>: </td> |
<td id="idleTime" class="chilliValue"><?= $l_not_available ?></td> |
</tr> |
<tr id="inputOctetsRow"> |
<td id="inputOctetsLabel" class="chilliLabel"><?= $l_downloaded_label ?>: </td> |
<td id="inputOctets" class="chilliValue"><?= $l_not_available ?></td> |
</tr> |
<tr id="outputOctetsRow"> |
<td id="outputOctetsLabel" class="chilliLabel"><?= $l_uploaded_label ?>: </td> |
<td id="outputOctets" class="chilliValue"><?= $l_not_available ?></td> |
</tr> |
<!-- |
<tr id="originalURLRow"> |
<td id="originalURLLabel" class="chilliLabel"><?= $l_original_url_label ?></td> |
<td id="originalURL" class="chilliValue"><?= $l_not_available ?></td> |
</tr> |
--> |
<?php if (isset($user_needKeepOpen) && ($user_needKeepOpen === true)): ?> |
<tr> |
<td colspan="2" id="close-warning">(<?= $l_close_warning ?>)</td> |
</tr> |
<?php endif; ?> |
</table> |
</div> |
<button onclick="return logoutWithConfirmation('<?= $l_logout_question ?>');" class="button btn btn-danger btn-md"><?= $l_logout ?></button> |
</div> |
</div> |
</div> |
<div class="hidden-xs hidden-sm hidden-md col-lg-2 history"> |
<div class="row"> |
<div class="hidden-xs col-lg-11 col-lg-offset-1 log-box"> |
<div class="row log-titre"> |
<div class="col-lg-12"> |
<?= $l_conn_history ?> |
</div> |
</div> |
<div class="row log-info"> |
<?= $connection_history ?> |
</div> |
</div> |
</div> |
</div> |
</div> |
<div id="errorPage"> |
<table id="errorTable"> |
<tr> |
<td><img height="150" src="images/logo-alcasar.png" alt="logo"></td> |
<td><span id="errorMessage"><?= $l_error ?></span></td> |
</tr> |
</table> |
<div class="row"> |
<div class="col-xs-3 hidden-sm hidden-md hidden-lg"> |
<img class="img-responsive image-resize-bottom" src="images/logo-alcasar.png" alt="logo"> |
</div> |
<div class="col-xs-6 col-sm-10 col-sm-offset-1 col-md-8 col-md-offset-2 hidden-lg history_bottom"> |
<div class="row log-titre-petit"> |
<?= $l_conn_history ?> |
</div> |
<div class="row log-info-petit"> |
<?= $connection_history ?> |
</div> |
</div> |
</div> |
</div> |
<div id="waitPage" class="col-xs-12 col-sm-12"> |
<div class="row waiting_box"> |
<div class="col-xs-3 col-sm-3 waiting_msg"> |
<img height="150" src="images/logo-alcasar.png" alt="logo"> |
</div> |
<div class="col-xs-6 col-sm-6 waiting_msg"> |
<p class="text_auth"><img src="images/wait.gif" width="16" height="16" class="wait" alt="<?= $l_wait ?>"><?= $l_wait ?></p> |
</div> |
</div> |
</div> |
<div id="errorPage" class="col-xs-12 col-sm-12"> |
<div class="row error_box"> |
<div class="col-xs-3 col-sm-3 error_msg"> |
<img height="150" src="images/logo-alcasar.png" alt="logo"> |
</div> |
<div class="col-xs-6 col-sm-6 error_msg"> |
<p id="errorMessage"><?= $l_error ?></p> |
</div> |
</div> |
</div> |
</div> |
</div> |
</body> |
</html> |