From 3eeb5f108fc3c9256a957f73b85c6018ef4f00d6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 2 Feb 2008 13:09:08 +0000 Subject: [PATCH] fixes --- 0.2.1/inc/functions.php | 3 +++ 0.2.1/view.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/0.2.1/inc/functions.php b/0.2.1/inc/functions.php index 0afc09f1c1..d675eca81b 100644 --- a/0.2.1/inc/functions.php +++ b/0.2.1/inc/functions.php @@ -2012,6 +2012,9 @@ function ADD_URL_DATA($URL) $ADD .= $BIND."refid=".$CONFIG['def_refid']; } + // Is there already added data? Then change the binder + if (!empty($ADD)) $BIND = "&"; + // Add session ID if ((!empty($_GET['PHPSESSID'])) && (strpos($URL, "PHPSESSID=") == 0)) { // Add session from URL diff --git a/0.2.1/view.php b/0.2.1/view.php index f454e64d4d..2f688f67c3 100644 --- a/0.2.1/view.php +++ b/0.2.1/view.php @@ -58,7 +58,7 @@ if (((!empty($_GET['user'])) || (!empty($_GET['reseller']))) && (!empty($_GET['b $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_refbanner SET counter=counter+1 WHERE id=%d LIMIT 1", array(bigintval($_GET['banner'])), __FILE__, __LINE__); $type = substr($url, -3); - header ("Content-Type: image/".$type); + @header ("Content-Type: image/".$type); LOAD_URL($url, false); } else { // Free memory -- 2.30.2