]> git.mxchange.org Git - mailer.git/blobdiff - click.php
Rewrote new extension detection:
[mailer.git] / click.php
index 2647b5f7fa3fa0ca319e8410dba1d8c890b37d7c..e323b7639dc84758d6e991ee6e9de6b02fce510d 100644 (file)
--- a/click.php
+++ b/click.php
@@ -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]