Location: PHPKode > projects > BugIn and Ticketing System > bugin-0.65/inc/login.inc.php
<?php


echo <<<EOT
<form method="post" action="{$options['baseURL']}{$options['formSubmitTo']}" name="login">
<div align="center">
<table cellpadding="0" cellspacing="0">
	<tr>
		<td colspan="2" bgcolor="{$options['colorTableHeaderBg']}" align="center"><font color="{$options['colorTableHeaderText']}">{$options['systemName']}: <b>{$verbage['log_in']}</b></font></td>
	</tr>
	<tr>
		<td bgcolor="{$options['colorTableHeaderBg']}" class="loginButton"><font color="{$options['colorTableHeaderText']}">{$verbage['username']}</font></td>
		<td bgcolor="{$options['colorTableHeaderBg']}"><input type="text" size="25" name="us" value="$fixedUs" /></td>
	</tr>
	<tr>
		<td bgcolor="{$options['colorTableHeaderBg']}" class="loginButton"><font color="{$options['colorTableHeaderText']}">{$verbage['password']}</font></td>
		<td bgcolor="{$options['colorTableHeaderBg']}"><input type="password" size="25" name="pw" /></td>
	</tr>
	<tr>
		<td colspan="2" align="right" bgcolor="{$options['colorTableHeaderBg']}" class="loginButton">
EOT;
if (isset($_SESSION['loginError'])) {
	echo buginError($_SESSION['loginError'], 2, 1);
	#echo "Info: {$_SESSION['loginError']}";
	unset($_SESSION['loginError']);
}
echo <<<EOT
<input type="submit" value="{$verbage['log_in']}" class="loginButton" /></td>
	</tr>
EOT;
if ($options['signupEnable'] || $options['noSignupTicketEnable']) {

	echo <<<EOT
	<tr>
		<td colspan=2>

EOT;

	$loginOptions = array();

	// If this is included from view, set the redirect to this item
	if ($area == "view")
		$_SESSION['viewRedirect'] = $num;

	if ($options['signupEnable'])
		$loginOptions[] = "<a href=\"{$options['baseURL']}?area=signup\">{$verbage['sign_up']}</a>";


	if ($options['noSignupTicketEnable'])
		$loginOptions[] = "<a href=\"{$options['baseURL']}?area=add\">{$verbage['submitWithoutLogin']}</a>";

	echo "<div align=\"center\">[".implode("] | [", $loginOptions)."]</div>";

	echo <<<EOT
		</td>
	</tr>
EOT;
}

echo <<<EOT

</table>
</div>
</form>
EOT;

?>
Return current item: BugIn and Ticketing System