show_admin_nav.inc.php

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
steve
Posts: 147
Joined: Tue Mar 27, 2012 9:32 pm

show_admin_nav.inc.php

Post 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?
-Steve
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: show_admin_nav.inc.php

Post by Klemen »

The name of the logged in user is stored in $_SESSION['name']

Username is in $_SESSION['user'] or just HESK_USER constant
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
steve
Posts: 147
Joined: Tue Mar 27, 2012 9:32 pm

Re: show_admin_nav.inc.php

Post by steve »

Now that i look at it, obviously............. :oops:

Thanks Klemen!
-Steve
Post Reply