Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="oneout"><span class="onetitle">
- <font color="purple">
- Pilots Corner</font>
- </span><div id="oneout_inner">
- <center>
- <?php
- /*
- Quick example of how to see if they're logged in or not
- Only show this login form if they're logged in */
- if(Auth::LoggedIn() == false)
- { ?>
- <form name="loginform" action="<?php echo url('/login'); ?>" method="post">
- Sign-in with your pilot id or email, or <a href="<?php echo url('/registration'); ?>">register</a><br />
- <input type="text" name="email" value="Change to Your Airline ID" onClick="this.value=''" />
- <input type="password" name="password" value="" />
- <input type="hidden" name="remember" value="on" />
- <input type="hidden" name="redir" value="index.php/profile" />
- <input type="hidden" name="action" value="login" />
- <input type="submit" name="submit" value="Log In" />
- </form>
- <?php
- }
- /* End the Auth::LoggedIn() if */
- else /* else - they're logged in, so show some info about the pilot, and a few links */
- {
- /* Auth::$userinfo has the information about the user currently logged in
- We will use this next line - this gets their full pilot id, formatted properly */
- $pilotid = PilotData::GetPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid);
- ?>
- <img align="left" height="50px" width="50px" style="margin-right: 10px;"
- src="<?php echo PilotData::getPilotAvatar($pilotid);?>" />
- <strong>Pilot ID: </strong> <?php echo $pilotid ; ?>
- <strong>Rank: </strong><?php echo Auth::$userinfo->rank;?><br />
- <strong>Total Flights: </strong><?php echo Auth::$userinfo->totalflights?>, <strong>Total Hours: </strong><?php echo Auth::$userinfo->totalhours;?>
- <br />
- <a href="<?php echo url(''); ?>">Home</a> |
- <a href="<?php echo url('/profile/');?>">View Pilot Center</a> |
- <a href="<?php echo url('/logout');?>">Logout</a>
- <?php
- } /* End the else */
- ?>
- <br></center></div></div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement