Ejemplo n.º 1
0
 public function signinAction()
 {
     $this->email = $_POST['email_id'];
     $this->pass = $_POST['password'];
     $user = $_SESSION['email'];
     $sign = new UserLogin();
     if (isset($_POST['submit'])) {
         $count = 1;
         while ($count < 3) {
             if (empty($this->email) || empty($this->pass)) {
                 echo "*please fill the fields";
             } elseif ($sign->checkUser() === true) {
                 $_SESSION['email_id'] = $this->email;
                 $control->render("userPage");
             } else {
                 $count++;
             }
             $sign->blockUser($user);
             echo "You Are Blocked";
         }
     }
 }
Ejemplo n.º 2
0
$sign = new UserLogin();
$control = new Controller();
if (isset($_POST['submit'])) {
    $email = $_POST['email_id'];
    $pass = $_POST['password'];
    $_SESSION['count'] = 1;
    while ($_SESSION['count'] < 4) {
        if ($sign->checkUser() === true) {
            //$_SESSION['email'] = $email;
            //$user=$_SESSION['email'];
            $control->render("userPage");
            exit;
        } else {
            $_SESSION['count']++;
            echo $_SESSION['count'];
            $sign->blockUser($email);
        }
        //$sign->blockUser($user);
    }
}
?>
<head>
    <title> Sign In </title>
</head>
<div class="site-wrapper">
<div class="site-wrapper-inner">
<div class="masthead clearfix" align="left">
                <div class="inner" >
                    <div class="masthead-brand"  style="margin-left:auto;"><img src ="../../Public/images/go1.png" width="15%" height="30%"></img>
                    <nav>
                        <ul class="nav masthead-nav" align="center">