* Add sessions in order to cache the various mappings. Add a corresponding configuration directive
general_use_session. Also add a session cache destroy page.
* Also cache the admin.conf if use_session is set to 1 in config.php3
+* Fix a few bugs
Ver 1.55:
* Update the FAQ about missing attributes from the user/group edit pages and add a few comments
in the configuration files
echo <<<EOM
<tr>
<td align=right colspan=$colspan bgcolor="#d0ddb0">
-User Password (changes only)
-<?php
+User Password (changes only)<br>
+EOM;
if ($user_password_exists == 'yes')
echo "<font size=-2>User password <font color=\"green\"><b>exists</b></font></font>\n";
else
echo "<font size=-2>User password <font color=\"red\"><b>does not exist</b></font></font>\n";
-?>
+ echo <<<EOM
</td>
<td>
<input type=password name=passwd value="" size=40>
<?php
+require('../lib/functions.php3');
if (is_file("../lib/sql/drivers/$config[sql_type]/functions.php3"))
include_once("../lib/sql/drivers/$config[sql_type]/functions.php3");
else{
$attrmap["$key"] = $key;
$attr_type["$key"] = 'replyItem';
$rev_attrmap["$key"] = $key;
- }
+ }
if ($attr_type["$key"] == 'checkItem'){
$table = "$config[sql_groupcheck_table]";
$type = 1;
continue;
$res = @da_sql_query($link,$config,
"INSERT INTO $table (Attribute,Value,GroupName $text)
- VALUES ('$attrmap[$key]','$val','$login' $op_val2;");
+ VALUES ('$attrmap[$key]','$val','$login' $op_val2);");
if (!$res || !@da_sql_affected_rows($link,$res,$config))
echo "<b>Query failed for attribute $key: " . da_sql_error($link,$config) . "</b><br>\n";
}
$attr_type["$key"] = 'replyItem';
$rev_attrmap["$val"] = $key;
}
- if (isset($default_vals["$key"]) && $overwrite_defaults){
+ if (!isset($default_vals["$key"]) || $overwrite_defaults){
if ($use_op)
$default_vals["$key"][operator] = $tmp["$val"][operator];
if ($tmp[$val][0] != '')