1280 |
richard |
1 |
<?php
|
1748 |
richard |
2 |
/*******************
|
|
|
3 |
* READ CONF FILE *
|
|
|
4 |
********************/
|
|
|
5 |
$CONF_FILE="/usr/local/etc/alcasar.conf";
|
|
|
6 |
if (!file_exists($CONF_FILE)){
|
|
|
7 |
exit("Requested file ".$CONF_FILE." isn't present");}
|
|
|
8 |
if (!is_readable($CONF_FILE)){
|
|
|
9 |
exit("Can't read the file ".$CONF_FILE);}
|
|
|
10 |
$ouvre=fopen($CONF_FILE,"r");
|
|
|
11 |
if ($ouvre){
|
|
|
12 |
while (!feof ($ouvre))
|
|
|
13 |
{
|
|
|
14 |
$tampon = fgets($ouvre, 4096);
|
|
|
15 |
if (strpos($tampon,"=")!==false){
|
|
|
16 |
$tmp = explode("=",$tampon);
|
|
|
17 |
$conf[$tmp[0]] = $tmp[1];
|
|
|
18 |
}
|
|
|
19 |
}
|
|
|
20 |
fclose($ouvre);
|
|
|
21 |
}
|
1280 |
richard |
22 |
//Langue du Ticket d'impression en fonction de la liste déroulante
|
|
|
23 |
switch ($langue_imp){
|
|
|
24 |
case 'fr':
|
1281 |
richard |
25 |
$l_title_imp = "TICKET D'ACCÈS";
|
1280 |
richard |
26 |
$l_login_imp = "Utilisateur :";
|
|
|
27 |
$l_password_imp = "Mot de passe :";
|
|
|
28 |
$l_max_all_session_imp="Période autorisée :";
|
|
|
29 |
$l_session_timeout_imp="Durée d'une session :";
|
|
|
30 |
$l_max_daily_session_imp="Durée quotidienne :";
|
|
|
31 |
$l_max_monthly_session_imp ="Durée mensuelle :";
|
|
|
32 |
$l_expiration_imp="Date d'expiration :";
|
|
|
33 |
$l_unlimited="Illimitée";
|
|
|
34 |
$l_without="Aucune";
|
|
|
35 |
$l_duplicate="Duplicata";
|
1749 |
richard |
36 |
$l_explain = "Entrer 'http://".trim($conf["HOSTNAME"]).".".trim($conf["DOMAIN"])."' dans votre navigateur pour gérer votre compte (mot de passe, certificat, etc.).
|
1287 |
richard |
37 |
Entrer 'http://logout' dans votre navigateur pour vous déconnecter.";
|
1280 |
richard |
38 |
$l_footer_imp = "Généré par ALCASAR";
|
|
|
39 |
break;
|
|
|
40 |
case 'de':
|
|
|
41 |
$l_title_imp = "ZUGANG TICKET";
|
|
|
42 |
$l_login_imp = "Login :";
|
|
|
43 |
$l_password_imp = "Passwort :";
|
|
|
44 |
$l_max_all_session_imp="Autorisierte Zeitraum :";
|
|
|
45 |
$l_session_timeout_imp="Dauer der Sitzung :";
|
|
|
46 |
$l_max_daily_session_imp="Stunden täglich :";
|
|
|
47 |
$l_max_monthly_session_imp ="monatlich Dauer :";
|
|
|
48 |
$l_expiration_imp="Verfallsdatum :";
|
|
|
49 |
$l_unlimited="Unbegrentz";
|
|
|
50 |
$l_without="Ohne";
|
|
|
51 |
$l_duplicate="Duplikat";
|
1749 |
richard |
52 |
$l_explain = "Geben Sie 'http://".trim($conf["HOSTNAME"]).".".trim($conf["DOMAIN"])."' in Ihrem Browser, um Ihr Konto zu verwalten (kennwort, zertifikat, etc.).
|
1287 |
richard |
53 |
Geben Sie 'http://logout' in Ihrem Browser zu trennen.
|
1280 |
richard |
54 |
";
|
|
|
55 |
$l_footer_imp = "Präsentiert von ALCASAR";
|
|
|
56 |
break;
|
|
|
57 |
case 'nl':
|
|
|
58 |
$l_title_imp = "TOERANG TICKET";
|
|
|
59 |
$l_login_imp = "Gebruikers :";
|
|
|
60 |
$l_password_imp = "Wachtwoord :";
|
|
|
61 |
$l_max_all_session_imp="toegestane duur :";
|
|
|
62 |
$l_session_timeout_imp="Sessieduur :";
|
|
|
63 |
$l_max_daily_session_imp="Dagelijkse uren :";
|
|
|
64 |
$l_max_monthly_session_imp ="Maandelijkse duur :";
|
|
|
65 |
$l_expiration_imp="Vervaldatum :";
|
|
|
66 |
$l_unlimited="Onbeperkte";
|
|
|
67 |
$l_without="Ohne";
|
|
|
68 |
$l_duplicate="Duplicaat";
|
1749 |
richard |
69 |
$l_explain = "Voer 'http://".trim($conf["HOSTNAME"]).".".trim($conf["DOMAIN"])."' in uw browser om uw account te beheren (wachtwoord, certificaat, etc.).
|
1287 |
richard |
70 |
Voer 'http://logout' in uw browser de verbinding te verbreken.";
|
1280 |
richard |
71 |
$l_footer_imp = "Powered by ALCASAR";
|
|
|
72 |
break;
|
|
|
73 |
case 'es':
|
|
|
74 |
$l_title_imp = "TURISTICA ACCESO";
|
|
|
75 |
$l_login_imp = "Usuario :";
|
|
|
76 |
$l_password_imp = "Contraseña :";
|
|
|
77 |
$l_max_all_session_imp="periodo autorizado :";
|
|
|
78 |
$l_session_timeout_imp="Duración de Sesión :";
|
|
|
79 |
$l_max_daily_session_imp="Duración diario :";
|
|
|
80 |
$l_max_monthly_session_imp ="Duración mensual :";
|
|
|
81 |
$l_expiration_imp="Fecha de caducidad :";
|
|
|
82 |
$l_unlimited="Ilimitado";
|
|
|
83 |
$l_without="Sin";
|
|
|
84 |
$l_duplicate="Duplicado";
|
1749 |
richard |
85 |
$l_explain = "Escribe 'http://".trim($conf["HOSTNAME"]).".".trim($conf["DOMAIN"])."' de su navegador para administrar su cuenta (contraseña, certificado, etc.).
|
1287 |
richard |
86 |
Escribe 'http://logout' de su navegador para desconectar.";
|
1280 |
richard |
87 |
$l_footer_imp = "Desarrollado por ALCASAR";
|
|
|
88 |
break;
|
|
|
89 |
case 'it':
|
|
|
90 |
$l_title_imp = "TICKET D'ACCESSO";
|
|
|
91 |
$l_login_imp = "Utenti :";
|
|
|
92 |
$l_password_imp = "Password :";
|
|
|
93 |
$l_max_all_session_imp="periodo autorizzato :";
|
|
|
94 |
$l_session_timeout_imp="Durata della sessione :";
|
|
|
95 |
$l_max_daily_session_imp="Durata quotidiano :";
|
|
|
96 |
$l_max_monthly_session_imp ="Durata mensile :";
|
|
|
97 |
$l_expiration_imp="Data di scadenza :";
|
|
|
98 |
$l_unlimited="Illimitato";
|
|
|
99 |
$l_without="Senza";
|
|
|
100 |
$l_duplicate="Duplicato";
|
1749 |
richard |
101 |
$l_explain = "Inserisci 'http://".trim($conf["HOSTNAME"]).".".trim($conf["DOMAIN"])."' nel tuo browser per gestire il tuo account (password, certificato, ecc).
|
1287 |
richard |
102 |
Inserisci 'http://logout' nel tuo browser per disconnettersi.";
|
1280 |
richard |
103 |
$l_footer_imp = "Powered by ALCASAR";
|
|
|
104 |
break;
|
|
|
105 |
case 'pt':
|
|
|
106 |
$l_title_imp = "BILHETE DE ACESSO";
|
|
|
107 |
$l_login_imp = "Usuário :";
|
|
|
108 |
$l_password_imp = "Senha :";
|
|
|
109 |
$l_max_all_session_imp="Período autorizado :";
|
|
|
110 |
$l_session_timeout_imp="duração de uma sessão :";
|
|
|
111 |
$l_max_daily_session_imp="Duração diária :";
|
|
|
112 |
$l_max_monthly_session_imp ="Duração Mensal :";
|
|
|
113 |
$l_expiration_imp="Data de validade :";
|
|
|
114 |
$l_unlimited="Ilimitado";
|
|
|
115 |
$l_without="Sem";
|
|
|
116 |
$l_duplicate="Duplicado";
|
1749 |
richard |
117 |
$l_explain = "Digite 'http://".trim($conf["HOSTNAME"]).".".trim($conf["DOMAIN"])."' no seu navegador para gerenciar sua conta (senha, certidão, etc).
|
1287 |
richard |
118 |
Digite 'http://logout' no seu navegador para desligar.";
|
1280 |
richard |
119 |
$l_footer_imp = "Desenvolvido por ALCASAR";
|
|
|
120 |
break;
|
2113 |
richard |
121 |
case 'ar':
|
|
|
122 |
$l_title_imp = "وصول التذاكر";
|
|
|
123 |
$l_login_imp = "مستخدم:";
|
|
|
124 |
$l_password_imp = "كلمه السر:";
|
|
|
125 |
$l_max_all_session_imp = "فترة أذن:";
|
|
|
126 |
$l_session_timeout_imp = "مهلة جلسة:";
|
|
|
127 |
$l_max_daily_session_imp = "جلسة اليومية القصوى:";
|
|
|
128 |
$l_max_monthly_session_imp = "جلسة الشهرية القصوى:";
|
|
|
129 |
$l_expiration_imp = "تاريخ إنتهاء الصلاحية:";
|
|
|
130 |
$l_unlimited = "غير محدود:";
|
|
|
131 |
$l_without = "بدون";
|
|
|
132 |
$l_duplicate = "مكرر";
|
|
|
133 |
$l_explain_url_conn = "http://". trim($conf["HOSTNAME"]) . "." . trim($conf["DOMAIN"]);
|
|
|
134 |
$l_explain_url_logout = "http://logout";
|
|
|
135 |
$l_explain = " في المتصفح الخاص بك لخروج." . $l_explain_url_logout . "في المستعرض الخاص بك لإدارة حسابك (كلمه السر, شهادة, ...). يكتب " . $l_explain_url . "يكتب";
|
|
|
136 |
$l_footer_imp = "مشغل بواسطة ALCASAR";
|
|
|
137 |
break;
|
1280 |
richard |
138 |
default:
|
|
|
139 |
$l_title_imp = "ACCESS TICKET";
|
|
|
140 |
$l_login_imp = "Login :";
|
|
|
141 |
$l_password_imp = "Password :";
|
|
|
142 |
$l_max_all_session_imp="Authorized period :";
|
|
|
143 |
$l_session_timeout_imp="Session timeout :";
|
|
|
144 |
$l_max_daily_session_imp="Max daily session :";
|
|
|
145 |
$l_max_monthly_session_imp ="Max monthly session :";
|
|
|
146 |
$l_expiration_imp="Expiration date :";
|
|
|
147 |
$l_unlimited="Unlimited";
|
|
|
148 |
$l_without="Without";
|
|
|
149 |
$l_duplicate="Duplicate";
|
1749 |
richard |
150 |
$l_explain = "Enter 'http://".trim($conf["HOSTNAME"]).".".trim($conf["DOMAIN"])."' in your browser to manage your account (password, certificate, etc.).
|
1287 |
richard |
151 |
Enter 'http://logout' in your browser to disconnect.";
|
1280 |
richard |
152 |
$l_footer_imp = "Powered by ALCASAR";
|
|
|
153 |
break;
|
|
|
154 |
}
|
1287 |
richard |
155 |
?>
|