From 7367b36877bca568d785e01be802652b6a719884 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sun, 14 Aug 2005 20:10:35 +0200 Subject: added stopword support to the indexer, added indexer webbug darcs-hash:20050814181035-7ad00-ed5d879d29fcee7f925f806456675605b058966a.gz --- inc/template.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'inc/template.php') diff --git a/inc/template.php b/inc/template.php index 3937d99d2..a17d16f56 100644 --- a/inc/template.php +++ b/inc/template.php @@ -867,4 +867,22 @@ function tpl_img($maxwidth=900,$maxheight=700){ print ''; } +/** + * This function inserts a 1x1 pixel gif which in reality + * is the inexer function. + * + * Should be called somewhere at the very end of the main.php + * template + */ +function tpl_indexerWebBug(){ + global $ID; + $p = array(); + $p['src'] = DOKU_BASE.'lib/exe/indexer.php?id='.urlencode($ID); + $p['width'] = 1; + $p['height'] = 1; + $p['alt'] = ''; + $att = buildAttributes($p); + print ""; +} + //Setup VIM: ex: et ts=2 enc=utf-8 : -- cgit v1.2.3