X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-mydata.php;h=a805b179bc13d439212c642f1754fb4adafe426b;hb=0ddf8f6c578aa2c1ff1db9fb8eb0b93a1e247b73;hp=061743ca9afbd2dddb5578a21932d3c5eedd6437;hpb=263a089d8a499e0e26d0af9e7aa7639f88b8ca60;p=mailer.git
diff --git a/inc/modules/member/what-mydata.php b/inc/modules/member/what-mydata.php
index 061743ca9a..a805b179bc 100644
--- a/inc/modules/member/what-mydata.php
+++ b/inc/modules/member/what-mydata.php
@@ -14,10 +14,9 @@
* $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 - 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,38 +51,29 @@ 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
- // Get user data
- if (!fetchUserData(getMemberId())) {
- // Something really bad happended
- debug_report_bug('No user account ' . getMemberId() . ' found.');
- } // END - if
-
// Get line
$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, "