]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-mydata.php
Damn typo fixed... ;-)
[mailer.git] / inc / modules / member / what-mydata.php
index 259ca95b4a70b00a7d44171b4b5a38f29bc5548e..e897ad539b7f607617caeec14701226070d52737 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Mitglieder koennen hier ihre Profildaten aendern *
  * -------------------------------------------------------------------- *
- *                                                                      *
+ * $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                  *
@@ -45,12 +50,12 @@ if (!defined('__SECURITY')) {
 // Add description as navigation point
 ADD_DESCR("member", __FILE__);
 
-define('UID_VALUE', $GLOBALS['userid']); $URL = "";
+define('UID_VALUE', getUserId()); $URL = "";
 
 // Detect what the member wants to do
 $MODE = "show"; // Show his data
 if (REQUEST_ISSET_POST(('save')))   $MODE = "save";   // Save entered data
-if (REQUEST_ISSET_POST(('edit')))    $MODE = "edit";   // Edit data
+if (REQUEST_ISSET_POST('edit'))    $MODE = "edit";   // Edit data
 if (REQUEST_ISSET_POST(('notify'))) $MODE = "notify"; // Switch off notification
 
 switch ($MODE)
@@ -289,7 +294,7 @@ array(
 
 case "notify": // Switch off notfication
        SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_user_data` SET notified='N', last_update=UNIX_TIMESTAMP() WHERE userid=%s LIMIT 1",
-               array($GLOBALS['userid']), __FILE__, __LINE__);
+               array(getUserId()), __FILE__, __LINE__);
        $URL = "modules.php?module=login&what=welcome&msg=".urlencode(getMessage('PROFILE_UPDATED'));
        break;
 }