X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=birthday_confirm.php;h=69690c782ade2fe85085d83c6b3d52003e7448f2;hp=d93bc3a0aa83e3a890a9d770c4f66c0ed7539922;hb=e53891f4375882eba23d10df70d92bff167677a9;hpb=59bd8a9805c51c895a92cc12825f4cbdfd792597
diff --git a/birthday_confirm.php b/birthday_confirm.php
index d93bc3a0aa..69690c782a 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) {
@@ -99,7 +105,7 @@ WHERE b.userid=%s AND b.chk_value='%s' LIMIT 1",
define('__MSG', LOAD_TEMPLATE("birthday_msg", true));
} else {
// Unconfirmed / locked accounts cannot get points
- define('__MSG', BIRTHDAY_CANNOT_STATUS_1.TRANSLATE_STATUS($data['status']).BIRTHDAY_CANNOT_STATUS_2);
+ define('__MSG', sprintf(getMessage('BIRTHDAY_CANNOT_STATUS'), TRANSLATE_STATUS($data['status'])));
}
} else {
// Cannot load data!
@@ -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();
+
+//
?>