From b8c943a4dc3a62e354013977a018c677b13a20c5 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Fri, 24 Feb 2006 16:12:21 +0100 Subject: removed deprecated TOC code darcs-hash:20060224151221-7ad00-314d411cb22d2cd59079751f31cf4b4c49a7f0b6.gz --- inc/parser/spamcheck.php | 73 ------------------------------------------------ 1 file changed, 73 deletions(-) delete mode 100644 inc/parser/spamcheck.php (limited to 'inc/parser/spamcheck.php') diff --git a/inc/parser/spamcheck.php b/inc/parser/spamcheck.php deleted file mode 100644 index 42b9781c5..000000000 --- a/inc/parser/spamcheck.php +++ /dev/null @@ -1,73 +0,0 @@ -_checkTitle($title); - } - - function externallink($link, $title = NULL) { - $this->_checkLinkForSpam($link); - $this->_checkTitle($title); - } - - function interwikilink($link, $title = NULL) { - $this->_checkTitle($title); - } - - function filelink($link, $title = NULL) { - $this->_checkLinkForSpam($link); - $this->_checkTitle($title); - } - - function windowssharelink($link, $title = NULL) { - $this->_checkLinkForSpam($link); - $this->_checkTitle($title); - } - - function email($address, $title = NULL) { - $this->_checkLinkForSpam($address); - $this->_checkTitle($title); - } - - function internalmedialink ($src) { - $this->_checkLinkForSpam($src); - } - - function externalmedialink($src) { - $this->_checkLinkForSpam($src); - } - - function _checkTitle($title) { - if ( is_array($title) && isset($title['src'])) { - $this->_checkLinkForSpam($title['src']); - } - } - - // Pattern matching happens here - /** - * @TODO What about links like www.google.com - no http:// - */ - function _checkLinkForSpam($link) { - if( preg_match($this->spamPattern,$link) ) { - $spam = $this->currentCall; - $spam[3] = $link; - $this->spamFound[] = $spam; - } - } -} - - -//Setup VIM: ex: et ts=2 enc=utf-8 : -- cgit v1.2.3