diff options
author | Christian Schneider | 2007-05-31 15:06:38 +0000 |
---|---|---|
committer | Christian Schneider | 2007-05-31 15:06:38 +0000 |
commit | 37df0debbca70a5dcfe05aa47e3ffad1faa6fca0 (patch) | |
tree | d76d399632fcd27152d36d346dbdeba573d79385 /banner | |
parent | 9c10266b0756400cb81e1438255c7984e50caf73 (diff) | |
download | itools-37df0debbca70a5dcfe05aa47e3ffad1faa6fca0.tar.gz itools-37df0debbca70a5dcfe05aa47e3ffad1faa6fca0.tar.bz2 itools-37df0debbca70a5dcfe05aa47e3ffad1faa6fca0.zip |
Fix viewpre and clickpre
Diffstat (limited to 'banner')
-rw-r--r-- | banner/banner.class | 7 |
1 files changed, 5 insertions, 2 deletions
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('<country_[^>]*>' => "", '\]\[' => " ", '^\[ +' => "", ' +\]$' => "", $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, |