Some global variables rewritten, a lot more language constants rewritten to getMessage()
[mailer.git] / beg.php
diff --git a/beg.php b/beg.php
index 4446302f5190a711fd93fa163fc05c14c56f87ac..6494eb4fe45cf43ab846e4ee4854faf5632a7b42 100644 (file)
--- a/beg.php
+++ b/beg.php
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Bettel-Link fuer Mitglieder                      *
  * -------------------------------------------------------------------- *
- * $Revision:: 856                                                    $ *
- * $Date:: 2009-03-06 20:24:32 +0100 (Fr, 06. Mär 2009)              $ *
+ * $Revision::                                                        $ *
+ * $Date::                                                            $ *
  * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author:: stelzi                                                   $ *
+ * $Author::                                                          $ *
  * Needs to be in all Files and every File needs "svn propset           *
  * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
@@ -76,7 +76,7 @@ if (isInstalled()) {
                                        array(REQUEST_GET('uid')), __FILE__, __LINE__);
                        } else {
                                // Nickname entered but nickname is not active
-                               $msg = constant('CODE_EXTENSION_PROBLEM');
+                               $msg = getCode('EXTENSION_PROBLEM');
                                $uid = -1;
                        }
                } else {
@@ -215,17 +215,17 @@ if (isInstalled()) {
                                array(REQUEST_GET('uid')), __FILE__, __LINE__);
                        if (SQL_NUMROWS($result) == 1) {
                                // Locked account
-                               $msg = constant('CODE_ACCOUNT_LOCKED');
+                               $msg = getCode('ACCOUNT_LOCKED');
                        } else {
                                // Invalid nickname! (404)
-                               $msg = constant('CODE_USER_404');
+                               $msg = getCode('USER_404');
                        }
 
                        // Free memory
                        SQL_FREERESULT($result);
                } elseif ($uid == getConfig('beg_uid')) {
                        // Webmaster's ID cannot beg for points!
-                       $msg = constant('CODE_BEG_SAME_AS_OWN');
+                       $msg = getCode('BEG_SAME_AS_OWN');
                }
 
                // Reload to index module