authpartner
Clone or download
Modified Files
<?php include 'config.php';
<?php include 'config.php';
$code = "code_signup";
$code = "code_signup";
$code_download = "code_download";
$code_download = "code_download";
?>
?>
<html lang="en">
<html lang="en">
<head>
<head>
<meta charset="utf-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="description" content="">
<meta name="author" content="">
<meta name="author" content="">
<title>DigiLocker Service Center</title>
<title>DigiLocker Service Center</title>
<!-- Bootstrap Core CSS -->
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Custom CSS -->
<!-- Custom CSS -->
<link href="css/style.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<link href="css/styles.css" rel="stylesheet">
<link href="css/styles.css" rel="stylesheet">
<link href="css/font-style.css" rel="stylesheet" type="text/css">
<link href="css/font-style.css" rel="stylesheet" type="text/css">
<!-- Custom Fonts -->
<!-- Custom Fonts -->
<link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="css/stylecrt.css" rel="stylesheet" type="text/css"/>
<link href="css/datepicker.css" rel="stylesheet" type="text/css"/>
<link href="css/datepicker.css" rel="stylesheet" type="text/css"/>
<style>
<style>
ul li span .btn {
ul li span .btn {
background-color:blueviolet;
background-color:blueviolet;
padding:0px;
padding:0px;
border-radius: 4px;
border-radius: 4px;
text-transform: none;
text-transform: none;
margin-left:20px;
margin-left:20px;
}
}
@media (min-width: 768px){
@media (min-width: 768px){
.navbar-nav>li>a {
.navbar-nav>li>a {
font-size:11px;
font-size:11px;
padding-top: 8px;
padding-top: 8px;
padding-bottom: 0px;
padding-bottom: 0px;
color: #fff;
color: #fff;
padding-bottom: 8px;
padding-bottom: 8px;
}
}
.navbar-nav>li>a:hover{ color: #000; background-color:#f0ede4;}
.navbar-nav>li>a:hover{ color: #000; background-color:#f0ede4;}
.row{margin-top: -10px;margin-bottom: 15px;}
.row{margin-top: -10px;margin-bottom: 15px;}
}
}
.dropdown{
.dropdown{
margin:6px 16px;
margin:6px 16px;
color:#fff !important;
color:#fff !important;
cursor: pointer; cursor: hand;
cursor: pointer; cursor: hand;
}
}
.dropdown-submenu {
.dropdown-submenu {
position: relative;
position: relative;
color:#0033FF;
color:#0033FF;
}
}
.dropdown-menu>li{
.dropdown-menu>li{
margin-left: -15px;
margin-left: -15px;
cursor: pointer; cursor: hand;
cursor: pointer; cursor: hand;
}
}
</style>
</style>
</head>
</head>
<body>
<body>
<!-- Navigation -->
<!-- Navigation -->
<div class="row">
<div class="row">
<div class="col-md-6">
<div class="col-md-6">
<a class="navbar-brand pull-left" href="<?php echo $config['baseUrl']; ?>"><img src="images/logo.png"></a>
<a class="navbar-brand pull-left" href="<?php echo $config['baseUrl']; ?>"><img src="images/logo.png"></a>
</div>
</div>
<div class="col-md-6">
<div class="col-md-6">
<a class="navbar-brand pull-right">
<a class="navbar-brand pull-right">
<img src="images/digitalindialogo.png"></a>
<img src="images/digitalindialogo.png"></a>
</div>
</div>
</div>
</div>
<nav role="navigation" style="background-color: blueviolet; margin-bottom: 15px;height: 40px; position: relative;" >
<nav role="navigation" style="background-color: blueviolet; margin-bottom: 15px;height: 40px; position: relative;" >
<div class="container" style="padding-left:0px !important;">
<div class="container" style="padding-left:0px !important;">
<!-- Brand and toggle get grouped for better mobile display -->
<!-- Brand and toggle get grouped for better mobile display -->
<!-- Collect the nav links, forms, and other content for toggling -->
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1" >
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1" >
<ul class="nav navbar-nav navbar-left ">
<ul class="nav navbar-nav navbar-left ">
<li><a href= "<?php echo $config['baseUrl']; ?>"><i class="fa fa-home fa-2x" aria-hidden="true"></i></a></li>
<li><a href= "<?php echo $config['baseUrl']; ?>"><i class="fa fa-home fa-2x" aria-hidden="true"></i></a></li>
<li>
<li>
<div class="dropdown">
<div class="dropdown">
<div class="dropdown-toggle" data-toggle="dropdown">AADHAAR
<div class="dropdown-toggle" data-toggle="dropdown">AADHAAR
</div>
</div>
<ul class="dropdown-menu" style="margin-left: -5px;">
<ul class="dropdown-menu" style="margin-left: -5px;">
<li><a >Aadhaar Demographic Update</a></li><hr>
<li><a >Aadhaar Demographic Update</a></li><hr>
<li><a>Aadhaar Mobile Update</a></li><hr>
<li><a>Aadhaar Mobile Update</a></li><hr>
<li><a>Best Finger Detection</a></li><hr>
<li><a>Best Finger Detection</a></li><hr>
<li><a>Aadhaar eKYC PVC Print</a></li>
<li><a>Aadhaar eKYC PVC Print</a></li>
</ul>
</ul>
</div>
</div>
</li>
</li>
<li>
<li>
<div class="dropdown">
<div class="dropdown">
<div class="dropdown-toggle" data-toggle="dropdown">AGRICULTURE
<div class="dropdown-toggle" data-toggle="dropdown">AGRICULTURE
</div>
</div>
<ul class="dropdown-menu" style="margin-left: -5px;">
<ul class="dropdown-menu" style="margin-left: -5px;">
<li><a tabindex="-1" >Agricultural Machine Store</a></li><hr>
<li><a tabindex="-1" >Agricultural Machine Store</a></li><hr>
<li><a tabindex="-1" >Online Store</a></li><hr>
<li><a tabindex="-1" >Online Store</a></li><hr>
<li><a tabindex="-1" >Farmer Registration</a></li><hr>
<li><a tabindex="-1" >Farmer Registration</a></li><hr>
<li><a tabindex="-1" >Marketplace</a></li>
<li><a tabindex="-1" >Marketplace</a></li>
</ul>
</ul>
</div>
</div>
</li>
</li>
<li>
<li>
<div class="dropdown">
<div class="dropdown">
<div class="dropdown-toggle" data-toggle="dropdown">BANKING AND PENSION
<div class="dropdown-toggle" data-toggle="dropdown">BANKING AND PENSION
</div>
</div>
<ul class="dropdown-menu" style="margin-left: -5px;">
<ul class="dropdown-menu" style="margin-left: -5px;">
<li><a tabindex="-1" >RAP Registration</a></li><hr>
<li><a tabindex="-1" >RAP Registration</a></li><hr>
<li><a tabindex="-1" >Basic Banking Course</a></li><hr>
<li><a tabindex="-1" >Basic Banking Course</a></li><hr>
<li><a tabindex="-1" >Life Certificate (LIC)</a></li><hr>
<li><a tabindex="-1" >Life Certificate (LIC)</a></li><hr>
<li><a tabindex="-1" >Pin Pad Device Payment Service</a></li>
<li><a tabindex="-1" >Pin Pad Device Payment Service</a></li>
</ul>
</ul>
</div>
</div>
</li>
</li>
<li>
<li>
<div class="dropdown">
<div class="dropdown">
<div class="dropdown-toggle" data-toggle="dropdown">DIGILOCKER</div>
<div class="dropdown-toggle" data-toggle="dropdown">DIGILOCKER</div>
<ul class="dropdown-menu" style="margin-left: -5px;">
<ul class="dropdown-menu" style="margin-left: -5px;">
<li>
<li>
<span>
<span>
<form action = "<?php echo $config[$code] ?>" method = "POST" role="form">
<form action = "<?php echo $config[$code] ?>" method = "POST" role="form">
<button type="submit" class="btn">Demographic SignUp</button>
<button type="submit" class="btn">Demographic SignUp</button>
</form>
</form>
</span>
</span>
</li><hr>
</li><hr>
<li>
<li>
<span><form action = "<?php echo $config[$code_download] ?>" method = "GET" role="form">
<span><form action = "<?php echo $config[$code_download] ?>" method = "GET" role="form">
<div class="form-group has-success" style="display:none">
<div class="form-group has-success" style="display:none">
<label class="control-label" for="inputSuccess">Response Type</label>
<label class="control-label" for="inputSuccess">Response Type</label>
<input type="text" class="form-control" name = "response_type" value="code">
<input type="text" class="form-control" name = "response_type" value="code">
</div>
</div>
<div class="form-group has-success" style="display:none">
<div class="form-group has-success" style="display:none">
<label class="control-label" for="inputSuccess">Client ID</label>
<label class="control-label" for="inputSuccess">Client ID</label>
<input type="text" class="form-control" name = "client_id" value="<?php echo $config['client_id_download'] ?>">
<input type="text" class="form-control" name = "client_id" value="<?php echo $config['client_id_download'] ?>">
</div>
</div>
<div class="form-group has-success" style="display:none">
<div class="form-group has-success" style="display:none">
<label class="control-label" for="inputSuccess">Redirect Uri</label>
<label class="control-label" for="inputSuccess">Redirect Uri</label>
<input type="text" class="form-control" name = "redirect_uri" value=<?php echo $config['download_redirect_uri'] ?>>
<input type="text" class="form-control" name = "redirect_uri" value=<?php echo $config['download_redirect_uri'] ?>>
</div>
</div>
<div class="form-group has-success" style="display:none">
<div class="form-group has-success" style="display:none">
<label class="control-label" for="inputSuccess">State</label>
<label class="control-label" for="inputSuccess">State</label>
<input type="text" class="form-control" name = "state" value="123456">
<input type="text" class="form-control" name = "state" value="123456">
</div>
</div>
<button type="submit" class="btn">Download</button>
<button type="submit" class="btn">Download</button>
</form>
</form>
</span>
</span>
</li><hr>
</li><hr>
<li>
<li>
<span> <form action = "<?php echo $config[$code_download] ?>" method = "GET" role="form">
<span> <form action = "<?php echo $config[$code_download] ?>" method = "GET" role="form">
<div class="form-group has-success" style="display:none">
<div class="form-group has-success" style="display:none">
<label class="control-label" for="inputSuccess">Response Type</label>
<label class="control-label" for="inputSuccess">Response Type</label>
<input type="text" class="form-control" name = "response_type" value="code">
<input type="text" class="form-control" name = "response_type" value="code">
</div>
</div>
<div class="form-group has-success" style="display:none">
<div class="form-group has-success" style="display:none">
<label class="control-label" for="inputSuccess">Client ID</label>
<label class="control-label" for="inputSuccess">Client ID</label>
<input type="text" class="form-control" name = "client_id" value="<?php echo $config['client_id_upload'] ?>">
<input type="text" class="form-control" name = "client_id" value="<?php echo $config['client_id_upload'] ?>">
</div>
</div>
<div class="form-group has-success" style="display:none">
<div class="form-group has-success" style="display:none">
<label class="control-label" for="inputSuccess">Redirect Uri</label>
<label class="control-label" for="inputSuccess">Redirect Uri</label>
<input type="text" class="form-control" name = "redirect_uri" value="<?php echo $config['uploaddoc_redirect_uri'] ?>">
<input type="text" class="form-control" name = "redirect_uri" value="<?php echo $config['uploaddoc_redirect_uri'] ?>">
</div>
</div>
<div class="form-group has-success" style="display:none">
<div class="form-group has-success" style="display:none">
<label class="control-label" for="inputSuccess">State</label>
<label class="control-label" for="inputSuccess">State</label>
<input type="text" class="form-control" name = "state" value="123456">
<input type="text" class="form-control" name = "state" value="123456">
</div>
</div>
<button type="submit" class="btn" >Upload</button>
<button type="submit" class="btn" >Upload</button>
</form>
</form>
</span>
</span>
</li>
</li>
</ul>
</ul>
</div>
</div>
</li>
</li>
<li>
<li>
<div class="dropdown">
<div class="dropdown">
<div class="dropdown-toggle" data-toggle="dropdown">ELECTION
<div class="dropdown-toggle" data-toggle="dropdown">ELECTION
</div>
</div>
<ul class="dropdown-menu" style="margin-left: -5px;">
<ul class="dropdown-menu" style="margin-left: -5px;">
<li><a tabindex="-1" >Punjab Election Services</a></li><hr>
<li><a tabindex="-1" >Punjab Election Services</a></li><hr>
<li><a tabindex="-1" >Uttarakhand Election Services</a></li><hr>
<li><a tabindex="-1" >Uttarakhand Election Services</a></li><hr>
<li><a tabindex="-1" >Meghalaya Election Services</a></li><hr>
<li><a tabindex="-1" >Meghalaya Election Services</a></li><hr>
<li><a tabindex="-1" >Rajasthan Election Services</a></li>
<li><a tabindex="-1" >Rajasthan Election Services</a></li>
</ul>
</ul>
</div>
</div>
</li>
</li>
<li>
<li>
<div class="dropdown">
<div class="dropdown">
<div class="dropdown-toggle" data-toggle="dropdown">GOVERNMENT
<div class="dropdown-toggle" data-toggle="dropdown">GOVERNMENT
</div>
</div>
<ul class="dropdown-menu" style="margin-left: -5px;">
<ul class="dropdown-menu" style="margin-left: -5px;">
<li><a tabindex="-1" >Birth and Death Application</a></li><hr>
<li><a tabindex="-1" >Birth and Death Application</a></li><hr>
<li><a tabindex="-1" >Forest Services</a></li><hr>
<li><a tabindex="-1" >Forest Services</a></li><hr>
<li><a tabindex="-1" >Online FIR</a></li><hr>
<li><a tabindex="-1" >Online FIR</a></li><hr>
<li><a tabindex="-1" >Ration Card Services</a></li>
<li><a tabindex="-1" >Ration Card Services</a></li>
</ul>
</ul>
</div>
</div>
</li>
</li>
<li>
<li>
<div class="dropdown">
<div class="dropdown">
<div class="dropdown-toggle" data-toggle="dropdown">INSURANCE
<div class="dropdown-toggle" data-toggle="dropdown">INSURANCE
</div>
</div>
<ul class="dropdown-menu" style="margin-left: -5px;">
<ul class="dropdown-menu" style="margin-left: -5px;">
<li><a tabindex="-1" >Pradhan Mantri Fasal Bima Yojna</a></li><hr>
<li><a tabindex="-1" >Pradhan Mantri Fasal Bima Yojna</a></li><hr>
<li><a tabindex="-1" >Farmer Package Policy</a></li><hr>
<li><a tabindex="-1" >Farmer Package Policy</a></li><hr>
<li><a tabindex="-1" >Life Insurance</a></li><hr>
<li><a tabindex="-1" >Life Insurance</a></li><hr>
<li><a tabindex="-1" >Personal Accidental</a></li>
<li><a tabindex="-1" >Personal Accidental</a></li>
</ul>
</ul>
</div>
</div>
</li>
</li>
<li>
<li>
<div class="dropdown">
<div class="dropdown">
<div class="dropdown-toggle" data-toggle="dropdown">TRAVEL
<div class="dropdown-toggle" data-toggle="dropdown">TRAVEL
</div>
</div>
<ul class="dropdown-menu" style="margin-left: -5px;">
<ul class="dropdown-menu" style="margin-left: -5px;">
<li><a tabindex="-1" >Darshan Booking</a></li><hr>
<li><a tabindex="-1" >Darshan Booking</a></li><hr>
<li><a tabindex="-1" >Bus Ticket Booking</a></li><hr>
<li><a tabindex="-1" >Bus Ticket Booking</a></li><hr>
<li><a tabindex="-1" >Flight Tickets</a></li><hr>
<li><a tabindex="-1" >Flight Tickets</a></li><hr>
<li><a tabindex="-1" >Bus Tickets</a></li>
<li><a tabindex="-1" >Bus Tickets</a></li>
</ul>
</ul>
</div>
</div>
</li>
</li>
</ul>
</ul>
</div>
</div>
<!-- /.navbar-collapse -->
<!-- /.navbar-collapse -->
</div>
</div>
<!-- /.container -->
<!-- /.container -->
</nav>
</nav>
<script src="js/jquery.min.js"></script>
<script src="js/jquery.min.js"></script>
<script src="js/modernizr.js" type="text/javascript"></script>
<script src="js/modernizr.js" type="text/javascript"></script>
<script src="js/jQuery-2.1.3.min.js" type="text/javascript"></script>
<script src="js/jQuery-2.1.3.min.js" type="text/javascript"></script>
<!-- <script src="js/bootstrap.min.js" type="text/javascript"></script> --->
<!-- <script src="js/bootstrap.min.js" type="text/javascript"></script> --->
<script src="js/bootstrap-datepicker.js" type="text/javascript"></script>
<script src="js/bootstrap-datepicker.js" type="text/javascript"></script>
<script src="js/app.min.js" type="text/javascript"></script>
<script src="js/app.min.js" type="text/javascript"></script>
<script>
<script>
$(document).ready(function () {
$(document).ready(function () {
$('.dropdown-submenu a.test').on("click", function (e) {
$('.dropdown-submenu a.test').on("click", function (e) {
$(this).next('ul').toggle();
$(this).next('ul').toggle();
e.stopPropagation();
e.stopPropagation();
e.preventDefault();
e.preventDefault();
});
});
});
});
</script>
</script>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Custom CSS -->
<!-- Custom CSS -->
<link href="css/style.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<link href="css/styles.css" rel="stylesheet">
<link href="css/styles.css" rel="stylesheet">
<link href="css/font-style.css" rel="stylesheet" type="text/css">
<link href="css/font-style.css" rel="stylesheet" type="text/css">
<!-- Custom Fonts -->
<!-- Custom Fonts -->
<link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="css/stylecrt.css" rel="stylesheet" type="text/css"/>
<link href="css/stylecrt.css" rel="stylesheet" type="text/css"/>
<link href="css/datepicker.css" rel="stylesheet" type="text/css"/>
<link href="css/datepicker.css" rel="stylesheet" type="text/css"/>
<?php include 'config.php';
<?php include 'config.php';
if(isset($_GET['error_description'])){
if(isset($_GET['error_description'])){
header("Location: otp_form.php?message=".$_GET['error_description']);
header("Location: otp_form.php?message=".$_GET['error_description']);
exit;
exit;
}
}
if(isset($_GET['mob']))
if(isset($_GET['mob']))
{
{
$mobile = $_GET['mob'];
$mobile = $_GET['mob'];
$name = $_GET['name'];
$name = $_GET['name'];
$uid = $_GET['uid'];
$uid = $_GET['uid'];
$dob= $_GET['dob'];
$dob= $_GET['dob'];
$gender = $_GET['gen'];
$gender = $_GET['gen'];
$verification = 'Y';
$verification = 'Y';
}
}
?>
?>
<div class="col-lg-12">
<div class="col-lg-12">
<div class="container">
<div class="container">
<?php
<?php
$msg = "message";
$msg = "message";
if (isset($_GET[$msg])) {
if (isset($_GET[$msg])) {
$message=$_GET[$msg];
$message=$_GET[$msg];
$alert = "red";
$alert = "red";
echo "<div class='alert' id='alert' style='color:" . $alert . "'> <button type='button' class='close' data-dismiss='alert'>x</button>" . $message . "</div>";
echo "<div class='alert' id='alert' style='color:" . $alert . "'> <button type='button' class='close' data-dismiss='alert'>x</button>" . $message . "</div>";
}
}
?>
?>
</div>
</div>
</div>
</div>
<style>
<style>
.signup-box {
.signup-box {
margin-top: 50px;
margin-top: 50px;
margin-bottom: 50px;
margin-bottom: 50px;
}
}
.sign-inbox{ min-height:550px}
.sign-inbox{ min-height:550px}
.login-panel{padding-left: 80px; padding-right: 80Px; padding-bottom: 30px;}
.login-panel{padding-left: 80px; padding-right: 80Px; padding-bottom: 30px;}
@media (max-width: 576px){
@media (max-width: 576px){
.signup-box {
.signup-box {
margin-top: 10px;
margin-top: 10px;
margin-bottom: 20px;
margin-bottom: 20px;
}
}
.sign-inbox{ min-height:450px}
.sign-inbox{ min-height:450px}
.login-panel{padding-left: 0px; padding-right: 0Px; padding-bottom: 0px;}
.login-panel{padding-left: 0px; padding-right: 0Px; padding-bottom: 0px;}
}
}
#loading{display: none}
#loading{display: none}
</style>
</style>
<div class="row sign-inbox">
<div class="row sign-inbox">
<div class="col-md-12 column">
<div class="col-md-12 column">
<div class="container">
<div class="container">
<div class="col-md-12">
<div class="col-md-12">
<div class="col-md-6 col-md-offset-3 col-xs-12 signup-box ng-scope" >
<div class="col-md-6 col-md-offset-3 col-xs-12 signup-box ng-scope" >
<div class="panel panel-default">
<div class="panel panel-default">
<div class="panel-body" style="box-shadow:2px 4px 4px 4px rgba(0, 0, 0, 0.1);" align="center">
<div class="panel-body" style="box-shadow:2px 4px 4px 4px rgba(0, 0, 0, 0.1);" align="center">
<h4>Please Verify OTP for Login</h4>
<h4>Please Verify OTP for Login</h4>
<div class="panel-body login-panel">
<div class="panel-body login-panel">
<form action = "" method = "POST" role="form">
<form action = "" method = "POST" role="form">
<input type="hidden" name="" value="" />
<input type="hidden" name="" value="" />
<div class="form-group">
<div class="form-group">
<input type="text" class="form-control" placeholder="Enter OTP" name="otp" id="otp" maxlength="6" autocomplete="off" required>
<input type="text" class="form-control" placeholder="Enter OTP" name="otp" id="otp" maxlength="6" autocomplete="off" required>
</div>
</div>
<input type="submit" id="verify" name="verify" value="Verify OTP" class="btn btn-primary form-control" >
<input type="submit" id="verify" name="verify" value="Verify OTP" class="btn btn-primary form-control" >
</form>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
<?php
if(!empty($_POST))
if(!empty($_POST))
{
{
$clientid = $config['client_id_download'];
$clientid = $config['client_id_download'];
$secret = $config['client_secret_download'];
$secret = $config['client_secret_download'];
$ts = time();
$ts = time();
$otp = $_POST['otp'];
$otp = $_POST['otp'];
$hmac = hash('SHA256', $secret . $clientid . $mobile . $otp . $ts);
$hmac = hash('SHA256', $secret . $clientid . $mobile . $otp . $ts);
$url = $config['demoauthverify_url'];
$url = $config['demoauthverify_url'];
$post = array(
$post = array(
'clientid' => $clientid,
'clientid' => $clientid,
'uid' => $uid,
'uid' => $uid,
'dob' => $dob,
'dob' => $dob,
'name' => $name,
'name' => $name,
'gender' => $gender,
'gender' => $gender,
'otp' => $otp,
'otp' => $otp,
'mobile' => $mobile,
'mobile' => $mobile,
'verification' => $verification,
'verification' => $verification,
'ts' => $ts,
'ts' => $ts,
'hmac' => $hmac
'hmac' => $hmac
);
);
$vh = curl_init($url);
$vh = curl_init($url);
curl_setopt($vh, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($vh, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($vh, CURLOPT_POST, true);
curl_setopt($vh, CURLOPT_POST, true);
curl_setopt($vh, CURLOPT_TIMEOUT, 30);
curl_setopt($vh, CURLOPT_TIMEOUT, 30);
curl_setopt($vh, CURLOPT_HEADER, 1);
curl_setopt($vh, CURLOPT_HEADER, 1);
curl_setopt($vh, CURLOPT_POSTFIELDS, $post);
curl_setopt($vh, CURLOPT_POSTFIELDS, $post);
curl_setopt($vh, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($vh, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($vh, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($vh, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($vh, CURLOPT_RETURNTRANSFER, true);
curl_setopt($vh, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($vh);
$result = curl_exec($vh);
$curl_info = curl_getinfo($vh);
$curl_info = curl_getinfo($vh);
if (curl_errno($vh)) {
if (curl_errno($vh)) {
$error_status = curl_error($vh);
$error_status = curl_error($vh);
curl_close($vh);
curl_close($vh);
} else {
} else {
curl_close($vh);
curl_close($vh);
}
}
print_r($result);
print_r($result);
$header_size = $curl_info['header_size'];
$header_size = $curl_info['header_size'];
$header = substr($result, 0, $header_size);
$header = substr($result, 0, $header_size);
$body = substr($result, $header_size);
$body = substr($result, $header_size);
$header = explode("\n", $header);
$header = explode("\n", $header);
$statuscode = (int)substr($header[2], 9, 3);
$statuscode = (int)substr($header[2], 9, 3);
$rest = json_decode($body);
$rest = json_decode($body);
if($statuscode=='200')
if($statuscode=='200')
{
{
header("Location: signup.php?message=Your Account has been created. Please login through <a href='https://developers.digitallocker.gov.in' target='_blank' style='color:blue'>this </a> link ");
header("Location: signup.php?message=Your Account has been created. Please login through <a href='https://developers.digitallocker.gov.in' target='_blank' style='color:blue'>this </a> link ");
exit;
exit;
}
}
else
else
{
{
if(isset($rest->error) || !$result){
if(isset($rest->error) || !$result){
header("Location: otp_form.php?message=".$rest->error_description);
header("Location: otp_form.php?message=".$rest->error_description);
exit;
exit;
}
}
}
}
//curl_close($vh);
//curl_close($vh);
die();
die();
}
}
//include 'footer.php' ?>
//include 'footer.php' ?>
<script>
<script>
<?php
<?php
if(isset($_GET['message'])){
if(isset($_GET['message'])){
echo 'setTimeout(function () {
echo 'setTimeout(function () {
window.location.href = "otp_form.php";
//window.location.href = "otp_form.php";
}, 3000);
}, 3000);
';
';
}
}
?>
?>
</script>
</script>
<script src="js/jquery.min.js"></script>
<script src="js/jquery.min.js"></script>
<script src="js/modernizr.js" type="text/javascript"></script>
<script src="js/modernizr.js" type="text/javascript"></script>
<script src="js/jQuery-2.1.3.min.js" type="text/javascript"></script>
<script src="js/jQuery-2.1.3.min.js" type="text/javascript"></script>
<!-- <script src="js/bootstrap.min.js" type="text/javascript"></script> --->
<!-- <script src="js/bootstrap.min.js" type="text/javascript"></script> --->
<script src="js/bootstrap-datepicker.js" type="text/javascript"></script>
<script src="js/bootstrap-datepicker.js" type="text/javascript"></script>
<script src="js/app.min.js" type="text/javascript"></script>
<script src="js/app.min.js" type="text/javascript"></script>
</body>
</body>
</html>
</html>
<?php include 'header.php'; ?>
<?php include 'header.php'; ?>
<div class="col-lg-12">
<div class="col-lg-12">
<div class="container">
<div class="container">
<?php
<?php
$msg = "message";
$msg = "message";
if (isset($_GET[$msg])) {
if (isset($_GET[$msg])) {
$message = $_GET[$msg];
$message = $_GET[$msg];
$alert = "red";
$alert = "red";
echo "<div class='alert' id='alert' style='color:" . $alert . "'> <button type='button' class='close' data-dismiss='alert'>x</button>" . $message . "</div>";
echo "<div class='alert' id='alert' style='color:" . $alert . "'> <button type='button' class='close' data-dismiss='alert'>x</button>" . $message . "</div>";
}
}
?>
?>
</div>
</div>
</div>
</div>
<link href="css/stylecrt.css" rel="stylesheet" type="text/css"/>
<link href="css/stylecrt.css" rel="stylesheet" type="text/css"/>
<section class="padding-top-bottom-50 bg-light-grey-2">
<section class="padding-top-bottom-50 bg-light-grey-2">
<div class="container-fluid">
<div class="container-fluid">
<div class="row">
<div class="row">
<div class="wizard col-md-12" >
<div class="wizard col-md-12" >
<div class="col-sm-12 col-sm-offset-3 col-md-10 col-md-offset-2 main">
<div class="col-sm-12 col-sm-offset-3 col-md-10 col-md-offset-2 main">
<form action = "signupcurl.php" method = "POST" role="form">
<form action = "signupcurl.php" method = "POST" role="form">
<div class="panel-group box-shadow-dark">
<div class="panel-group box-shadow-dark">
<div class="panel panel-warning no-padding-bottom" style="margin-left: 10%;width: 60%;">
<div class="panel panel-warning no-padding-bottom" style="margin-left: 10%;width: 60%;">
<div class="panel-heading">
<div class="panel-heading">
<h4 class="panel-title">Open DigiLocker Account</h4>
<h4 class="panel-title">Open DigiLocker Account</h4>
</div>
</div>
<div class="panel-collapse">
<div class="panel-collapse">
<div class="panel-body">
<div class="panel-body">
<div class="row">
<div class="row">
<div class="form-group col-md-6">
<div class="form-group col-md-6">
<label>Name</label>
<label>Name</label>
<input type="text" class="form-control" name="name" id="name" value="" placeholder="Enter Name As Per Aadhaar *" required>
<input type="text" class="form-control" name="name" id="name" value="" autocomplete="off" placeholder="Enter Name As Per Aadhaar *" required>
</div>
</div>
<div class="form-group col-md-6">
<div class="form-group col-md-6">
<label><i class="fa fa-calendar"></i> Date Of Birth</label>
<label><i class="fa fa-calendar"></i> Date Of Birth</label>
<input type="text" class="form-control datetime" id="dob" name="dob" value="" placeholder="Enter Date Of Birth *">
<input type="text" class="form-control datetime" id="dob" name="dob" value="" autocomplete="off" placeholder="Enter Date Of Birth *">
</div>
</div>
<div class="form-group col-md-6">
<div class="form-group col-md-6">
<label>Gender</label>
<label>Gender</label>
<select style="width:280px; color: #999;" class="form-control" name="gender" id="gender" required>
<select style="color: #999;" class="form-control" name="gender" id="gender" required>
<option value="">Select Gender *</option>
<option value="">Select Gender *</option>
<option value="M">Male</option>
<option value="M">Male</option>
<option value="F">Female</option>
<option value="F">Female</option>
</select>
</select>
</div>
</div>
<div class="form-group col-md-6">
<label>Verification</label>
<select style="color: #999;" class="form-control" name="vefification" id="vefification" required>
<option value="" selected>Please Select *</option>
<option value="Y">Yes</option>
<option value="N">No</option>
</select>
</div>
<div class="form-group col-md-6">
<div class="form-group col-md-6">
<label>Mobile</label>
<label>Mobile</label>
<input type="text" class="form-control" name="mobile" id="mobile" value="" maxlength="10" placeholder="Enter mobile number *" required>
<input type="text" class="form-control" name="mobile" id="mobile" value="" autocomplete="off" maxlength="10" placeholder="Enter mobile number *" required>
</div>
</div>
<div class="form-group col-md-6">
<div class="form-group col-md-6">
<label>Aadhaar</label>
<label>Aadhaar</label>
<input type="text" class="form-control" name="uid" id="uid" value="" maxlength="12" placeholder="Enter Aadhaar Number *" required>
<input type="text" class="form-control" name="uid" id="uid" value="" autocomplete="off" maxlength="12" placeholder="Enter Aadhaar Number *" required>
</div>
</div>
<div class="panel-footer">
<div class="panel-footer">
<div class="text-center">
<div class="text-center">
<input type="submit" class="btn btn-primary" name="submit" style=" border-radius:5px; margin-top:30px;" value="Submit" />
<input type="submit" class="btn btn-primary" name="submit" style=" border-radius:5px; margin-top:30px;" value="Submit" />
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="clearfix"></div>
<div class="clearfix"></div>
</form>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</section>
<?php include 'footer.php' ?>
<?php include 'footer.php' ?>
<script>
<script>
$(".datetime").datepicker({
$(".datetime").datepicker({
format: 'dd/mm/yyyy',
format: 'dd/mm/yyyy',
todayHighlight: true,
todayHighlight: true,
endDate: "today"
endDate: "today"
});
});
</script>
</script>
<script>
<script>
<?php
<?php
if (isset($_GET['message'])) {
if (isset($_GET['message'])) {
echo 'setTimeout(function () {
echo 'setTimeout(function () {
window.location.href = "signup.php";
window.location.href = "signup.php";
}, 5000);
}, 5000);
';
';
}
}
?>
?>
</script>
</script>
<?php
<?php
include 'config.php';
include 'config.php';
if(isset($_GET['error_description'])){
if(isset($_GET['error_description'])){
header("Location: signup.php?message=".$_GET['error_description']);
header("Location: signup.php?message=".$_GET['error_description']);
exit;
exit;
}
}
$uid = $_POST['uid'];
$uid = $_POST['uid'];
$name = $_POST['name'];
$name = $_POST['name'];
$dob = str_replace('/','',$_POST['dob']);
$dob = str_replace('/','',$_POST['dob']);
$gender = $_POST['gender'];
$gender = $_POST['gender'];
$mobile = $_POST['mobile'];
$mobile = $_POST['mobile'];
$verification = 'Y';
$verification = $_POST['vefification'];
$consent = 'Y';
$consent = 'Y';
$clientid = $config['client_id_download'];
$clientid = $config['client_id_download'];
$secret = $config['client_secret_download'];
$secret = $config['client_secret_download'];
$ts=time();
$ts=time();
$hmac = hash('SHA256',$secret.$clientid.$uid.$consent.$ts);
$hmac = hash('SHA256',$secret.$clientid.$uid.$consent.$ts);
$url = $config['demoauth_url'];
$url = $config['demoauth_url'];
$post = array(
$post = array(
'clientid' => $clientid,
'clientid' => $clientid,
'uid' => $uid,
'uid' => $uid,
'name' => $name,
'name' => $name,
'dob' => $dob,
'dob' => $dob,
'gender' => $gender,
'gender' => $gender,
'mobile' => $mobile,
'mobile' => $mobile,
'verification' => $verification,
'verification' => $verification,
'consent' => $consent,
'consent' => $consent,
'ts' => $ts,
'ts' => $ts,
'hmac' => $hmac
'hmac' => $hmac
);
);
$vh = curl_init($url);
$vh = curl_init($url);
curl_setopt($vh, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($vh, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($vh, CURLOPT_POST, true);
curl_setopt($vh, CURLOPT_POST, true);
curl_setopt($vh, CURLOPT_TIMEOUT, 30);
curl_setopt($vh, CURLOPT_TIMEOUT, 30);
curl_setopt($vh, CURLOPT_HEADER, 1);
curl_setopt($vh, CURLOPT_POSTFIELDS, $post);
curl_setopt($vh, CURLOPT_POSTFIELDS, $post);
curl_setopt($vh, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($vh, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($vh, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($vh, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($vh, CURLOPT_RETURNTRANSFER, true);
curl_setopt($vh, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($vh);
$result = curl_exec($vh);
curl_close($vh);
$curl_info = curl_getinfo($vh);
$rst = json_decode($result);
if (curl_errno($vh)) {
$error_status = curl_error($vh);
curl_close($vh);
} else {
curl_close($vh);
}
print_r($result);
$header_size = $curl_info['header_size'];
$header = substr($result, 0, $header_size);
$body = substr($result, $header_size);
$header = explode("\n", $header);
$statuscode = (int)substr($header[2], 9, 3);
$rst = json_decode($body);
if($statuscode=='200' && $verification=='N')
{
header("Location: signup.php?message=Your Account has been created. Please login through <a href='https://developers.digitallocker.gov.in' target='_blank' style='color:blue'>this </a> link ");
exit;
}
//$rst = json_decode($result);
if(isset($rst->error) || !$result){
if(isset($rst->error) || !$result){
header("Location: signup.php?message=".$rst->error_description);
header("Location: signup.php?message=".$rst->error_description);
exit;
exit;
}
}
if(!empty($rst->mobile))
if(!empty($rst->mobile))
{
{
$path = $config['baseUrl'];
$path = $config['baseUrl'];
header('Location: '.$path.'otp_form.php?uid='.$uid.'&name='.$name.'&dob='.$dob.'&gen='.$gender.'&mob='.$mobile);
header('Location: '.$path.'otp_form.php?uid='.$uid.'&name='.$name.'&dob='.$dob.'&gen='.$gender.'&mob='.$mobile);
}
}
?>
?>