Merge 5bcbb76a9f into 596955ffe0
This commit is contained in:
+1
-5
@@ -2302,11 +2302,7 @@ function render_list($path = '', $files = [])
|
|||||||
} else {
|
} else {
|
||||||
if (!($html = getcache('customTheme'))) {
|
if (!($html = getcache('customTheme'))) {
|
||||||
$file_path = $theme;
|
$file_path = $theme;
|
||||||
$tmp = curl('GET', $file_path, '', [], 1);
|
$tmp = curl('GET', $file_path, '', [], 0, 1);
|
||||||
if ($tmp['stat']==302) {
|
|
||||||
error_log1(json_encode($tmp));
|
|
||||||
$tmp = curl('GET', $tmp["returnhead"]["Location"]);
|
|
||||||
}
|
|
||||||
if (!!$tmp['body']) $html = $tmp['body'];
|
if (!!$tmp['body']) $html = $tmp['body'];
|
||||||
savecache('customTheme', $html, '', 9999);
|
savecache('customTheme', $html, '', 9999);
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -62,7 +62,7 @@ class Onedrive {
|
|||||||
//savecache('path_' . $parentpath, $parentfiles, $this->disktag);
|
//savecache('path_' . $parentpath, $parentfiles, $this->disktag);
|
||||||
if ($parentfiles['children'][$filename]['size']<1024*1024) {
|
if ($parentfiles['children'][$filename]['size']<1024*1024) {
|
||||||
if (!(isset($parentfiles['children'][$filename]['content'])&&$parentfiles['children'][$filename]['content']['stat']==200)) {
|
if (!(isset($parentfiles['children'][$filename]['content'])&&$parentfiles['children'][$filename]['content']['stat']==200)) {
|
||||||
$content1 = curl('GET', $parentfiles['children'][$filename][$this->DownurlStrName]);
|
$content1 = curl('GET', $parentfiles['children'][$filename][$this->DownurlStrName], '', [], 0, 1);
|
||||||
$tmp = null;
|
$tmp = null;
|
||||||
$tmp = json_decode(json_encode($content1), true);
|
$tmp = json_decode(json_encode($content1), true);
|
||||||
if ($tmp['body']===null) {
|
if ($tmp['body']===null) {
|
||||||
@@ -121,7 +121,7 @@ class Onedrive {
|
|||||||
if (in_array(strtolower(splitlast($files['name'],'.')[1]), $exts['txt'])) {
|
if (in_array(strtolower(splitlast($files['name'],'.')[1]), $exts['txt'])) {
|
||||||
if ($files['size']<1024*1024) {
|
if ($files['size']<1024*1024) {
|
||||||
if (!(isset($files['content'])&&$files['content']['stat']==200)) {
|
if (!(isset($files['content'])&&$files['content']['stat']==200)) {
|
||||||
$content1 = curl('GET', $files[$this->DownurlStrName]);
|
$content1 = curl('GET', $files[$this->DownurlStrName], '', [], 0, 1);
|
||||||
$tmp = null;
|
$tmp = null;
|
||||||
$tmp = json_decode(json_encode($content1), true);
|
$tmp = json_decode(json_encode($content1), true);
|
||||||
if ($tmp['body']===null) {
|
if ($tmp['body']===null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user