Complete rewrite of and , wrapper functions added, see bug #101
[mailer.git] / birthday_confirm.php
index 7b0a83bc0d1a27a998eb2a19522ade96cab38995..47bb1753b9006697d7e171efb3e66eac3be1ff93 100644 (file)
@@ -51,10 +51,10 @@ REDIRECT_ON_UNINSTALLED_EXTENSION("birthday");
 // Is the script installed?
 if (isBooleanConstantAndTrue('mxchange_installed')) {
        // Script is installed so let's check for his confirmation link...
-       $uid = bigintval($_GET['uid']);
+       $uid = bigintval(REQUEST_GET('uid'));
 
        // Only allow numbers here...
-       $chk = bigintval($_GET['check'], false);
+       $chk = bigintval(REQUEST_GET('check'), false);
 
        // Check if link is not clicked so far
        $result = SQL_QUERY_ESC("SELECT b.points, d.gender, d.surname, d.family, d.status, d.ref_payout
@@ -63,7 +63,7 @@ INNER JOIN `{!_MYSQL_PREFIX!}_user_data` AS d
 ON b.userid=d.userid
 WHERE b.userid=%s AND b.chk_value='%s' LIMIT 1",
  array($uid, $chk), __FILE__, __LINE__);
-       //* DEBUG: */ echo "uid=".$uid.",chk=".$chk." (".strlen($chk)."/".strlen($_GET['check'])."/".SQL_NUMROWS($result).")<br />\n";
+       //* DEBUG: */ echo "uid=".$uid.",chk=".$chk." (".strlen($chk)."/".strlen(REQUEST_GET('check'))."/".SQL_NUMROWS($result).")<br />\n";
 
        // Is an entry there?
        if (SQL_NUMROWS($result) == 1) {