Example #1
0
    exit;
}
$user = new Users();
if ($user->isLoggedIn()) {
    $location = SITE_URL;
    header('Location: ' . $location);
    exit;
} else {
    if (Session::exists('resSuccess')) {
        echo miscellaneous::errorPopup(Session::flush('resSuccess'), "green");
    } else {
        if (Session::exists('error-login')) {
            echo miscellaneous::errorPopup(Session::flush('error-login'), "red");
        } else {
            if (Session::exists('signin-first')) {
                echo miscellaneous::errorPopup(Session::flush('signin-first'), "red");
            }
        }
    }
    ?>

	

	<script type="text/javascript">
		$(document).on('click','.pop-close',function(){
		    $(this).parent().remove();
		});
	
		jQuery(document).ready(function(){
			jQuery("#logform").validationEngine();
			$("#logform").bind("jqv.field.result", function(event, field, errorFound, prompText){ console.log(errorFound) })
Example #2
0
<?php

$user = new Users();
if (!$user->isLoggedIn()) {
    Session::flush('signin-first', 'You need to log in to apply');
    header('Location: ' . SITE_URL . '/login');
    exit;
}
if (Session::exists('not-eligible')) {
    echo miscellaneous::errorPopup(Session::flush('not-eligible'), "red");
}
?>

  <script type="text/javascript">

    /*jQuery(document).ready(function(){

      $("#step1Form").validationEngine();
      $("#step1Form").bind("jqv.field.result", function(event, field, errorFound, prompText){ console.log(errorFound) });

    });*/


  </script>


<form action="<?php 
echo SITE_URL;
?>
/admissionform/step2" method="POST" id="step1Form" >
Example #3
0
<?php

$user = new Users();
if (!$user->isLoggedIn()) {
    Session::flush('signin-first', 'You need to log in to apply');
    header('Location: ' . SITE_URL . '/login');
    exit;
}
if (Session::exists('invalid-captcha')) {
    echo miscellaneous::errorPopup(Session::flush('invalid-captcha'), "red");
}
$_SESSION['prev-page'] = '3';
?>


<script type="text/javascript">


	   /* jQuery(document).ready(function(){

	      $("#step3Form").validationEngine();
	      $("#step3Form").bind("jqv.field.result", function(event, field, errorFound, prompText){ console.log(errorFound) });

	    });*/

		
		var RecaptchaOptions = {
			lang : 'en',
			theme : 'custom',
    		custom_theme_widget: 'recaptcha_widget'
		};
Example #4
0
<?php

$user = new Users();
if ($user->isLoggedIn()) {
    $location = SITE_URL;
    header('Location: ' . $location);
    exit;
}
$admin = new admins();
if ($admin->isLoggedIn()) {
    $location = SITE_URL;
    header('Location: ' . $location . '/admin');
    exit;
}
if (Session::exists('error-login')) {
    echo miscellaneous::errorPopup(Session::flush('error-login'), "red");
}
?>

	
	<div  >
		<h3>Admin Login</h3>
		<form action="<?php 
echo SITE_URL;
?>
/admin/loginProcess" id="logform" method="post" >
			<input type="text" name="name" placeholder="Username" class="validate[required] in-fl" />
			<input type="password" name="password" placeholder="Password" class="validate[required] in-fl" />
			<br/>
			<input type="hidden" name="token" value="<?php 
echo Token::generate();