Jump to content

Getting current logged in user


Recommended Posts

My code:

require_once $_SERVER['DOCUMENT_ROOT']. '/community/init.php';

\IPS\Session\Front::i();
$member = \IPS\Member::loggedin();

 

The code only works if I put the php file inside the community (ipb) folder, otherwise it will show that no one is logged in and give the info of a guest. How can I fix this?

thanks

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...