#1  
Old 13th April 2011, 17:49
Kludd Kludd is offline
Junior Member
 
Join Date: Apr 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Get logged in user

Hello

I'm quite new to ispconfig and I am currently developing a new module. This is rather embarassing, because the answer i probably easy, but how do I get the current logged in username?

I have coded my own payment script, and I need to crosscheck between the ispconfig database, and my payment scripts database.
Reply With Quote
Sponsored Links
  #2  
Old 13th April 2011, 18:16
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,651 Times in 4,461 Posts
Default

Use this to get the full user details:

print_r($_SESSION['s']['user'])
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 13th April 2011, 19:00
Kludd Kludd is offline
Junior Member
 
Join Date: Apr 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

That gives me no output at all, it seems as if $_SESSION is completely empty.
Reply With Quote
  #4  
Old 13th April 2011, 19:17
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,651 Times in 4,461 Posts
 
Default

You have to do that in a file that belongs to ispconfig. This means that it has to include the config file and app file as required for all files used in the ispconfig interface.

If you call it outside of the ispconfig app contect, then it will be empty of course.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
freebsd 7, samba 3, domain controller alexdimarco Suggest HOWTO 6 5th November 2010 17:54
pure-ftpd / MySQL on Fedora 12 - user limit Tek12 HOWTO-Related Questions 2 28th December 2009 13:51
squirrelmail user login error wiewioor Installation/Configuration 17 31st July 2009 12:03
User Add/Delete and FTP login problem. clabrown Installation/Configuration 3 23rd August 2007 20:12
Tracking user's IP and other user who have logged onto server? micko_escalade Technical 2 30th July 2007 17:33


All times are GMT +2. The time now is 05:32.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.