authpartner
Clone or download
Modified Files
Binary files 'a/Downloads/+.png' and /dev/null differ
Binary files 'a/Downloads/02,2002scscc.pdf' and /dev/null differ
Binary files 'a/Downloads/37468de99e644694987e627a474ceeb0_8_1920.jpeg' and /dev/null differ
Binary files 'a/Downloads/44008552Singh.pdf' and /dev/null differ
Binary files 'a/Downloads/AddressProof(1).jpeg' and /dev/null differ
Binary files 'a/Downloads/Apply-for-PAN-card(2).jpg' and /dev/null differ
Binary files 'a/Downloads/BJAZ_POLICY_COPY_OG-17-2047-1801-00007746(1).pdf' and /dev/null differ
Binary files 'a/Downloads/BJAZ_POLICY_COPY_OG-17-2047-1801-00007746.pdf' and /dev/null differ
Binary files 'a/Downloads/DSC_0704.JPG' and /dev/null differ
--- 'a/Downloads/Documents'
+++ /dev/null
@@ -1 +0,0 @@
-{"error":"uri_missing","error_description":"URI parameter missing"}
\ No newline at end of file
Binary files 'a/Downloads/IMG_2063.JPG' and /dev/null differ
Binary files 'a/Downloads/IMG_6371.JPG' and /dev/null differ
Binary files 'a/Downloads/My Certificateswild.jpeg' and /dev/null differ
Binary files 'a/Downloads/avatar04.png' and /dev/null differ
Binary files 'a/Downloads/chk(4).pdf' and /dev/null differ
Binary files 'a/Downloads/chk.pdf' and /dev/null differ
Binary files 'a/Downloads/cloud-banner.pdf' and /dev/null differ
Binary files 'a/Downloads/curkthr.pdf' and /dev/null differ
Binary files 'a/Downloads/demo(2).pdf' and /dev/null differ
Binary files 'a/Downloads/digi.png' and /dev/null differ
Binary files 'a/Downloads/favicon-touch(1).png' and /dev/null differ
Binary files 'a/Downloads/favicon-touch.png' and /dev/null differ
Binary files 'a/Downloads/hocl.pdf' and /dev/null differ
Binary files 'a/Downloads/nature - Copy.jpg' and /dev/null differ
Binary files 'a/Downloads/pic1.jpg' and /dev/null differ
Binary files 'a/Downloads/salnewajito.pdf' and /dev/null differ
Binary files 'a/Downloads/sol-api-response.PNG' and /dev/null differ
--- 'a/Downloads/testfolder'
+++ /dev/null
@@ -1 +0,0 @@
-{"error":"uri_missing","error_description":"URI parameter missing"}
\ No newline at end of file
Binary files 'a/Downloads/testimage1 (2).jpg' and /dev/null differ
--- 'a/Downloads/vipul mediclaim.pdf'
+++ /dev/null
@@ -1 +0,0 @@
-https://developers.digitallocker.gov.in/public/oauth2/1/file/in.gov.digilocker-OTHER-b70df8d6287f5551b4413d8b43780408
\ No newline at end of file
Binary files 'a/Downloads/wild.jpeg' and /dev/null differ
Binary files 'a/Downloads/wild.jpg' and /dev/null differ
--- 'a/doc - Copy.php'
+++ /dev/null
@@ -1,253 +0,0 @@
-<?php
-include 'header.php';
-$code = $_GET['code'];
-$state = $_GET['state'];
-$url = "https://developers.digitallocker.gov.in/public/oauth2/1/token";
-$post = array(
- 'code' => $code,
- 'grant_type' => 'authorization_code',
- 'client_id' => 'NIELN3M9',
- 'client_secret' => 'DQ3pWgCtB0I3EhSrtTXU',
- 'redirect_uri' => 'http://localhost/digibank/doc.php',
-);
-$vh = curl_init($url);
-curl_setopt($vh, CURLOPT_CUSTOMREQUEST, "POST");
-curl_setopt($vh, CURLOPT_POST, true);
-curl_setopt($vh, CURLOPT_TIMEOUT, 30); //timeout after 30 seconds
-curl_setopt($vh, CURLOPT_POSTFIELDS, $post);
-//curl_setopt($vh, CURLOPT_HTTPHEADER, $headers);
-curl_setopt($vh, CURLOPT_SSL_VERIFYPEER, 0);
-curl_setopt($vh, CURLOPT_SSL_VERIFYHOST, 0);
-curl_setopt($vh, CURLOPT_RETURNTRANSFER, true);
-$result = curl_exec($vh);
-curl_close($vh);
-$notgettingdata = explode('¿', $result);
-$getToken = json_decode($notgettingdata[1]);
-$access_token = $getToken->access_token;
-
-
-
-
-$headers = array(
- 'Authorization: Bearer ' . $access_token
- //'Authorization: Basic '. base64_encode("$username:$password")
-);
-$urlFile = 'https://developers.digitallocker.gov.in/public/oauth2/1/files/';
-$vhf = curl_init($urlFile);
-curl_setopt($vhf, CURLOPT_TIMEOUT, 30); //timeout after 30 seconds
-curl_setopt($vhf, CURLOPT_HTTPHEADER, $headers);
-curl_setopt($vhf, CURLOPT_SSL_VERIFYPEER, 0);
-curl_setopt($vhf, CURLOPT_SSL_VERIFYHOST, 0);
-curl_setopt($vhf, CURLOPT_RETURNTRANSFER, true);
-$resFile = curl_exec($vhf);
-curl_close($vhf);
-$resFileNew = explode('¿', $resFile);
-$dataF = json_decode($resFileNew[1], TRUE);
-
-
-$headers = array(
- 'Authorization: Bearer ' . $access_token
- //'Authorization: Basic '. base64_encode("$username:$password")
-);
-$urlissued = 'https://developers.digitallocker.gov.in/public/oauth2/1/files/issued';
-$vhi = curl_init($urlissued);
-curl_setopt($vhi, CURLOPT_TIMEOUT, 30); //timeout after 30 seconds
-curl_setopt($vhi, CURLOPT_HTTPHEADER, $headers);
-curl_setopt($vhi, CURLOPT_SSL_VERIFYPEER, 0);
-curl_setopt($vhi, CURLOPT_SSL_VERIFYHOST, 0);
-curl_setopt($vhi, CURLOPT_RETURNTRANSFER, true);
-$resissued = curl_exec($vhi);
-$resissuedErr = curl_error($vhi);
-curl_close($vhi);
-$issuedNew = explode('¿', $resissued);
-$dataI = json_decode($issuedNew[1], TRUE);
-?>
-
-<div id="wrapper">
- <div id="page-wrapper">
- <div class="container-fluid">
- <!-- Page Heading -->
- <div class="row">
- <div class="col-lg-12">
- <div class="container">
- <ul class="nav nav-tabs">
- <li class="active"><a data-toggle="tab" href="#uploadeddocument">Uploaded Document</a></li>
- <li><a data-toggle="tab" href="#issueddocument">Issued Document</a></li>
- </ul>
- <div class="tab-content">
- <div id="uploadeddocument" class="tab-pane fade in active">
- <section class="content">
- <div class="row">
- <div class="col-md-12">
- <div class="box box-primary">
- <div class="box box-body col-sm-12">
- <div class="table-responsive">
- <table class="table">
- <tbody>
- <tr>
- <th>Name</th>
- <th>Size</th>
- <th>Date</th>
- <th>Action</th>
- </tr>
- <div onclick="uriData(<?php echo $dataF['items'][0]['parent']; ?>)" >HOME</div>
- <div id="parent"></div>
- <?php
- foreach ($dataF['items'] as $api_detail) {
- if (isset($api_detail['id'])) {
- $api_detail['id'] = $api_detail['id'];
- $api_detail['parent'] = $api_detail['parent'];
- } else {
- $api_detail['id'] = "";
- }
- ?>
- <tr>
- <?php /**
- <a href="/digibank/uri.php?access_tocken=<?php echo $access_token; ?>&uri=<?php echo($api_detail['uri']); ?>&id=<?php echo($api_detail['id']); ?>"></a>
- * * */ ?>
- <td onclick="uriData(<?php echo $api_detail['id'] . ',' . $api_detail['parent']; ?>)" id="<?php echo $api_detail['id']; ?>">
- <?php
- if ($api_detail['type'] == "dir") {
- echo "<i class='fa fa-folder-o'></i> ";
- echo($api_detail['name']);
- } elseif ($api_detail['type'] == "file") {
- echo "<i class='fa fa-file-o'></i> ";
- echo($api_detail['name']);
- }
- ?>
-
-
- <div class="row">
- <div class="col-md-10 col-md-offset1 dataTable1" style="display:none;">
- <table class="table table-responsive table-striped" >
- <thead>
-
- </thead>
-
- <tbody class="dataTable" id="div_<?php echo $api_detail['id']; ?>">
-
- </tbody>
- </table>
- </div>
- </div>
- </td>
- <td><?php echo($api_detail['size']); ?></td>
- <td><?php echo($api_detail['date']); ?></td>
- <?php if ($api_detail['type'] == "file") { ?>
- <td>
- <a href="download.php?accessToken=<?php echo $access_token; ?>&uri=<?php echo $api_detail['uri']; ?>&fileName=<?php echo $api_detail['name']; ?>" > <i class="fa fa-download"> </i></a>
- </td>
-
- <?php }
- ?>
- </tr>
- <?php }
- ?>
-
- </tbody>
- </table>
- <div class="footer">
- <a class="btn btn-default" style="float: right;" href="payment.php">Done</a>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </section>
- </div>
- <div id="issueddocument" class="tab-pane fade in active">
- <section class="content">
- <div class="row">
- <div class="col-md-12">
- <div class="box box-primary">
- <div class="box box-body col-sm-12">
- <div class="table-responsive">
- <table class="table">
- <tr>
- <th>Name</th>
- <th>Size</th>
- <th>Date</th>
- </tr>
- <?php
- foreach ($dataI['items'] as $issued_detail):
- ?>
- <tr><td>
- <?php
- echo "<i class='fa fa-file-o'></i> ";
- echo($issued_detail['name']);
- ?>
- </td>
- <td><?php echo($issued_detail['size']); ?></td>
- <td><?php echo($issued_detail['date']); ?></td>
- <td><?php if ($api_detail['type'] == "file") { ?>
- <td>
- <a href="download.php?accessToken=<?php echo $access_token; ?>&uri=<?php echo $issued_detail['uri']; ?>&fileName=<?php echo $issued_details['name']; ?>" > <i class="fa fa-download"> </i></a>
- </td>
- <?php } ?>
- </tr>
- <?php
- endforeach;
- ?>
- </table>
- <div class="footer">
- <a href="payment.php"><input type="button" class="btn btn-primary" value="Done" /></a>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </section>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- /.container-fluid -->
- </div>
-</div>
-</body>
-<?php include 'footer.php' ?>
-<script>
- function uriData(id, parent) {
-
- alert(id);
- alert(parent);
- $(".dataTable").empty();
- var id = id;
- var accessTocken = "<?php echo $access_token; ?>";
- var uri = "<?php echo $api_detail['uri']; ?>";
- var uriDataHtml = "";
- var fileOrFolder = "";
- var accessToken = "<?php echo $access_token; ?>";
- if (id != null) {
- $.post("http://localhost/digibank/uri.php", {access_token: accessTocken, id: id}, function (result) {
- $(".dataTable1").show();
- $.each(result.items, function (i, l) {
-
- if (result.items[i].type == "file") {
- console.log(result.items);
- fileOrFolder = "<i class='fa fa-file-o'></i> ";
- } else {
- fileOrFolder = "<i class='fa fa-folder-o'></i> ";
- }
- uriDataHtml += "<tr><th>" + fileOrFolder + result.items[i].name + "</th><th>" + result.items[i].type + "</th><th>" + result.items[i].date + "</th>\n\
- <th>" + result.items[i].uri + "</th><th>\n\
-<a href='download.php?accessToken=" + accessToken + "&uri=" + result.items[i].uri + "&fileName=" + result.items[i].name + "' > <i class='fa fa-download'> </i></a><th></tr>";
- $("#div_" + id).html(uriDataHtml);
- $("#parent").html("<td onclick=uriData(" + id + ")>" + result.directory + "</td>")
- });
- }, "json")
- .fail(function () {
- $(".dataTable1").hide();
-
- });
- } else {
- alert('This is not a folder');
- }
- }
-
-</script>
-</html>
\ No newline at end of file
--- 'a/doc.php'
+++ b/doc.php
@@ -2,30 +2,64 @@
include 'header.php';
$code = $_GET['code'];
$state = $_GET['state'];
-$url = "https://developers.digitallocker.gov.in/public/oauth2/1/token";
-$post = array(
- 'code' => $code,
- 'grant_type' => 'authorization_code',
- 'client_id' => 'NIELN3M9',
- 'client_secret' => 'DQ3pWgCtB0I3EhSrtTXU',
- 'redirect_uri' => 'http://localhost/digibank/doc.php',
-);
-
-$vh = curl_init($url);
-curl_setopt($vh, CURLOPT_CUSTOMREQUEST, "POST");
-curl_setopt($vh, CURLOPT_POST, true);
-curl_setopt($vh, CURLOPT_TIMEOUT, 30); //timeout after 30 seconds
-curl_setopt($vh, CURLOPT_POSTFIELDS, $post);
-//curl_setopt($vh, CURLOPT_HTTPHEADER, $headers);
-curl_setopt($vh, CURLOPT_SSL_VERIFYPEER, 0);
-curl_setopt($vh, CURLOPT_SSL_VERIFYHOST, 0);
-curl_setopt($vh, CURLOPT_RETURNTRANSFER, true);
-$result = curl_exec($vh);
-curl_close($vh);
-$notgettingdata = explode('¿', $result);
-$getToken = json_decode($notgettingdata[1]);
-$access_token = $getToken->access_token;
+if (file_exists("xml/hashKey.xml")) {
+ $xml = (array) simplexml_load_file("xml/hashKey.xml") or die("Error: Cannot create object");
+} else {
+ echo "xml/hashKey.xml file doesnot exists";
+}
+$access_token = $xml['access_token'];
+$cd = (array) $xml['code']['num'];
+if ($cd != $code) {
+ $url = "https://developers.digitallocker.gov.in/public/oauth2/1/token";
+ $post = array(
+ 'code' => $code,
+ 'grant_type' => 'authorization_code',
+ 'client_id' => 'NIELN3M9',
+ 'client_secret' => 'DQ3pWgCtB0I3EhSrtTXU',
+ 'redirect_uri' => 'http://localhost/digibank/doc.php',
+ );
+ $vh = curl_init($url);
+ curl_setopt($vh, CURLOPT_CUSTOMREQUEST, "POST");
+ curl_setopt($vh, CURLOPT_POST, true);
+ curl_setopt($vh, CURLOPT_TIMEOUT, 30); //timeout after 30 seconds
+ curl_setopt($vh, CURLOPT_POSTFIELDS, $post);
+ //curl_setopt($vh, CURLOPT_HTTPHEADER, $headers);
+ curl_setopt($vh, CURLOPT_SSL_VERIFYPEER, 0);
+ curl_setopt($vh, CURLOPT_SSL_VERIFYHOST, 0);
+ curl_setopt($vh, CURLOPT_RETURNTRANSFER, true);
+ $result = curl_exec($vh);
+ curl_close($vh);
+ $notgettingdata = explode('¿', $result);
+ $getToken = json_decode($notgettingdata[1]);
+ if (isset($getToken->access_token)) {
+ $access_token = $getToken->access_token;
+ }
+ if (isset($access_token)) {
+ $doc = new DOMDocument('1.0');
+ $doc->formatOutput = true;
+ $doc = new DOMDocument('1.0');
+ $doc->formatOutput = true;
+ $root = $doc->createElement('maincontent');
+ $root = $doc->appendChild($root);
+ $title = $doc->createElement('code');
+ $title = $root->appendChild($title);
+ $enclosure = $doc->createAttribute('num');
+ $enclosure->value = $code;
+ $title->appendChild($enclosure);
+ $title = $doc->createElement('access_token');
+ $title = $root->appendChild($title);
+ $text = $doc->createTextNode($access_token);
+ $text = $title->appendChild($text);
+ $doc->save("xml/hashKey.xml");
+ }
+ if (file_exists("xml/hashKey.xml")) {
+ $xml = (array) simplexml_load_file("xml/hashKey.xml") or die("Error: Cannot create object");
+ } else {
+ echo "xml/hashKey.xml file doesnot exists";
+ }
+ $access_token = $xml['access_token'];
+}
$headers = array(
'Authorization: Bearer ' . $access_token
@@ -105,22 +139,26 @@ $dataI = json_decode($issuedNew[1], TRUE
?>
<tr>
<?php
- if (isset($api_detail['type']) == "dir") {
+ if (($api_detail['type']) == "dir") {
echo '<td onclick="uriData(' . $api_detail['id'] . ',' . $api_detail['parent'] . ')">';
- echo "<i class='fa fa-folder-o'></i> ";
+ echo '<img src="images/folder.svg"></img>';
echo($api_detail['name']);
- } elseif ($api_detail['type'] == "file") {
+ }
+
+ if ($api_detail['type'] == "file") {
echo "<td onclick='thisIsNotAFolder()'>";
- echo "<i class='fa fa-file-o'></i> ";
+ echo '<img src="images/file.svg"></img>';
echo($api_detail['name']);
}
echo "</td>";
?>
<td><?php echo($api_detail['size']); ?></td>
<td><?php echo($api_detail['date']); ?></td>
+
<?php if ($api_detail['type'] == "file") { ?>
<td>
- <a href="download.php?accessToken=<?php echo $access_token; ?>&uri=<?php echo $api_detail['uri']; ?>&fileName=<?php echo $api_detail['name']; ?>" > <i class="fa fa-download"> </i></a>
+ <button onclick="download('<?php echo($api_detail['uri'].','.$api_detail['name']); ?>')"><i class="fa fa-download"> </i></button>
+
</td>
<?php }
?>
@@ -130,7 +168,8 @@ $dataI = json_decode($issuedNew[1], TRUE
</tbody>
</table>
<div class="footer">
- <a class="btn btn-default" style="float: right;" href="payment.php">Done</a>
+ <a class="btn btn-default" style="float: right; margin-left: 10px" href="payment.php">Complete Payment</a>
+ <a class="btn btn-default" style="float: right;" href="index.php">Cancel</a>
</div>
</div>
</div>
@@ -165,7 +204,7 @@ $dataI = json_decode($issuedNew[1], TRUE
<td><?php echo($issued_detail['date']); ?></td>
<td><?php if ($api_detail['type'] == "file") { ?>
<td>
- <a href="download.php?accessToken=<?php echo $access_token; ?>&uri=<?php echo $issued_detail['uri']; ?>&fileName=<?php echo $issued_detail['name']; ?>" > <i class="fa fa-download"> </i></a>
+ <button onclick="download('<?php echo($issued_detail['uri'].','.$issued_detail['name']); ?>')"><i class="fa fa-download"> </i></button>
</td>
<?php } ?>
</tr>
@@ -174,7 +213,8 @@ $dataI = json_decode($issuedNew[1], TRUE
?>
</table>
<div class="footer">
- <a href="payment.php"><input type="button" class="btn btn-primary" value="Done" /></a>
+ <a class="btn btn-default" style="float: right; margin-left: 10px" href="payment.php">Complete Payment</a>
+ <a class="btn btn-default" style="float: right;" href="index.php">Cancel</a>
</div>
</div>
</div>
@@ -207,14 +247,14 @@ $dataI = json_decode($issuedNew[1], TRUE
$.each(result.items, function (i, l) {
if (result.items[i].type == "file") {
console.log(result.items);
- fileOrFolder = "<i class='fa fa-file-o'></i> ";
+ fileOrFolder = '<img src="images/file.svg"></img>';
onclickFnc = "onclick='thisIsNotAFolder()'";
} else {
- fileOrFolder = "<i class='fa fa-folder-o'></i> ";
+ fileOrFolder = '<img src="images/folder.svg"></img>';
onclickFnc = "onclick='uriData(" + result.items[i].id + "," + result.items[i].parent + ")'";
}
- uriDataHtml += "<tr><th " + onclickFnc + ">" + fileOrFolder + result.items[i].name + "</th><th>" + result.items[i].size + "</th><th>" + result.items[i].date + "</th>\n\
- <th>" + result.items[i].uri + "</th><th>\n\
+ uriDataHtml += "<tr><td " + onclickFnc + ">" + fileOrFolder + result.items[i].name + "</td><td>" + result.items[i].size + "</td><td>" + result.items[i].date + "</td>\n\
+ <td>" + result.items[i].uri + "</td><td>\n\
<a href='download.php?accessToken=" + accessToken + "&uri=" + result.items[i].uri + "&fileName=" + result.items[i].name + "' > <i class='fa fa-download'> </i></a><th></tr>";
$("#folderPath").html(uriDataHtml);
});
@@ -226,5 +266,33 @@ $dataI = json_decode($issuedNew[1], TRUE
});
}
+ function download(uris,filename){
+ // alert(uris);
+ var getdata = uris.split(",");
+
+ var uri = getdata[0];
+ var filename = getdata[1];
+
+ var accessTocken = "<?php echo $access_token; ?>";
+ //alert(accessTocken);
+ var arraydata = {uri:uri,accesstoken:accessTocken,filename:filename}
+
+ $.ajax({
+ url:'/digibank/download.php' ,
+ type: 'POST' ,
+
+ data: arraydata
+
+ }).done(function (response)
+ {
+
+ var getdata = JSON.parse(response);
+ console.log(getdata[1]);
+ window.open("data:"+getdata[0]+";base64,"+getdata[1],'','height=650,width=840'); //var myObj = JSON.parse(response);
+
+
+ });
+ }
+
</script>
</html>
\ No newline at end of file
--- 'a/download.php'
+++ b/download.php
@@ -1,10 +1,10 @@
<?php
$headers = array(
- 'Authorization: Bearer ' . $_GET['accessToken']
+ 'Authorization: Bearer ' . $_POST['accesstoken']
//'Authorization: Basic '. base64_encode("$username:$password")
);
-$uriFile = 'https://developers.digitallocker.gov.in/public/oauth2/1/file/' . $_GET['uri'];
+$uriFile = 'https://developers.digitallocker.gov.in/public/oauth2/1/file/' . $_POST['uri'];
$uri = curl_init($uriFile);
curl_setopt($uri, CURLOPT_TIMEOUT, 30); //timeout after 30 seconds
curl_setopt($uri, CURLOPT_HTTPHEADER, $headers);
@@ -12,9 +12,11 @@ curl_setopt($uri, CURLOPT_SSL_VERIFYPEER
curl_setopt($uri, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($uri, CURLOPT_RETURNTRANSFER, true);
$urFile = curl_exec($uri);
-curl_close($uri);
-$file = file_put_contents("Downloads/" . $_GET['fileName'], $urFile);
-//return file_get_contents("http://".$_SERVER['HTTP_HOST']."/digibank/Downloads/".$_GET['fileName']);
-echo "Your File has been downloaded please <a href='/digibank/Downloads/" . $_GET['fileName'] . "' download>Click Here</a> to view your document";
+$finfo = new \finfo(FILEINFO_MIME_TYPE);
+$mime = $finfo->buffer($urFile);
+$binarydata = base64_encode($urFile);
+$arr = array($mime,$binarydata);
+echo json_encode($arr);
-?>
\ No newline at end of file
+
+?>
--- 'a/footer.php'
+++ b/footer.php
@@ -5,29 +5,29 @@
<div class="col-lg-4">
<div class="col-lg-12">
<h6 class="footer-hed">Customer Service</h6>
- <p class="pull-left"><a target="_blank" href="http://www.digibank.gov.in/complaints/customer-care.html" title="Safe Banking">Customer Care Numbers</a></p>
+ <p class="pull-left"><a target="_blank" href="http://www.digibank.gov.in/complaints/customer-care.html" title="Safe Services">Customer Care Numbers</a></p>
</div>
<div class="col-lg-12"></div>
<div class="col-lg-12">
<h6 class="footer-hed">Customer Service</h6>
- <p class="pull-left"><a target="_blank" href="http://www.digibank.gov.in/online-safe-banking/index.html" title="Safe Banking" >Safe Banking</a> | <a target="_blank" href="http://www.digibank.gov.in/go-green/Index.html" title="Go Green">Go Green</a></p>
+ <p class="pull-left"><a target="_blank" href="http://www.digilockerservicecenter.gov.in/online-safe-service/index.html" title="Safe Services" >Safe Service</a> | <a target="_blank" href="http://www.digibank.gov.in/go-green/Index.html" title="Go Green">Go Green</a></p>
</div>
</div>
<div class="col-lg-4">
<h6 class="text-center footer-hed">Useful Link</h6>
- <p class="text-center" style="text-align:justify"><a target="_blank" href="https://Digibank.co.in/BANKAWAY?Action.RetriveUserId.Acct.first=Y&folderId=AL&AppSignonBankId=ICI&AppType=corporate&abrdPrf=N" title="Get User ID">Get User ID</a> | <a target="_blank" href="http://www.digibank.gov.in/Personal-Banking/insta-banking/insta-index.html" title="Ways To Bank">Ways To Bank</a> | <a target="_blank" href="http://www.digibank.gov.in/Personal-Banking/insta-banking/internet-banking/index.html" title="Online Banking">Online Banking</a> |
-<a target="_blank" href="http://www.digibank.gov.in/Personal-Banking/account-deposit/savings-account/index.html" title="Savings Account">Savings Account</a> | <a target="_blank" href="http://www.digibank.gov.in/Personal-Banking/investments/ppf/ppf.html" title="PPF">PPF</a> | <a target="_blank" href="http://www.digibank.gov.in/financial-tools/index.html" title="Personal Finance Tools">Personal Finance Tools</a> |
-<a target="_blank" href="http://www.digibank.gov.in/form-center.html" title="Form Center">Form Center</a> | <a target="_blank" href="http://www.digibank.gov.in/Personal-Banking/investments/Digi-bank-pure-gold/gold-rate.html" title="Gold Rate Today">Gold Rate Today</a> | <a target="_blank" href="http://www.digibank.gov.in/media-gallery/media-gallery.html" title="Media Gallery">Media Gallery</a> | <a target="_blank" href="http://www.digibank.gov.in/Personal-Banking/credit-card/credit-cards.html" title="Credit Card">Credit Card</a>
+ <p class="text-center" style="text-align:justify"><a target="_blank" href="https://Digibank.co.in/BANKAWAY?Action.RetriveUserId.Acct.first=Y&folderId=AL&AppSignonBankId=ICI&AppType=corporate&abrdPrf=N" title="Get User ID">Get User ID</a> | <a target="_blank" href="http://www.digilockerservice.gov.in/Personal-service/insta-/insta-index.html" title="Ways To Bank">Ways To services</a> | <a target="_blank" href="http://www.digilockerservice.gov.in/Personal-Service/insta-/internet-service/index.html" title="Online Service">Online Service</a> |
+<a target="_blank" href="http://www.digibank.gov.in/Personal-Banking/account-deposit/savings-account/index.html" title="">Online Stydy</a> | <a target="_blank" href="http://www.digilockerservice.gov.in/Personal-swrvices/investments/ppf/ppf.html" title="online learning">Online Learning activity</a> | <a target="_blank" href="http://www.digibank.gov.in/financial-tools/index.html" title="home services">Home Services</a> |
+<a target="_blank" href="http://www.digibank.gov.in/form-center.html" title="Form Center">Form Center</a> | <a target="_blank" href="http://www.digibank.gov.in/Personal-Banking/investments/Digi-ser vices-pure-gold/gold-rate.html" title="Gold Rate Today">Online Services Today</a> | <a target="_blank" href="http://www.digibank.gov.in/media-gallery/media-gallery.html" title="Media Gallery">Media Gallery</a> | <a target="_blank" href="http://www.digibank.gov.in/Personal-Banking/credit-card/credit-cards.html" title="Credit Card">Online payment services</a>
</p>
</div>
<div class="col-lg-4">
- <h6 class="pull-right footer-hed" style="padding-right:10px;">Visit Other DGI Bank Sites</h6>
- <p class="pull-right" style="text-align: justify"><a target="_blank" href="http://www.Digigroupcompanies.com/" title="DIGI Group">DIGI Group</a> | <a target="_blank" href="http://www.Digifoundation.org/" title="DIGI Foundation">DIGI Foundation</a> |
+ <h6 class="pull-right footer-hed" style="padding-right:10px;">Visit Other Service Centers Sites</h6>
+ <p class="pull-right" style="text-align: justify"><a target="_blank" href="https://www.csc.gov.in//" title="CSC Service Center">Common Service Center</a> | <a target="_blank" href="https://digilocker.gov.in//" title="DigiLocker">DigiLocker</a> |
<a target="_blank" href="https://www.Digilombard.com/" title="DIGI Lombard General Insurance">DIGI Lombard General Insurance</a> |
<a target="_blank" href="http://www.iseconline.com/" title="DIGI Securities">DIGI Securities</a> |
<a target="_blank" href="http://www.Digiprulife.com/public/default.htm" title="DIGI Prudential Life Insurance">DIGI Prudential Life Insurance</a> |
<a target="_blank" href="http://www.Digipruamc.com/Homepage.aspx" title="DIGI Prudential AMC">DIGI Prudential AMC</a> |
-<a target="_blank" href="http://www.Digiventure.com/" title="DIGI Venture">DIGI Venture</a> | <a target="_blank" href="http://content.Digidirect.com/newsitecontent/Home/Home.asp" title="DIGI Direct">DIGI Direct</a> |
+<a target="_blank" href="http://www.Digiventure.com/" title="DIGI Venture">DIGI Venture</a> | <a target="_blank" href="http://content.Digidirect.com/newsitecontent/Home/Home.asp" title="DIGI Direct">DLSC Direct</a> |
<a target="_blank" href="http://dishafc.org/" title="DISHA Financial Counselling">DISHA Financial Counselling</a> |
<a target="_blank" href="http://www.Digihfc.com/" title="DIGI Home Finance">DIGI Home Finance</a></p>
</div>
--- 'a/header.php'
+++ b/header.php
@@ -23,20 +23,19 @@
padding-bottom: 8px;
}
.navbar-nav>li>a:hover{ color: #000; background-color:#f0ede4;}
+ .row{margin-top: -10px;margin-bottom: 15px;}
}
</style>
</head>
<body>
- <!-- Navigation -->
- <div class="container">
- <div class="navbar-header">
- <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
- <span class="sr-only">Toggle navigation</span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </button>
- <a class="navbar-brand" href="index.html"><img src="images/digibank.png"></a>
+ <!-- Navigation -->
+ <div class="row">
+ <div class="col-md-6">
+ <a class="navbar-brand pull-left" href="index.html"><img src="images/digibank.png"></a>
+ </div>
+ <div class="col-md-6">
+ <a class="navbar-brand pull-right">
+ <img src="images/digitalindialogo.png"></a>
</div>
</div>
<nav role="navigation" style="background-color: blueviolet; margin-bottom: 15px;height: 35px; position: relative;" >
@@ -46,10 +45,10 @@
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-left ">
<li>
- <a href="signup.php">Open Account</a>
+ <a href="signup.php">Open DigiLocker Account</a>
</li>
<li>
- <a href="loanapproval.php">Download</a>
+ <a href="index.php">Download</a>
</li>
<li>
<a href="upload.php">Upload</a>
Binary files /dev/null and b/images/digitalindialogo.png differ
Binary files /dev/null and b/images/file.png differ
--- /dev/null
+++ b/images/file.svg
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="32" width="32" version="1.1" xmlns:cc="http://creativecommons.org/ns#" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <defs>
+ <linearGradient id="a">
+ <stop offset="0"/>
+ <stop stop-opacity="0" offset="1"/>
+ </linearGradient>
+ <linearGradient id="g" x1="24" gradientUnits="userSpaceOnUse" y1="5.5641" gradientTransform="matrix(.56757 0 0 .72973 2.3784 -2.5135)" x2="24" y2="43">
+ <stop stop-color="#fff" offset="0"/>
+ <stop stop-color="#fff" stop-opacity=".23529" offset=".036262"/>
+ <stop stop-color="#fff" stop-opacity=".15686" offset=".95056"/>
+ <stop stop-color="#fff" stop-opacity=".39216" offset="1"/>
+ </linearGradient>
+ <linearGradient id="h" x1="25.132" gradientUnits="userSpaceOnUse" y1=".98521" gradientTransform="matrix(.65714 0 0 .63012 .22856 -1.0896)" x2="25.132" y2="47.013">
+ <stop stop-color="#f4f4f4" offset="0"/>
+ <stop stop-color="#dbdbdb" offset="1"/>
+ </linearGradient>
+ <radialGradient id="j" xlink:href="#a" gradientUnits="userSpaceOnUse" cy="486.65" cx="605.71" gradientTransform="matrix(.015663 0 0 .0082353 17.61 25.981)" r="117.14"/>
+ <radialGradient id="k" xlink:href="#a" gradientUnits="userSpaceOnUse" cy="486.65" cx="605.71" gradientTransform="matrix(-.015663 0 0 .0082353 14.39 25.981)" r="117.14"/>
+ <linearGradient id="i" x1="302.86" gradientUnits="userSpaceOnUse" y1="366.65" gradientTransform="matrix(.045769 0 0 .0082353 -.54232 25.981)" x2="302.86" y2="609.51">
+ <stop stop-opacity="0" offset="0"/>
+ <stop offset=".5"/>
+ <stop stop-opacity="0" offset="1"/>
+ </linearGradient>
+ </defs>
+ <rect opacity=".15" height="2" width="22.1" y="29" x="4.95" fill="url(#i)"/>
+ <path opacity=".15" d="m4.95 29v1.9999c-0.80662 0.0038-1.95-0.44807-1.95-1.0001 0-0.552 0.90012-0.99982 1.95-0.99982z" fill="url(#k)"/>
+ <path opacity=".15" d="m27.05 29v1.9999c0.80661 0.0038 1.95-0.44807 1.95-1.0001 0-0.552-0.90012-0.99982-1.95-0.99982z" fill="url(#j)"/>
+ <path d="m4.5 0.49996c5.2705 0 23 0.00185 23 0.00185l0.000028 28.998h-23v-29z" fill="url(#h)"/>
+ <path stroke-linejoin="round" stroke="url(#g)" stroke-linecap="round" d="m26.5 28.5h-21v-27h21z" fill="none"/>
+ <path stroke-linejoin="round" opacity=".3" d="m4.5 0.49996c5.2705 0 23 0.00185 23 0.00185l0.000028 28.998h-23v-29z" stroke="#000" stroke-width=".99992" fill="none"/>
+</svg>
Binary files /dev/null and b/images/folder.png differ
--- /dev/null
+++ b/images/folder.svg
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="32px" width="32px" version="1.1" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <defs>
+ <linearGradient id="c" y2="21.387" gradientUnits="userSpaceOnUse" x2="27.557" gradientTransform="matrix(.89186 0 0 1.0539 3.1208 3.4122)" y1="7.1627" x1="27.557">
+ <stop stop-color="#fff" offset="0"/>
+ <stop stop-color="#fff" stop-opacity=".23529" offset=".0097359"/>
+ <stop stop-color="#fff" stop-opacity=".15686" offset=".99001"/>
+ <stop stop-color="#fff" stop-opacity=".39216" offset="1"/>
+ </linearGradient>
+ <linearGradient id="d" y2="36.658" gradientUnits="userSpaceOnUse" x2="22.809" gradientTransform="matrix(.74675 0 0 .65549 -1.9219 -.83270)" y1="49.629" x1="22.935">
+ <stop stop-color="#0a0a0a" stop-opacity=".498" offset="0"/>
+ <stop stop-color="#0a0a0a" stop-opacity="0" offset="1"/>
+ </linearGradient>
+ <linearGradient id="e" y2="43.761" gradientUnits="userSpaceOnUse" x2="35.793" gradientTransform="matrix(.64444 0 0 .64286 .53352 -1.1074)" y1="17.118" x1="35.793">
+ <stop stop-color="#b4cee1" offset="0"/>
+ <stop stop-color="#5d9fcd" offset="1"/>
+ </linearGradient>
+ <linearGradient id="f" y2="609.51" gradientUnits="userSpaceOnUse" x2="302.86" gradientTransform="matrix(.051143 0 0 .015916 -2.49 22.299)" y1="366.65" x1="302.86">
+ <stop stop-opacity="0" offset="0"/>
+ <stop offset=".5"/>
+ <stop stop-opacity="0" offset="1"/>
+ </linearGradient>
+ <radialGradient id="b" gradientUnits="userSpaceOnUse" cy="486.65" cx="605.71" gradientTransform="matrix(.019836 0 0 .015916 16.388 22.299)" r="117.14">
+ <stop offset="0"/>
+ <stop stop-opacity="0" offset="1"/>
+ </radialGradient>
+ <radialGradient id="a" gradientUnits="userSpaceOnUse" cy="486.65" cx="605.71" gradientTransform="matrix(-.019836 0 0 .015916 15.601 22.299)" r="117.14">
+ <stop offset="0"/>
+ <stop stop-opacity="0" offset="1"/>
+ </radialGradient>
+ <linearGradient id="g" y2="34.143" gradientUnits="userSpaceOnUse" x2="21.37" gradientTransform="matrix(.54384 0 0 .61466 3.2689 3.0908)" y1="4.7324" x1="21.37">
+ <stop stop-color="#fff" offset="0"/>
+ <stop stop-color="#fff" stop-opacity=".23529" offset=".11063"/>
+ <stop stop-color="#fff" stop-opacity=".15686" offset=".99001"/>
+ <stop stop-color="#fff" stop-opacity=".39216" offset="1"/>
+ </linearGradient>
+ <linearGradient id="h" y2="16" gradientUnits="userSpaceOnUse" x2="62.989" gradientTransform="matrix(.61905 0 0 .61905 -30.392 -.57170)" y1="13" x1="62.989">
+ <stop stop-color="#f9f9f9" offset="0"/>
+ <stop stop-color="#d8d8d8" offset="1"/>
+ </linearGradient>
+ <linearGradient id="i" y2="3.6337" gradientUnits="userSpaceOnUse" y1="53.514" gradientTransform="matrix(.50703 0 0 .503 68.029 -.67050)" x2="-51.786" x1="-51.786">
+ <stop stop-opacity=".32174" offset="0"/>
+ <stop stop-opacity=".27826" offset="1"/>
+ </linearGradient>
+ </defs>
+ <path opacity=".8" style="color:#000000" d="m4.0002 4.4998c-0.43342 0.005-0.5 0.21723-0.5 0.6349v1.365c-1.2457 0-1-0.002-1 0.54389 0.0216 6.5331 0 6.9014 0 7.4561 0.90135 0 27-2.349 27-3.36v-4.0964c0-0.41767-0.34799-0.54876-0.78141-0.54389h-14.219v-1.365c0-0.41767-0.26424-0.63977-0.69767-0.6349h-9.8022z" stroke="url(#i)" fill="none"/>
+ <path style="color:#000000" d="m4.0002 4.9997v2h-1v4.0003h26v-4.0003h-15v-2h-9.9998z" fill="url(#h)"/>
+ <path style="color:#000000" stroke-linecap="round" d="m4.5002 5.4997v2h-1v4.0003h25v-4.0003h-15v-2h-8.9998z" stroke="url(#g)" fill="none"/>
+ <g transform="translate(.00017553 -3.0003)">
+ <rect opacity=".3" height="3.8653" width="24.695" y="28.135" x="3.6472" fill="url(#f)"/>
+ <path opacity=".3" d="m28.342 28.135v3.865c1.0215 0.0073 2.4695-0.86596 2.4695-1.9328s-1.1399-1.9323-2.4695-1.9323z" fill="url(#b)"/>
+ <path opacity=".3" d="m3.6472 28.135v3.865c-1.0215 0.0073-2.4695-0.86596-2.4695-1.9328s1.1399-1.9323 2.4695-1.9323z" fill="url(#a)"/>
+ </g>
+ <path style="color:#000000" d="m1.927 9.4997c-0.69105 0.0796-0.32196 0.90258-0.37705 1.3654 0.0802 0.29906 0.59771 15.718 0.59771 16.247 0 0.46018 0.22667 0.38222 0.80101 0.38222h26.397c0.61872 0.0143 0.48796 0.007 0.48796-0.38947 0.0452-0.20269 0.63993-16.978 0.66282-17.243 0-0.279 0.0581-0.3621-0.30493-0.3621h-28.266z" fill="url(#e)"/>
+ <path opacity=".4" d="m1.682 8.9997 28.636 0.00027c0.4137 0 0.68181 0.29209 0.68181 0.65523l-0.6735 17.712c0.01 0.45948-0.1364 0.64166-0.61707 0.63203l-27.256-0.011c-0.4137 0-0.83086-0.27118-0.83086-0.63432l-0.62216-17.699c0-0.36314 0.26812-0.65549 0.68182-0.65549z" fill="url(#d)"/>
+ <path opacity=".5" style="color:#000000" d="m2.5002 10.5 0.62498 16h25.749l0.62498-16z" stroke="url(#c)" stroke-linecap="round" fill="none"/>
+ <path opacity=".3" stroke-linejoin="round" style="color:#000000" d="m1.927 9.4997c-0.69105 0.0796-0.32196 0.90258-0.37705 1.3654 0.0802 0.29906 0.59771 15.718 0.59771 16.247 0 0.46018 0.22667 0.38222 0.80101 0.38222h26.397c0.61872 0.0143 0.48796 0.007 0.48796-0.38947 0.0452-0.20269 0.63993-16.978 0.66282-17.243 0-0.279 0.0581-0.3621-0.30493-0.3621h-28.266z" stroke="#000" stroke-linecap="round" fill="none"/>
+</svg>
Binary files /dev/null and b/images/uploaded_files.png differ
--- /dev/null
+++ b/index.php
@@ -0,0 +1,49 @@
+<?php include 'header.php' ?>
+<div class="container">
+ <!-- Marketing Icons Section -->
+ <div class="row">
+ <div class="col-md-2">
+ </div>
+ <div class="col-md-8">
+ <div class="panel panel-default">
+ <div class="panel-heading">
+ <h4><i class="fa fa-download"></i>Download</h4>
+ </div>
+ <div class="panel-body">
+ <p>DigiLocker is Government of India's cloud based platform for issuance and verification of documents & certificates digitally. </p>
+ <p>With DigiLocker, you can: </p>
+ <ul class="custom-bullet">
+ <li>Access your documents anytime, anywhere.</li>
+ <li>Share documents digitally for verification.</li>
+ <li>eSign documents (which is similar to self-attestation).</li>
+ </ul>
+ <form action = "https://developers.digitallocker.gov.in/public/oauth2/1/authorize" method = "GET" role="form">
+ <div class="form-group has-success" style="display:none">
+ <label class="control-label" for="inputSuccess">Response Type</label>
+ <input type="text" class="form-control" name = "response_type" value="code">
+ </div>
+ <div class="form-group has-success" style="display:none">
+ <label class="control-label" for="inputSuccess">Client ID</label>
+ <input type="text" class="form-control" name = "client_id" value="NIELN3M9">
+ </div>
+ <div class="form-group has-success" style="display:none">
+ <label class="control-label" for="inputSuccess">Redirect Uri</label>
+ <input type="text" class="form-control" name = "redirect_uri" value="http://localhost/digibank/doc.php">
+ </div>
+ <div class="form-group has-success" style="display:none">
+ <label class="control-label" for="inputSuccess">State</label>
+ <input type="text" class="form-control" name = "state" value="123456">
+ </div>
+ <!--<a href="doc.php"><input type="button" class="btn btn-primary" value="Submit" /></a>-->
+ <button type="submit" class="btn btn-default">Access Digilocker</button>
+ </form>
+ </div>
+ </div>
+ </div>
+ <div class="col-md-2">
+ </div>
+ </div>
+</div>
+<!-- /.row -->
+</div>
+<?php include 'footer.php' ?>
\ No newline at end of file
--- 'a/loanapproval.php'
+++ /dev/null
@@ -1,49 +0,0 @@
-<?php include 'header.php' ?>
-<div class="container">
- <!-- Marketing Icons Section -->
- <div class="row">
- <div class="col-md-2">
- </div>
- <div class="col-md-8">
- <div class="panel panel-default">
- <div class="panel-heading">
- <h4><i class="fa fa-fw fa-link"></i>Download</h4>
- </div>
- <div class="panel-body">
- <p>DigiLocker is Government of India's cloud based platform for issuance and verification of documents & certificates digitally. </p>
- <p>With DigiLocker, you can: </p>
- <ul class="custom-bullet">
- <li>Access your documents anytime, anywhere.</li>
- <li>Share documents digitally for verification.</li>
- <li>eSign documents (which is similar to self-attestation).</li>
- </ul>
- <form action = "https://developers.digitallocker.gov.in/public/oauth2/1/authorize" method = "GET" role="form">
- <div class="form-group has-success" style="display:none">
- <label class="control-label" for="inputSuccess">Response Type</label>
- <input type="text" class="form-control" name = "response_type" value="code">
- </div>
- <div class="form-group has-success" style="display:none">
- <label class="control-label" for="inputSuccess">Client ID</label>
- <input type="text" class="form-control" name = "client_id" value="NIELN3M9">
- </div>
- <div class="form-group has-success" style="display:none">
- <label class="control-label" for="inputSuccess">Redirect Uri</label>
- <input type="text" class="form-control" name = "redirect_uri" value="http://localhost/digibank/doc.php">
- </div>
- <div class="form-group has-success" style="display:none">
- <label class="control-label" for="inputSuccess">State</label>
- <input type="text" class="form-control" name = "state" value="123456">
- </div>
- <!--<a href="doc.php"><input type="button" class="btn btn-primary" value="Submit" /></a>-->
- <button type="submit" class="btn btn-default">Access Digilocker</button>
- </form>
- </div>
- </div>
- </div>
- <div class="col-md-2">
- </div>
- </div>
-</div>
-<!-- /.row -->
-</div>
-<?php include 'footer.php' ?>
\ No newline at end of file
--- 'a/payment.php'
+++ b/payment.php
@@ -48,9 +48,8 @@
</div>
</div>
<div class='form-row'>
- <div class='col-md-12 form-group'>
- <a class="btn btn-default" style="float: right;" href="loanapproval.php">Pay</a>
-<!-- <a href="loanapproval.php"><input type="button" class="btn btn-primary" value="Pay" /></a>-->
+ <div class='col-md-12 form-group' style="text-align: center;">
+ <a class="btn btn-default"style="margin-top: 10px;" href="index.php">Pay</a>
</div>
</div>
<div class='form-row'>
@@ -68,5 +67,4 @@
<div class="col-lg-2"></div>
<!-- /.row -->
<script src="js/jquery.js"></script>
-
<?php include 'footer.php' ?>
\ No newline at end of file
--- 'a/signup.php'
+++ b/signup.php
@@ -7,7 +7,7 @@
<div class="col-md-8">
<div class="panel panel-default">
<div class="panel-heading">
- <h4><i class="fa fa-fw fa-link"></i>Open Account</h4>
+ <h4><i class="fa fa-fw fa-link"></i>Open DigiLocker Account</h4>
</div>
<div class="panel-body">
<p>DigiLocker is Government of India's cloud based platform for issuance and verification of documents & certificates digitally. </p>
--- 'a/upload.php'
+++ b/upload.php
@@ -7,7 +7,7 @@
<div class="col-md-8">
<div class="panel panel-default">
<div class="panel-heading">
- <h4><i class="fa fa-fw fa-link"></i>Upload</h4>
+ <h4><img src="images/uploaded_files.png"> Upload</h4>
</div>
<div class="panel-body">
<p>DigiLocker is Government of India's cloud based platform for issuance and verification of documents & certificates digitally. </p>
@@ -34,7 +34,6 @@
<label class="control-label" for="inputSuccess">State</label>
<input type="text" class="form-control" name = "state" value="123456">
</div>
- <!--- <a href="uploaddoc.php"><input type="button" class="btn btn-primary" value="Submit" /></a>-->
<button type="submit" class="btn btn-default">Access Digilocker</button>
</form>
</div>
--- 'a/uploaddoc.php'
+++ b/uploaddoc.php
@@ -2,6 +2,14 @@
include 'header.php';
$code = $_GET['code'];
$state = $_GET['state'];
+if (file_exists("xml/hashKey.xml")) {
+ $xml = (array) simplexml_load_file("xml/hashKey.xml") or die("Error: Cannot create object");
+} else {
+ echo "xml/hashKey.xml file doesnot exists";
+}
+$access_token = $xml['access_token'];
+$cd = (array) $xml['code']['num'];
+if ($cd != $code) {
$url = "https://developers.digitallocker.gov.in/public/oauth2/1/token";
$post = array(
'code' => $code,
@@ -24,7 +32,7 @@ curl_close($vh);
$notgettingdata = explode('¿', $result);
$getToken = json_decode($notgettingdata[1]);
$access_token = $getToken->access_token;
-
+}
$headers = array(
'Authorization: Bearer ' . $access_token
@@ -92,7 +100,7 @@ $dataF = json_decode($resFileNew[1], TRU
echo "<option value='' selected='selected'>Save here</option>" . $itm;
?>
</select>
- <input type="submit" name="submit" value="Upload image" />
+ <button type="submit" class="btn btn-default">Upload</button>
</form>
</div>
<div class="col-md-1">
--- /dev/null
+++ b/xml/hashKey.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0"?>
+<maincontent>
+ <code num="1118bc17074eb5d780f23ef98bcce2603a01dad0"/>
+ <access_token>8ca24d585fedcfc3771361fd10603968acb13ac5</access_token>
+</maincontent>