From: Development-DLA Date: Wed, 28 Jun 2017 15:15:44 +0530 Subject: ignore --- ignore --- Binary files 'a/css/loading.gif' and b/css/loading.gif differ --- 'a/css/styles.css' +++ b/css/styles.css @@ -5,6 +5,7 @@ /* * 1.1 Common styles */ + ::-moz-selection { color: #fff; background: #000000; } @@ -781,14 +782,14 @@ select:not([multiple]) { color: #FFFFFF; /* border-color: #000000;*/ } .btn.btn-blue-b { - border: 2px solid #f15d35; - background: #f15d35; + border: 2px solid blueviolet; + background: blueviolet; font-family: "Karla", arial, sans-serif; font-weight: normal; color: #FFFFFF; } .btn.btn-blue-b:hover { - border: 2px solid #f15d35; - background: #FFFFFF; + border: 2px solid cornflowerblue; + background: cornflowerblue; color: #000000; } .rev-btn { @@ -1723,7 +1724,8 @@ body.opened-nav-animate.opened-nav .main #footer-copyright { padding: 30px 0 0 0 ; color: #ffffff; - text-align: center; } + text-align: center; + } #footer-copyright .container .social-nav, #footer-copyright .container .footer-copyright { margin-bottom: 10px; } @@ -4575,7 +4577,7 @@ table.compare tr td .add_to_cart_button } .box:hover { - border:1px solid #f15d35; + border:1px solid blueviolet !important; background: #fefefe; } @@ -5303,35 +5305,27 @@ 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; width: 100%; height: 100%; z-index: 9999; - opacity: 0.2; + opacity: 0.4; background: url(loading.gif) center no-repeat transparent; +} +.btn-default:hover{ + border:1px solid blueviolet; +} +.navbar-nav > + li > a:hover + { + background-color: green; + color: #000; } \ No newline at end of file --- 'a/doc.php' +++ b/doc.php @@ -1,66 +1,55 @@ $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']; -$cd = (array) $xml['code']['num']; -if ($cd != $code) { - $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']; -} $headers = array( 'Authorization: Bearer ' . $access_token @@ -76,8 +65,29 @@ curl_setopt($vhf, CURLOPT_RETURNTRANSFER $resFile = curl_exec($vhf); curl_close($vhf); $resFileNew = explode('¿', $resFile); -$dataF = json_decode($resFileNew[1], TRUE); - +$uriRes = json_decode($resFileNew[1]); +$uriDir = array(); +$uriFiles = array(); +foreach ($uriRes->items as $uriI) { + if ($uriI->type == "dir") { + $uriDir[] = (array) $uriI; + } else { + $uriFiles[] = (array) $uriI; + } +} +if ($uriDir == NULL || $uriFiles == NULL) { + $x = array_merge($uriDir, $uriFiles); + foreach ($x as $y) { + if ($y != NULL) { + $uriItems[] = $y; + } + } +} else { + $uriItems = array_merge($uriDir, $uriFiles); +} +$uriItemsArray['items'] = $uriItems; +$dataDirectory['directory'] = $uriRes->directory; +$dataF = array_merge($dataDirectory, $uriItemsArray); $headers = array( 'Authorization: Bearer ' . $access_token @@ -95,6 +105,8 @@ $resissuedErr = curl_error($vhi); curl_close($vhi); $issuedNew = explode('¿', $resissued); $dataI = json_decode($issuedNew[1], TRUE); + +include 'header.php'; ?>
@@ -113,7 +125,7 @@ $dataI = json_decode($issuedNew[1], TRUE
-
+
@@ -123,49 +135,54 @@ $dataI = json_decode($issuedNew[1], TRUE -
+
+ + +
- - - '; - echo ''; - echo($api_detail['name']); - } - if ($api_detail['type'] == "file") { - echo " - - - - - - + + '; + echo ''; + echo($api_detail['name']); + echo ""; + } + if ($api_detail['type'] == "file") { + echo ""; + } + ?> + + + + + "; + } + ?> + +
Date
"; - echo ''; - echo($api_detail['name']); + "; - ?> - - - -
"; + echo ''; + echo($api_detail['name']); + echo " + +
@@ -176,10 +193,9 @@ $dataI = json_decode($issuedNew[1], TRUE
-
-
-
- +
+
+
@@ -200,7 +216,7 @@ $dataI = json_decode($issuedNew[1], TRUE @@ -209,10 +225,9 @@ $dataI = json_decode($issuedNew[1], TRUE ?>
Name - +
-
@@ -230,60 +245,63 @@ $dataI = json_decode($issuedNew[1], TRUE \ No newline at end of file --- 'a/footer.php' +++ b/footer.php @@ -32,7 +32,6 @@
- --- 'a/header.php' +++ b/header.php @@ -67,18 +67,18 @@
-