"Erik Moeller" wrote
Tim-
Automatic expiration? Piece of cake, give me 24
hours. Any suggestions
for the lifetime?
Should be configurable in minutes, with 0=infinite (we have permanently
banned users).
Sorry Erik, I'm afraid that exceeds my "piece of cake" design brief. :)
Instead, I've just committed the following to CVS:
* Lifetime for user blocks and IP blocks is configurable separately, in
LocalSettings.php. The current default is 24 hours for IP blocks, and
infinite for user blocks.
* Blocks disappear from the table without a trace, at the end of their
lifetime. A possible future improvement would be to allow them to be
manually refreshed, but currently that is impossible.
* The timestamp on an IP block will be automatically refreshed if a banned
user accesses Wikipedia through that address.
* The software can be restored to roughly its previous behaviour using
$wgSysopUserBans=false in LocalSettings.php. The difference is that sysops
can now unblock users regardless of the setting, whereas before only
developers could unblock users.
* Blocks are now encapsulated in the "Block" object, in "Block.php".
The
code is mostly converted over to use it. It optionally deletes expired bans
on read.
-- Tim Starling.