X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=ref.php;h=7adf9ae91a50a7b1339f868042277699a90cdd4e;hp=ba76c41b6d5e4b589f08cbbcbdc32bd9ca00bfe6;hb=3608f72d51e8126720024704398cf738e61f890b;hpb=f9a9c09e1ae257449bfd98f8854e321efba1dc3c diff --git a/ref.php b/ref.php index ba76c41b6d..7adf9ae91a 100644 --- a/ref.php +++ b/ref.php @@ -50,11 +50,11 @@ if (isBooleanConstantAndTrue('mxchange_installed')) { switch (getConfig('refid_target')) { case "register": - $URL = URL."/modules.php?module=index&what=register&refid="; + $URL = "modules.php?module=index&what=register&refid="; break; case "index": - $URL = URL."/index.php?refid="; + $URL = "index.php?refid="; break; } @@ -93,18 +93,18 @@ if (isBooleanConstantAndTrue('mxchange_installed')) { // Is the refid valid? if ($ref > 0) { // Update ref counter - $result = SQL_QUERY_ESC("UPDATE `"._MYSQL_PREFIX."_user_data` SET ref_clicks=ref_clicks+1 WHERE userid=%s LIMIT 1", + 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 } else { // No refid and we add our refid (don't forget to set $def_refid!) - $URL = URL."/index.php"; + $URL = "index.php"; } // Load the URL LOAD_URL($URL); } else { - // You have to configure first! + // You have to install first! LOAD_URL("install.php"); }