$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
$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