From 37df0debbca70a5dcfe05aa47e3ffad1faa6fca0 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Thu, 31 May 2007 15:06:38 +0000 Subject: Fix viewpre and clickpre --- banner/banner.class | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'banner') diff --git a/banner/banner.class b/banner/banner.class index 23dbc3d..9b876e3 100644 --- a/banner/banner.class +++ b/banner/banner.class @@ -219,9 +219,12 @@ function render_banner($banner, $nocount = false) $pathinfo = "/c=" . $banner['campaignid'] . ":" . urlencode($banner['campaignname']) . "/b=" . $banner['bannerid'] . ":" . urlencode($banner['bannername']) . "/l=" . urlencode($l); $nocountinfo = $nocount ? "/nocount=1" : ""; $keyword = it::replace(']*>' => "", '\]\[' => " ", '^\[ +' => "", ' +\]$' => "", $this->p['keyword']); + $viewpre = $this->p['server'] . "view.html$pathinfo$nocountinfo/img="; + $clickpre = $this->p['server'] . "click.html$pathinfo/url="; + $vars = array( - 'viewpre' => $this->p['server'] . "view.html$pathinfo$nocountinfo/img=", - 'clickpre' => $this->p['server'] . "click.html$pathinfo/url=", + 'viewpre' => $viewpre, + 'clickpre' => $clickpre, 'clickpreenc' => urlencode($clickpre), 'auditurl' => $viewpre . "empty.gif", 'keyword' => $keyword, -- cgit v1.2.3