Jump to content

Pilot Page Only for Online Users


carlosuc99

Recommended Posts

  • Moderators

Place this at the very top of any page you don't want non-members to see.

<?php
if(Auth::LoggedIn() == false)
{
echo 'We're sorry! You must be a registered member in order to view this page';
return;
}
?>

Jeff, found a mistake. You'll get the error if you don't back slash the '.

Cheers! ;)

<?php
if(Auth::LoggedIn() == false)
{
echo 'We\'re sorry! You must be a registered member in order to view this page';
return;
}
?>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...