X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=ref.php;h=f3308e2ee0a96f5bcf0f2c11657bd1a29de9ce66;hp=6683a7603c1250f0ca6df7eb30c6b2eae1daa38a;hb=009cdc44623cc3a84c341aa62f1229b35f03ec70;hpb=a18efdcd57ba91893f0958a457b5c58639b135c3 diff --git a/ref.php b/ref.php index 6683a7603c..f3308e2ee0 100644 --- a/ref.php +++ b/ref.php @@ -38,6 +38,9 @@ // Load security stuff here require('inc/libs/security_functions.php'); +// Init start time +$GLOBALS['startTime'] = microtime(true); + // Set module $GLOBALS['module'] = 'ref'; $GLOBALS['output_mode'] = -1; @@ -55,7 +58,7 @@ $url = 'modules.php?module=index'; if ((isExtensionActive('user')) && (isReferralIdValid()) && (isValidUserId(determineReferralId()))) { // Update ref counter SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `ref_clicks`=`ref_clicks`+1 WHERE `userid`=%s LIMIT 1", - array(makeZeroToNull(determineReferralId())), __FILE__, __LINE__); + array(convertZeroToNull(determineReferralId())), __FILE__, __LINE__); // Base URL for redirection switch (getConfig('refid_target')) {