Jump to content

Page Login- Restrictions


mltpilot

Recommended Posts

If you are meaning you do not want the information on a page not to be shown unless a pilot is logged in you will use the code below and i have told you where you will put your content you want logged in users to see and for users logged out to see

<?php
require('the directory of your codon.config.php file'); // Call the phpVMS config file
if(Auth::LoggedIn()) {

//the data you want to show if he is logged in goes here

}
else {

//the data you want to show if he is not logged in goes here

?>

If you are wanting to show a link only to pilots logged in but not to a user visiting page or because they are logged out use this

<?php if(Auth::LoggedIn() == true){ ?>

//<a href="#">My Custom Link</a>

<?php } ?>

Sincerely,

Vince

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...