From: indresh singh bhadoria Date: Fri, 23 Jun 2017 12:41:11 +0530 Subject: sort folder listing --- sort folder listing --- Binary files 'a/css/loading.gif' and b/css/loading.gif differ --- '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.1; + opacity: 0.4; background: url(loading.gif) center no-repeat transparent; } \ No newline at end of file Binary files 'a/images/loading.gif' and /dev/null differ Binary files 'a/images/loading12.gif' and /dev/null differ Binary files /dev/null and b/images/loadinga.gif differ --- 'a/uploaddoc.php' +++ b/uploaddoc.php @@ -23,8 +23,6 @@ curl_close($vh); $notgettingdata = explode('¿', $result); $getToken = json_decode($notgettingdata[1]); - - if (isset($getToken->access_token)) { $access_token = $getToken->access_token; } --- 'a/uri.php' +++ b/uri.php @@ -16,5 +16,29 @@ curl_setopt($uri, CURLOPT_SSL_VERIFYHOST curl_setopt($uri, CURLOPT_RETURNTRANSFER, true); $uriResissued = curl_exec($uri); curl_close($uri); -print_r($uriResissued); -?> +$resFileNew = explode('¿', $uriResissued); +$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 = json_encode(array_merge($dataDirectory, $uriItemsArray)); +print_r($dataF); +?> \ No newline at end of file --- 'a/xml/hashKey.xml' +++ b/xml/hashKey.xml @@ -1,5 +1,5 @@ - - f3d904f5c239c28b620e28dad6265fbad321b029 + + 4a8b4266a3bf5cc0b053f3953877c76278322041 --- 'a/xml/hashhkey.xml' +++ b/xml/hashhkey.xml @@ -1,5 +1,5 @@ - - 86a8123cb941790bedf2c2f9d97d389375f5a420 + + d5ed79043f5220927db7f12c6702eb46e5b50f5d