4,6 → 4,39 |
require('../lib/functions.php'); |
require('../lib/sql/functions.php'); |
require('../lib/acctshow.php'); |
$Language = 'en'; |
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) { |
$Langue = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']); |
$Language = strtolower(substr(chop($Langue[0]), 0, 2)); |
} |
if ($Language === 'fr') { |
$l_title = "Journal des connexions"; |
$l_select_attributes = "Sélectionnez les attributs à afficher"; |
$l_ordered = "Classé par :"; |
$l_max_return = "Nbr. max. de résultats retournés :"; |
$l_criteria = "Critère de sélection :"; |
$l_not_valid = "L'opération demandé n'est pas valide. Sortie anormale."; |
$l_delete = "Supprimer"; |
$l_edit_user = "Éditer l'utilisateur :"; |
} else if($Language === 'es') { |
$l_title = "Registro de conexión"; |
$l_select_attributes = "Seleccione los atributos que desea mostrar"; |
$l_ordered = "ordenada por :"; |
$l_max_return = "Máximo número de resultados devueltos :"; |
$l_criteria = "Criterios de selección :"; |
$l_not_valid = "La operación solicitada no es válida. Salida anormal."; |
$l_delete = "Eliminar"; |
$l_edit_user = "Editar usuario :"; |
} else { |
$l_title = "Connections log"; |
$l_select_attributes = "Select the attributes you want to display"; |
$l_ordered = "Ordered by :"; |
$l_max_return = "Max. no. of results returned :"; |
$l_criteria = "Selection Criteria :"; |
$l_not_valid = "The requested operation is not valid. Abnormal exit."; |
$l_delete = "Delete"; |
$l_edit_user = "Edit user :"; |
} |
if (is_file("../lib/sql/drivers/$config[sql_type]/functions.php")) |
include_once("../lib/sql/drivers/$config[sql_type]/functions.php"); |
else{ |
22,16 → 55,6 |
EOM; |
exit(); |
} |
$Language = 'en'; |
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) { |
$Langue = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']); |
$Language = strtolower(substr(chop($Langue[0]), 0, 2)); |
} |
if ($Language === 'fr') { |
$l_title = "Journal des connexions"; |
} else { |
$l_title = "Connections log"; |
} |
|
$operators=array( '=','<', '>', '<=', '>=', 'regexp', 'like' ); |
if ($config['sql_type'] == 'pg'){ |
89,7 → 112,7 |
<input name="value_of_$this->name" type=text value="$this->value"> |
</td><td align=left> |
<input type=hidden name="delete_$this->name" value=0> |
<input type=submit class=button size=5 value=del onclick="this.form.delete_$this->name.value=1"> |
<input type=submit class=button size=5 value="$l_delete" onclick="this.form.delete_$this->name.value=1"> |
</td></tr> |
EOM; |
} |
132,7 → 155,7 |
<table border=0 width=740 cellpadding=1 cellspacing=1> |
<tr> |
<td> |
<b>Afficher les attributs suivants :</b><br> |
<b>$l_select_attributes</b><br> |
<select name="accounting_show_attrs[]" size=5 multiple> |
EOM; |
foreach($items as $key => $val) |
143,7 → 166,7 |
echo <<<EOM |
</select> |
<br><br> |
<b>Classé par :</b><br> |
<b>$l_ordered</b><br> |
<select name="order_by"> |
EOM; |
|
160,7 → 183,7 |
echo <<<EOM |
</select> |
<br><br> |
<b>Nbr. Max. de résultats retournés :</b><br> |
<b>$l_max_return</b><br> |
<input name=maxresults value=$config[sql_row_limit] size=5> |
</td> |
<td valign=top> |
167,7 → 190,7 |
<input type=hidden name=add value=0> |
<table border=0 width=340 cellpadding=1 cellspacing=1> |
<tr><td> |
<b>Critère de sélection :</b> |
<b>$l_criteria</b> |
</td></tr> |
<tr><td> |
<select name=item_name onchange="this.form.add.value=1;this.form.submit()"> |
225,7 → 248,7 |
} |
} |
if (!$op_found) |
die("L'opération demandé n'est pas valide. Sortie anormale."); |
die("$l_not_valid"); |
${"item_of_w$i"} = preg_replace('/\s/','',${"item_of_w$i"}); |
${"value_of_w$i"} = da_sql_escape_string($link,${"value_of_w$i"}); |
$where .= ($i == 1) ? ' WHERE ' . ${"item_of_w$i"} . ' ' . ${"operator_of_w$i"} . " '" . ${"value_of_w$i"} . "'" : |
296,7 → 319,7 |
$info = '-'; |
if ($val == 'username'){ |
$Info = urlencode($info); |
$info = "<a href=\"user_admin.php?login=$Info\" title=\"Edit user $info\">$info</a>"; |
$info = "<a href=\"user_admin.php?login=$Info\" title=\"$l_edit_user $info\">$info</a>"; |
} |
echo <<<EOM |
<td>$info</td> |