Advertisement
Guest User

Untitled

a guest
Dec 25th, 2013
517
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | None | 0 0
  1. <div id="oneout"><span class="onetitle">
  2. <font color="purple">
  3. Pilots Corner</font>
  4.  
  5.  
  6. </span><div id="oneout_inner">
  7. <center>
  8. <?php
  9. /*
  10. Quick example of how to see if they're logged in or not
  11. Only show this login form if they're logged in */
  12. if(Auth::LoggedIn() == false)
  13. { ?>
  14. <form name="loginform" action="<?php echo url('/login'); ?>" method="post">
  15. Sign-in with your pilot id or email, or <a href="<?php echo url('/registration'); ?>">register</a><br />
  16. <input type="text" name="email" value="Change to Your Airline ID" onClick="this.value=''" />
  17. <input type="password" name="password" value="" />
  18. <input type="hidden" name="remember" value="on" />
  19. <input type="hidden" name="redir" value="index.php/profile" />
  20. <input type="hidden" name="action" value="login" />
  21. <input type="submit" name="submit" value="Log In" />
  22. </form>
  23. <?php
  24. }
  25. /* End the Auth::LoggedIn() if */
  26. else /* else - they're logged in, so show some info about the pilot, and a few links */
  27. {
  28.  
  29. /* Auth::$userinfo has the information about the user currently logged in
  30. We will use this next line - this gets their full pilot id, formatted properly */
  31. $pilotid = PilotData::GetPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid);
  32. ?>
  33.  
  34. <img align="left" height="50px" width="50px" style="margin-right: 10px;"
  35. src="<?php echo PilotData::getPilotAvatar($pilotid);?>" />
  36.  
  37. <strong>Pilot ID: </strong> <?php echo $pilotid ; ?>
  38. <strong>Rank: </strong><?php echo Auth::$userinfo->rank;?><br />
  39. <strong>Total Flights: </strong><?php echo Auth::$userinfo->totalflights?>, <strong>Total Hours: </strong><?php echo Auth::$userinfo->totalhours;?>
  40. <br />
  41. <a href="<?php echo url(''); ?>">Home</a> |
  42. <a href="<?php echo url('/profile/');?>">View Pilot Center</a> |
  43. <a href="<?php echo url('/logout');?>">Logout</a>
  44. <?php
  45. } /* End the else */
  46. ?>
  47.  
  48.  
  49. <br></center></div></div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement