diff options
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, |