예제 #1
0
if (!defined('IN_PHPVMS') && IN_PHPVMS !== true) {
    die;
}
?>
<div id="mainbox">
<h3>Pilot Center</h3>
<div class="indent">
<p><strong>Welcome back <?php 
echo $pilot->firstname . ' ' . $pilot->lastname;
?>
!</strong></p>
<table>
<tr>
	<td valign="top" align="center">
		<img src="<?php 
echo PilotData::getPilotAvatar($pilotcode);
?>
" />
		<br /><br />
		<img src="<?php 
echo $pilot->rankimage;
?>
" />
	</td>
	<td valign="top">
		<ul style="margin-top: 0px;">
			<li><strong>Your Pilot ID: </strong> <?php 
echo $pilotcode;
?>
</li>
			<li><strong>Your Rank: </strong><?php 
예제 #2
0
			<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 
} else {
    /*	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;