* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team *
* For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
require('inc/libs/security_functions.php');
// Init start time
-$GLOBALS['startTime'] = microtime(true);
+$GLOBALS['__start_time'] = microtime(TRUE);
// Set module
-$GLOBALS['module'] = 'view';
-$GLOBALS['output_mode'] = -1;
+$GLOBALS['__module'] = 'view';
+$GLOBALS['__output_mode'] = -1;
// Load the required file(s)
require('inc/config-global.php');
$result = SQL_QUERY_ESC("SELECT `url` FROM `{?_MYSQL_PREFIX?}_refbanner` WHERE `id`=%s LIMIT 1",
array(bigintval(getRequestElement('banner'))), __FILE__, __LINE__);
- // Do we have the banner?
+ // Is there the banner?
if (SQL_NUMROWS($result) == 1) {
// Load the URL
$data = SQL_FETCHARRAY($result);
setContentType('image/' . substr($data['url'], -3, 3));
// Redirect
- redirectToUrl($data['url'], false);
+ redirectToUrl($data['url'], FALSE);
} else {
// @TODO No banner found, output some default banner
logDebugMessage(__FILE__, __LINE__, 'Banner ' . bigintval(getRequestElement('banner')) . ' not dound.');
}
// Shutdown
-shutdown();
+doShutdown();
// [EOF]
?>