Newer
Older
Peter Rotich
committed
if(!defined('OSTCLIENTINC')) die('Access Denied');
$email=Format::input($_POST['luser']?:$_GET['e']);
$passwd=Format::input($_POST['lpasswd']?:$_GET['t']);
$content = Page::lookup(Page::getIdByType('registration-policy'));
<h1><?php echo Format::display($content->getName()); ?></h1>
<p><?php echo Format::viewableImages($content->getBody()); ?></p>
<form action="login.php" method="post" id="clientLogin">
<div style="display:table-row">
<div style="width:40%;display:table-cell">
Peter Rotich
committed
<strong><?php echo Format::htmlchars($errors['login']); ?></strong>
<br>
<label for="username">Username:</label>
<input id="username" type="text" name="luser" size="30" value="<?php echo $email; ?>">
<label for="passwd">Password:</label>
<input id="passwd" type="password" name="lpasswd" size="30" value="<?php echo $passwd; ?>"></td>
<input class="btn" type="submit" value="Sign In">
</div>
<?php if ($cfg && $cfg->isClientRegistrationEnabled()) { ?>
<div style="display:table-cell;box-shadow: -9px 0 15px -12px rgba(0,0,0,0.3);padding-left: 2em;">
Not yet registered? <a href="account.php?do=create">Create an account</a>
</div>
<?php } ?>
<?php if ($cfg && !$cfg->isClientLoginRequired()) { ?>
If this is your first time contacting us or you've lost the ticket number, please <a href="open.php">open a new ticket</a>.