Search found 2 matches
- Mon Mar 03, 2008 3:31 pm
- Forum: Joomla! Coding 101
- Topic: Custom PHP script: need to check user is logged in
- Replies: 5
- Views: 797
Re: Custom PHP script: need to check user is logged in
OK done some browsing of the Joomla code, the following PHP snippet should check that a user is logged in. First you need some setup. This PHP script is in a subfolder so it includes files from the directory above. define( '_VALID_MOS', 1 ); include_once '../configuration.php'; include_once '../glob...
- Wed Feb 27, 2008 4:14 pm
- Forum: Joomla! Coding 101
- Topic: Custom PHP script: need to check user is logged in
- Replies: 5
- Views: 797
Custom PHP script: need to check user is logged in
I am working on a custom PHP script for a client. We use Joomla for the website's content so I have created some pages for registered users only. They use the "Wrapper" feature to put custom URLs inside an iframe. While users need to log in to get to these pages, the scripts that are displ...