mediawiki-extensions-AbuseF.../testTitles.php
2008-06-27 06:18:51 +00:00

12 lines
268 B
PHP

<?
require( '/home/andrew/mediawiki/maintenance/commandLine.inc' );
while ( ( $line = readconsole( '> ' ) ) !== false ) {
$line = trim($line);
print "Testing $line...\n";
$result = AbuseFilter::checkTitleText( $line );
print "-Result: ";
var_dump( $result );
}