Jump to content



Latest News: (loading..)

- - - - -

Identify username of the administrator


This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1   paulgreen

paulgreen
  • Members
  • 4 posts

Posted 27 August 2009 - 10:17 PM

Hi,

I need to identify administrator username once they login. And then based on that username I need to do logic.

How do I retrieve his username? what variable it is stored in?

Basically I have new page I create called "custom_admin.php", then inside application top I will use "require" to add this page.

What would be content of "custom_admin.php" in terms of finding administrator username?

Regards,
Paul

Edited by paulgreen, 27 August 2009 - 10:19 PM.


#2   spooks

spooks
  • Members
  • 7,017 posts

Posted 27 August 2009 - 10:20 PM

$admin['username']
Sam

Remember, What you think I ment may not be what I thought I ment when I said it.

Contributions:


Auto Backup your Database, Easy way

Multi Images with Fancy Pop-ups, Easy way

Products in columns with multi buy etc etc

Disable any Category or Product, Easy way

Secure & Improve your account pages et al.

#3   paulgreen

paulgreen
  • Members
  • 4 posts

Posted 31 August 2009 - 02:40 AM

View Postspooks, on Aug 27 2009, 06:20 PM, said:

$admin['username']

Thank you very much!

Solved.