Line 12... |
Line 12... |
12 |
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
|
12 |
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
|
13 |
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
13 |
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
14 |
$Language = strtolower(substr(chop($Langue[0]),0,2)); }
|
14 |
$Language = strtolower(substr(chop($Langue[0]),0,2)); }
|
15 |
if($Language == 'fr'){
|
15 |
if($Language == 'fr'){
|
16 |
$l_title = "Importer et vider la base des usagers";
|
16 |
$l_title = "Importer et vider la base des usagers";
|
17 |
$l_database_state = "état actuel de la base : nombre de groupes =";
|
17 |
$l_database_state = "état actuel de la base : nombre de groupes = ";
|
18 |
$l_number_of_users = "Nombre d'usagers";
|
18 |
$l_number_of_users = "Nombre d'usagers";
|
19 |
$l_text_import = "Importer à partir d'un fichier texte";
|
19 |
$l_text_import = "Importer à partir d'un fichier texte";
|
20 |
$l_text_import_help = "Ce fichier ne doit contenir que des noms d'usagers écrits les uns sous les autres.";
|
20 |
$l_text_import_help = "Ce fichier ne doit contenir que des noms d'usagers écrits les uns sous les autres.";
|
21 |
$l_file = "Fichier";
|
21 |
$l_file = "Fichier";
|
22 |
$l_users_group = "Définissez leur groupe (conseillé)";
|
22 |
$l_users_group = "Définissez leur groupe (conseillé)";
|
Line 32... |
Line 32... |
32 |
$l_group_empty = "La liste des groupes est vide";
|
32 |
$l_group_empty = "La liste des groupes est vide";
|
33 |
$l_out_title = " --- Accès à Internet via ALCASAR --- ";
|
33 |
$l_out_title = " --- Accès à Internet via ALCASAR --- ";
|
34 |
$l_out_login = "Nom de connexion :";
|
34 |
$l_out_login = "Nom de connexion :";
|
35 |
$l_out_passwd = "Mot de passe :";
|
35 |
$l_out_passwd = "Mot de passe :";
|
36 |
$l_out_mind = "Pensez à changer votre mot de passe (lien sur la page d'authentification)";
|
36 |
$l_out_mind = "Pensez à changer votre mot de passe (lien sur la page d'authentification)";
|
- |
|
37 |
} else if($Language === 'es') {
|
- |
|
38 |
$l_title = "Importar y vaciar la base de datos de usuarios.";
|
- |
|
39 |
$l_database_state ="Estado de la base de datos: cantidad de grupos = ";
|
- |
|
40 |
$l_number_of_users = "Cantidad de usuarios";
|
- |
|
41 |
$l_text_import = "Importar desde un archivo de texto";
|
- |
|
42 |
$l_text_import_help = "En este archivo, debe escribir solo el \"nombre de usuario\" uno debajo del otro.";
|
37 |
}
|
- |
|
- |
|
43 |
$l_file = "Archivo";
|
- |
|
44 |
$l_users_group = "Definir el grupo (aconsejable)";
|
- |
|
45 |
$l_send = "Importar";
|
- |
|
46 |
$l_empty = "Vaciar";
|
- |
|
47 |
$l_empty_warn = "Está a punto de vaciar toda la base de datos de usuarios ... ¿Desea continuar?";
|
- |
|
48 |
$l_imported_files = "Archivos de nombres de usuarios / contraseñas importados durante las últimas 24hs: ";
|
- |
|
49 |
$l_db_import = "Importar desde un archivo de base de datos de usuarios guardado";
|
- |
|
50 |
$l_db_import_help = "Para atribuir las últimas conexiones, la base de datos de usuarios reales se guardará automáticamente.";
|
- |
|
51 |
$l_db_reset = "Vaciar la base de datos de usuarios";
|
- |
|
52 |
$l_error_ext_txt = "¡Error! Seleccione un archivo con la extensión '.txt' o '.csv'";
|
- |
|
53 |
$l_error_ext_sql = "¡Error! Seleccione un archivo con la extensión '.sql' o '.sql.gz'";
|
- |
|
54 |
$l_group_empty = "La lista de grupos está vacía.";
|
- |
|
55 |
$l_out_title = " --- Accesos a Internet mediante ALCASAR --- ";
|
- |
|
56 |
$l_out_login = "Nombre de usuario:";
|
- |
|
57 |
$l_out_passwd = "Contraseña:";
|
- |
|
58 |
$l_out_mind = "No olvide cambiar su contraseña (hay un enlace en la ventana de autenticación)";
|
38 |
else {
|
59 |
} else {
|
39 |
$l_title = "Import and empty the users database";
|
60 |
$l_title = "Import and empty the users database";
|
40 |
$l_database_state ="State of the database : number of groups =";
|
61 |
$l_database_state ="State of the database : number of groups = ";
|
41 |
$l_number_of_users = "Number of users";
|
62 |
$l_number_of_users = "Number of users";
|
42 |
$l_text_import = "Import from a text file";
|
63 |
$l_text_import = "Import from a text file";
|
43 |
$l_text_import_help = "In this file, you must write only the user login one below the other.";
|
64 |
$l_text_import_help = "In this file, you must write only the user login one below the other.";
|
44 |
$l_file = "File";
|
65 |
$l_file = "File";
|
45 |
$l_users_group = "Define their group (advisable)";
|
66 |
$l_users_group = "Define their group (advisable)";
|
Line 116... |
Line 137... |
116 |
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
|
137 |
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
|
117 |
<tr><th><? echo "$l_title"; ?></th></tr>
|
138 |
<tr><th><? echo "$l_title"; ?></th></tr>
|
118 |
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
|
139 |
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
|
119 |
</TABLE>
|
140 |
</TABLE>
|
120 |
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
|
141 |
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
|
121 |
<tr><td valign="middle" align="left">
|
142 |
<tr><td valign="middle" align="center">
|
122 |
<CENTER><H3>
|
143 |
<H3>
|
123 |
<?php
|
144 |
<?php
|
124 |
echo "$l_database_state ";
|
145 |
echo "$l_database_state";
|
125 |
|
- |
|
126 |
$LIBpath = "../lib/";
|
146 |
$LIBpath = "../lib/";
|
127 |
if (is_file($LIBpath."sql/drivers/$config[sql_type]/functions.php"))
|
147 |
if (is_file($LIBpath."sql/drivers/$config[sql_type]/functions.php"))
|
128 |
{
|
148 |
{
|
129 |
include_once($LIBpath."sql/drivers/$config[sql_type]/functions.php");
|
149 |
include_once($LIBpath."sql/drivers/$config[sql_type]/functions.php");
|
130 |
}
|
150 |
}
|
Line 281... |
Line 301... |
281 |
{
|
301 |
{
|
282 |
$nb_user = @da_sql_num_rows($res,$config);
|
302 |
$nb_user = @da_sql_num_rows($res,$config);
|
283 |
echo "$nb_user";
|
303 |
echo "$nb_user";
|
284 |
}
|
304 |
}
|
285 |
}
|
305 |
}
|
286 |
echo "</td></tr><tr><td>";
|
306 |
echo "</H3></td></tr><tr><td>";
|
287 |
echo "<TABLE width=\"100%\" border=0 cellspacing=0 cellpadding=1>";
|
307 |
echo "<TABLE width=\"100%\" border=0 cellspacing=0 cellpadding=1>";
|
288 |
echo "<tr><td valign=\"middle\" align=\"left\" colspan=\"2\">";
|
308 |
echo "<tr><td valign=\"middle\" align=\"center\" colspan=\"2\">";
|
289 |
echo "<CENTER><H3>$l_text_import</H3></CENTER></td></tr>";
|
309 |
echo "<H3>$l_text_import</H3></td></tr>";
|
290 |
echo "<tr><td valign=\"middle\" align=\"left\">";
|
310 |
echo "<tr><td valign=\"middle\" align=\"left\">";
|
291 |
echo "$l_text_import_help<br>";
|
311 |
echo "$l_text_import_help<br>";
|
292 |
echo "<tr><td valign=\"middle\" align=\"left\">";
|
312 |
echo "<tr><td valign=\"middle\" align=\"left\">";
|
293 |
echo "<br><FORM action='$_SERVER[PHP_SELF]' method=POST ENCTYPE=\"multipart/form-data\">";
|
313 |
echo "<br><FORM action='$_SERVER[PHP_SELF]' method=POST ENCTYPE=\"multipart/form-data\">";
|
294 |
echo "$l_file (.txt or .csv) : <input type=\"file\" name=\"import-users\"><br>";
|
314 |
echo "$l_file (.txt or .csv) : <input type=\"file\" name=\"import-users\"><br>";
|