X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=ref.php;h=7f0d0c7b2e83c9aa1c7e3445d9517d670673a84a;hb=570ba443b03266dac3bfcbafbf8043fe1d220c1f;hp=451bb7eaa36c123940826f0db573e6b44c6062b6;hpb=1ebf518b9552f71ee95de6f4b80e6de3a27716d1;p=mailer.git diff --git a/ref.php b/ref.php index 451bb7eaa3..7f0d0c7b2e 100644 --- a/ref.php +++ b/ref.php @@ -1,24 +1,23 @@ 0) { - // Update ref counter - SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `ref_clicks`=`ref_clicks`+1 WHERE `userid`=%s LIMIT 1", - array(bigintval($ref)), __FILE__, __LINE__); - } // END - if + default: // Is not valid + reportBug(__FILE__, __LINE__, 'Invalid refid target ' . getConfig('refid_target') . ' detected.'); + break; + } // END - switch } // END - if // Load the URL -redirectToUrl($URL); +redirectToUrl($url); // [EOF] ?>