PK

ADDRLIN : /home/questend/www/subdomain/coforge.jiffyfilms.com/
FLL :
Current File : /home/questend/www/subdomain/coforge.jiffyfilms.com/otp-verify.php

<?php
   ob_start();
   //error_reporting(E_ALL ^ E_NOTICE);
   @session_start();
   ini_set('allow_url_include',1);    
   date_default_timezone_set("Asia/Kolkata");
   set_time_limit(600);
   ini_set('max_execution_time',600);
   require_once 'admin/includes/settings/PDODB.php';
   include 'admin/includes/modules/functions.php';
   // print_r($_SESSION);
   $function = new FUNCTIONS();
   if(isset($_POST['sendLogin'])){
     $otp = !empty($_POST['otp'])?trim($_POST['otp']):"";
     if(!empty($otp)){              
         if($otp == $_SESSION['otp']){
            //$_SESSION['userId'] = $result[0]['id'];
            //echo "<script>window.location.href='webcast.php';</script>";
            $ipaddress = $function->getRealIpAddr();
            $userId = $_SESSION['userId'];
            $pdodb = PDODB::getInstance();
            $sql = "INSERT INTO `tb_loginlogs` SET userId='$userId', ipAddress='$ipaddress'";
            $result = $pdodb->query($sql);
            header("Location: webcast.php");
         }else{
            //Alert
            $error_msg = "The OTP you've entered is incorrect. Please try again.";
         }
     }
   }
?>
<!DOCTYPE html>
<html lang="en" >
   <head>
      <meta charset="UTF-8">
      <title>ARTEMIS Hospitals Login</title>
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <link rel='stylesheet' href='css/bootstrap.min.css'>
      <link rel='stylesheet' href='css/style.css'>
      <link href="images/favicon.ico" rel="shortcut icon" type="image/png">
      <style type="text/css">
         body {
         background: url('images/bg.jpg') no-repeat center center fixed;
         -webkit-background-size: cover;
         -moz-background-size: cover;
         background-size: cover;
         -o-background-size: cover;
         }
         .error {
         color: red;
         }
      </style>
   </head>
   <body>
      <!-- partial:index.partial.html -->
      <!-- Follow these instructions, please! -->
      <div class="container py-5">
      <div class="row justify-content-center">
         <div class="col-md-6 col-10 loginform">
            <div class="row justify-content-center">
               <div class="col-4">
                  <img src="images/logo.png" class="img-fluid">
               </div>
               <!-- <h3 class="text-center">ARTEMIS Hospitals</h3> -->
            </div>
            <br>
            <form action="" method="POST" id="loginForm">               
               <div class="mb-3">
                  <label for="otp" class="form-label">Enter Otp</label>
                  <input type="number" class="form-control" id="otp" name="otp">
               </div>
               <p style="color:red; text-align: center;"><?=(!empty($error_msg))?$error_msg:'';?></p>
               <button type="submit" class="btn login-btn" name="sendLogin" id="sendLogin">Login Now</button>
            </form>
         </div>
      </div>
      <!-- partial -->
      <script type='text/javascript' src='//code.jquery.com/jquery-1.8.3.js'></script> 
      <script type="text/javascript" src="//code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
      <link rel="stylesheet" type="text/css" href="//code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
      <script type='text/javascript' src="//ajax.aspnetcdn.com/ajax/jquery.validate/1.14.0/jquery.validate.js"></script> 
      <script type='text/javascript' src="//jqueryvalidation.org/files/dist/additional-methods.min.js"></script> 
      <script src="js/jquery.form-validator.min.js"></script>
      <script src='js/bootstrap.bundle.min.js'></script>
      <script type="text/javascript">
         $("#loginForm").validate({
           rules: {
               otp: {
                    required: true,
                    minlength: 6,
                    maxlength: 6,
                    //number: true
                    digits: true
               }
           },
           otp: { 
               mobile: {
                   required: "Please enter OTP",
                   minlength: "OTP Must Contain at least 6 digit",
                   maxlength: "OTP Must Not Exceed 6 digit",
                   digits: "Please enter only digit"
               }
           },
           submitHandler: function(form) { 
             form.submit();
           }   
         });
      </script>
   </body>
</html>


PK 99
E-SHOP || DASHBOARD
404

Page Not Found

It looks like you found a glitch in the matrix...

← Back to Home