comments.pl:
# New check (July 2002): there is a max number of posts per 24-hour
# period, either based on IPID for anonymous users, or on UID for
# logged-in users. Logged-in users get a max number of posts that
# is related to their karma. The comments_perday_bykarma var
# controls it (that var is turned into a hashref in MySQL.pm when
# the vars table is read in, whose keys we loop over to find the
# appropriate level).
defaults.sql:
'comments_perday_bykarma', '-1=2|25=25|99999=50', 'Number of comments allowed to be posted per day, by karma score.'
'comments_perday_anon', '10', 'Number of comments allowed to be posted per day, by any one IPID, anonymously.'
'regex','flags','ratio','min_match','min_length','error_msg'
And similarly for the body of the comment:
'^(?:\\s+)','gi',0.0000,7,0,'Lots of space in the subject... lots of space in the head.'
'(?:\\b(?:[^a-zA-Z0-9])+\\b)','gi',0.0000,10,10,'Junk character post.'
'\\w{80}','',0.0000,0,0,'that\'s an awful long string of letters there!'
'[^a-z]','g',0.9000,0,2,'PLEASE DON\'T USE SO MANY CAPS. USING CAPS IS LIKE YELLING!'
'^(?:)$','gi',0.0000,0,0,'Cat got your tongue? You mean you have nothing to say?'
'[^a-zA-Z0-9]','gi',0.6000,0,10,'Ascii Art. How creative. Not here though.'
'^(?:.)$','gi',0.0000,0,0,'One character. Hmmm. Gee, might this be a troll?'
'^(.)\\1{5,}$','gi',0.0000,0,0,'Junk character post.'
Note that there will be unintended spaces inserted in the above, which is unavoidable. There are additional checks as well. There must be at least 7 words per line, and the minimum average line width must be at least 40. Again, remember that these are the default stock slashcode values, the actual slashdot.org ones may differ. Thought someone might be curious, though.
'^(?:\\s+)','gi',0.0000,40,0,'Lots of space in the comment... lots of space in the head.'
'(?:(?:\\W){5,})','gi',0.0000,5,25,'Junk character post.'
'(?:\\b(?:[^a-zA-Z0-9])+\\b)','gi',0.0000,10,10,'Junk character post.'
'^(?:.)$','gi',0.0000,0,0,'One character. Hmmm. Gee, might this be a troll?'
'[\\\\\\,\\.\\-\\_\\*\\|\\}\\{\\]\\[\\@\\&\\%\\$\\s\\)\\(\\?\\!\\^\\=\\+\\~\\`\\\"\\\']','gi',0.6000,0,10,'Ascii art. How creative. Not here though.'
'[^a-zA-Z0-9]','gi',0.6000,0,10,'Ascii Art. How creative. Not here though.'
'[^a-z]','g',0.5000,0,2,'PLEASE DON\'T USE SO MANY CAPS. USING CAPS IS LIKE YELLING!'
'^(?:)$','gi',0.0000,0,0,'Cat got your tongue? You mean you have nothing to say?'
'\\w{80}','',0.0000,0,0,'that\'s an awful long string of letters there!'
All trademarks and copyrights on this page are owned by their respective owners. Comments are owned by the Poster. The Rest © 1997-2008 SourceForge, Inc.