Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2239 → Rev 2250

/web/intercept.php
57,20 → 57,23
 
$organisme = $conf["ORGANISM"];
 
# Shared secret used to encrypt password with coova.
// Shared secret used to encrypt password with coova.
$uamsecret = "";
 
# URL loaded after success authenticates (let blank for browser defaults)
// URL loaded after success authenticates (let blank for browser defaults)
$adminurl = "";
 
# Our own path
// Check if the SMS service is enable
$service_SMS_status = false;
 
// Our own path
$loginpath = htmlspecialchars($_SERVER['PHP_SELF']);
$alcasarpath = 'http://'.$conf['HOSTNAME'].'.'.$conf['DOMAIN'];
$statuspath = $alcasarpath.'/status.php';
 
# Choice of language
// Choice of language
$Language = 'en';
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
$Language = strtolower(substr(chop($Langue[0]),0,2));
}
173,7 → 176,7
$l_remaining_time = "剩余时间";
$l_uam_domain = "授权网站 : ";
$l_autoregistration = "短信注册";
} else if($Language === 'ar') { // Arabic
} else if ($Language === 'ar') { // Arabic
$l_ChilliError = "يجب نجاح المصادقة على البوابة الأسيرة";
$l_login = "إغلاق هذه النافذة يقطع دورة عملك";
$l_logout = "إغلاق الدورة";
206,7 → 209,7
$l_remaining_time = "الوقت المتبق";
$l_uam_domain = ":المواقع المسموحة ";
$l_autoregistration = "تسجيل ذاتي (SMS)";
} else if($Language === 'de') { // German
} 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_logout = "Beenden der Verbindung";
239,7 → 242,7
$l_remaining_time = "Restzeit";
$l_uam_domain = "Autorisierten websites : ";
$l_autoregistration = "Automatische registrierung";
} else if($Language === 'nl') { // Dutch
} 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.";
$l_logout = "Slotkoers verbinding";
272,7 → 275,7
$l_remaining_time = "Reterende tijd";
$l_uam_domain = "Geautoriseerde website : ";
$l_autoregistration = "Automatische registratie";
} else if($Language === 'fr') { // French
} else if ($Language === 'fr') { // French
$l_ChilliError = "L'authentification doit être réussie sur le portail captif.";
$l_login = "Authentification réussie.<HR>La fermeture de cette fenêtre interrompt votre session.";
$l_logout = "Fermeture de la session";
589,10 → 592,8
</tr>
<tr>
<td height="23" align="left"><input value="<?= $l_boutonO ?>" type="submit" name="button"></td>
<?php
$service_SMS_status = false;
if ($service_SMS_status): ?>
<td><a href="./autoregistrationinfo.php"><?= $l_autoregistration ?></a></td>
<?php if ($service_SMS_status): ?>
<td><a href="autoregistrationinfo.php"><?= $l_autoregistration ?></a></td>
<?php endif; ?>
</tr>
</table>