authpartner

Clone or download

sample api UI change

Modified Files

M css/styles.css
+1 −1
--- 'a/css/styles.css'
+++ b/css/styles.css
@@ -5316,6 +5316,6 @@ if it's not present, don't show loader *
width: 100%;
height: 100%;
z-index: 9999;
- opacity: 0.2;
+ opacity: 0.1;
background: url(loading.gif) center no-repeat transparent;
}
\ No newline at end of file
M doc.php
+55 −53
--- 'a/doc.php'
+++ b/doc.php
@@ -2,55 +2,54 @@
include 'config.php';
$code = $_GET['code'];
$state = $_GET['state'];
- $url = $config['access_token_download'];
- $post = array(
- 'code' => $code,
- 'grant_type' => 'authorization_code',
- 'client_id' => $config['client_id_download'],
- 'client_secret' => $config['client_secret_download'],
- 'redirect_uri' => $config['download_redirect_uri'],
- );
- $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'];
+$url = $config['access_token_download'];
+$post = array(
+ 'code' => $code,
+ 'grant_type' => 'authorization_code',
+ 'client_id' => $config['client_id_download'],
+ 'client_secret' => $config['client_secret_download'],
+ 'redirect_uri' => $config['download_redirect_uri'],
+);
+$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_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
@@ -115,7 +114,10 @@ include 'header.php';
<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; cursor:pointer; cursor:hand"></b><b id="parent" style="color:blueviolet; cursor:pointer; cursor:hand"></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
@@ -156,8 +158,8 @@ include 'header.php';
</tbody>
</table>
<div class="footer">
- <a class="btn btn-primary" style="float: right; margin-left: 10px; border-radius:5px;" href="payment.php">Complete Payment</a>
- <a class="btn btn-primary" style="float: right; border-radius:5px;" href="index.php">Cancel</a>
+ <a class="btn btn-default" style="float: right; margin-left: 10px; border-radius:5px;" href="payment.php">Complete Payment</a>
+ <a class="btn btn-default" style="float: right; border-radius:5px;" href="index.php">Cancel</a>
</div>
</div>
</div>
@@ -201,8 +203,8 @@ include 'header.php';
?>
</table>
<div class="footer">
- <a class="btn btn-primary" style="float: right; margin-left: 10px; border-radius:5px;" href="payment.php">Complete Payment</a>
- <a class="btn btn-primary" style="float: right; border-radius:5px;" href="index.php">Cancel</a>
+ <a class="btn btn-default" style="float: right; margin-left: 10px; border-radius:5px;" href="payment.php">Complete Payment</a>
+ <a class="btn btn-default" style="float: right; border-radius:5px;" href="index.php">Cancel</a>
</div>
</div>
</div>
M uploaddoc.php
+7 −6
--- 'a/uploaddoc.php'
+++ b/uploaddoc.php
@@ -15,7 +15,6 @@ curl_setopt($vh, CURLOPT_CUSTOMREQUEST,
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);
@@ -76,7 +75,7 @@ include 'header.php';
#fileUpload {
cursor: pointer;
cursor:hand;
- margin: -13px -3px;
+ margin: -14px -4px;
opacity: 0;
overflow: hidden;
position: relative;
@@ -106,9 +105,11 @@ include 'header.php';
<div class="col-md-12">
<div class="box box-body col-sm-12" >
<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 class="col-md-3">
+ <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-10 pull-left">
+ <div class="col-md-9 pull-left">
<form action="browse.php" method="post" enctype="multipart/form-data" >
<input type="text" value="<?php echo $access_token; ?>" name="accesstoken" class="hidden"/>
<input type="text" value="<?php echo $code; ?>" name="code" class="hidden"/>
@@ -169,8 +170,8 @@ include 'header.php';
</tbody>
</table>
<div class="footer">
- <a class="btn btn-primary" style="float: right; margin-left: 10px; border-radius:5px;" href="payment.php">Complete Payment</a>
- <a class="btn btn-primary" style="float: right; border-radius:5px;" href="index.php">Cancel</a>
+ <a class="btn btn-default" style="float: right; margin-left: 10px; border-radius:5px;" href="payment.php">Complete Payment</a>
+ <a class="btn btn-default" style="float: right; border-radius:5px;" href="index.php">Cancel</a>
</div>
</div>
</div>
M xml/hashKey.xml
+2 −2
--- 'a/xml/hashKey.xml'
+++ b/xml/hashKey.xml
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
<maincontent>
- <code num="eb5c26f83f27d43d010bb9cb9f84d8426c82cfad"/>
- <access_token>80ce0101529982b4c469de2f9536fc28866af189</access_token>
+ <code num="20ed1cc268156605f5281a52e2adf5c1c4b2c083"/>
+ <access_token>f3d904f5c239c28b620e28dad6265fbad321b029</access_token>
</maincontent>
M xml/hashhkey.xml
+2 −2
--- 'a/xml/hashhkey.xml'
+++ b/xml/hashhkey.xml
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
<maincontent>
- <code num="6403f37128f6b6c995029fe0e39c750885c048cb"/>
- <access_token>faeea1af87f855a0b94856b0e07ff0fa6e74de48</access_token>
+ <code num="7ba70ff76b57de95f1643ee669affb27c5c5ec5c"/>
+ <access_token>86a8123cb941790bedf2c2f9d97d389375f5a420</access_token>
</maincontent>