authpartner
Clone or download
Modified Files
<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($_SESSION['mob'])) {
$mobile = $_SESSION['mob'];
$name = $_SESSION['name'];
$uid = $_SESSION['uid'];
$dob = $_SESSION['dob'];
$gender = $_SESSION['gen'];
$verification = $_SESSION['verification'];
} else {
if(isset($_GET['error_description'])){
$_SESSION['message'] = "Please fill your form";
header("Location: otp_form.php?message=".$_GET['error_description']);
header("Location: signup.php");
exit;
exit;
}
if(isset($_GET['mob']))
{
$mobile = $_GET['mob'];
$name = $_GET['name'];
$uid = $_GET['uid'];
$dob= $_GET['dob'];
$gender = $_GET['gen'];
$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])) {
isset($_SESSION[$msg]) ? $message = $_SESSION[$msg] : $message = "";
$message=$_GET[$msg];
if (!empty($message)) {
$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>";
unset($_SESSION[$msg]);
}
}
?>
?>
</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);
$rest = json_decode($body);
$statuscode = (int)substr($header[2], 9, 3);
if ($statuscode == '200') {
$rest = json_decode($body);
$_SESSION['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");
if($statuscode=='200')
exit;
{
} else {
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 ");
if (isset($rest->error) || !$result) {
exit;
$_SESSION['message'] = $rest->error_description;
}
header("Location: otp_form.php");
else
exit;
{
}
if(isset($rest->error) || !$result){
}
header("Location: otp_form.php?message=".$rest->error_description);
exit;
}
}
}
}
?>
?>
<script>
<?php
if(isset($_GET['message'])){
echo 'setTimeout(function () {
window.location.href = "otp_form.php";
}, 3000);
';
}
?>
</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])) {
isset($_SESSION[$msg])?$message = $_SESSION[$msg]:$message="";
$message = $_GET[$msg];
if (!empty($message)) {
$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>";
}
}
session_destroy();
?>
?>
</div>
</div>
</div>
</div>
<style>
<style>
.datepicker {
.datepicker {
background-color: #fff !important;
background-color: #fff !important;
}
}
</style>
</style>
<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="" autocomplete="off" 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="" autocomplete="off" 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>Mobile</label>
<label>Mobile</label>
<input type="text" class="form-control" name="mobile" id="mobile" value="" autocomplete="off" 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="" autocomplete="off" 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="form-group col-md-6">
<div class="form-group col-md-6">
<label>Gender</label>
<label>Gender</label>
<select style="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="" selected>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">
<div class="form-group col-md-6">
<label>Verify Mobile?</label>
<label>Verify Mobile?</label>
<select style="color: #999;" class="form-control" name="vefification" id="vefification" required>
<select style="color: #999;" class="form-control" name="vefification" id="vefification" required>
<option value="" selected>Please Select *</option>
<option value="" selected>Please Select *</option>
<option value="Y">Yes</option>
<option value="Y">Yes</option>
<option value="N">No</option>
<option value="N">No</option>
</select>
</select>
</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>
<?php
//if (isset($_GET['message'])) {
//echo 'setTimeout(function () {
// window.location.href = "signup.php";
// }, 5000);
// ';
//}
?>
</script>-->
<?php
<?php
include 'config.php';
include 'config.php';
if(isset($_GET['error_description'])){
header("Location: signup.php?message=".$_GET['error_description']);
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 = $_POST['vefification'];
$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_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);
$rst = json_decode($body);
$rst = json_decode($body);
if($statuscode=='200' && $verification=='N')
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 ");
$_SESSION['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");
exit;
exit;
}
}
//$rst = json_decode($result);
if(isset($rst->error) || !$result){
if(isset($rst->error) || !$result){
header("Location: signup.php?message=".$rst->error_description);
$_SESSION['message'] = $rst->error_description;
header("Location: signup.php");
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);
$_SESSION['name'] = $name;
$_SESSION['uid'] = $uid;
$_SESSION['dob'] = $dob;
$_SESSION['gen'] = $gender;
$_SESSION['mob'] = $mobile;
$_SESSION['verification'] = $verification;
header('Location: '.$path.'otp_form.php');
}
}
?>
?>