diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-11-29 18:38:46 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-11-29 18:38:46 +0000 |
commit | 245b69d645b0b00ef52063f08466e11e3bf09ccc (patch) | |
tree | 3deb277e6ae05d4821dcb5bdf86d34262c9f65cf /admin | |
parent | 73809f0c1dd345e572b2cea9503454f3a1bb2a12 (diff) | |
download | ampache-245b69d645b0b00ef52063f08466e11e3bf09ccc.tar.gz ampache-245b69d645b0b00ef52063f08466e11e3bf09ccc.tar.bz2 ampache-245b69d645b0b00ef52063f08466e11e3bf09ccc.zip |
some other minor changes, nothing big
Diffstat (limited to 'admin')
-rw-r--r-- | admin/users.php | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/admin/users.php b/admin/users.php index 72e99132..0255df6a 100644 --- a/admin/users.php +++ b/admin/users.php @@ -131,27 +131,17 @@ switch ($_REQUEST['action']) { case 'enable': $client = new User($_REQUEST['user_id']); $client->enable(); - show_confirmation(_('User Enabled'),'','admin/users.php'); + show_confirmation(_('User Enabled'),$client->fullname . ' (' . $client->username . ')','admin/users.php'); break; case 'disable': $client = new User($_REQUEST['user_id']); if ($client->disable()) { - show_confirmation(_('User Disabled'),'','admin/users.php'); + show_confirmation(_('User Disabled'),$client->fullname . ' (' . $client->username . ')','admin/users.php'); } else { show_confirmation(_('Error'),_('Unable to Disabled last Administrator'),'admin/users.php'); } break; - -} // End Work Switch - - -/** - * This is the second half, it handles displaying anything - * the first half (work half) potentially has 'adjusted' the user - * input - */ -switch ($_REQUEST['action']) { case 'show_edit': if (Config::get('demo_mode')) { break; } $client = new User($_REQUEST['user_id']); |