https://www.icyphoenix.com/viewtopic.php?f=35&t=8875&p=58049#p58049 ----------------------------------- mort Thu 17 Jan, 2013 14:39 Re: How Do I Check If A User Is Logged In ? ----------------------------------- You don't take enough care Andy. This all works for me - - Ten minutes. And please DON'T change anything until you test it. [code linenumbers=false]session_begin(); $auth->acl($user->data); $user->setup(); //End session management if (!$user->data['session_logged_in']) { redirect(append_sid(CMS_PAGE_LOGIN . '?redirect=alertz_VIP.' . PHP_EXT, true)); exit; } else // Yes they are { $template->assign_vars(array( 'USERNAME' => htmlspecialchars($user->data[username]), ) ); //full_page_generation(); full_page_generation('alertz_VIP.tpl', '', ''); } ?>[/code] [code linenumbers=false]

Scotbirds Alertz - Rare and Scarce

 

 

If you have seen something unusual / rare then please call it in on -- Hotline: 0333 5772473

Date   Region   Species

 

Region Species Date Time Comments
{alerts.REGION} {alerts.SPECIES} {alerts.DATE} {alerts.TIME} {alerts.COMMENTS}

 

[/code]