X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=birthday_confirm.php;h=157a0358374aafd53e68b270b9271db46f01e4f5;hb=9bc2a494fae1a98f0873a6f3bd8c878b09124b9f;hp=c228c94a1379db3b2e856fcc28758a19a141829f;hpb=57227d33e870ec5cd271209c4a978a52b45c2dd6;p=mailer.git diff --git a/birthday_confirm.php b/birthday_confirm.php index c228c94a13..157a035837 100644 --- a/birthday_confirm.php +++ b/birthday_confirm.php @@ -8,7 +8,7 @@ * -------------------------------------------------------------------- * * Short description : Birthday bonus confirmation link * * -------------------------------------------------------------------- * - * Kurzbeschreibung : Geburtstagsgutschrift bestätigen * + * Kurzbeschreibung : Geburtstagsgutschrift bestaetigen * * -------------------------------------------------------------------- * * $Revision:: $ * * $Date:: $ * @@ -18,6 +18,7 @@ * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * + * Copyright (c) 2009, 2010 by Mailer Developer Team * * For more information visit: http://www.mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -62,7 +63,8 @@ $userid = bigintval(getRequestParameter('userid')); $chk = bigintval(getRequestParameter('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 +$result = SQL_QUERY_ESC("SELECT + b.points, d.userid, d.gender, d.surname, d.family, d.status, d.ref_payout FROM `{?_MYSQL_PREFIX?}_user_birthday` AS b INNER JOIN @@ -70,10 +72,14 @@ INNER JOIN ON b.userid=d.userid WHERE - b.userid=%s AND b.chk_value='%s' + b.userid=%s AND + b.chk_value='%s' LIMIT 1", - array($userid, $chk), __FILE__, __LINE__); -//* DEBUG: */ outputHtml("userid=".$userid.",chk=".$chk." (".strlen($chk).'/'.strlen(getRequestParameter('check')).'/'.SQL_NUMROWS($result).")
"); + array( + $userid, + $chk + ), __FILE__, __LINE__); +//* DEBUG: */ debugOutput("userid=".$userid.",chk=".$chk." (".strlen($chk).'/'.strlen(getRequestParameter('check')).'/'.SQL_NUMROWS($result) . ')'); // Prepare content $content = array(); @@ -98,10 +104,6 @@ if (SQL_NUMROWS($result) == 1) { SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_birthday` WHERE `userid`=%s AND `chk_value`='%s' LIMIT 1", array($userid, $chk), __FILE__, __LINE__); - // "Translate" some data - $data['gender'] = translateGender($data['gender']); - $data['points'] = translateComma($data['points']); - // Load message from template $content['message'] = loadTemplate('birthday_msg', true, $data); } else { @@ -110,7 +112,7 @@ if (SQL_NUMROWS($result) == 1) { } } else { // Cannot load data! - $content['message'] = getMessage('BIRTHDAY_CANNOT_LOAD_DATA'); + $content['message'] = '{--BIRTHDAY_CANNOT_LOAD_DATA--}'; } // Free memory