On my latest client's site, I have a subdomain dedicated to the administration. .htaccess is used to authenticate any user on that subdomain, with the .htpasswd above the root directory. My client has requested that there should be two accounts to login to the admin side - One is for the content author, the other for the staff who can only view orders and modify products.
Is there any way of accessing the username used to login to the site through PHP?
For example, at the login popup box (.htaccess), if I enter the username "bob" (why should I use my imagination?), How could I access the username "bob" through PHP?