variables.
* Fix operator escaping in lib/sql/change_attrs.php3
* In user_state also take into account any open sessions when calculating daily/weekly usage.
Add two more lines in the output stating the number of current open sessions and the time used.
+* Move a few header() calls after including config.php3 so that we have access to the relevant
+ variables.
Ver 1.72:
* Move the xlat function to a separate file in lib/xlat.php3
* Add a lib/sql/nas_list.php3 to also get the nas list from sql (naslist.conf still works)
<?php
+require('../conf/config.php3');
if ($show == 1 && isset($del_members)){
header("Location: user_admin.php3?login=$del_members[0]");
exit;
}
-require('../conf/config.php3');
if ($config[general_lib_type] != 'sql'){
echo <<<EOM
<title>Group Administration Page</title>
<?php
+require('../conf/config.php3');
if ($show == 1){
header("Location: group_admin.php3?login=$login");
exit;
}
-require('../conf/config.php3');
if ($config[general_lib_type] != 'sql'){
echo <<<EOM
<?php
+require('../conf/config.php3');
if ($edit_group == 1){
header("Location: group_admin.php3?login=$group_to_edit");
exit;
}
-require('../conf/config.php3');
require('../lib/attrshow.php3');
require('../lib/defaults.php3');
if ($user_type != 'group'){
<?php
+require('../conf/config.php3');
if ($show == 1){
header("Location: user_admin.php3?login=$login");
exit;
}
-require('../conf/config.php3');
require('../lib/attrshow.php3');
require('../lib/defaults.php3');