summaryrefslogtreecommitdiff
path: root/inc/parser/spamcheck.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2006-02-17 23:20:40 +0100
committerAndreas Gohr <andi@splitbrain.org>2006-02-17 23:20:40 +0100
commit98c868589ee0757f176239cf289cbd007bb74852 (patch)
treeeb48a172b0f1a423b93ffff35f8adf8d579383c1 /inc/parser/spamcheck.php
parent1c73890c5027011d808d38c583561abc309e8086 (diff)
downloadrpg-98c868589ee0757f176239cf289cbd007bb74852.tar.gz
rpg-98c868589ee0757f176239cf289cbd007bb74852.tar.bz2
file cleanups
This patch cleans up the source code to satisfy the coding guidelines (see http://wiki.splitbrain.org/wiki:development#coding_style) It converts files to UNIX lineendings and removes tabs and trailing whitespace. Not all files were cleaned yet. darcs-hash:20060217222040-7ad00-bba3d2bee3b5aa7cbb5184258abd50805cd071bf.gz
Diffstat (limited to 'inc/parser/spamcheck.php')
-rw-r--r--inc/parser/spamcheck.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/inc/parser/spamcheck.php b/inc/parser/spamcheck.php
index b1f473d8c..42b9781c5 100644
--- a/inc/parser/spamcheck.php
+++ b/inc/parser/spamcheck.php
@@ -4,44 +4,44 @@ if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../')
require_once DOKU_INC . 'inc/parser/renderer.php';
class Doku_Renderer_SpamCheck extends Doku_Renderer {
-
+
// This should be populated by the code executing the instructions
var $currentCall;
-
+
// An array of instructions that contain spam
var $spamFound = array();
-
+
// pcre pattern for finding spam
var $spamPattern = '#^$#';
-
+
function internallink($link, $title = NULL) {
$this->_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);
}
@@ -55,7 +55,7 @@ class Doku_Renderer_SpamCheck extends Doku_Renderer {
$this->_checkLinkForSpam($title['src']);
}
}
-
+
// Pattern matching happens here
/**
* @TODO What about links like www.google.com - no http://