summaryrefslogtreecommitdiff
path: root/inc/template.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2005-08-14 20:10:35 +0200
committerAndreas Gohr <andi@splitbrain.org>2005-08-14 20:10:35 +0200
commit7367b36877bca568d785e01be802652b6a719884 (patch)
treea1e27b5806ba835d43f69373cf83247953cd1ee1 /inc/template.php
parent48665d389b9bb386283c08172b24f3af26628bce (diff)
downloadrpg-7367b36877bca568d785e01be802652b6a719884.tar.gz
rpg-7367b36877bca568d785e01be802652b6a719884.tar.bz2
added stopword support to the indexer, added indexer webbug
darcs-hash:20050814181035-7ad00-ed5d879d29fcee7f925f806456675605b058966a.gz
Diffstat (limited to 'inc/template.php')
-rw-r--r--inc/template.php18
1 files changed, 18 insertions, 0 deletions
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 '</a>';
}
+/**
+ * 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 "<img $att />";
+}
+
//Setup VIM: ex: et ts=2 enc=utf-8 :