X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fmodules%2Fmember%2Fwhat-mydata.php;h=31b438b6e391d0f89da4247854b2aacba089d1ac;hb=55ef477f5ce5833c6b10321ad5334a6b781552c6;hp=3390b853bbb840b22d613c567d13715829c2be92;hpb=90804500207adbf5ee765d0da74e7124665ec8a0;p=mailer.git
diff --git a/inc/modules/member/what-mydata.php b/inc/modules/member/what-mydata.php
index 3390b853bb..31b438b6e3 100644
--- a/inc/modules/member/what-mydata.php
+++ b/inc/modules/member/what-mydata.php
@@ -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 *
@@ -52,18 +53,16 @@ if ((!isExtensionActive('mydata')) && (!isAdmin())) {
} // END - if
// Add userid
-$content = array(
- 'userid' => getMemberId()
-);
+$content = array();
// Init variable to prevent notices
-$URL = '';
+$url = '';
// Detect what the member wants to do
$mode = 'show'; // Show his data
-if (isPostRequestElementSet('save')) $mode = 'save'; // Save entered data
-if (isPostRequestElementSet('edit')) $mode = 'edit'; // Edit data
-if (isPostRequestElementSet('notify')) $mode = 'notify'; // Switch off notification
+if (isPostRequestParameterSet('save')) $mode = 'save'; // Save entered data
+if (isFormSent('edit')) $mode = 'edit'; // Edit data
+if (isPostRequestParameterSet('notify')) $mode = 'notify'; // Switch off notification
switch ($mode) {
case 'show': // Show his data
@@ -71,13 +70,12 @@ switch ($mode) {
$content = merge_array($content, getUserDataArray());
// Translate some things
- $content['gender'] = translateGender($content['gender']);
$content['last_update'] = generateDateTime($content['last_update'], 0);
// How far is last change on his profile away from now?
if ((($content['last_update'] + getConfig('profile_lock')) > time()) && (!isAdmin()) && (getConfig('profile_lock') > 0)) {
// You cannot change your account
- $content['change'] = loadTemplate('admin_settings_saved', true, '