X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=birthday_confirm.php;h=71f31cadb3a583eb0a6716a2c8a81aa5803a5e2a;hp=d93bc3a0aa83e3a890a9d770c4f66c0ed7539922;hb=1d0718bad7972ceb57499556f14d251a2030c352;hpb=59bd8a9805c51c895a92cc12825f4cbdfd792597 diff --git a/birthday_confirm.php b/birthday_confirm.php index d93bc3a0aa..71f31cadb3 100644 --- a/birthday_confirm.php +++ b/birthday_confirm.php @@ -10,7 +10,12 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Geburtstagsgutschrift bestaetigen * * -------------------------------------------------------------------- * - * * + * $Revision:: $ * + * $Date:: $ * + * $Tag:: 0.2.1-FINAL $ * + * $Author:: $ * + * Needs to be in all Files and every File needs "svn propset * + * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2008 by Roland Haeder * * For more information visit: http://www.mxchange.org * @@ -35,11 +40,12 @@ require("inc/libs/security_functions.php"); // Init "action" and "what" -global $what, $action; -$GLOBALS['what'] = ""; $GLOBALS['action'] = ""; +$GLOBALS['what'] = ""; +$GLOBALS['action'] = ""; // Set module -$GLOBALS['module'] = "birthday_confirm"; $GLOBALS['output_mode'] = -1; +$GLOBALS['module'] = "birthday_confirm"; +$GLOBALS['output_mode'] = -1; // Load the required file(s) require("inc/config.php"); @@ -48,12 +54,12 @@ require("inc/config.php"); REDIRECT_ON_UNINSTALLED_EXTENSION("birthday"); // Is the script installed? -if (isBooleanConstantAndTrue('mxchange_installed')) { +if (isInstalled()) { // 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 @@ -62,7 +68,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).")
\n"; + //* DEBUG: */ echo "uid=".$uid.",chk=".$chk." (".strlen($chk)."/".strlen(REQUEST_GET('check'))."/".SQL_NUMROWS($result).")
\n"; // Is an entry there? if (SQL_NUMROWS($result) == 1) { @@ -130,5 +136,9 @@ WHERE b.userid=%s AND b.chk_value='%s' LIMIT 1", // You have to install first! LOAD_URL("install.php"); } + // Really all done here... ;-) +shutdown(); + +// ?>