8,23 → 8,8 |
?> |
<!DOCTYPE html> |
<html> |
<head> |
<?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>Statistiques utilisateurs</title> |
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]"> |
<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'])){ |
91,6 → 76,21 |
$l_login = "Login"; |
$l_user_edit = "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 |
<title>$l_title</title> |
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]"> |
<link rel="stylesheet" href="/css/acc.css"> |
</head> |
<body> |
<center><b>Could not include SQL library functions. Aborting</b></center> |
</body> |
</html> |
EOM; |
exit(); |
} |
if (!isset($start) && !isset($stop)){ |
$now = time(); |
$stop = date($config['sql_date_format'],$now); |
100,8 → 100,7 |
$start = da_sql_escape_string($link,$start); |
$stop = da_sql_escape_string($link,$stop); |
?> |
<head> |
<title><?php echo "$l_title";?></title> |
<title><?= $l_title ?></title> |
<link rel="stylesheet" href="/css/acc.css" type="text/css"> |
</head> |
<body> |