Page 1 of 1

show_admin_nav.inc.php

Posted: Thu Aug 08, 2013 5:02 am
by steve
I am building a new GUI for my hesk installation, I want to include the logged in username in the menu bar.

How can I make the following code work in the above mentioned script?

Code: Select all

<?php if (isset($_SESSION['as_name'])) {echo stripslashes(hesk_input($_SESSION['as_name']));} ?>
Or is there a better way to do this?

Re: show_admin_nav.inc.php

Posted: Thu Aug 08, 2013 5:38 am
by Klemen
The name of the logged in user is stored in $_SESSION['name']

Username is in $_SESSION['user'] or just HESK_USER constant

Re: show_admin_nav.inc.php

Posted: Thu Aug 08, 2013 5:46 am
by steve
Now that i look at it, obviously............. :oops:

Thanks Klemen!