mediawiki-extensions-AbuseF.../testTitles.php

12 lines
268 B
PHP
Raw Normal View History

2008-06-27 06:18:51 +00:00
<?
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 );
}