X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-edit_user.php;h=3ef52c45ce240d1180ab9f11913eb05253c44a0f;hb=dc25bd7a76750f02e2d617c9db9eb0aae53270f5;hp=caeaf117b1772bd699bf5f436b2714ea035b3cb8;hpb=c8d76610eb94093d4eed4fcd8a6cb72e74c8f6d8;p=mailer.git diff --git a/inc/modules/admin/what-edit_user.php b/inc/modules/admin/what-edit_user.php index caeaf117b1..3ef52c45ce 100644 --- a/inc/modules/admin/what-edit_user.php +++ b/inc/modules/admin/what-edit_user.php @@ -18,7 +18,7 @@ * @TODO Add support for ext-country * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009, 2010 by Mailer Developer Team * + * Copyright (c) 2009 - 2011 by Mailer Developer Team * * For more information visit: http://www.mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -43,7 +43,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { } // END - if // Add description as navigation point -addMenuDescription('admin', __FILE__); +addYouAreHereLink('admin', __FILE__); // Fix a notice $result_main = false; @@ -116,25 +116,17 @@ LIMIT 1", } // Load template - loadTemplate('admin_settings_saved', false, $content); + displayMessage($content); } else { // Load entry $content = SQL_FETCHARRAY($result_main); - // Init entries - foreach (array('gender_m','gender_f','gender_c') as $entry) { - $content[$entry] = ''; - } // END - foreach - - // Prepare selections - $content['gender_' . strtolower($content['gender'])] = ' selected="selected"'; - // Load template loadTemplate('admin_edit_user', false, $content); } } else { // Account does not exists! - loadTemplate('admin_settings_unsaved', false, getMaskedMessage('ADMIN_MEMBER_404', bigintval(getRequestParameter('userid')))); + loadTemplate('admin_settings_unsaved', false, '{%message,ADMIN_MEMBER_404=' . bigintval(getRequestParameter('userid')) . '%}'); } // Free the result