* Add a configuration directive general_charset. Add a language meta tag in all pages
page to work properly.
* Add a login-time creation page which will allow the administrator to create the login-time string through a gui
instead of writing it directly in UUCP format.
+* Call lib/{ldap,sql}/user_info in user_info before displaying any information about the user
+* Add a configuration directive general_charset. Add a language meta tag in all pages
Ver 1.62:
* Remove one sql query from user_admin which was not needed.
* Instead of a query like "LIKE 'YYYY-MM-DD%'" use "AcctStopTime >= 'YYYY-MM-DD 00:00:00 AND AcctStopTime
general_prefered_lang: el
general_prefered_lang_name: Greek
#
+# The charset which will be added as a meta tag in all pages
+#
+general_charset: iso-8859-1
+#
# Uncomment this if normal attributes (not the ;lang-xx ones) in ldap
# are utf8 encoded.
#
<html>
<head>
<title>Accounting Report Generator</title>
+<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
<link rel="stylesheet" href="style.css">
</head>
<body bgcolor="#80a040" background="images/greenlines1.gif" link="black" alink="black">
?>
<html>
<head>
-<title>
-Accounting Report Generator
-</title>
+<title>Accounting Report Generator</title>
+<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config[general_charset]?>">
<link rel="stylesheet" href="style.css">
</head>
<body bgcolor="#80a040" background="images/greenlines1.gif" link="black" alink="black">
else{
echo <<<EOM
<title>Unauthorized Service Usage History for $login</title>
+<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
<link rel="stylesheet" href="style.css">
</head>
<body bgcolor="#80a040" background="images/greenlines1.gif" link="black" alink="black">
echo <<<EOM
<head>
<title>Unauthorized Service Usage History for $login</title>
+<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
<link rel="stylesheet" href="style.css">
</head>
<body bgcolor="#80a040" background="images/greenlines1.gif" link="black" alink="black">
else{
echo <<<EOM
<title>Failed logins</title>
+<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
<link rel="stylesheet" href="style.css">
</head>
<body bgcolor="#80a040" background="images/greenlines1.gif" link="black" alink="black">
<head>
<title>Failed Logins</title>
+<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config[general_charset]?>">
<link rel="stylesheet" href="style.css">
</head>
<body bgcolor="#80a040" background="images/greenlines1.gif" link="black" alink="black">
<html>
<head>
<title>Find User Page</title>
+<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config[general_charset]?>">
<link rel="stylesheet" href="style.css">
</head>
<body bgcolor="#80a040" background="images/greenlines1.gif" link="black" alink="black">
if ($config[general_lib_type] != 'sql'){
echo <<<EOM
<title>Group Administration Page</title>
+<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
<link rel="stylesheet" href="style.css">
</head>
<body bgcolor="#80a040" background="images/greenlines1.gif" link="black" alink="black">
if ($group_exists == 'no'){
echo <<<EOM
<title>Group Administration Page</title>
+<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
<link rel="stylesheet" href="style.css">
</head>
<body bgcolor="#80a040" background="images/greenlines1.gif" link="black" alink="black">
<html>
<head>
<title>Group Administration Page</title>
+<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config[general_charset]?>">
<link rel="stylesheet" href="style.css">
</head>
<body bgcolor="#80a040" background="images/greenlines1.gif" link="black" alink="black">
if ($config[general_lib_type] != 'sql'){
echo <<<EOM
<title>New group creation page</title>
+<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
<link rel="stylesheet" href="style.css">
</head>
<body bgcolor="#80a040" background="images/greenlines1.gif" link="black" alink="black">
<html>
<head>
<title>New group creation page</title>
+<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config[general_charset]?>">
<link rel="stylesheet" href="style.css">
</head>
<body bgcolor="#80a040" background="images/greenlines1.gif" link="black" alink="black">
<html>
<head>
<title>Login-Time Creation Page</title>
+<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config[general_charset]?>">
<link rel="stylesheet" href="style.css">
</head>
<body bgcolor="#80a040" background="images/greenlines1.gif" link="black" alink="black">
else{
echo <<<EOM
<title>User Groups</title>
+<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
<link rel="stylesheet" href="style.css">
</head>
<body bgcolor="#80a040" background="images/greenlines1.gif" link="black" alink="black">
?>
<head>
<title>User Groups</title>
+<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config[general_charset]?>">
<link rel="stylesheet" href="style.css">
</head>
<body bgcolor="#80a040" background="images/greenlines1.gif" link="black" alink="black">
<html>
<head>
<title>account analysis</title>
+<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config[general_charset]?>">
<link rel="stylesheet" href="style.css">
</head>
<body bgcolor="#80a040" background="images/greenlines1.gif" link="black" alink="black">
include_once("../lib/sql/drivers/$config[sql_type]/functions.php3");
else{
echo <<<EOM
-<title>subscription analysis for $login ($cn)</title>
+<title>subscription analysis for $login</title>
+<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
<link rel="stylesheet" href="style.css">
</head>
<body bgcolor="#80a040" background="images/greenlines1.gif" link="black" alink="black">
echo <<<EOM
<head>
-<title>subscription analysis for $login ($cn)</title>
+<title>subscription analysis for $login</title>
+<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
<link rel="stylesheet" href="style.css">
</head>
<body bgcolor="#80a040" background="images/greenlines1.gif" link="black" alink="black">
if ($user_exists == 'no'){
echo <<<EOM
<title>user information page</title>
+<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
<link rel="stylesheet" href="style.css">
</head>
<body bgcolor="#80a040" background="images/greenlines1.gif" link="black" alink="black">
else{
echo <<<EOM
<title>user information page</title>
+<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
<link rel="stylesheet" href="style.css">
</head>
<body bgcolor="#80a040" background="images/greenlines1.gif" link="black" alink="black">
echo "<title>delete group $login</title>\n";
echo <<<EOM
+<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
<link rel="stylesheet" href="style.css">
</head>
<body bgcolor="#80a040" background="images/greenlines1.gif" link="black" alink="black">
echo " <title>subscription configuration for $login</title>\n";
?>
+<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config[general_charset]?>">
<link rel="stylesheet" href="style.css">
</head>
<body bgcolor="#80a040" background="images/greenlines1.gif" link="black" alink="black">
<html>
<head>
<META HTTP-EQUIV="Refresh" CONTENT="50">
-<title>
-User Finger Facility
-</title>
+<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config[general_charset]?>">
+<title>User Finger Facility</title>
<link rel="stylesheet" href="style.css">
</head>
<html>
<head>
+<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config[general_charset]?>">
<title>Personal information page</title>
<link rel="stylesheet" href="style.css">
</head>
?>
</table>
+<?php
+if ($change == 1){
+ if (is_file("../lib/$config[general_lib_type]/user_info.php3"))
+ include("../lib/$config[general_lib_type]/user_info.php3");
+ if (is_file("../lib/$config[general_lib_type]/change_info.php3"))
+ include("../lib/$config[general_lib_type]/change_info.php3");
+}
+
+if (is_file("../lib/$config[general_lib_type]/user_info.php3"))
+ include("../lib/$config[general_lib_type]/user_info.php3");
+?>
+
<br>
<table border=0 width=540 cellpadding=1 cellspacing=1>
<tr valign=top>
<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
<tr><td>
-<?php
-if ($change == 1){
- if (is_file("../lib/$config[general_lib_type]/user_info.php3"))
- include("../lib/$config[general_lib_type]/user_info.php3");
- if (is_file("../lib/$config[general_lib_type]/change_info.php3"))
- include("../lib/$config[general_lib_type]/change_info.php3");
-}
-
-if (is_file("../lib/$config[general_lib_type]/user_info.php3"))
- include("../lib/$config[general_lib_type]/user_info.php3");
-?>
<form method=post>
<input type=hidden name=login value="<?php echo $login?>">
<input type=hidden name=change value="0">
<html>
<head>
<title>New user creation page</title>
+<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config[general_charset]?>">
<link rel="stylesheet" href="style.css">
</head>
<body bgcolor="#80a040" background="images/greenlines1.gif" link="black" alink="black">
else{
echo <<<EOM
<title>User Statistics</title>
+<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
<link rel="stylesheet" href="style.css">
</head>
<body bgcolor="#80a040" background="images/greenlines1.gif" link="black" alink="black">
<html>
<head>
<title>test user $login</title>
+<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
<link rel="stylesheet" href="style.css">
</head>
<body bgcolor="#80a040" background="images/greenlines1.gif" link="black" alink="black">
echo <<<EOM
<title>user information for $cn</title>
+<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
</head>
<body bgcolor="#80a040" background="images/greenlines1.gif" link="black" alink="black">
<link rel="stylesheet" href="style.css">