Location: PHPKode > projects > MegaBB > template/panel.php
<html>
<body>
<br>
<table id="panel" width="100%">
<tr><td>
<?
if($session->logged_in){
   echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"3\" align=\"left\"><tr><td><input style=\"
color:white;
 background-color:#777;
  border:1px solid;
  border-color: #555 #555 #888 #888;
text-align:center;
\" size=\"45\" type=\"text\" value=\"Welcome $session->username, you are logged in.\" readonly=\"readonly\" /></td></tr></table>"
       ."<table border=\"0\" cellspacing=\"0\" cellpadding=\"3\" align=\"right\"><tr><td><a href=\"./userinfo.php?user=$session->username\"><input style=\"color:white; background-color:#777; border:1px solid; border-color: #888 #888 #555 #555;\" type=\"button\" value=\"My Profile\"/></a>&nbsp;"
       ."<a href=\"./useredit.php\"><input style=\"color:white; background-color:#777; border:1px solid; border-color: #888 #888 #555 #555;\" type=\"button\" value=\"Edit Profile\"/></a>&nbsp;";
   if($session->isAdmin()){
      echo "<a href=\"./admin/admin.php\"><input style=\"color:white; background-color:#777; border:1px solid; border-color: #888 #888 #555 #555;\" type=\"button\" value=\"Admin CP\"/></a>&nbsp;";
   }
   echo "<a href=\"./process.php\"><input style=\"color:white; background-color:#777; border:1px solid; border-color: #888 #888 #555 #555;\" type=\"button\" value=\"Logout\"/></a></td></tr></table>";
}
else{
?>
<form action="./process.php" method="POST">
<table align="left" border="0" cellspacing="0" cellpadding="3">
<tr><td><input style="
color:white;
 background-color:#777;
  border:1px solid;
  border-color: #555 #555 #888 #888;
text-align:center;
" type="text" name="user" maxlength="30" value="<? echo $form->value("user"); ?>Username" onFocus="this.value=''"></td><td><input style="
color:white;
 background-color:#777;
  border:1px solid;
  border-color: #555 #555 #888 #888;
text-align:center;
" type="password" name="pass" maxlength="30" value="<? echo $form->value("pass"); ?>Password" onFocus="this.value=''"></td>
<td align="left">
<input style="
 background:transparent;
" title="Remember Me" type="checkbox" name="remember" <? if($form->value("remember") != ""){ echo "checked"; } ?>>
&nbsp;&nbsp;&nbsp;&nbsp;
<input type="hidden" name="sublogin" value="1">

<?
if($form->num_errors > 0){
   echo "<font size=\"2\" color=\"#ff0000\">".$form->num_errors." error(s) found</font>";
}
?> <? echo $form->error("user"); ?></td><td><? echo $form->error("pass"); ?>
<input style="
  color:white;  
  background-color:#777; 
  border:1px solid; 
  border-color: #888 #888 #555 #555;
" type="submit" value="Login"></td><td></td></tr></table>
<table align="right" border="0" cellspacing="0" cellpadding="3"><tr><td align="right"><a href="./forgotpass.php"><input style="
  color:white;  
  background-color:#777; 
  border:1px solid; 
  border-color: #888 #888 #555 #555;" type="button" value="Forgot Password"/></a>&nbsp;<a href="./register.php"><input style="
  color:white;  
  background-color:#777; 
  border:1px solid; 
  border-color: #888 #888 #555 #555;" type="button" value="Register"/></a></td></tr>
</table>
</form>
<?
}
?>
</td></tr>
</table>
</body>
</html>
Return current item: MegaBB