diff --git a/modules/banned-regexps.pl b/modules/banned-regexps.pl new file mode 100644 index 00000000..cbbaf4d6 --- /dev/null +++ b/modules/banned-regexps.pl @@ -0,0 +1,83 @@ +# Copyright (C) 2012 Alex Schroeder +# +# This program is free software; you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation; either version 3 of the License, or (at your option) any later +# version. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along with +# this program. If not, see . + +$ModulesDescription .= '

banned-regexps.pl, see Banning Regular Expressions

'; + +=h1 Compatibility + +This exension works with logbannedcontent.pl. + +=h1 Example content for the BannedRegexps page: + + # This page lists regular expressions that prevent the saving of a page. + # The regexps are matched against any page or comment submitted. + # The format is simple: # comments to the end of the line. Empty lines are ignored. + # Everything else is a regular expression. If the regular expression is followed by + # a comment, this is used as the explanation when a user is denied editing. If the + # comment starts with a date, this date is not included in the explanation. + # The date could help us decide which regular expressions to delete in the future. + # In other words: + # ^\s*([^#]+?)\s*(#\s*(\d\d\d\d-\d\d-\d\d\s*)?(.*))?$ + # Group 1 is the regular expression to use. + # Group 4 is the explanation to use. + + порно # 2012-12-31 Russian porn +