authpartner
Clone or download
Modified Files
--- 'a/css/styles.css'
+++ b/css/styles.css
@@ -5,6 +5,7 @@
/*
* 1.1 Common styles
*/
+
::-moz-selection {
color: #fff;
background: #000000; }
@@ -5303,29 +5304,12 @@ h3.widget-title.side-nav {margin-top: 20
.no-padding {
padding: 0 !important; }
- /**
-#loading {
- content: '';
- display: block;
- top: 0;
- left: 0;
- bottom: 0;
- right: 0;
- position:absolute;
- width: 100%; height: 100%;
- background: url('loading.gif') no-repeat center center;
- margin:0 auto;
- z-index:10000000;
- /**opacity: 0.4; **/
-}
-**/
+
+
/* Paste this css to your style sheet file or under head tag */
/* This only works with JavaScript,
if it's not present, don't show loader */
-.no-js #loader { display: none; }
-.js #loader { display: block; position: absolute; left: 100px; top: 0; }
.se-pre-con {
- display: none;
position: fixed;
left: 0px;
top: 0px;
--- 'a/doc.php'
+++ b/doc.php
@@ -1,16 +1,7 @@
<?php
-include 'header.php';
include 'config.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 = $config['access_token_download'];
$post = array(
'code' => $code,
@@ -60,7 +51,6 @@ if ($cd != $code) {
echo "xml/hashKey.xml file doesnot exists";
}
$access_token = $xml['access_token'];
-}
$headers = array(
'Authorization: Bearer ' . $access_token
@@ -95,6 +85,8 @@ $resissuedErr = curl_error($vhi);
curl_close($vhi);
$issuedNew = explode('¿', $resissued);
$dataI = json_decode($issuedNew[1], TRUE);
+
+include 'header.php';
?>
<div class="se-pre-con"></div>
<div id="wrapper">
@@ -123,44 +115,44 @@ $dataI = json_decode($issuedNew[1], TRUE
<td>Date</td>
<td id="tdUri" style="display:none;">URI</td>
</tr>
- <div><b onclick="uriData(null, null)" class="fa fa-home fa-2x" style="color:blueviolet;"></b><b id="parent" style="color:blueviolet;"></b></div>
+ <div><b onclick="uriData(null, null)" class="fa fa-home fa-2x" style="color:blueviolet; cursor:pointer; cursor:hand"></b><b id="parent" style="color:blueviolet; cursor:pointer; cursor:hand"></b></div>
</thead>
<tbody id="folderPath">
- <?php
- foreach ((array) ($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
- if (($api_detail['type']) == "dir") {
- echo '<td onclick="uriData(' . $api_detail['id'] . ',' . $api_detail['parent'] . ')">';
- echo '<img src="images/folder.svg"></img>';
- echo($api_detail['name']);
- }
- if ($api_detail['type'] == "file") {
- echo "<td onclick='thisIsNotAFolder()'>";
- echo '<img src="images/file.svg"></img>';
- echo($api_detail['name']);
+ <?php
+ foreach ((array) ($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'] = "";
}
- echo "</td>";
?>
- <td><?php echo($api_detail['size']); ?></td>
- <td><?php echo($api_detail['date']); ?></td>
- <?php if ($api_detail['type'] == "file") { ?>
- <td>
- <button onclick="download('<?php echo($api_detail['uri'] . ',' . $api_detail['name']); ?>')"><i class="fa fa-download"> </i></button>
+ <tr>
+ <?php
+ if (($api_detail['type']) == "dir") {
+ echo '<td onclick="uriData(' . $api_detail['id'] . ',' . $api_detail['parent'] . ')">';
+ echo '<img src="images/folder.svg"></img>';
+ echo($api_detail['name']);
+ }
+ if ($api_detail['type'] == "file") {
+ echo "<td onclick='thisIsNotAFolder()'>";
+ 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>
+ <button onclick="download('<?php echo($api_detail['uri'] . ',' . $api_detail['name']); ?>')"><i class="fa fa-download"> </i></button>
- </td>
- <?php }
- ?>
- </tr>
- <?php }
- ?>
+ </td>
+ <?php }
+ ?>
+ </tr>
+ <?php }
+ ?>
</tbody>
</table>
<div class="footer">
@@ -230,60 +222,62 @@ $dataI = json_decode($issuedNew[1], TRUE
<?php include 'footer.php' ?>
<script src="js/modernizr.js"></script>
<script>
- function uriData(id, parent) {
- $("#folderPath").empty();
- $("#tdUri").show();
- var id = id;
- var accessTocken = "<?php echo $access_token; ?>";
- var uri = "<?php echo $api_detail['uri']; ?>";
- var uriDataHtml = "";
- var fileOrFolder = "";
- var onclickFnc = "";
- var dwnldTd = "";
- var accessToken = "<?php echo $access_token; ?>";
- var urifnc = "<?php echo $config['uri_path']; ?>";
- $.post(urifnc, {access_token: accessTocken, id: id}, function (result) {
- $.each(result.items, function (i, l) {
- if (result.items[i].type == "file") {
- console.log(result.items);
- fileOrFolder = '<img src="images/file.svg"></img>';
- onclickFnc = "onclick='thisIsNotAFolder()'";
- dwnldTd = "<td onclick = 'download(\"" + result.items[i].uri + "\",\"" + result.items[i].name + "\");';><button><i class='fa fa-download'> </i></button></td>";
- } else {
- fileOrFolder = '<img src="images/folder.svg"></img>';
- onclickFnc = "onclick='uriData(" + result.items[i].id + "," + result.items[i].parent + ")'";
- dwnldTd = "<td></td>";
- }
- 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>" + dwnldTd + "</tr>";
- $("#folderPath").html(uriDataHtml);
- });
- $("#parent").html("<b onclick=uriData(" + parent + ",null) >" + result.directory + "</b>");
- }, "json")
- .fail(function () {
- $("#folderPath").html("Some error found");
- });
- }
- function download(uris, filename) {
- $(".se-pre-con").show();
- var getdata = uris.split(",");
- var uri = getdata[0];
- var filename = getdata[1];
- var accessTocken = "<?php echo $access_token; ?>";
- var dlscfnc = "<?php echo $config['dlsc_path']; ?>"
- var arraydata = {uri: uri, accesstoken: accessTocken, filename: filename}
- $.ajax({
- url: dlscfnc + 'download.php',
- type: 'POST',
- data: arraydata
- }).done(function (response)
- {
- $(".se-pre-con").hide();
- var getdata = JSON.parse(response);
- console.log(getdata[1]);
- window.open("data:" + getdata[0] + ";base64," + getdata[1], '', 'height=650,width=840');
+function uriData(id, parent) {
+ $("#folderPath").empty();
+ $("#tdUri").show();
+ $(".se-pre-con").show();
+ var id = id;
+ var accessTocken = "<?php echo $access_token; ?>";
+ var uri = "<?php echo $api_detail['uri']; ?>";
+ var uriDataHtml = "";
+ var fileOrFolder = "";
+ var onclickFnc = "";
+ var dwnldTd = "";
+ var accessToken = "<?php echo $access_token; ?>";
+ var urifnc = "<?php echo $config['uri_path']; ?>";
+ $.post(urifnc, {access_token: accessTocken, id: id}, function (result) {
+ $.each(result.items, function (i, l) {
+ if (result.items[i].type == "file") {
+ console.log(result.items);
+ fileOrFolder = '<img src="images/file.svg"></img>';
+ onclickFnc = "onclick='thisIsNotAFolder()'";
+ dwnldTd = "<td onclick = 'download(\"" + result.items[i].uri + "\",\"" + result.items[i].name + "\");';><button><i class='fa fa-download'> </i></button></td>";
+ } else {
+ fileOrFolder = '<img src="images/folder.svg"></img>';
+ onclickFnc = "onclick='uriData(" + result.items[i].id + "," + result.items[i].parent + ")'";
+ dwnldTd = "<td></td>";
+ }
+ 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>" + dwnldTd + "</tr>";
+ $("#folderPath").html(uriDataHtml);
});
- }
- $(".se-pre-con").fadeOut("slow");
+ $("#parent").html("<b onclick=uriData(" + parent + ",null) >" + result.directory + "</b>");
+ $(".se-pre-con").hide();
+ }, "json")
+ .fail(function () {
+ $("#folderPath").html("Some error found");
+ });
+}
+function download(uris, filename) {
+ $(".se-pre-con").show();
+ var getdata = uris.split(",");
+ var uri = getdata[0];
+ var filename = getdata[1];
+ var accessTocken = "<?php echo $access_token; ?>";
+ var dlscfnc = "<?php echo $config['dlsc_path']; ?>"
+ var arraydata = {uri: uri, accesstoken: accessTocken, filename: filename}
+ $.ajax({
+ url: dlscfnc + 'download.php',
+ type: 'POST',
+ data: arraydata
+ }).done(function (response)
+ {
+ $(".se-pre-con").hide();
+ var getdata = JSON.parse(response);
+ console.log(getdata[1]);
+ window.open("data:" + getdata[0] + ";base64," + getdata[1], '', 'height=650,width=840');
+ });
+}
+$(".se-pre-con").fadeOut("slow");
</script>
</html>
\ No newline at end of file
--- 'a/footer.php'
+++ b/footer.php
@@ -32,7 +32,6 @@
</footer>
</div>
<!-- /.container -->
-<!-- jQuery -->
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>
</body>
--- 'a/header.php'
+++ b/header.php
@@ -78,7 +78,7 @@
<div class="dropdown">
<div class="dropdown-toggle" data-toggle="dropdown">AADHAAR
</div>
- <ul class="dropdown-menu" style="margin-left: -8px;">
+ <ul class="dropdown-menu" style="margin-left: -5px;">
<li><a >Aadhaar Demographic Update</a></li><hr>
<li><a>Aadhaar Mobile Update</a></li><hr>
<li><a>Best Finger Detection</a></li><hr>
@@ -90,12 +90,11 @@
<div class="dropdown">
<div class="dropdown-toggle" data-toggle="dropdown">AGRICULTURE
</div>
- <ul class="dropdown-menu" style="margin-left: -8px;">
+ <ul class="dropdown-menu" style="margin-left: -5px;">
<li><a tabindex="-1" >Agricultural Machine 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" >Marketplace</a></li>
-
</ul>
</div>
</li>
@@ -103,7 +102,7 @@
<div class="dropdown">
<div class="dropdown-toggle" data-toggle="dropdown">BANKING AND PENSION
</div>
- <ul class="dropdown-menu" style="margin-left: -8px;">
+ <ul class="dropdown-menu" style="margin-left: -5px;">
<li><a tabindex="-1" >RAP Registration</a></li><hr>
<li><a tabindex="-1" >Basic Banking Course</a></li><hr>
<li><a tabindex="-1" >Life Certificate (LIC)</a></li><hr>
@@ -115,7 +114,7 @@
<li>
<div class="dropdown">
<div class="dropdown-toggle" data-toggle="dropdown">DIGILOCKER</div>
- <ul class="dropdown-menu" style="margin-left: -8px;">
+ <ul class="dropdown-menu" style="margin-left: -5px;">
<li><a tabindex="-1" href="https://digilocker.gov.in/public/register">Open Digilocker Account</a>
</li><hr>
<li>
@@ -169,12 +168,11 @@
<div class="dropdown">
<div class="dropdown-toggle" data-toggle="dropdown">ELECTION
</div>
- <ul class="dropdown-menu" style="margin-left: -8px;">
+ <ul class="dropdown-menu" style="margin-left: -5px;">
<li><a tabindex="-1" >Punjab 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" >Rajasthan Election Services</a></li>
-
</ul>
</div>
</li>
@@ -182,12 +180,11 @@
<div class="dropdown">
<div class="dropdown-toggle" data-toggle="dropdown">GOVERNMENT
</div>
- <ul class="dropdown-menu" style="margin-left: -8px;">
+ <ul class="dropdown-menu" style="margin-left: -5px;">
<li><a tabindex="-1" >Birth and Death Application</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" >Ration Card Services</a></li>
-
</ul>
</div>
</li>
@@ -195,12 +192,11 @@
<div class="dropdown">
<div class="dropdown-toggle" data-toggle="dropdown">INSURANCE
</div>
- <ul class="dropdown-menu" style="margin-left: -8px;">
+ <ul class="dropdown-menu" style="margin-left: -5px;">
<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" >Life Insurance</a></li><hr>
<li><a tabindex="-1" >Personal Accidental</a></li>
-
</ul>
</div>
</li>
@@ -208,7 +204,7 @@
<div class="dropdown">
<div class="dropdown-toggle" data-toggle="dropdown">TRAVEL
</div>
- <ul class="dropdown-menu" style="margin-left: -8px;">
+ <ul class="dropdown-menu" style="margin-left: -5px;">
<li><a tabindex="-1" >Darshan Booking</a></li><hr>
<li><a tabindex="-1" >Bus Ticket Booking</a></li><hr>
<li><a tabindex="-1" >Flight Tickets</a></li><hr>
--- 'a/uploaddoc.php'
+++ b/uploaddoc.php
@@ -1,5 +1,4 @@
<?php
-include 'header.php';
include 'config.php';
$code = $_GET['code'];
$state = $_GET['state'];
@@ -70,7 +69,25 @@ $resFile = curl_exec($vhf);
curl_close($vhf);
$resFileNew = explode('¿', $resFile);
$dataF = json_decode($resFileNew[1], TRUE);
+
+include 'header.php';
?>
+<style>
+ #fileUpload {
+ cursor: pointer;
+ cursor:hand;
+ margin: -13px -3px;
+ opacity: 0;
+ overflow: hidden;
+ position: relative;
+ z-index: 20;
+ }
+ .inputfile + label {
+ background-color: blueviolet;
+ color: #f1e5e6;
+ padding: 5px;
+ }
+</style>
<div class="se-pre-con"></div>
<div id="wrapper">
<div id="page-wrapper">
@@ -88,21 +105,20 @@ $dataF = json_decode($resFileNew[1], TRU
<div class="row">
<div class="col-md-12">
<div class="box box-body col-sm-12" >
- <div class="row" style="margin-top:10px;">
- <div class="col-md-6"><b onclick="uriData(null, null)" class="fa fa-home fa-2x" style="color:blueviolet;"></b><b id="parent" style="color:blueviolet;"></b>
+ <div class="row" style="margin-top:7px;">
+ <div class="col-md-2"><b onclick="uriData(null, null)" class="fa fa-home fa-2x" style="color:blueviolet; cursor:pointer; cursor:hand;"></b><b id="parent" style="color:blueviolet; cursor:pointer; cursor:hand;"></b>
</div>
- <div class="col-md-6">
+ <div class="col-md-10 pull-left">
<form action="browse.php" method="post" enctype="multipart/form-data" >
- <div class="col-md-8" style="padding-left:130px;">
- <input type="text" value="<?php echo $access_token; ?>" name="accesstoken" class="hidden"/>
- <input type="text" value="<?php echo $code; ?>" name="code" class="hidden"/>
- <input type="text" value="<?php echo $state; ?>" name="state" class="hidden"/>
- <input type="text" name="filePath" class="hidden" value="" id="filePath"/>
- <input type="file" id="fileUpload" name="fileUpload"/>
- </div>
- <div class="col-md-4 " >
- <input type="submit" name="submit" class="btn btn-primary" value="Upload" style="height:23px; width:78px; padding:0px !important;">
- </div>
+ <input type="text" value="<?php echo $access_token; ?>" name="accesstoken" class="hidden"/>
+ <input type="text" value="<?php echo $code; ?>" name="code" class="hidden"/>
+ <input type="text" value="<?php echo $state; ?>" name="state" class="hidden"/>
+ <input type="text" name="filePath" class="hidden" value="" id="filePath"/>
+ <input type="file" class="inputfile" id="fileUpload" name="fileUpload"/>
+ <label for="fileUpload">
+ <i class="fa fa-upload"></i>
+ <span>Upload Here</span>
+ </label>
</form>
</div>
</div>
@@ -116,40 +132,40 @@ $dataF = json_decode($resFileNew[1], TRU
</tr>
</thead>
<tbody id="folderPath">
- <?php
- foreach ((array) ($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
- if (($api_detail['type']) == "dir") {
- echo '<td onclick="uriData(' . $api_detail['id'] . ',' . $api_detail['parent'] . ')">';
- echo '<img src="images/folder.svg"></img>';
- echo($api_detail['name']);
- }
- if ($api_detail['type'] == "file") {
- echo "<td onclick='thisIsNotAFolder()'>";
- echo '<img src="images/file.svg"></img>';
- echo($api_detail['name']);
+ <?php
+ foreach ((array) ($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'] = "";
}
- echo "</td>";
?>
- <td><?php echo($api_detail['size']); ?></td>
- <td><?php echo($api_detail['date']); ?></td>
- <?php if ($api_detail['type'] == "file") { ?>
- <td>
- <button onclick="download('<?php echo($api_detail['uri'] . ',' . $api_detail['name']); ?>')"><i class="fa fa-download"> </i></button>
- </td>
- <?php }
- ?>
- </tr>
- <?php }
- ?>
+ <tr>
+ <?php
+ if (($api_detail['type']) == "dir") {
+ echo '<td onclick="uriData(' . $api_detail['id'] . ',' . $api_detail['parent'] . ')">';
+ echo '<img src="images/folder.svg"></img>';
+ echo($api_detail['name']);
+ }
+ if ($api_detail['type'] == "file") {
+ echo "<td onclick='thisIsNotAFolder()'>";
+ 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>
+ <button onclick="download('<?php echo($api_detail['uri'] . ',' . $api_detail['name']); ?>')"><i class="fa fa-download"> </i></button>
+ </td>
+ <?php }
+ ?>
+ </tr>
+ <?php }
+ ?>
</tbody>
</table>
<div class="footer">
@@ -171,66 +187,70 @@ $dataF = json_decode($resFileNew[1], TRU
<?php include 'footer.php' ?>
<script src="js/modernizr.js"></script>
<script>
-
+$(document).on('change', "#fileUpload", function () {
+ $("form").submit();
+});
+$("#filePath").val("");
+function uriData(id, parent) {
+ $("#folderPath").empty();
+ $("#fileUpload").val("");
$("#filePath").val("");
- function uriData(id, parent) {
- $("#folderPath").empty();
- $("#fileUpload").val("");
- $("#filePath").val("");
- $("#tdUri").show();
- var id = id;
- var accessTocken = "<?php echo $access_token; ?>";
- var uri = "<?php echo $api_detail['uri']; ?>";
- var uriDataHtml = "";
- var fileOrFolder = "";
- var onclickFnc = "";
- var dwnldTd = "";
- var accessToken = "<?php echo $access_token; ?>";
- var urifnc = "<?php echo $config['uri_path']; ?>";
- $.post(urifnc, {access_token: accessTocken, id: id}, function (result) {
- $.each(result.items, function (i, l) {
-
- if (result.items[i].type == "file") {
- console.log(result.items);
- fileOrFolder = '<img src="images/file.svg"></img>';
- onclickFnc = "onclick='thisIsNotAFolder()'";
- dwnldTd = "<td onclick = 'download(\"" + result.items[i].uri + "\",\"" + result.items[i].name + "\");';><button><i class='fa fa-download'> </i></button></td>";
- } else {
- fileOrFolder = '<img src="images/folder.svg"></img>';
- onclickFnc = "onclick='uriData(" + result.items[i].id + "," + result.items[i].parent + ")'";
- dwnldTd = "<td></td>";
- }
- 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>" + dwnldTd + "</tr>";
- $("#folderPath").html(uriDataHtml);
- });
- $("#filePath").val(result.directory);
- $("#parent").html("<b onclick=uriData(" + parent + ",null)>" + result.directory + "</b>");
- }, "json")
- .fail(function () {
- $("#folderPath").html("Some error found");
- });
- }
- function download(uris, filename) {
- $(".se-pre-con").show();
- var getdata = uris.split(",");
- var uri = getdata[0];
- var filename = getdata[1];
- var accessTocken = "<?php echo $access_token; ?>";
- var dlscfnc = "<?php echo $config['dlsc_path']; ?>"
- var arraydata = {uri: uri, accesstoken: accessTocken, filename: filename}
- $.ajax({
- url: dlscfnc+'download.php',
- type: 'POST',
- data: arraydata
- }).done(function (response)
- {
- $(".se-pre-con").hide();
- var getdata = JSON.parse(response);
- console.log(getdata[1]);
- window.open("data:" + getdata[0] + ";base64," + getdata[1], '', 'height=650,width=840');
+ $("#tdUri").show();
+ $(".se-pre-con").show();
+ var id = id;
+ var accessTocken = "<?php echo $access_token; ?>";
+ var uri = "<?php echo $api_detail['uri']; ?>";
+ var uriDataHtml = "";
+ var fileOrFolder = "";
+ var onclickFnc = "";
+ var dwnldTd = "";
+ var accessToken = "<?php echo $access_token; ?>";
+ var urifnc = "<?php echo $config['uri_path']; ?>";
+ $.post(urifnc, {access_token: accessTocken, id: id}, function (result) {
+ $.each(result.items, function (i, l) {
+
+ if (result.items[i].type == "file") {
+ console.log(result.items);
+ fileOrFolder = '<img src="images/file.svg"></img>';
+ onclickFnc = "onclick='thisIsNotAFolder()'";
+ dwnldTd = "<td onclick = 'download(\"" + result.items[i].uri + "\",\"" + result.items[i].name + "\");';><button><i class='fa fa-download'> </i></button></td>";
+ } else {
+ fileOrFolder = '<img src="images/folder.svg"></img>';
+ onclickFnc = "onclick='uriData(" + result.items[i].id + "," + result.items[i].parent + ")'";
+ dwnldTd = "<td></td>";
+ }
+ 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>" + dwnldTd + "</tr>";
+ $("#folderPath").html(uriDataHtml);
});
- }
- $(".se-pre-con").fadeOut("slow");
+ $("#filePath").val(result.directory);
+ $("#parent").html("<b onclick=uriData(" + parent + ",null)>" + result.directory + "</b>");
+ $(".se-pre-con").hide();
+ }, "json")
+ .fail(function () {
+ $("#folderPath").html("Some error found");
+ });
+}
+function download(uris, filename) {
+ $(".se-pre-con").show();
+ var getdata = uris.split(",");
+ var uri = getdata[0];
+ var filename = getdata[1];
+ var accessTocken = "<?php echo $access_token; ?>";
+ var dlscfnc = "<?php echo $config['dlsc_path']; ?>"
+ var arraydata = {uri: uri, accesstoken: accessTocken, filename: filename}
+ $.ajax({
+ url: dlscfnc + 'download.php',
+ type: 'POST',
+ data: arraydata
+ }).done(function (response)
+ {
+ $(".se-pre-con").hide();
+ var getdata = JSON.parse(response);
+ console.log(getdata[1]);
+ window.open("data:" + getdata[0] + ";base64," + getdata[1], '', 'height=650,width=840');
+ });
+}
+$(".se-pre-con").fadeOut("slow");
</script>
</html>
\ No newline at end of file
--- 'a/xml/hashKey.xml'
+++ b/xml/hashKey.xml
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
<maincontent>
- <code num="87740a85ef36450078a3913c5b7c559e90a162aa"/>
- <access_token>2813ae7a6aea48560c7e3e504a97f7c6fb13cb79</access_token>
+ <code num="eb5c26f83f27d43d010bb9cb9f84d8426c82cfad"/>
+ <access_token>80ce0101529982b4c469de2f9536fc28866af189</access_token>
</maincontent>
--- 'a/xml/hashhkey.xml'
+++ b/xml/hashhkey.xml
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
<maincontent>
- <code num="b4bdc5351ca2e962b08964c9a53584f6d454aff8"/>
- <access_token>abf2947b5c5a3661374234c2450079c2a0232b41</access_token>
+ <code num="6403f37128f6b6c995029fe0e39c750885c048cb"/>
+ <access_token>faeea1af87f855a0b94856b0e07ff0fa6e74de48</access_token>
</maincontent>