X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=click.php;h=e323b7639dc84758d6e991ee6e9de6b02fce510d;hb=c0c6d5d58bdecd22bdcf7dfe5b24bec69e1810c7;hp=7a35e98a54bcd930c477ac3b7b31c9c1ceae2cd1;hpb=63f159414369b5ea19a8ca75d8cd8033c45d8341;p=mailer.git diff --git a/click.php b/click.php index 7a35e98a54..e323b7639d 100644 --- a/click.php +++ b/click.php @@ -39,7 +39,7 @@ require('inc/libs/security_functions.php'); // Init start time -$GLOBALS['__start_time'] = microtime(true); +$GLOBALS['__start_time'] = microtime(TRUE); // Set module $GLOBALS['__module'] = 'click'; @@ -51,22 +51,13 @@ require('inc/config-global.php'); // Set content type, this is required for search engines setContentType('text/html'); -// Check required parameters -if ((isGetRequestElementSet('user')) && (isGetRequestElementSet('banner'))) { - // Update clicks counter... - SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_refbanner` SET `clicks`=`clicks`+1 WHERE `id`=%s LIMIT 1", array(bigintval(getRequestElement('banner'))), __FILE__, __LINE__); +// Run filter chain +runFilterChain('handle_click_php'); - // A line has been updated? - if ((!SQL_HASZEROAFFECTED()) && (isGetRequestElementSet('user'))) { - // Redirect to the user's referral link - redirectToUrl('ref.php?refid=' . bigintval(getRequestElement('user'))); - } // END - if -} // END - if - -// Load index page +// Load index page (if click.php call was not detected) redirectToUrl('modules.php?module=index'); -// Shutdown +// Shutdown (if reached) doShutdown(); // [EOF]