Your IP : 216.73.217.79


Current Path : /var/www/cesa.co.za/relay/include/
Upload File :
Current File : /var/www/cesa.co.za/relay/include/login.php

<h1>Login</h1>
  <?php
    if (isset($_SESSION['uid'])) {
  ?>
  <h1>Welcome back :<br/><?php echo $_SESSION['uname'];?></h1>

    <?php
      $timezone = date_default_timezone_get();
      $datetime = time();
      if ($datetime >= $startteamreg && $datetime <= $endteamreg) {
    ?>
      <a href="<?php echo $pagename?>?sec=team">Manage Company Teams</a><br><br>
<?php
		}
      if ($datetime >= $startsocreg && $datetime <= $endsocreg) {
    ?>
		      
<a href="<?php echo $pagename?>?sec=area">Social Area Booking</a><br><br>
  <?php
  }
    } else {
  ?>
<form method='POST' action='index.php'>
<input type="hidden" name="sec" value="login">
<table width="100%" border="0" cellspacing="1" cellpadding="2">
      <?php
        if (isset($_POST['log_sub'])&&(!isset($_SESSION['uid'])&&!isset($_SESSION['unid'])&&!isset($_SESSION['aid'])&&!isset($_SESSION['said']))) {
        echo "<tr><td><span class=\"style1\">Username and/or password is incorrect, you have not yet registered, or your registration is awaiting confirmation.</span></td></tr>\n";
        }
      ?>
      <tr>
        <td>Username (email address)<br>
          <input type="text" name="username"></td>
        </tr>
      <tr>
        <td>Password          <br>
          <input type="password" name="password"></td>
        </tr>
      <tr>
        <td><input type="submit" name="log_sub" value="Submit"></td>
        </tr>
    </table>
    </form>
<?php
}
?>