Location: PHPKode > projects > phpBannerEx > loginform.inc
<?
#################################################################################################
#
#  project              : phpBannerEx
#  filename             : loginform.inc
#  last modified by     : 
#  e-mail               : hide@address.com
#  purpose              : User Login Form
#
#################################################################################################

global $show_proctime, $bannerex_name, $lang, $style, $admin_email,$default_language;

header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");

include ("header.inc");
?>
<center>
<h1><? echo get_msg(welcometo,$lang)." $bannerex_name"; ?></h1><br>

<form action="<?php echo $url ?>" method=post>
<?
  global $HTTP_POST_VARS;
  if($HTTP_POST_VARS) {
    while (list($key, $val) = each($HTTP_POST_VARS) ) {
      echo "<input type=hidden name=\"$key\" value=\"$val\">\n";
    }
  }
?>
<table border=0 align="center" cellspacing=0 cellpadding=4 class="formtxt">
  <tr valign=top align=left>
    <td class="Text"><b><? echo get_msg(username, $lang); ?>:</b></td>
    <td><input type="text" name="username" value="<?php global $username; echo $username ?>"></td>
  </tr>
  <tr valign=top align=left>
    <td class="Text"><b><? echo get_msg(password, $lang); ?>:</b></td>
    <td><input type="password" name="password"></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td align=right><input class="button" type="submit" name="submit" value="Login"></td>
  </tr>
</table>

<p class="text"><a href="user.php?lang=<? echo $lang;?>&act=new_user_form"><? echo get_msg(becomeuser,$lang); ?></a><br><br>
<p class="text"><? echo get_msg(forgotpasw,$lang); ?>?  <a href="user.php?lang=<?echo $lang?>&act=forgot_pasw_form"><? echo get_msg(clickhere,$lang); ?></a>

<?php global $username; if ( isset($username) ): ?>
<!-- failed login code -->
<br>
<table width="700" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td class="TableHead" align="center"><font color=red><b>
      Either your username or your password are invalid. Please try again!
    </b></font></td>
  </tr>
</table>
<?php endif ?>
</form>
</center>

<?
include("footer.inc");
?>
Return current item: phpBannerEx