Commit graph

36 commits

Author SHA1 Message Date
Siebrand Mazeland 6831e5d5b6 Consistent casing for addHTML() 2008-11-06 22:20:29 +00:00
Andrew Garrett fe00c5e019 Minor bugs in abuse filter, plus new ALL_LINKS/ADDED_LINKS/REMOVED_LINKS 2008-10-24 08:58:32 +00:00
Andrew Garrett e6d30eb00f Abuse Filter: Fix minor bug in a previous commit (was spewing notices on filter save), and trim filters etc before they get added. 2008-10-22 07:14:16 +00:00
Andrew Garrett a16a14acba Abuse Filter:
* Display list using a sexy TablePager.
* Allow sorting by various things, like hit count, id, consequences, last modified, etc.
2008-10-22 06:18:02 +00:00
Andrew Garrett c957772a0d Abuse Filter:
* Prettify history titles. They're now Special:AbuseFilter/history/<filterid>
* Prettify history *pages*. They now truncate the filters at a few hundred chars, and have links to open the individual history items in the editor, with a big boilerplate at the top and the bottom in case people forget.
* Fix up the log a bit. <li> elements in the 'details' view were invalid XHTML, and very annoying...
2008-10-21 15:14:30 +00:00
Andrew Garrett 0d52f1261a Abuse Filter:
* Consolidate details on the last edit.
* Allow specification of a warning message to display instead of the standard warning (was already implemented in code, but there was no UI for it.
2008-10-21 14:11:03 +00:00
Andrew Garrett 884e0e4dff Abuse Filter:
* Fix up selecting deleted / disabled filters on Special:AbuseFilter. Instead of weird links, it now has a proper form.
* Fix log entries so they can have wikitext, and add a link to the relevant abuse filter for detailed log entries.
2008-10-21 13:43:05 +00:00
Andrew Garrett a610bea913 Use proper nextSequenceValue / insertId system for new filters, instead of adding max(af_id)+1, which doesn't allow concurrent writes. 2008-10-21 12:58:01 +00:00
Andrew Garrett 56065d6a59 Re-commit re-autoconfirmation, with fixes for permissions 2008-09-29 13:30:11 +00:00
Andrew Garrett a374d100ff Revert r41145. Restoring autoconfirmed should really have access control, eh? 2008-09-22 14:07:04 +00:00
Andrew Garrett 74d4fa198f Add a hacky tool for restoring autoconfirmed status when it's blocked by a filter. Don't expect it to get much use, so I haven't put much effort in. It gets the job done, though. 2008-09-22 09:16:45 +00:00
Andrew Garrett 08d3857983 Widdle bug 2008-09-18 13:42:36 +00:00
Andrew Garrett 74097d106e Add rangeblocks, a bit of a nuclear option for the abuse filter. Not intended for Wikimedia use 2008-09-18 13:01:50 +00:00
Andrew Garrett 4fd43cdea9 Add basic functionality to delete filters (not really a deletion, just moved to another list) 2008-09-05 14:27:18 +00:00
Andrew Garrett aac69c2f69 Fix some notices 2008-08-31 07:08:11 +00:00
Andrew Garrett e786ae8f42 Fix misspelling 2008-08-08 11:00:50 +00:00
Andrew Garrett af1cbfb759 Abuse Filter:
* Add power operator.
* Add filter builder (very simple, just a drop-down box with commonly-used constructs)
2008-08-08 09:37:05 +00:00
Andrew Garrett 16909a2c42 Fix two memory leaks in native parser. Now has no memory leaks :-) 2008-08-07 13:53:18 +00:00
Andrew Garrett 016da694a6 Abuse Filter:
* Reimplement tools, starting with a spiffy AJAX expression tester. Didn't bother implementing as non-AJAX, as it's just an extra.
* Change exchange protocol between native parser and PHP app. Resulted in 2-3-fold performance boost.
* Fix minor bug from last night.
2008-08-04 14:27:48 +00:00
Andrew Garrett 4c57a8cf4d Abuse Filter:
* Make with -O3 instead of -g, to improve performance.
* Add AJAX filter syntax checking.
2008-08-04 12:15:14 +00:00
Andrew Garrett 3ba79484db Oops, was using the wrong message 2008-08-04 08:34:40 +00:00
Andrew Garrett 529d7b4277 Abuse Filter:
* Introduce a syntax check on-save.
* Introduce filter history (requires DB schema change).
* Deprecate now non-working /tools interface (will come back).
2008-08-03 14:04:26 +00:00
Niklas Laxström 54b6af040f * i18n fixes 2008-07-29 11:16:35 +00:00
Aryeh Gregor 1bb89ae553 Follow-up to r37968: forgot to commit the change setRobotpolicy -> setRobotPolicy in extensions. (Not committing lots of other stuff this time.) 2008-07-23 19:33:28 +00:00
Aryeh Gregor 2a39f83909 Revert last commit for a moment, committed lots of stuff I didn't mean to. 2008-07-23 19:27:13 +00:00
Aryeh Gregor 3a6f410eea Follow-up to r37968: forgot to commit the change setRobotpolicy -> setRobotPolicy in extensions. 2008-07-23 19:25:48 +00:00
Andrew Garrett 34a4bbe10a Abuse filter updates:
* Allow matching on the changes made in an edit (added/removed lines, etc)
* Improve display of variables in details view - standardise the table size, add white-space: pre, font-family: monospace.
* Improve modifiers: add htmlencode/htmldecode/urlencode/urldecode.
* Add 'abuse filter tools', currently consisting of a testing ground for the modifiers. In future, may include facilities for testing filters against user contributions, recent changes, or other sources.
2008-07-17 13:40:45 +00:00
Andrew Garrett f34000f1fb Abuse filter updates:
* Disallow more than 100 condition-checks per action.
* Disallow filters which are misbehaving (more than 5 matches, constituting more than 5% of recent actions)
* Display statistics for all filters (percentage of times the condition limit is reached, and percentage of times some filter is matched), and individual filters (percentage of times it's matched).
2008-07-17 02:43:45 +00:00
Andrew Garrett f5950703ae Respect DB prefixes in query. 2008-06-27 13:04:39 +00:00
Andrew Garrett 5d352d98fe Fix syntax error 2008-06-27 10:47:01 +00:00
Andrew Garrett 688036c467 Fix regression in which textareas would spontaneously contain the rest of the HTML for Special:AbuseFilter/new 2008-06-27 10:44:39 +00:00
Alexandre Emsenhuber 9c43bbe9b3 Oops 2008-06-27 09:28:39 +00:00
Alexandre Emsenhuber a180d6aba2 Fix some E_NOTICE 2008-06-27 09:26:54 +00:00
Andrew Garrett 3bc50d4f95 Change multi-table select to LEFT OUTER JOIN, so actions without consequences show up on the filter page' 2008-06-27 07:55:13 +00:00
Andrew Garrett 22bb5022e9 Actually allow people to add filters... 2008-06-27 07:21:26 +00:00
Andrew Garrett 1f5f95131d Add AbuseFilter extension 2008-06-27 06:18:51 +00:00