uawdijnntqw1x1x1
IP : 216.73.216.54
Hostname : neogeopocket.gameplayer.club
Kernel : Linux neogeopocket.gameplayer.club 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
var
/
www
/
html
/
1c732
/
..
/
mediawiki
/
includes
/
Navigation
/
..
/
block
/
..
/
editpage
/
SpamChecker.php
/
/
<?php namespace MediaWiki\EditPage; /** * Service to check if text (either content or a summary) qualifies as spam * * Text qualifies as spam if it matches the global $wgSpamRegex * Summaries qualify as spam if they match the global $wgSummarySpamRegex * * @author DannyS712 * @since 1.35 */ class SpamChecker { /** @var string[] */ private $spamRegex; /** @var string[] */ private $summaryRegex; /** * @param string[] $spamRegex * @param string[] $summaryRegex */ public function __construct( $spamRegex, $summaryRegex ) { $this->spamRegex = $spamRegex; $this->summaryRegex = $summaryRegex; } /** * Check whether content text is considered spam * * @param string $text * @return string|false Matching string or false */ public function checkContent( string $text ) { return self::checkInternal( $text, $this->spamRegex ); } /** * Check whether summary text is considered spam * * @param string $summary * @return string|false Matching string or false */ public function checkSummary( string $summary ) { return self::checkInternal( $summary, $this->summaryRegex ); } /** * @param string $text * @param array $regexes * @return string|false */ private static function checkInternal( string $text, array $regexes ) { foreach ( $regexes as $regex ) { $matches = []; if ( preg_match( $regex, $text, $matches ) ) { return $matches[0]; } } return false; } }
/var/www/html/1c732/../mediawiki/includes/Navigation/../block/../editpage/SpamChecker.php