Display username in trail on Account/ChangePassword pages.
authorjollytoad <jollytoad>
Thu, 2 Sep 2004 13:41:56 +0000 (13:41 +0000)
committerjollytoad <jollytoad>
Thu, 2 Sep 2004 13:41:56 +0000 (13:41 +0000)
users.php

index f9baa9bb73076dee376fd9e25a2178c87ceed255..558c159110385af5a3a5a5227a328df7dbcc15af 100644 (file)
--- a/users.php
+++ b/users.php
@@ -3,7 +3,7 @@
        /**
         * Manage users in a database cluster
         *
-        * $Id: users.php,v 1.27 2004/09/01 16:35:59 jollytoad Exp $
+        * $Id: users.php,v 1.28 2004/09/02 13:41:56 jollytoad Exp $
         */
 
        // Include application functions
        function doAccount($msg = '') {
                global $data, $misc;
                global $PHP_SELF, $lang;
-       
-               $misc->printTrail('user');
-               $misc->printTitle($lang['straccount']);
-               $misc->printMsg($msg);
                
                $userdata = &$data->getUser($_SESSION['webdbUsername']);
+               $_REQUEST['user'] = $_SESSION['webdbUsername'];
                
+               $misc->printTrail('user');
+               $misc->printTitle($lang['straccount']);
+               $misc->printMsg($msg);
+
                if ($userdata->recordCount() > 0) {
                        $userdata->f['usesuper'] = $data->phpBool($userdata->f['usesuper']);
                        $userdata->f['usecreatedb'] = $data->phpBool($userdata->f['usecreatedb']);
@@ -56,6 +57,7 @@
                global $PHP_SELF, $lang, $conf;
 
                if ($confirm) {
+                       $_REQUEST['user'] = $_SESSION['webdbUsername'];
                        $misc->printTrail('user');
                        $misc->printTitle($lang['strchangepassword']);
                        $misc->printMsg($msg);