Ver 1.55:
* Update the FAQ about missing attributes from the user/group edit pages and add a few comments
in the configuration files
+* Add support for the Expiration attribute. Add it in the sql attribute map, in user_edit.attrs and
+ check for it in user_admin
+* Add a few more keys in the userinfo and badusers tables.
+* Fix a problem with lib/sql/defaults.php3 where the first character in the default value when using
+ operators was set to the opeator
Ver 1.54:
* Add attributes for the sql group tables in admin.conf. Now SQL group support should really work!
Ver 1.53:
checkItem Max-Daily-Session Max-Daily-Session
checkItem Max-Weekly-Session Max-Weekly-Session
checkItem Login-Time Login-Time
+chechItem Expiration Expiration
replyItem Service-Type Service-Type
replyItem Framed-Protocol Framed-Protocol
#Max-Daily-Session Daily Limit (secs)
#Max-Weekly-Session Weekly Limit (secs)
#Login-Time User Login Period <a href="help/login_time_help.html" target=lt_help onclick=window.open("help/login_time_help.html","lt_help","width=600,height=370,toolbar=no,scrollbars=no,resizable=yes") title="Login-Time Help Page"><font color="blue">(UUCP Format)</font></a>
+#Expiration <a href="help/expiration_help.html" target=lt_help onclick=window.open("help/expiration_help.html","lt_help","width=600,height=180,toolbar=no,scrollbars=no,resizable=yes") title="Expiration Help Page"><font color="blue">User Expiration Date</font></a>
else
$descr = '-';
+$expiration = $default_vals['Expiration'];
+if ($item_vals['Expiration'][0] != '')
+ $expiration = $item_vals['Expiration'][0];
+if ($expiration != ''){
+ $expiration = strtotime($expiration);
+ if ($expiration != -1 && $expiration < time())
+ $descr = <<<EOM
+<font color=red><b>User Account has expired</b></font>
+EOM;
+}
+
require('../html/user_admin.html.php3');
echo "<b>Database query failed: " . da_sql_error($link,$config) . "</b><br>\n";
foreach($attrmap as $key => $val){
if (isset($tmp[$val])){
- if ($tmp[$val][0] != '')
- $default_vals["$key"] = $tmp[$val][0];
if ($use_op)
if ($tmp[$val][operator][0] != '')
$default_vals["$key"][operator] = $tmp[$val][operator][0];
+ if ($tmp[$val][0] != '')
+ $default_vals["$key"] = $tmp[$val][0];
}
}
}
UserName varchar(30),
Date datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
Reason varchar(200),
- PRIMARY KEY (id)
+ PRIMARY KEY (id),
+ KEY UserName (UserName),
+ KEY Date (Date)
);
WorkPhone varchar(200),
HomePhone varchar(200),
Mobile varchar(200),
- PRIMARY KEY (id)
+ PRIMARY KEY (id),
+ KEY UserName (UserName),
+ KEY Departmet (Department)
);