Some global variables rewritten, a lot more language constants rewritten to getMessage()
[mailer.git] / birthday_confirm.php
index 7b0a83bc0d1a27a998eb2a19522ade96cab38995..69690c782ade2fe85085d83c6b3d52003e7448f2 100644 (file)
  * -------------------------------------------------------------------- *
  * 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                  *
@@ -49,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
@@ -63,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).")<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) {
@@ -100,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!
@@ -131,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();
+
+//
 ?>