Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2853 → Rev 2854

/web/acc/manager/htdocs/accounting.php
1,9 → 1,30
<!DOCTYPE html>
<?php
require('/etc/freeradius-web/config.php');
require('../lib/functions.php');
require('../lib/sql/functions.php');
require('../lib/acctshow.php');
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<?php
if (is_file("../lib/sql/drivers/$config[sql_type]/functions.php"))
include_once("../lib/sql/drivers/$config[sql_type]/functions.php");
else{
echo <<<EOM
<title>$l_title</title>
<link rel="stylesheet" href="/css/acc.css">
</head>
<body>
<center>
<b>Could not include SQL library functions. Aborting</b>
</body>
</html>
EOM;
exit();
}
#choice of language
$Language = 'en';
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
$Langue = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
37,24 → 58,6
$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{
echo <<<EOM
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>$l_title</title>
<link rel="stylesheet" href="/css/acc.css">
</head>
<body>
<center>
<b>Could not include SQL library functions. Aborting</b>
</body>
</html>
EOM;
exit();
}
 
$operators=array( '=','<', '>', '<=', '>=', 'regexp', 'like' );
if ($config['sql_type'] == 'pg'){
134,9 → 137,6
}
 
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><?= $l_title ?></title>
<link rel="stylesheet" href="/css/acc.css">
</head>
/web/acc/manager/htdocs/user_stats.php
6,7 → 6,7
require('../lib/sql/nas_list.php');
require_once('../lib/xlat.php');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!DOCTYPE html>
<html>
<?php
if (is_file("../lib/sql/drivers/$config[sql_type]/functions.php"))
50,6 → 50,26
$l_server = "Serveur";
$l_login = "Identifiant";
$l_user_edit = "Éditer l'utilisateur";
} else if($Language == 'es') {
$l_title = "Estadísticas de conexiones de los Usuarios";
$l_start_date = "Desde fecha";
$l_end_date = "Hasta fecha";
$l_number_result = "Nro de resultados / páginas";
$l_order_by = "Ordenados por";
$l_sorted_order = "Ordenar resultados";
$l_all = "Todos";
$l_con_number = "Números de conexiones";
$l_con_length = "Duración de la conexión";
$l_ascending = "Ascendente";
$l_descending = "Descendente";
$l_server = "En el servidor";
$l_user = "Filtrar por usuario (en blanco para todos los usuarios)";
$l_show = "Mostrar";
$l_from = "Desde";
$l_to = "hasta";
$l_server = "Servidor";
$l_login = "Usuario";
$l_user_edit = "Modificar usuario";
} else {
$l_title = "Statistics of users connexions";
$l_start_date = "Start date";
85,14 → 105,10
<link rel="stylesheet" href="/css/acc.css" type="text/css">
</head>
<body>
<center>
<div class="panel">
<div class="panel-header"><?= $l_title ?></div>
<div class="panel-row">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><th>
<font color="white"><?echo "$l_title";?></font>
</th></tr>
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
</table>
<table width="100%" border="1" cellspacing="0" cellpadding="0">
<?php
if(isset($pagesize))
{
202,7 → 218,7
echo <<<EOM
</table>
<hr>
<table width="100%" border="1" cellspacing="0" cellpadding="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
EOM;
}
else
293,5 → 309,7
</table>
</form>
</td></tr></table>
</div>
</div>
</body>
</html>