Line 1... |
Line 1... |
1 |
<?php
|
1 |
<?php
|
- |
|
2 |
// for developpement purpose
|
- |
|
3 |
// CONST ROOT = "C:/Serveurs/Alcasar-mageia/";
|
2 |
CONST ROOT = '/';
|
4 |
CONST ROOT = "/";
|
3 |
require_once(ROOT.'/var/www/html/acc/manager/lib/alcasar/ticketspdf.class.php');
|
5 |
require_once(ROOT.'var/www/html/acc/manager/lib/alcasar/ticketspdf.class.php');
|
4 |
|
6 |
|
5 |
/*
|
7 |
/*
|
6 |
TODO :
|
8 |
TODO :
|
7 |
- refonte de GenRandUsersName()
|
9 |
- refonte de GenRandUsersName()
|
8 |
- traiter si $nbfailuser (nombre de ticket non créé pour cause de doublon)
|
10 |
- traiter si $nbfailuser (nombre de ticket non créé pour cause de doublon)
|
Line 75... |
Line 77... |
75 |
|
77 |
|
76 |
switch ($langue_imp){
|
78 |
switch ($langue_imp){
|
77 |
case 'fr':
|
79 |
case 'fr':
|
78 |
$l_title_imp = "TICKET D'ACCÈS INTERNET";
|
80 |
$l_title_imp = "TICKET D'ACCÈS INTERNET";
|
79 |
$l_footer_imp = "Généré par ALCASAR";
|
81 |
$l_footer_imp = "Généré par ALCASAR";
|
80 |
//$l_explain1_imp = "Entrer 'alcasar' dans votre navigateur pour gérer votre compte (mot de passe, certificat, etc.).";
|
82 |
//$l_explain1_imp = "Entrer 'alcasar' dans votre navigateur pour gérer votre compte (mot de passe, certificat, etc.).";
|
81 |
//$l_explain2_imp = "Entrer 'logout' dans votre navigateur pour vous déconnecter.";
|
83 |
//$l_explain2_imp = "Entrer 'logout' dans votre navigateur pour vous déconnecter.";
|
82 |
$l_explain = "Entrer 'alcasar' dans votre navigateur pour gérer votre compte
|
84 |
$l_explain = "Entrer 'alcasar' dans votre navigateur pour gérer votre compte
|
83 |
(mot de passe, certificat, etc.).
|
85 |
(mot de passe, certificat, etc.).
|
84 |
Entrer 'logout' dans votre navigateur pour vous déconnecter.";
|
86 |
Entrer 'logout' dans votre navigateur pour vous déconnecter.";
|
85 |
$l_login_imp = "Utilisateur :";
|
87 |
$l_login_imp = "Utilisateur :";
|
86 |
$l_password_imp = "Mot de passe :";
|
88 |
$l_password_imp = "Mot de passe :";
|
Line 93... |
Line 95... |
93 |
$l_without="Aucune";
|
95 |
$l_without="Aucune";
|
94 |
break;
|
96 |
break;
|
95 |
case 'de':
|
97 |
case 'de':
|
96 |
$l_title_imp = "INTERNETZUGANG TICKET";
|
98 |
$l_title_imp = "INTERNETZUGANG TICKET";
|
97 |
$l_footer_imp = "Präsentiert von ALCASAR";
|
99 |
$l_footer_imp = "Präsentiert von ALCASAR";
|
98 |
//$l_explain1_imp = "Geben Sie 'Alcasar' in Ihrem Browser, um Ihr Konto zu verwalten (kennwort, zertifikat, etc.).";
|
100 |
//$l_explain1_imp = "Geben Sie 'Alcasar' in Ihrem Browser, um Ihr Konto zu verwalten (kennwort, zertifikat, etc.).";
|
99 |
//$l_explain2_imp = "Geben Sie 'logout' in Ihrem Browser zu trennen.";
|
101 |
//$l_explain2_imp = "Geben Sie 'logout' in Ihrem Browser zu trennen.";
|
100 |
$l_explain = "Geben Sie 'Alcasar' in Ihrem Browser, um Ihr Konto zu verwalten (kennwort, zertifikat, etc.).
|
102 |
$l_explain = "Geben Sie 'Alcasar' in Ihrem Browser, um Ihr Konto zu verwalten (kennwort, zertifikat, etc.).
|
101 |
Geben Sie 'logout' in Ihrem Browser zu trennen.
|
103 |
Geben Sie 'logout' in Ihrem Browser zu trennen.
|
102 |
";
|
104 |
";
|
103 |
$l_login_imp = "Login :";
|
105 |
$l_login_imp = "Login :";
|
104 |
$l_password_imp = "Passwort :";
|
106 |
$l_password_imp = "Passwort :";
|
Line 111... |
Line 113... |
111 |
$l_without="Ohne";
|
113 |
$l_without="Ohne";
|
112 |
break;
|
114 |
break;
|
113 |
case 'nl':
|
115 |
case 'nl':
|
114 |
$l_title_imp = "ONTVANGST INTERNET";
|
116 |
$l_title_imp = "ONTVANGST INTERNET";
|
115 |
$l_footer_imp = "Powered by ALCASAR";
|
117 |
$l_footer_imp = "Powered by ALCASAR";
|
116 |
//$l_explain1_imp = "Voer 'Alcasar' in uw browser om uw account te beheren (wachtwoord, certificaat, etc.).";
|
118 |
//$l_explain1_imp = "Voer 'Alcasar' in uw browser om uw account te beheren (wachtwoord, certificaat, etc.).";
|
117 |
//$l_explain2_imp = "Voer 'logout' in uw browser de verbinding te verbreken.";
|
119 |
//$l_explain2_imp = "Voer 'logout' in uw browser de verbinding te verbreken.";
|
118 |
$l_explain = "Voer 'Alcasar' in uw browser om uw account te beheren (wachtwoord, certificaat, etc.).
|
120 |
$l_explain = "Voer 'Alcasar' in uw browser om uw account te beheren (wachtwoord, certificaat, etc.).
|
119 |
Voer 'logout' in uw browser de verbinding te verbreken.";
|
121 |
Voer 'logout' in uw browser de verbinding te verbreken.";
|
120 |
$l_login_imp = "Gebruikers :";
|
122 |
$l_login_imp = "Gebruikers :";
|
121 |
$l_password_imp = "Wachtwoord :";
|
123 |
$l_password_imp = "Wachtwoord :";
|
122 |
$l_max_all_session_imp="Totaal toegestane tijd :";
|
124 |
$l_max_all_session_imp="Totaal toegestane tijd :";
|
Line 128... |
Line 130... |
128 |
$l_without="Ohne";
|
130 |
$l_without="Ohne";
|
129 |
break;
|
131 |
break;
|
130 |
case 'es':
|
132 |
case 'es':
|
131 |
$l_title_imp = "BONO INTERNET";
|
133 |
$l_title_imp = "BONO INTERNET";
|
132 |
$l_footer_imp = "Desarrollado por ALCASAR";
|
134 |
$l_footer_imp = "Desarrollado por ALCASAR";
|
133 |
//$l_explain1_imp = "Escribe 'Alcasar' de su navegador para administrar su cuenta (contraseña, certificado, etc.).";
|
135 |
//$l_explain1_imp = "Escribe 'Alcasar' de su navegador para administrar su cuenta (contraseña, certificado, etc.).";
|
134 |
//$l_explain2_imp = "Escribe 'logout' de su navegador para desconectar.";
|
136 |
//$l_explain2_imp = "Escribe 'logout' de su navegador para desconectar.";
|
135 |
$l_explain = "Escribe 'Alcasar' de su navegador para administrar su cuenta (contraseña, certificado, etc.).
|
137 |
$l_explain = "Escribe 'Alcasar' de su navegador para administrar su cuenta (contraseña, certificado, etc.).
|
136 |
Escribe 'logout' de su navegador para desconectar.";
|
138 |
Escribe 'logout' de su navegador para desconectar.";
|
137 |
$l_login_imp = "Usuario :";
|
139 |
$l_login_imp = "Usuario :";
|
138 |
$l_password_imp = "Contraseña :";
|
140 |
$l_password_imp = "Contraseña :";
|
139 |
$l_max_all_session_imp="Tiempo total permitido :";
|
141 |
$l_max_all_session_imp="Tiempo total permitido :";
|
Line 145... |
Line 147... |
145 |
$l_without="Sin";
|
147 |
$l_without="Sin";
|
146 |
break;
|
148 |
break;
|
147 |
case 'it':
|
149 |
case 'it':
|
148 |
$l_title_imp = "RICEVIMENTO INTERNET";
|
150 |
$l_title_imp = "RICEVIMENTO INTERNET";
|
149 |
$l_footer_imp = "Powered by ALCASAR";
|
151 |
$l_footer_imp = "Powered by ALCASAR";
|
150 |
//$l_explain1_imp = "Inserisci 'alcasar' nel tuo browser per gestire il tuo account (password, certificato, ecc).";
|
152 |
//$l_explain1_imp = "Inserisci 'alcasar' nel tuo browser per gestire il tuo account (password, certificato, ecc).";
|
151 |
//$l_explain2_imp = "Inserisci 'logout' nel tuo browser per disconnettersi.";
|
153 |
//$l_explain2_imp = "Inserisci 'logout' nel tuo browser per disconnettersi.";
|
152 |
$l_explain = "Inserisci 'alcasar' nel tuo browser per gestire il tuo account (password, certificato, ecc).
|
154 |
$l_explain = "Inserisci 'alcasar' nel tuo browser per gestire il tuo account (password, certificato, ecc).
|
153 |
Inserisci 'logout' nel tuo browser per disconnettersi.";
|
155 |
Inserisci 'logout' nel tuo browser per disconnettersi.";
|
154 |
$l_login_imp = "Utenti :";
|
156 |
$l_login_imp = "Utenti :";
|
155 |
$l_password_imp = "Password :";
|
157 |
$l_password_imp = "Password :";
|
156 |
$l_max_all_session_imp="Tempo totale consentito:";
|
158 |
$l_max_all_session_imp="Tempo totale consentito:";
|
Line 162... |
Line 164... |
162 |
$l_without="Senza";
|
164 |
$l_without="Senza";
|
163 |
break;
|
165 |
break;
|
164 |
case 'pt':
|
166 |
case 'pt':
|
165 |
$l_title_imp = "BILHETE DE ACESSO À INTERNET";
|
167 |
$l_title_imp = "BILHETE DE ACESSO À INTERNET";
|
166 |
$l_footer_imp = "Desenvolvido por ALCASAR";
|
168 |
$l_footer_imp = "Desenvolvido por ALCASAR";
|
167 |
//$l_explain1_imp = "Digite 'Alcasar' no seu navegador para gerenciar sua conta (senha, certidão, etc).";
|
169 |
//$l_explain1_imp = "Digite 'Alcasar' no seu navegador para gerenciar sua conta (senha, certidão, etc).";
|
168 |
//$l_explain2_imp = "Digite 'logout' no seu navegador para desligar.";
|
170 |
//$l_explain2_imp = "Digite 'logout' no seu navegador para desligar.";
|
169 |
$l_explain = "Digite 'Alcasar' no seu navegador para gerenciar sua conta (senha, certidão, etc).
|
171 |
$l_explain = "Digite 'Alcasar' no seu navegador para gerenciar sua conta (senha, certidão, etc).
|
170 |
Digite 'logout' no seu navegador para desligar.";
|
172 |
Digite 'logout' no seu navegador para desligar.";
|
171 |
$l_login_imp = "Usuário :";
|
173 |
$l_login_imp = "Usuário :";
|
172 |
$l_password_imp = "Senha :";
|
174 |
$l_password_imp = "Senha :";
|
173 |
$l_max_all_session_imp="Tempo máximo de toda conexão :";
|
175 |
$l_max_all_session_imp="Tempo máximo de toda conexão :";
|
Line 179... |
Line 181... |
179 |
$l_without="Sem";
|
181 |
$l_without="Sem";
|
180 |
break;
|
182 |
break;
|
181 |
default:
|
183 |
default:
|
182 |
$l_title_imp = "INTERNET ACCESS TICKET";
|
184 |
$l_title_imp = "INTERNET ACCESS TICKET";
|
183 |
$l_footer_imp = "Powered by ALCASAR";
|
185 |
$l_footer_imp = "Powered by ALCASAR";
|
184 |
//$l_explain1_imp = "Enter 'alcasar' in your browser to manage your account (password, certificate, etc.).";
|
186 |
$l_explain1_imp = "Enter 'alcasar' in your browser to manage your account (password, certificate, etc.).";
|
185 |
//$l_explain2_imp = "Enter 'logout' in your browser to disconnect.";
|
187 |
$l_explain2_imp = "Enter 'logout' in your browser to disconnect.";
|
186 |
$l_explain = "Enter 'alcasar' in your browser to manage your account (password, certificate, etc.).
|
188 |
$l_explain = "Enter 'alcasar' in your browser to manage your account (password, certificate, etc.).
|
187 |
Enter 'logout' in your browser to disconnect.";
|
189 |
Enter 'logout' in your browser to disconnect.";
|
188 |
$l_login_imp = "Login :";
|
190 |
$l_login_imp = "Login :";
|
189 |
$l_password_imp = "Password :";
|
191 |
$l_password_imp = "Password :";
|
190 |
$l_max_all_session_imp="Total time allowed :";
|
192 |
$l_max_all_session_imp="Total time allowed :";
|
Line 254... |
Line 256... |
254 |
$login = da_sql_escape_string($login);
|
256 |
$login = da_sql_escape_string($login);
|
255 |
$passwd = da_sql_escape_string($passwd);
|
257 |
$passwd = da_sql_escape_string($passwd);
|
256 |
// création des variables d'impression
|
258 |
// création des variables d'impression
|
257 |
$login_imp = $login;
|
259 |
$login_imp = $login;
|
258 |
$passwd1_imp = $passwd;
|
260 |
$passwd1_imp = $passwd;
|
259 |
// encryption du mot de passe (pas besoins, déjà présent dans le fichier create_user.php)
|
261 |
// encryption du mot de passe
|
260 |
//$passwd = da_encrypt($passwd);
|
262 |
$passwd = da_encrypt($passwd);
|
261 |
|
263 |
|
262 |
// test si l'usager existe
|
264 |
// test si l'usager existe
|
263 |
if (is_file("../lib/$config[general_lib_type]/user_info.php"))
|
265 |
if (is_file("../lib/$config[general_lib_type]/user_info.php"))
|
264 |
include("../lib/$config[general_lib_type]/user_info.php");
|
266 |
include("../lib/$config[general_lib_type]/user_info.php");
|
265 |
|
267 |
|