1<?php
2if(!defined('DOKU_INC')) die();
3if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
4
5require_once DOKU_INC . 'inc/parser/xhtml.php';
6
7class renderer_plugin_refererremove extends Doku_Renderer_xhtml {
8	/**
9	 * return some info
10	 */
11	function getInfo(){
12		return array(
13			'author' => 'Dominik Krebs',
14			'email'  => 'dominik.krebs@netzkollektiv.com',
15			'date'	 => '2009-01-10',
16			'name'	 => 'refererremove',
17			'desc'	 => 'removes all referers from external links by passing them to ano',
18		);
19	}
20
21	function canRender($format){
22		return ($format=='xhtml');
23	}
24
25	function externallink($url, $name = NULL){
26		parent::externallink('http://anonym.to/?'.$url, $name);
27	}
28}
29