SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_refbanner` SET `counter`=`counter`+1 WHERE `id`=%s LIMIT 1",
array(bigintval(getRequestElement('banner'))), __FILE__, __LINE__);
- // Extract type (last 3 chars should be okay)
- $type = substr($url, -3);
-
// Set header and ...
- sendHeader('Content-Type: image/' . $type);
+ setContentType('image/' . substr($url, -3, 3));
// Redirect
redirectToUrl($url, false);