Commit graph

50 commits

Author SHA1 Message Date
Andrew Garrett fe39e38282 AbuseFilter: Introduce hiding of abuse log entries, controlled by abusefilter-hidden-log and abusefilter-hide-log rights. 2010-06-25 20:04:55 +00:00
Andrew Garrett bd6ab24e2c AbuseFilter: Fix mSearchUser on abuse log. 2010-06-25 00:06:07 +00:00
Chad Horohoe 5fce797b18 Revert r66934 (Removing wfLoadExtensionMessages() from everything). I disagree on principle...we branch extensions for this very reason. But people want trunk extensions compatible for several versions back, meh. 2010-05-27 15:56:53 +00:00
Chad Horohoe 3283b90f01 Large commit. Removed 800+ references to no-op wfLoadExtensionMessages() 2010-05-26 22:25:32 +00:00
Raimond Spekking ac8439bd8a Use commaList() for better i18n 2010-03-13 17:23:08 +00:00
Siebrand Mazeland b274606879 Update code formatting, run stylize.php, whitespace updates 2010-02-13 14:10:36 +00:00
Jack Phoenix e2a16fe755 AbuseFilter: big commit - coding style & spacing cleanup; also marked SpecialPages' construct() and execute() functions as public and capitalized some SQL keywords 2009-10-07 13:57:06 +00:00
Andrew Garrett f571050c72 Fix PHP warning for users who cannot view filter details 2009-08-04 17:56:18 +00:00
Alex Z. b26c3fa824 (bug 19218) Fix for r49057, join_conds were being passed as query options 2009-06-15 17:36:57 +00:00
Tim Starling 07a8051594 Revert r49941 and r50013: hackish attempted use of mIsFirst before initialisation. 2009-06-04 06:17:03 +00:00
Andrew Garrett 48bfcc35ee Various code quality fixes for AbuseFilter suggested by Tim Starling in a private email, including bugfixes, memory safeguards, performance improvements, removal of redundant code, consolidation of similar functionaality. 2009-05-26 13:08:15 +00:00
Siebrand Mazeland e454269bfc Proper casing for getDBkey() 2009-05-24 08:33:57 +00:00
Tim Starling 268d72f43b Code formatting and comments. 2009-05-22 06:42:10 +00:00
Brion Vibber 9def0c2b91 Workaround for undefined varible access related to r49941 -- $this->mIsFirst in the pager object isn't defined until after we've run the query, so we can't request the navigation bar until afterwards.
I'm not sure if this is a symptom of wider problems...
2009-04-28 19:30:50 +00:00
Andrew Garrett 8f0c24ad5b Normalise usernames in abuse log, bug 18286 2009-04-01 03:38:57 +00:00
Andrew Garrett 3a4e318092 Change join on abuse_filter to a LEFT JOIN to fix details view for matches on global filters 2009-03-31 04:00:30 +00:00
Andrew Garrett 14b850f891 Implementation of global filters, including a major i18n change for abusefilter-log-detailedentry message (rename and split). Needs further testing before deployment 2009-03-30 06:12:12 +00:00
Andrew Garrett 173a16f81f Hide the rest of the log view from details, move the diff to above the var dump where it's more useful 2009-03-22 23:33:27 +00:00
Andrew Garrett 667c566423 Add a diff, if applicable, below the var dump in abuse log details 2009-03-18 05:45:36 +00:00
Andrew Garrett 3a55ecbc85 Link together abusefilter pages with a navigation interface at the top. Add a better intro to the abusefilter home page. 2009-03-11 05:55:06 +00:00
Andrew Garrett b202aac11e Change some uses of makeKnownLinkObj to link 2009-03-01 12:56:11 +00:00
Raimond Spekking 86e29672a9 Add a summary message 2009-02-27 09:12:25 +00:00
Andrew Garrett f94f42b506 Store Abuse Filter variable dumps to external storage instead of leaving in afl_var_dump. afl_var_dump needs to be left as a BLOB for the moment for backwards-compatibility. 2009-02-27 03:06:19 +00:00
Raimond Spekking 869fd3f600 Fix for r47847. 2009-02-26 21:48:49 +00:00
Raimond Spekking 4999b71593 Show the timestemp in users preference timezone
Tweak special page aliases for 'de'
2009-02-26 21:45:07 +00:00
Tim Starling c8b0007232 * Break long lines. If I'm going to review this code, I need to be able to read it.
* Write array literals with one item per line. This makes diffs which add or remove items far easier to interpret, and makes merging such changes feasible. And it looks nicer too.
* Use line breaks to show the logical structure of your code. This enhances readability. Bring similar elements in a list into alignment, in order to reveal the differences between those elements at a glance.
* Removed a fun game of spot-the-difference in AbuseFilterHistoryPager::getQueryInfo(). If I want fun games I'll play UFO:AI.
* Moved some oddly placed assignments (in expressions) to their own statements: such assignments reduce readbility.
2009-02-07 09:34:11 +00:00
Andrew Garrett 0b9f621633 Whitespace 2009-02-04 22:16:06 +00:00
Andrew Garrett 334e5a6b09 Fix examine links in AbuseLog. 2009-02-04 21:22:41 +00:00
Andrew Garrett dd52ffe658 Variable naming conflict. 2009-02-04 19:59:52 +00:00
Andrew Garrett fcdfd79c67 Allow Abuse Log entries to be examined in the same way recent changes items are. 2009-02-04 19:51:03 +00:00
Andrew Garrett 6f91720eac Allow af_public_comments to be wikitext.
Relatedly, add parseInline function to OutputPage, to avoid duplicating the same awful regex in wfMsgExt.
2009-01-31 01:59:13 +00:00
Andrew Garrett 2d24fcced0 Add a few missing messages, and fix a syntax error from r46557. 2009-01-29 23:36:09 +00:00
Andrew Garrett f9c9c07ccf Abuse Filter changes designed for testing filters against real data:
* Add searching and filtering functionality to the existing 'test' interface.
* Add an 'examine' interface designed for testing filters against a previous change, selectable through the search interface in either the 'test' or the 'examine' view.
* Minor enabling change in ChangesList core, to allow subclassing.
2009-01-29 22:44:31 +00:00
Andrew Garrett 36b78662b0 Refactor, pretty up and spread localisation of filter consequences (in logs, history, filter summary, etc) 2009-01-28 01:26:38 +00:00
Andrew Garrett 6a4457d8f5 Rename OLD_TEXT and NEW_TEXT to *_WIKITEXT, and add NEW_HTML and NEW_TEXT parameters, both of which come from the parsed new text -- NEW_TEXT being NEW_HTML stripped of <[^>]*>.
Relatedly, add scrollbars to long variables so they don't take over a bazillion screens.
2009-01-28 01:12:34 +00:00
Raimond Spekking 53887bb338 * Add $wgAbuseFilterStyleVersion to SpecialAbuseLog::execute
* Remove one dupe call of addExtensionStyle from SpecialAbuseFilter::execute
* Bump $wgAbuseFilterStyleVersion per CSS changes in r46325
* Add a space between drop down and submit button
2009-01-27 17:32:30 +00:00
Andrew Garrett 5861a0fed1 Add OLD_TEXT and NEW_TEXT variables, refactor variable storage, and clean up the AbuseLog interface just a little. 2009-01-27 01:31:42 +00:00
Andrew Garrett 995c28b921 Fix up Abuse Log, by adding descriptions for variables, styling the variable table.
Also, fix up a message naming conflict introduced by r46272.
2009-01-26 19:23:27 +00:00
Aaron Schulz 1e152976ff Search & replace war on old wf* xml functions 2008-12-20 09:32:47 +00:00
Siebrand Mazeland 30b422c330 Consistent casing for wfGetDB(), getDB(), and getDBKey() 2008-11-06 22:38:42 +00:00
Siebrand Mazeland 6831e5d5b6 Consistent casing for addHTML() 2008-11-06 22:20:29 +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 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 00b46cef8b Minor fix for last commit, and add DeleteQueue support. 2008-09-18 13:33:39 +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 8b2d1985c4 Actually restrict viewing private data 2008-06-27 08:11:09 +00:00
Andrew Garrett 1f5f95131d Add AbuseFilter extension 2008-06-27 06:18:51 +00:00