<?php
/**
 * Created by PhpStorm.
 * User: sunusi
 * Date: 2019-01-22
 * Time: 07:29
 */
if (isset($_SESSION['YUZA_ID'])) {
    if (file_exists("pages/" . $URL[0] . ".php")) {
        require $_SESSION['YUZA_ROLE_LOCATION'] . $URL[0] . ".php";
    } else {
        require $_SESSION['YUZA_ROLE_LOCATION']."home.php";
    }
} else {

    ?>

  <!DOCTYPE html>
  <html>


  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>UDUTH PPP Partners Login Page</title>
    <!-- Fav  Icon Link -->
    <link rel="shortcut icon" type="image/png" href="<?php echo imgPATH; ?>fav.png">
    <!-- Bootstrap core CSS -->
    <link rel="stylesheet" href="<?php echo cssPATH; ?>bootstrap.min.css">
    <!-- themify icons CSS -->
    <link rel="stylesheet" href="<?php echo cssPATH; ?>themify-icons.css">
    <!-- Main CSS -->
    <link rel="stylesheet" href="<?php echo cssPATH; ?>styles.css">
    <link rel="stylesheet" href="<?php echo cssPATH; ?>green.css" id="style_theme">
    <link rel="stylesheet" href="<?php echo cssPATH; ?>responsive.css">

    <script src="<?php echo jsPATH; ?>modernizr.min.js"></script>
  </head>

  <body class="auth-bg">
  <!-- Pre Loader -->
  <div class="loading">
    <div class="spinner">
      <div class="double-bounce1"></div>
      <div class="double-bounce2"></div>
    </div>
  </div>
  <!--/Pre Loader -->

  <div class="wrapper">
    <!-- Page Content  -->
    <div id="content">
      <div class="container">
        <div class="row">
          <div class="col-sm-4 auth-box">
            <div class="proclinic-box-shadow">
              <h3><img class="img img-thumbnail" src="<?php echo imgPATH; ?>logo-dark.png" width="150" alt=""/></h3>
              <h3 class="widget-title">UDUTH PPP Partners Login</h3>
              <form class="widget-form" name="login_form" method="post" action="<?php echo path(); ?>authLogin.php">
                <!-- form-group -->
                <div class="form-group row">
                  <div class="col-sm-12">
                    <input type="text" placeholder="Username" name="userUsername" class="form-control" required=""
                           style="text-align:center;">
                  </div>
                </div>
                <!-- /.form-group -->
                <!-- form-group -->
                <div class="form-group row">
                  <div class="col-sm-12">
                    <input type="password" placeholder="Password" name="userPassword" class="form-control" required=""
                           style="text-align:center;">
                  </div>
                </div>
                <!-- /.form-group -->
                <!-- Check Box -->
                <div class="form-check row">
                  <div class="col-sm-12 text-left">
                    <div class="custom-control custom-checkbox">
                      <input name="rememberme" class="custom-control-input" type="checkbox" id="ex-check-2">
                      <label class="custom-control-label" for="ex-check-2">Remember Me</label>
                    </div>
                  </div>
                </div>
                <!-- /Check Box -->
                <!-- Login Button -->
                <div class="button-btn-block">
                  <button type="submit" class="btn btn-primary btn-lg btn-block">Login</button>
                </div>
                <!-- /Login Button -->
                <!-- Links -->
                <div class="auth-footer-text">
                  <small>Forgot your login password?
                    <a href="sign-up">Require new password reset page</a> Here
                  </small>
                </div>
                <!-- /Links -->
              </form>
            </div>
          </div>
        </div>
      </div>
    </div>
    <!-- /Page Content  -->
  </div>
  <!-- Jquery Library-->
  <script src="<?php echo jsPATH; ?>jquery-3.2.1.min.js"></script>
  <!-- Popper Library-->
  <script src="<?php echo jsPATH; ?>popper.min.js"></script>
  <!-- Bootstrap Library-->
  <script src="<?php echo jsPATH; ?>bootstrap.min.js"></script>
  <!-- Custom Script-->
  <script src="<?php echo jsPATH; ?>custom.js"></script>
  </body>

  </html>

    <?php
}
?>