<?php
/************************************************************************
- * MXChange v0.2.1 Start: 01/02/2004 *
- * =============== Last change: 09/04/2004 *
+ * Mailer v0.2.1-FINAL Start: 01/02/2004 *
+ * =================== Last change: 09/04/2004 *
* *
* -------------------------------------------------------------------- *
* File : view.php *
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);