diff --git a/app.json b/app.json
index b3f61c0..755c2aa 100644
--- a/app.json
+++ b/app.json
@@ -1,7 +1,7 @@
{
- "name": "Tfo",
- "description": "Deploy Tfo to heroku",
- "website": "https://github.com/BingoKingo/Tfo",
- "repository": "https://github.com/BingoKingo/Tfo",
+ "name": "OneManager",
+ "description": "Deploy OneManager to heroku",
+ "website": "https://github.com/qkqpttgf/OneManager-php",
+ "repository": "https://github.com/qkqpttgf/OneManager-php",
"success_url": "/"
}
diff --git a/common.php b/common.php
index b376561..7f415b2 100644
--- a/common.php
+++ b/common.php
@@ -2042,7 +2042,7 @@ function render_list($path = '', $files = [])
if ($_SERVER['base_disk_path']!=$_SERVER['base_path']) {
if (getConfig('diskname')!='') $diskname = getConfig('diskname');
else $diskname = $_SERVER['disktag'];
- // $title .= ' - ' . $diskname;
+ $title .= ' - ' . $diskname;
}
$title .= ' - ' . $_SERVER['sitename'];
$html = str_replace('', $title, $html);
diff --git a/conststr.php b/conststr.php
index 174ee4a..c42966e 100644
--- a/conststr.php
+++ b/conststr.php
@@ -710,13 +710,13 @@ $constStr = [
'ar-sa' => 'أكد',
],
'Close' => [
- 'en-us' => '×',
- 'zh-cn' => '×',
- 'zh-tw' => '×',
- 'ja' => '×',
- 'ko-kr' => '×',
- 'fa' => '×',
- 'ar-sa' => '×',
+ 'en-us' => 'Close',
+ 'zh-cn' => '关闭',
+ 'zh-tw' => '關閉',
+ 'ja' => '閉じる',
+ 'ko-kr' => '닫기',
+ 'fa' => 'بستن',
+ 'ar-sa' => 'مغلق',
],
'InputPasswordUWant' => [
'en-us' => 'Input Password you Want',
diff --git a/disk/Aliyundrive.php b/disk/Aliyundrive.php
index e09bb10..418ff7a 100644
--- a/disk/Aliyundrive.php
+++ b/disk/Aliyundrive.php
@@ -8,8 +8,8 @@ class Aliyundrive {
$this->disktag = $tag;
$this->auth_url = 'https://websv.aliyundrive.com/token/refresh';
$this->api_url = 'https://api.aliyundrive.com/v2';
- $res = $this->get_access_token(getConfig('refresh_token', $tag));
$this->default_drive_id = getConfig('default_drive_id', $tag);
+ $res = $this->get_access_token(getConfig('refresh_token', $tag));
}
public function isfine()
@@ -441,7 +441,7 @@ class Aliyundrive {
return curl('POST', $url, json_encode($data), $header);
}
- protected function fileCreate($parentId, $fileName, $sha1, $size) {
+ protected function fileCreate($parentId, $fileName, $sha1, $size, $part_number) {
$url = $this->api_url . '/file/create';
$header["content-type"] = "application/json; charset=utf-8";
@@ -455,7 +455,9 @@ class Aliyundrive {
$data['ignoreError'] = false;
$data['name'] = $fileName;
$data['parent_file_id'] = $parentId;
- $data['part_info_list'][0]['part_number'] = 1;
+ for ($i=0;$i<$part_number;$i++) {
+ $data['part_info_list'][$i]['part_number'] = $i+1;
+ }
$data['size'] = (int)$size;
$data['type'] = 'file';
@@ -492,9 +494,11 @@ class Aliyundrive {
$data['drive_id'] = $this->default_drive_id;
$data['file_id'] = $file_id;
$data['ignoreError'] = false;
+ $i = 0;
foreach ($etags as $etag) {
- $data['part_info_list'][$etag['part_number'] - 1]['part_number'] = $etag['part_number'];
- $data['part_info_list'][$etag['part_number'] - 1]['etag'] = $etag['etag'];
+ $data['part_info_list'][$i]['part_number'] = $i + 1;
+ $data['part_info_list'][$i]['etag'] = $etag;
+ $i++;
}
$data['upload_id'] = $upload_id;
@@ -511,7 +515,7 @@ class Aliyundrive {
{
if (isset($_POST['uploadid'])) {
// Complete
- $result = $this->fileComplete($_POST['fileid'], $_POST['uploadid'], $_POST['etag']);
+ $result = $this->fileComplete($_POST['fileid'], $_POST['uploadid'], json_decode($_POST['etag'], true));
return output(json_encode($this->files_format(json_decode($result['body'], true))), $result['stat']);
} else {
if ($_POST['upbigfilename']=='') return output('error: no file name', 400);
@@ -552,7 +556,7 @@ class Aliyundrive {
//error_log1($res['body']);
$parent_file_id = json_decode($res['body'], true)['file_id'];
}
- $response = $this->fileCreate($parent_file_id, $filename, $_POST['filesha1'], $fileinfo['size']);
+ $response = $this->fileCreate($parent_file_id, $filename, $_POST['filesha1'], $fileinfo['size'], ceil($fileinfo['size']/$_POST['chunksize']));
$res = json_decode($response['body'], true);
if (isset($res['exist'])) {
// 已经有
@@ -619,7 +623,7 @@ class Aliyundrive {
$tmp['refresh_token'] = $result['refresh_token'];
$tmp['default_drive_id'] = $result['default_drive_id'];
$tmp['default_sbox_drive_id'] = $result['default_sbox_drive_id'];
- $tmp['token_expires'] = time()+7*24*60*60;
+ $tmp['token_expires'] = time()+3*24*60*60;
$tmp['Driver'] = 'Aliyundrive';
$tmp['disktag_add'] = $_POST['disktag_add'];
$tmp['diskname'] = $_POST['diskname'];
@@ -708,9 +712,10 @@ class Aliyundrive {
if ($response['stat']==200) $ret = json_decode($response['body'], true);
if (!isset($ret['access_token'])) {
error_log1('failed to get [' . $this->disktag . '] access_token. response' . json_encode($ret));
- $response['body'] = json_encode(json_decode($response['body']), JSON_PRETTY_PRINT);
- $response['body'] .= '\nfailed to get [' . $this->disktag . '] access_token.';
- return $response;
+ //$response['body'] = json_encode(json_decode($response['body']), JSON_PRETTY_PRINT);
+ $response['body'] .= 'failed to get [' . $this->disktag . '] access_token.';
+ $this->error = $response;
+ return false;
}
$tmp = $ret;
$tmp['access_token'] = '******';
@@ -718,7 +723,7 @@ class Aliyundrive {
error_log1('[' . $this->disktag . '] Get access token:' . json_encode($tmp, JSON_PRETTY_PRINT));
$this->access_token = $ret['access_token'];
savecache('access_token', $this->access_token, $this->disktag, $ret['expires_in'] - 300);
- if (time()>getConfig('token_expires', $this->disktag)) setConfig([ 'refresh_token' => $ret['refresh_token'], 'token_expires' => time()+7*24*60*60 ], $this->disktag);
+ if (time()>getConfig('token_expires', $this->disktag)) setConfig([ 'refresh_token' => $ret['refresh_token'], 'token_expires' => time()+3*24*60*60 ], $this->disktag);
return true;
}
return true;
diff --git a/disk/Onedrive.php b/disk/Onedrive.php
index 66e352b..b05df7f 100644
--- a/disk/Onedrive.php
+++ b/disk/Onedrive.php
@@ -12,7 +12,7 @@ class Onedrive {
$this->client_secret = getConfig('client_secret', $tag);
} else {
$this->client_id = '734ef928-d74c-4555-8d1b-d942fa0a1a41';
- $this->client_secret = ':EK[e0/4vQ@mQgma8LmnWb6j4_C1CSIW';
+ $this->client_secret = '_I5gOpmG5vTC2Ts_K._wCW4nN1km~4Pk52';
}
$this->oauth_url = 'https://login.microsoftonline.com/common/oauth2/v2.0/';
$this->api_url = 'https://graph.microsoft.com/v1.0';
diff --git a/disk/Sharepoint.php b/disk/Sharepoint.php
index 308f8db..099ff29 100644
--- a/disk/Sharepoint.php
+++ b/disk/Sharepoint.php
@@ -11,7 +11,7 @@ class Sharepoint extends Onedrive {
$this->client_secret = getConfig('client_secret', $tag);
} else {
$this->client_id = '734ef928-d74c-4555-8d1b-d942fa0a1a41';
- $this->client_secret = ':EK[e0/4vQ@mQgma8LmnWb6j4_C1CSIW';
+ $this->client_secret = '_I5gOpmG5vTC2Ts_K._wCW4nN1km~4Pk52';
}
$this->oauth_url = 'https://login.microsoftonline.com/common/oauth2/v2.0/';
$this->api_url = 'https://graph.microsoft.com/v1.0';
diff --git a/platform/AliyunFC.php b/platform/AliyunFC.php
index 6b0cc2c..634c9c0 100644
--- a/platform/AliyunFC.php
+++ b/platform/AliyunFC.php
@@ -405,7 +405,7 @@ function setConfigResponse($response)
return json_decode($response, true);
}
-function OnekeyUpate($auth = 'BingoKingo', $project = 'Tfo', $branch = 'master')
+function OnekeyUpate($auth = 'qkqpttgf', $project = 'OneManager-php', $branch = 'master')
{
$source = '/tmp/code.zip';
$outPath = '/tmp/';
diff --git a/platform/BaiduCFC.php b/platform/BaiduCFC.php
index 5d3656e..66555fa 100644
--- a/platform/BaiduCFC.php
+++ b/platform/BaiduCFC.php
@@ -369,7 +369,7 @@ function setConfigResponse($response)
return json_decode( $response, true );
}
-function OnekeyUpate($auth = 'BingoKingo', $project = 'Tfo', $branch = 'master')
+function OnekeyUpate($auth = 'qkqpttgf', $project = 'OneManager-php', $branch = 'master')
{
$source = '/tmp/code.zip';
$outPath = '/tmp/';
diff --git a/platform/Heroku.php b/platform/Heroku.php
index bc21977..d8cf98a 100644
--- a/platform/Heroku.php
+++ b/platform/Heroku.php
@@ -289,9 +289,9 @@ function_name:' . $_SERVER['function_name'] . '
'.getconstStr('Refresh').' ';
}
-function OnekeyUpate($auth = 'BingoKingo', $project = 'Tfo', $branch = 'master')
+function OnekeyUpate($auth = 'qkqpttgf', $project = 'OneManager-php', $branch = 'master')
{
- //'https://github.com/BingoKingo/Tfo/tarball/master/';
+ //'https://github.com/qkqpttgf/OneManager-php/tarball/master/';
$source = 'https://github.com/' . $auth . '/' . $project . '/tarball/' . urlencode($branch) . '/';
return updateHerokuapp(getConfig('function_name'), getConfig('APIKey'), $source);
}
diff --git a/platform/HuaweiFG_env.php b/platform/HuaweiFG_env.php
index 9715b33..6d57da3 100644
--- a/platform/HuaweiFG_env.php
+++ b/platform/HuaweiFG_env.php
@@ -428,7 +428,7 @@ function setConfigResponse($response)
return json_decode( $response, true );
}
-function OnekeyUpate($auth = 'BingoKingo', $project = 'Tfo', $branch = 'master')
+function OnekeyUpate($auth = 'qkqpttgf', $project = 'OneManager-php', $branch = 'master')
{
$source = '/tmp/code.zip';
$outPath = '/tmp/';
diff --git a/platform/HuaweiFG_file.php b/platform/HuaweiFG_file.php
index 0b8480b..4600d3a 100644
--- a/platform/HuaweiFG_file.php
+++ b/platform/HuaweiFG_file.php
@@ -520,7 +520,7 @@ function setConfigResponse($response)
return json_decode( $response, true );
}
-function OnekeyUpate($auth = 'BingoKingo', $project = 'Tfo', $branch = 'master')
+function OnekeyUpate($auth = 'qkqpttgf', $project = 'OneManager-php', $branch = 'master')
{
$source = '/tmp/code.zip';
$outPath = '/tmp/';
diff --git a/platform/Normal.php b/platform/Normal.php
index 9eaf8d0..bf4d99e 100644
--- a/platform/Normal.php
+++ b/platform/Normal.php
@@ -294,7 +294,7 @@ function setConfigResponse($response)
return json_decode($response, true);
}
-function OnekeyUpate($auth = 'BingoKingo', $project = 'Tfo', $branch = 'master')
+function OnekeyUpate($auth = 'qkqpttgf', $project = 'OneManager-php', $branch = 'master')
{
$slash = '/';
if (strpos(__DIR__, ':')) $slash = '\\';
diff --git a/platform/TencentSCF_env.php b/platform/TencentSCF_env.php
index a8184fb..badc89d 100644
--- a/platform/TencentSCF_env.php
+++ b/platform/TencentSCF_env.php
@@ -446,7 +446,7 @@ namespace:' . $_SERVER['namespace'] . '
'.getconstStr('Refresh').' ';
}
-function OnekeyUpate($auth = 'BingoKingo', $project = 'Tfo', $branch = 'master')
+function OnekeyUpate($auth = 'qkqpttgf', $project = 'OneManager-php', $branch = 'master')
{
$source['url'] = 'https://github.com/' . $auth . '/' . $project;
$source['branch'] = $branch;
diff --git a/platform/TencentSCF_file.php b/platform/TencentSCF_file.php
index d46d375..e6030df 100644
--- a/platform/TencentSCF_file.php
+++ b/platform/TencentSCF_file.php
@@ -583,7 +583,7 @@ function setConfigResponse($response)
return json_decode( $response, true )['Response'];
}
-function OnekeyUpate($auth = 'BingoKingo', $project = 'Tfo', $branch = 'master')
+function OnekeyUpate($auth = 'qkqpttgf', $project = 'OneManager-php', $branch = 'master')
{
$source = '/tmp/code.zip';
$outPath = '/tmp/';
diff --git a/readme.md b/readme.md
index 0b1d80d..9ee55c1 100644
--- a/readme.md
+++ b/readme.md
@@ -1,108 +1,21 @@
-# **Tfo**
-###### A website for two-point filestorage online (tfo)(20210201).
+Install program first, then add onedrive in setup after login.
+先安装程序,登录后在设置中添加onedrive。
-
-
-## Featured theme files 主题特征性文件
-
-
-具体地,您可以下载/复制体验一下或参考示例中运用tfo.html的[Li Share Storage Mini](https://tfo.herokuapp.com/ "Li Share Storage Mini")。今日诗词随多盘显示。目前,主题仍存在诸多问题,请谅解。PS:主题将要实现的功能有狠多,敬请期待...但是自愿附加组件如今日诗词、评论系统、站长工具、访问统计等涉及到其他平台的私密内容不包含在主题内,若有需要请自行寻找在后台添加。主题的php历史版本请到Theme 文件夹查看.
-
-## Deploy 部署
-### Deploy to Heroku
+# Deploy to Heroku
Official: https://heroku.com
Demo: https://herooneindex.herokuapp.com/
-How to Install: Click the button [](https://heroku.com/deploy?template=https://github.com/BingoKingo/Tfo) to Deploy a new app, or create an app then deploy via connect to your github fork.
+How to Install: Click the button [](https://heroku.com/deploy?template=https://github.com/qkqpttgf/OneManager-php) to Deploy a new app, or create an app then deploy via connect to your github fork.
-### Deploy to Glitch
+# Deploy to Glitch
Official: https://glitch.com/
Demo: https://onemanager.glitch.me/
-How to Install: New Project -> Import form Github -> paste "https://github.com/BingoKingo/Tfo", after done, Show -> In a New Window.
+How to Install: New Project -> Import form Github -> paste "https://github.com/qkqpttgf/OneManager-php", after done, Show -> In a New Window.
-### Deploy to Tencent Serverless Cloud Function (SCF 腾讯无服务器云函数)
+# Deploy to Tencent Serverless Cloud Function (SCF 腾讯无服务器云函数)
Official: https://cloud.tencent.com/product/scf
DEMO: 无
注意:SCF新增限制,环境变量整体最大4KB,所以最多添加4个盘。
@@ -118,7 +31,7 @@ How to Install:
添加网盘时,SCF可能会反应不过来,不跳转到微软,导致添加失败,请不要删除这个盘,再添加一次相同标签的盘就可以了。
-### Deploy to Virtual Private Server (VPS 或空间)
+# Deploy to Virtual Private Server (VPS 或空间)
DEMO: 无
How to Install:
1.Start web service on your server (httpd or other), make sure you can visit it.
@@ -128,12 +41,12 @@ How to Install:
3.Upload code.
上传好代码。
4.Change the file .data/config.php can be read&write (666 is suggested).
- 使web身份可读写代码中的.data/config.php文件,推荐chmod 666 .data/config.php。
+ 使web身份可读写代码中的.data/config.php文件,推荐chmod 666 .data/config.php。
5.View the website in chrome or other.
在浏览器中访问。
-### Deploy to Huawei cloud Function Graph (FG 华为云函数工作流)
+# Deploy to Huawei cloud Function Graph (FG 华为云函数工作流)
Official: https://console.huaweicloud.com/functiongraph/
DEMO: 无
注意:FG中,环境变量整体大小为2KB,所以最多添加2个盘。
@@ -146,7 +59,7 @@ How to Install:
5,在触发器界面点触发器名称,跳到API网关管理,右边更多URL,可以添加自定义域名,自定义域名后发现还是要 xxxx.com/函数名 来访问,点上方的编辑,第1页不用改,点下一步,请求Path改成/,注意匹配模式是前缀匹配,Method为ANY,然后不用点下一步了,点立即完成,然后去发布生效
-### Deploy to Aliyun Function Compute (FC 阿里云函数计算)
+# Deploy to Aliyun Function Compute (FC 阿里云函数计算)
Official: https://fc.console.aliyun.com/
DEMO: 无
@@ -159,7 +72,7 @@ How to Install:
6,访问你的域名,开始安装
-### Deploy to Baidu Cloud Function Compute (CFC 百度云函数计算)
+# Deploy to Baidu Cloud Function Compute (CFC 百度云函数计算)
Official: https://console.bce.baidu.com/cfc/#/cfc/functions
DEMO: 无
自定义域名需要另外使用API网关,并备案。
@@ -173,7 +86,7 @@ How to Install:
6,点击右边触发器,复制并访问提供的url,开始安装
-## Features 特性
+# Features 特性
When downloading files, the program produce a direct url, visitor download files from MS OFFICE via the direct url, the server expend a few bandwidth in produce.
下载时,由程序解析出直链,浏览器直接从微软Onedrive服务器下载文件,服务器只消耗与微软通信的少量流量。
When uploading files, the program produce a direct url, visitor upload files to MS OFFICE via the direct url, the server expend a few bandwidth in produce.
@@ -191,7 +104,7 @@ If there is 'index.html' file, program will only show the content of 'index.html
Click 'EditTime' or 'Size', the list will sort by time or size, Click 'File' can resume sort.
点击“时间”、“大小”,可以排序显示,点“文件”恢复原样。
-## Functional files 功能性文件
+# Functional files 功能性文件
### favicon.ico
put it in the showing home folder of FIRST disk (maybe not root of onedrive). 放在第一个盘的显示目录(不一定是onedrive根目录)。
### index.html
@@ -199,4 +112,7 @@ show content of index.html as html. 将index.html以静态网页显示出来。
### head.md readme.md
it will showed at top or bottom as markdown. 以MD语法显示在顶部或底部。
### head.omf foot.omf
-it will showed at top or bottom as html (javascript works!). 以html显示在顶部或底部(可以跑js)。
\ No newline at end of file
+it will showed at top or bottom as html (javascript works!). 以html显示在顶部或底部(可以跑js)。
+
+QQ Group: 943919989 (请看完上面的中英双语再加群,谢谢!)
+Telegram Group: https://t.me/joinchat/I_RVc0bqxuxlT-d0cO7ozw
diff --git a/tfo/ga.php b/tfo/ga.php
deleted file mode 100644
index 2266ab7..0000000
--- a/tfo/ga.php
+++ /dev/null
@@ -1,30 +0,0 @@
-verifyCode($secret, $oneCode, 2);
- if($checkResult){
- $user = $_POST['user'];
- $pass = $_POST['pass'];
- if($user=='admin'&&$pass=='admin000'){
- exit('登录成功');
- }else{
- exit('密码错误');
- }
- }else{
- exit('验证码错误');
- }}?>
- 登录
-
diff --git a/theme/classic.html b/theme/classic.html
index b04a3e4..b8f6ac4 100644
--- a/theme/classic.html
+++ b/theme/classic.html
@@ -19,7 +19,6 @@
-
@@ -856,7 +855,7 @@
uploadbuttonshow();
return;
}
- upbigfilename = encodeURIComponent((file.webkitRelativePath||file.name));
+ var upbigfilename = encodeURIComponent((file.webkitRelativePath||file.name));
var filemd5='';
function getext(str) {
@@ -1079,58 +1078,82 @@
var tdnum = timea+'_'+i;
td1=document.getElementById('upfile_td1_'+tdnum);
td2=document.getElementById('upfile_td2_'+tdnum);
- if (file.size>100*1024*1024*1024) {
+ var chunksize=10*1024*1024; // 分块大小
+ //var chunksize=100*1024; // 测试小块
+ /*if (file.size>100*1024*1024*1024) {
td2.innerHTML=' ';
uploadbuttonshow();
return;
- }
- upbigfilename = encodeURIComponent((file.webkitRelativePath||file.name));
+ }*/
+ var upbigfilename = encodeURIComponent((file.webkitRelativePath||file.name));
td2.innerHTML='计算SHA1 ...';
var reader = new FileReader();
reader.readAsArrayBuffer(file);
- reader.onload = function(e){
+ reader.onload = function(e) {
var filesha1 = sha1(this.result);
- td2.innerHTML=' ...';
- var xhr1 = new XMLHttpRequest();
- xhr1.open("POST", '?action=upbigfile');
- xhr1.setRequestHeader('x-requested-with','XMLHttpRequest');
- xhr1.onload = function(e){
- //console.log(xhr1.status+xhr1.responseText);
- td2.innerHTML=''+xhr1.responseText+' ';
- if (xhr1.status==201) {
- if (xhr1.responseText=='') {
- getuplink(i,1);
- return;
- }
- var html=JSON.parse(xhr1.responseText);
- //console.log(html);
- if (!html['part_info_list']) {
- if (html.name!='') {
- if (html.exist==true) td2.innerHTML=html.name+' 文件名已有';
- else if (html.rapid_upload==true) td2.innerHTML=html.name+' 秒传';
- else td2.innerHTML=''+xhr1.responseText+' ';
- td1.innerHTML='';
- } else {
- td2.innerHTML=''+xhr1.responseText+' ';
- }
- } else {
- td2.innerHTML=' ...';
- console.log(html['part_info_list'][0]['upload_url']);
- binupfile(file,html['part_info_list'][0]['upload_url'],timea+'_'+i, upbigfilename, filesha1,html['file_id'],html['upload_id']);
- }
- }
- if (i
+ function getext(str) {
+ let p = str.lastIndexOf('.');
+ if (p===-1) return '';
+ if (p===0) return '';
+ return str.substr(p);
+ }
+ var ext = getext(file.webkitRelativePath||file.name);
+ upbigfilename = filesha1 + ext;
+
+ while (upbigfilename.indexOf('%2F')>0) upbigfilename = upbigfilename.replace('%2F', '/');
+ td2.innerHTML=' ...';
+ var html = JSON.parse(localStorage.getItem(filesha1));
+ //console.log(html);
+ if (html!==null && ('part_info_list' in html)) {
+ td2.innerHTML=' ...';
+ binupfile(file, html, timea+'_'+i, upbigfilename, filesha1, chunksize);
+ } else {
+ var xhr1 = new XMLHttpRequest();
+ xhr1.open("POST", '?action=upbigfile');
+ xhr1.setRequestHeader('x-requested-with','XMLHttpRequest');
+ xhr1.onload = function(e){
+ //console.log(xhr1.status+xhr1.responseText);
+ td2.innerHTML=''+xhr1.responseText+' ';
+ if (xhr1.status==201) {
+ if (xhr1.responseText=='') {
+ getuplink(i,1);
+ return;
+ }
+ var html=JSON.parse(xhr1.responseText);
+ //console.log(html);
+ if (!html['part_info_list']) {
+ if (html.name!='') {
+ if (html.exist==true) td2.innerHTML=html.name+' 文件名已有';
+ else if (html.rapid_upload==true) td2.innerHTML=html.name+' 秒传';
+ else td2.innerHTML=''+xhr1.responseText+' ';
+ td1.innerHTML='';
+ } else {
+ td2.innerHTML=''+xhr1.responseText+' ';
+ }
+ } else {
+ td2.innerHTML=' ...';
+ //console.log(html);
+ localStorage.setItem(filesha1, JSON.stringify(html));
+ binupfile(file, html, timea+'_'+i, upbigfilename, filesha1, chunksize);
+ }
+ }
+ if (i200*1024*1024) chunksize=10*1024*1024;
function readblob(start) {
- //var end=start+chunksize;
- //var blob = file.slice(start,end);
- //reader.readAsArrayBuffer(blob);
- reader.readAsArrayBuffer(file);
+ var end=start+chunksize;
+ var blob = file.slice(start,end);
+ reader.readAsArrayBuffer(blob);
+ //reader.readAsArrayBuffer(file);
}
readblob(asize);
reader.onload = function(e){
- var binary = this.result;
- var xhr = new XMLHttpRequest();
- xhr.open("PUT", url, true);
- //xhr.setRequestHeader('x-requested-with','XMLHttpRequest');
- bsize=asize+e.loaded-1;
- xhr.setRequestHeader('Content-Range', 'bytes ' + asize + '-' + bsize +'/'+ totalsize);
- xhr.upload.onprogress = function(e){
- if (e.lengthComputable) {
- var tmptime = new Date();
- var tmpspeed = e.loaded*1000/(tmptime.getTime()-C_starttime.getTime());
- var remaintime = (totalsize-asize-e.loaded)/tmpspeed;
- label.innerHTML=StartStr+' ' +size_format(asize+e.loaded)+ ' / '+size_format(totalsize) + ' = ' + ((asize+e.loaded)*100/totalsize).toFixed(2) + '% :'+size_format((asize+e.loaded-newstartsize)*1000/(tmptime.getTime()-StartTime.getTime()))+'/s '+size_format(tmpspeed)+'/s '+remaintime.toFixed(1)+'s';
- }
- }
- var C_starttime = new Date();
- xhr.onload = function(e){
- if (xhr.status<500) {
- //console.log(xhr.responseText);
- //console.log(xhr.getResponseHeader('ETag'));
- //var response=JSON.parse(xhr.responseText);
- if (xhr.responseText==''&&xhr.getResponseHeader('ETag')!='') {
- // 有ETag说明上传成功
- var xhr1 = new XMLHttpRequest();
- xhr1.open("POST", '?action=upbigfile');
- //xhr1.open("GET", '?action=del_upload_cache&filelastModified='+file.lastModified+'&filesize='+file.size+'&filename='+filename);
- xhr1.setRequestHeader('x-requested-with','XMLHttpRequest');
- xhr1.send('uploadid='+ uploadid +'&fileid='+ fileid +'&etag='+ xhr.getResponseHeader('ETag'));
- xhr1.onload = function(e){
- console.log(xhr1.responseText+','+xhr1.status);
+ if (asize>totalsize) {
+ var xhr1 = new XMLHttpRequest();
+ xhr1.open("POST", '?action=upbigfile');
+ xhr1.setRequestHeader('x-requested-with','XMLHttpRequest');
+ xhr1.onload = function(e){
+ console.log(xhr1.responseText+','+xhr1.status);
+ if (xhr1.status==200) {
+ localStorage.removeItem(filesha1);
var html=JSON.parse(xhr1.responseText);
//response.name=file.webkitRelativePath||response.name;
addelement(html);
- }
- if (totalsize>10*1024*1024) {
- var xhr3 = new XMLHttpRequest();
- xhr3.open("GET", '?action=del_upload_cache&filelastModified='+file.lastModified+'&filesize='+file.size+'&filename='+filename);
- xhr3.setRequestHeader('x-requested-with','XMLHttpRequest');
- xhr3.send(null);
- xhr3.onload = function(e){
- console.log(xhr3.responseText+','+xhr3.status);
+ /*if (totalsize>10*1024*1024) {
+ var xhr3 = new XMLHttpRequest();
+ xhr3.open("GET", '?action=del_upload_cache&filelastModified='+file.lastModified+'&filesize='+file.size+'&filename='+filename);
+ xhr3.setRequestHeader('x-requested-with','XMLHttpRequest');
+ xhr3.send(null);
+ xhr3.onload = function(e){
+ console.log(xhr3.responseText+','+xhr3.status);
+ }
+ }*/
+ EndTime=new Date();
+ MiddleStr = ':'+EndTime.toLocaleString()+' ';
+ if (newstartsize==0) {
+ MiddleStr += ':'+size_format(totalsize*1000/(EndTime.getTime()-StartTime.getTime()))+'/s ';
+ } else {
+ MiddleStr += ':'+size_format((totalsize-newstartsize)*1000/(EndTime.getTime()-StartTime.getTime()))+'/s ';
}
- }
- EndTime=new Date();
- MiddleStr = ':'+EndTime.toLocaleString()+' ';
- if (newstartsize==0) {
- MiddleStr += ':'+size_format(totalsize*1000/(EndTime.getTime()-StartTime.getTime()))+'/s ';
+ document.getElementById('upfile_td1_'+tdnum).innerHTML='';
+ label.innerHTML=StartStr+MiddleStr;
+ label.style.color='green';
} else {
- MiddleStr += ':'+size_format((totalsize-newstartsize)*1000/(EndTime.getTime()-StartTime.getTime()))+'/s ';
+ label.innerHTML= '' + xhr1.status + ',' + xhr1.responseText + ' ';
+ localStorage.removeItem(filesha1);
}
- while (filename.indexOf('%2F')>0) filename = filename.replace('%2F', '/');
- document.getElementById('upfile_td1_'+tdnum).innerHTML='';
- label.innerHTML=StartStr+MiddleStr;
- label.style.color='green';
- // uploadbuttonshow();
- } else {
- if (!response['nextExpectedRanges']) {
- label.innerHTML=''+xhr.responseText+' ';
+ }
+ xhr1.send('uploadid=' + uploadid + '&fileid=' + fileid + '&etag=' + JSON.stringify(res['ETag']));
+ } else {
+ var binary = this.result;
+ var xhr = new XMLHttpRequest();
+ xhr.open("PUT", res['part_info_list'][chunknum]['upload_url'], true);
+ //xhr.setRequestHeader('x-requested-with','XMLHttpRequest');
+ bsize=asize+e.loaded-1;
+ xhr.setRequestHeader('Content-Range', 'bytes ' + asize + '-' + bsize +'/'+ totalsize);
+ xhr.upload.onprogress = function(e){
+ if (e.lengthComputable) {
+ var tmptime = new Date();
+ var tmpspeed = e.loaded*1000/(tmptime.getTime()-C_starttime.getTime());
+ var remaintime = (totalsize-asize-e.loaded)/tmpspeed;
+ label.innerHTML=StartStr+' ' +size_format(asize+e.loaded)+ ' / '+size_format(totalsize) + ' = ' + ((asize+e.loaded)*100/totalsize).toFixed(2) + '% :'+size_format((asize+e.loaded-newstartsize)*1000/(tmptime.getTime()-StartTime.getTime()))+'/s '+size_format(tmpspeed)+'/s '+remaintime.toFixed(1)+'s';
+ }
+ }
+ var C_starttime = new Date();
+ xhr.onload = function(e){
+ if (xhr.status<500) {
+ //console.log(xhr.responseText);
+ //console.log(xhr.getResponseHeader('ETag'));
+ //var response=JSON.parse(xhr.responseText);
+ if (xhr.responseText==''&&xhr.getResponseHeader('ETag')!='') {
+ // 有ETag说明本段上传成功
+ let etag = xhr.getResponseHeader('ETag');
+ //if (etag.substr(0,1)=='"') etag = etag.substr(1);还就要引号!
+ //if (etag.substr(-1)=='"') etag = etag.substr(0, etag.length-1);
+ res['ETag'][chunknum] = etag;
+ localStorage.setItem(filesha1, JSON.stringify(res));
+ chunknum++;
+ asize = bsize + 1;
+ if (chunknum==chunknumtotal) {
+ // 上传结束
+ var xhr1 = new XMLHttpRequest();
+ xhr1.open("POST", '?action=upbigfile');
+ xhr1.setRequestHeader('x-requested-with','XMLHttpRequest');
+ xhr1.onload = function(e){
+ console.log(xhr1.responseText+','+xhr1.status);
+ if (xhr1.status==200) {
+ localStorage.removeItem(filesha1);
+
+ var html=JSON.parse(xhr1.responseText);
+ //response.name=file.webkitRelativePath||response.name;
+ addelement(html);
+
+ /*if (totalsize>10*1024*1024) {
+ var xhr3 = new XMLHttpRequest();
+ xhr3.open("GET", '?action=del_upload_cache&filelastModified='+file.lastModified+'&filesize='+file.size+'&filename='+filename);
+ xhr3.setRequestHeader('x-requested-with','XMLHttpRequest');
+ xhr3.send(null);
+ xhr3.onload = function(e){
+ console.log(xhr3.responseText+','+xhr3.status);
+ }
+ }*/
+ EndTime=new Date();
+ MiddleStr = ':'+EndTime.toLocaleString()+' ';
+ if (newstartsize==0) {
+ MiddleStr += ':'+size_format(totalsize*1000/(EndTime.getTime()-StartTime.getTime()))+'/s ';
+ } else {
+ MiddleStr += ':'+size_format((totalsize-newstartsize)*1000/(EndTime.getTime()-StartTime.getTime()))+'/s ';
+ }
+ document.getElementById('upfile_td1_'+tdnum).innerHTML='';
+ label.innerHTML=StartStr+MiddleStr;
+ label.style.color='green';
+ } else {
+ label.innerHTML= '' + xhr1.status + ',' + xhr1.responseText + ' ';
+ localStorage.removeItem(filesha1);
+ }
+ }
+ xhr1.send('uploadid=' + uploadid + '&fileid=' + fileid + '&etag=' + JSON.stringify(res['ETag']));
+ // uploadbuttonshow();
+ } else {
+ readblob(asize);
+ }
} else {
- var a=response['nextExpectedRanges'][0];
- asize=Number( a.slice(0,a.indexOf("-")) );
- readblob(asize);
- }
- } } else readblob(asize);
+ console.log(xhr.status+xhr.responseText);//
+ if (xhr.status==409) {
+ let str = xhr.responseText;
+ str = str.substr(str.indexOf('')+10);
+ str = str.substr(0, str.indexOf(' '));
+ res['ETag'][chunknum] = str;
+ localStorage.setItem(filesha1, JSON.stringify(res));
+ chunknum++;
+ asize += chunksize;
+ readblob(asize);
+ }
+ //label.innerHTML=''+xhr.responseText+' ';
+ } } else readblob(asize);
+ }
+ xhr.send(binary);
}
- xhr.send(binary);
}
}
}
diff --git a/theme/old_ly_white.php b/theme/old_ly_white.php
deleted file mode 100644
index 13c0df4..0000000
--- a/theme/old_ly_white.php
+++ /dev/null
@@ -1,1289 +0,0 @@
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Language
- $value1) { ?>
- >
-
-
-
-
-
-
-
-
-
-1) { ?>
-
-
-
-
-
-
-
-
';
- $statusCode=404;
- } else {
- if (isset($files['file'])) {
-?>
-
-
-
-document.getElementById(\'url\').offsetWidth) this.style.width=\'100%\';" />
-';
- } elseif (in_array($ext, $exts['video'])) {
- //echo '
';
- $DPvideo=$files['@microsoft.graph.downloadUrl'];
- echo '
-';
- } elseif (in_array($ext, $exts['music'])) {
- echo '
-';
- } elseif (in_array($ext, ['pdf'])) {
- /*echo '
-
-';*/
- $pdfurl = $files['@microsoft.graph.downloadUrl'];
- echo '
-';
- } elseif (in_array($ext, $exts['office'])) {
- echo '
-';
- } elseif (in_array($ext, $exts['txt'])) {
- $txtstr = htmlspecialchars(curl_request($files['@microsoft.graph.downloadUrl'])['body']);
-?>
-
-
- ' . curl_request($files['@microsoft.graph.downloadUrl'])['body'] . '
-
-';
- }*/ else {
- echo '
'.getconstStr('FileNotSupport').' ';
- } ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-';
- foreach ($files['children'] as $file) {
- // Files
- if (isset($file['file'])) {
- if ($_SERVER['admin'] or !isHideFile($file['name'])) {
- $filenum++; ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-200) {
- $pagenum = $files['folder']['page'];
- $maxpage = ceil($files['folder']['childCount']/200);
- $prepagenext = '
-
-
-
-
- ';
- if ($pagenum!=1) {
- $prepagenum = $pagenum-1;
- $prepagenext .= '
- '.getconstStr('PrePage').' ';
- }
- $prepagenext .= '
-
- ';
- for ($page=1;$page<=$maxpage;$page++) {
- if ($page == $pagenum) {
- $prepagenext .= '
- ' . $page . ' ';
- } else {
- $prepagenext .= '
- ' . $page . ' ';
- }
- }
- $prepagenext = substr($prepagenext,0,-1);
- $prepagenext .= '
-
- ';
- if ($pagenum!=$maxpage) {
- $nextpagenum = $pagenum+1;
- $prepagenext .= '
- '.getconstStr('NextPage').' ';
- }
- $prepagenext .= '
-
-
-
- ';
- echo $prepagenext;
- }
- if ($_SERVER['admin']) { ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-"日)",
- "1"=>"一)",
- "2"=>"二)",
- "3"=>"三)",
- "4"=>"四)",
- "5"=>"五)",
- "6"=>"六)"
-);
-echo '(星期'.$week[$w];
-?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/theme/old_lybwb.php b/theme/old_lybwb.php
deleted file mode 100644
index a273a94..0000000
--- a/theme/old_lybwb.php
+++ /dev/null
@@ -1,1283 +0,0 @@
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Language
- $value1) { ?>
- >
-
-
-
-
-
-
-
-
-
-1) { ?>
-
-
-
-
-
-
';
- $statusCode=404;
- } else {
- if (isset($files['file'])) {
-?>
-
-
-
-document.getElementById(\'url\').offsetWidth) this.style.width=\'100%\';" />
-';
- } elseif (in_array($ext, $exts['video'])) {
- //echo '
';
- $DPvideo=$files['@microsoft.graph.downloadUrl'];
- echo '
-';
- } elseif (in_array($ext, $exts['music'])) {
- echo '
-';
- } elseif (in_array($ext, ['pdf'])) {
- /*echo '
-
-';*/
- $pdfurl = $files['@microsoft.graph.downloadUrl'];
- echo '
-';
- } elseif (in_array($ext, $exts['office'])) {
- echo '
-';
- } elseif (in_array($ext, $exts['txt'])) {
- $txtstr = htmlspecialchars(curl_request($files['@microsoft.graph.downloadUrl'])['body']);
-?>
-
-
- ' . curl_request($files['@microsoft.graph.downloadUrl'])['body'] . '
-
-';
- }*/ else {
- echo '
'.getconstStr('FileNotSupport').' ';
- } ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-';
- foreach ($files['children'] as $file) {
- // Files
- if (isset($file['file'])) {
- if ($_SERVER['admin'] or (substr($file['name'],0,1) !== '.' and $file['name'] !== getConfig('passfile') ) ) {
- if (strtolower($file['name']) === 'head.md') $head = $file;
- if (strtolower($file['name']) === 'readme.md') $readme = $file;
- if (strtolower($file['name']) === 'index.html' && !$_SERVER['admin']) {
- $html = curl_request(fetch_files(spurlencode(path_format($path . '/' .$file['name']),'/'))['@microsoft.graph.downloadUrl'])['body'];
- return output($html,200);
- }
- $filenum++; ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-200) {
- $pagenum = $files['folder']['page'];
- $maxpage = ceil($files['folder']['childCount']/200);
- $prepagenext = '
-
-
-
-
- ';
- if ($pagenum!=1) {
- $prepagenum = $pagenum-1;
- $prepagenext .= '
- '.getconstStr('PrePage').' ';
- }
- $prepagenext .= '
-
- ';
- for ($page=1;$page<=$maxpage;$page++) {
- if ($page == $pagenum) {
- $prepagenext .= '
- ' . $page . ' ';
- } else {
- $prepagenext .= '
- ' . $page . ' ';
- }
- }
- $prepagenext = substr($prepagenext,0,-1);
- $prepagenext .= '
-
- ';
- if ($pagenum!=$maxpage) {
- $nextpagenum = $pagenum+1;
- $prepagenext .= '
- '.getconstStr('NextPage').' ';
- }
- $prepagenext .= '
-
-
-
- ';
- echo $prepagenext;
- }
- if ($_SERVER['admin']) { ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/theme/old_minus.php b/theme/old_minus.php
deleted file mode 100644
index 491601e..0000000
--- a/theme/old_minus.php
+++ /dev/null
@@ -1,1544 +0,0 @@
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Language
- $value1) { ?>
- >
-
-
-
-
-
-
-
-
-1) { ?>
-
-
-
-
-
-
-
-
';
- $statusCode=404;
- } else {
- if (isset($files['file'])) {
-?>
-
-
-
-document.getElementById(\'url\').offsetWidth) this.style.width=\'100%\';" />
-';
- } elseif (in_array($ext, $exts['video'])) {
- //echo '
';
- $DPvideo=$files['@microsoft.graph.downloadUrl'];
- echo '
-';
- } elseif (in_array($ext, $exts['music'])) {
- echo '
-';
- } elseif (in_array($ext, ['pdf'])) {
- /*echo '
-
-';*/
- $pdfurl = $files['@microsoft.graph.downloadUrl'];
- echo '
-';
- } elseif (in_array($ext, $exts['office'])) {
- echo '
-';
- } elseif (in_array($ext, $exts['txt'])) {
- $txtstr = htmlspecialchars(curl_request($files['@microsoft.graph.downloadUrl'])['body']);
-?>
-
-
- ' . curl_request($files['@microsoft.graph.downloadUrl'])['body'] . '
-
-';
- }*/ else {
- echo '
'.getconstStr('FileNotSupport').' ';
- } ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-';
- foreach ($files['children'] as $file) {
- // Files
- if (isset($file['file'])) {
- if ($_SERVER['admin'] or !isHideFile($file['name'])) {
- $filenum++; ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-200) {
- $pagenum = $files['folder']['page'];
- $maxpage = ceil($files['folder']['childCount']/200);
- $prepagenext = '
-
-
-
- ';
- echo $prepagenext;
- }
- if ($_SERVER['admin']) { ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Theme minus by Crazy白茫茫
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/theme/old_purenice.php b/theme/old_purenice.php
deleted file mode 100644
index 9501f1c..0000000
--- a/theme/old_purenice.php
+++ /dev/null
@@ -1,1272 +0,0 @@
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Language
- $value1) { ?>
- >
-
-
-
-
-
-
-
-
-
-
-1) { ?>
-
-
-
-
-
-
-
-
';
- $statusCode=404;
- } else {
- if (isset($files['file'])) {
-?>
-
-
-
-document.getElementById(\'url\').offsetWidth) this.style.width=\'100%\';" />
-';
- } elseif (in_array($ext, $exts['video'])) {
- //echo '
';
- $DPvideo=$files['@microsoft.graph.downloadUrl'];
- echo '
-';
- } elseif (in_array($ext, $exts['music'])) {
- echo '
-';
- } elseif (in_array($ext, ['pdf'])) {
- /*echo '
-
-';*/
- $pdfurl = $files['@microsoft.graph.downloadUrl'];
- echo '
-';
- } elseif (in_array($ext, $exts['office'])) {
- echo '
-';
- } elseif (in_array($ext, $exts['txt'])) {
- $txtstr = htmlspecialchars(curl_request($files['@microsoft.graph.downloadUrl'])['body']);
-?>
-
-
- ' . curl_request($files['@microsoft.graph.downloadUrl'])['body'] . '
-
-';
- }*/ else {
- echo '
'.getconstStr('FileNotSupport').' ';
- } ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-';
- foreach ($files['children'] as $file) {
- // Files
- if (isset($file['file'])) {
- if ($_SERVER['admin'] or !isHideFile($file['name'])) {
- $filenum++; ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-200) {
- $pagenum = $files['folder']['page'];
- $maxpage = ceil($files['folder']['childCount']/200);
- $prepagenext = '
-
-
-
-
- ';
- if ($pagenum!=1) {
- $prepagenum = $pagenum-1;
- $prepagenext .= '
- '.getconstStr('PrePage').' ';
- }
- $prepagenext .= '
-
- ';
- for ($page=1;$page<=$maxpage;$page++) {
- if ($page == $pagenum) {
- $prepagenext .= '
- ' . $page . ' ';
- } else {
- $prepagenext .= '
- ' . $page . ' ';
- }
- }
- $prepagenext = substr($prepagenext,0,-1);
- $prepagenext .= '
-
- ';
- if ($pagenum!=$maxpage) {
- $nextpagenum = $pagenum+1;
- $prepagenext .= '
- '.getconstStr('NextPage').' ';
- }
- $prepagenext .= '
-
-
-
- ';
- echo $prepagenext;
- }
- if ($_SERVER['admin']) { ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/theme/old_ruoli_blue.php b/theme/old_ruoli_blue.php
deleted file mode 100644
index 92c4659..0000000
--- a/theme/old_ruoli_blue.php
+++ /dev/null
@@ -1,1240 +0,0 @@
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
登陆
-
-
-
-
-
- Language
- $value1) { ?>
- >
-
-
-
-
-
-
-
-
-
-1) { ?>
-
-
-
-
-
-
';
- $statusCode=404;
- } else {
- if (isset($files['file'])) {
-?>
-
-
-
-document.getElementById(\'url\').offsetWidth) this.style.width=\'100%\';" />
-';
- } elseif (in_array($ext, $exts['video'])) {
- //echo '
';
- $DPvideo=$files['@microsoft.graph.downloadUrl'];
- echo '
-';
- } elseif (in_array($ext, $exts['music'])) {
- echo '
-';
- } elseif (in_array($ext, ['pdf'])) {
- /*echo '
-
-';*/
- $pdfurl = $files['@microsoft.graph.downloadUrl'];
- echo '
-';
- } elseif (in_array($ext, $exts['office'])) {
- echo '
-';
- } elseif (in_array($ext, $exts['txt'])) {
- $txtstr = htmlspecialchars(curl_request($files['@microsoft.graph.downloadUrl'])['body']);
-?>
-
-
- ' . curl_request($files['@microsoft.graph.downloadUrl'])['body'] . '
-
-';
- }*/ else {
- echo '
'.getconstStr('FileNotSupport').' ';
- } ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-';
- foreach ($files['children'] as $file) {
- // Files
- if (isset($file['file'])) {
- if ($_SERVER['admin'] or (substr($file['name'],0,1) !== '.' and $file['name'] !== getConfig('passfile') ) ) {
- if (strtolower($file['name']) === 'head.md') $head = $file;
- if (strtolower($file['name']) === 'readme.md') $readme = $file;
- if (strtolower($file['name']) === 'index.html' && !$_SERVER['admin']) {
- $html = curl_request(fetch_files(spurlencode(path_format($path . '/' .$file['name']),'/'))['@microsoft.graph.downloadUrl'])['body'];
- return output($html,200);
- }
- $filenum++; ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-200) {
- $pagenum = $files['folder']['page'];
- $maxpage = ceil($files['folder']['childCount']/200);
- $prepagenext = '
-
-
-
-
- ';
- if ($pagenum!=1) {
- $prepagenum = $pagenum-1;
- $prepagenext .= '
- '.getconstStr('PrePage').' ';
- }
- $prepagenext .= '
-
- ';
- for ($page=1;$page<=$maxpage;$page++) {
- if ($page == $pagenum) {
- $prepagenext .= '
- ' . $page . ' ';
- } else {
- $prepagenext .= '
- ' . $page . ' ';
- }
- }
- $prepagenext = substr($prepagenext,0,-1);
- $prepagenext .= '
-
- ';
- if ($pagenum!=$maxpage) {
- $nextpagenum = $pagenum+1;
- $prepagenext .= '
- '.getconstStr('NextPage').' ';
- }
- $prepagenext .= '
-
-
-
- ';
- echo $prepagenext;
- }
- if ($_SERVER['admin']) { ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- OneManager by 逸笙 theme by 若离
-
-
-
-
-
-
-
-
-
-
-
diff --git a/theme/old_ruoli_violet.php b/theme/old_ruoli_violet.php
deleted file mode 100644
index ce71dfc..0000000
--- a/theme/old_ruoli_violet.php
+++ /dev/null
@@ -1,1259 +0,0 @@
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Language
- $value1) { ?>
- >
-
-
-
-
-
-
-
-
-
-1) { ?>
-
-
-
-
-
-
';
- $statusCode=404;
- } else {
- if (isset($files['file'])) {
-?>
-
-
-
-document.getElementById(\'url\').offsetWidth) this.style.width=\'100%\';" />
-';
- } elseif (in_array($ext, $exts['video'])) {
- //echo '
';
- $DPvideo=$files['@microsoft.graph.downloadUrl'];
- echo '
-';
- } elseif (in_array($ext, $exts['music'])) {
- echo '
-';
- } elseif (in_array($ext, ['pdf'])) {
- /*echo '
-
-';*/
- $pdfurl = $files['@microsoft.graph.downloadUrl'];
- echo '
-';
- } elseif (in_array($ext, $exts['office'])) {
- echo '
-';
- } elseif (in_array($ext, $exts['txt'])) {
- $txtstr = htmlspecialchars(curl_request($files['@microsoft.graph.downloadUrl'])['body']);
-?>
-
-
- ' . curl_request($files['@microsoft.graph.downloadUrl'])['body'] . '
-
-';
- }*/ else {
- echo '
'.getconstStr('FileNotSupport').' ';
- } ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-';
- foreach ($files['children'] as $file) {
- // Files
- if (isset($file['file'])) {
- if ($_SERVER['admin'] or (substr($file['name'],0,1) !== '.' and $file['name'] !== getConfig('passfile') ) ) {
- if (strtolower($file['name']) === 'head.md') $head = $file;
- if (strtolower($file['name']) === 'readme.md') $readme = $file;
- if (strtolower($file['name']) === 'index.html' && !$_SERVER['admin']) {
- $html = curl_request(fetch_files(spurlencode(path_format($path . '/' .$file['name']),'/'))['@microsoft.graph.downloadUrl'])['body'];
- return output($html,200);
- }
- $filenum++; ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-200) {
- $pagenum = $files['folder']['page'];
- $maxpage = ceil($files['folder']['childCount']/200);
- $prepagenext = '
-
-
-
-
- ';
- if ($pagenum!=1) {
- $prepagenum = $pagenum-1;
- $prepagenext .= '
- '.getconstStr('PrePage').' ';
- }
- $prepagenext .= '
-
- ';
- for ($page=1;$page<=$maxpage;$page++) {
- if ($page == $pagenum) {
- $prepagenext .= '
- ' . $page . ' ';
- } else {
- $prepagenext .= '
- ' . $page . ' ';
- }
- }
- $prepagenext = substr($prepagenext,0,-1);
- $prepagenext .= '
-
- ';
- if ($pagenum!=$maxpage) {
- $nextpagenum = $pagenum+1;
- $prepagenext .= '
- '.getconstStr('NextPage').' ';
- }
- $prepagenext .= '
-
-
-
- ';
- echo $prepagenext;
- }
- if ($_SERVER['admin']) { ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/theme/old_tfo_md.html b/theme/old_tfo_md.html
deleted file mode 100644
index 9bc423d..0000000
--- a/theme/old_tfo_md.html
+++ /dev/null
@@ -1,1290 +0,0 @@
-
-{
- "music":"musical-notes",
- "video":"logo-youtube",
- "img":"image",
- "office":"paper",
- "txt":"clipboard",
- "zip":"filing",
- "iso":"disc",
- "apk":"logo-android",
- "exe":"logo-windows",
- "default":"document"
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Language
-
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- onchange="document.getElementById('txt-save').onclick=function(){document.getElementById('txt-form').submit();}" >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/theme/old_tfo_md.php b/theme/old_tfo_md.php
deleted file mode 100644
index 9e8cdc2..0000000
--- a/theme/old_tfo_md.php
+++ /dev/null
@@ -1,1296 +0,0 @@
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-';
-?>
-
-';
-?>
-
-
-
-
-
-
-
-
-
- Language
- $value1) { ?>
- >
-
-
-
-
-
-
-
-
-
-1) { ?>
-
-
-
-
-
-
-
-
';
- $statusCode=404;
- } else {
- if (isset($files['file'])) {
-?>
-
-
-
-document.getElementById(\'url\').offsetWidth) this.style.width=\'100%\';" />
-';
- } elseif (in_array($ext, $exts['video'])) {
- //echo '
';
- $DPvideo=$files[$_SERVER['DownurlStrName']];
- echo '
-';
- } elseif (in_array($ext, $exts['music'])) {
- echo '
-';
- } elseif (in_array($ext, ['pdf'])) {
- /*echo '
-
-';*/
- $pdfurl = $files[$_SERVER['DownurlStrName']];
- echo '
-';
- } elseif (in_array($ext, $exts['office'])) {
- echo '
-';
- } elseif (in_array($ext, $exts['txt'])) {
- $txtstr = htmlspecialchars(curl_request($files[$_SERVER['DownurlStrName']])['body']);
-?>
-
-
- ' . curl_request($files[$_SERVER['DownurlStrName']])['body'] . '
-
-';
- }*/ else {
- echo '
'.getconstStr('FileNotSupport').' ';
- } ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-';
- foreach ($files['children'] as $file) {
- // Files
- if (isset($file['file'])) {
- if ($_SERVER['admin'] or !isHideFile($file['name'])) {
- $filenum++; ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-200) {
- $pagenum = $files['folder']['page'];
- $maxpage = ceil($files['folder']['childCount']/200);
- $prepagenext = '
-
-
-
-
- ';
- if ($pagenum!=1) {
- $prepagenum = $pagenum-1;
- $prepagenext .= '
- '.getconstStr('PrePage').' ';
- }
- $prepagenext .= '
-
- ';
- for ($page=1;$page<=$maxpage;$page++) {
- if ($page == $pagenum) {
- $prepagenext .= '
- ' . $page . ' ';
- } else {
- $prepagenext .= '
- ' . $page . ' ';
- }
- }
- $prepagenext = substr($prepagenext,0,-1);
- $prepagenext .= '
-
- ';
- if ($pagenum!=$maxpage) {
- $nextpagenum = $pagenum+1;
- $prepagenext .= '
- '.getconstStr('NextPage').' ';
- }
- $prepagenext .= '
-
-
-
- ';
- echo $prepagenext;
- }
- if ($_SERVER['admin']) { ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ' . fetch_files(spurlencode(path_format($path . '/readme.md'),'/'))['content']['body'] . '
-
-
-';
- }
- }
- } else {
- echo '
-
-
-
-
-
-
-
- ';
- $statusCode = 401;
- }
- } ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/theme/old_tfo_mdtr.html b/theme/old_tfo_mdtr.html
deleted file mode 100644
index 9a535c1..0000000
--- a/theme/old_tfo_mdtr.html
+++ /dev/null
@@ -1,1290 +0,0 @@
-
-{
- "music":"musical-notes",
- "video":"logo-youtube",
- "img":"image",
- "office":"paper",
- "txt":"clipboard",
- "zip":"filing",
- "iso":"disc",
- "apk":"logo-android",
- "exe":"logo-windows",
- "default":"document"
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Language
-
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- onchange="document.getElementById('txt-save').onclick=function(){document.getElementById('txt-form').submit();}" >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/theme/old_tfo_mdtr.php b/theme/old_tfo_mdtr.php
deleted file mode 100644
index e286954..0000000
--- a/theme/old_tfo_mdtr.php
+++ /dev/null
@@ -1,1296 +0,0 @@
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-';
-?>
-
-';
-?>
-
-
-
-
-
-
-
-
-
- Language
- $value1) { ?>
- >
-
-
-
-
-
-
-
-
-
-1) { ?>
-
-
-
-
-
-
-
-
';
- $statusCode=404;
- } else {
- if (isset($files['file'])) {
-?>
-
-
-
-document.getElementById(\'url\').offsetWidth) this.style.width=\'100%\';" />
-';
- } elseif (in_array($ext, $exts['video'])) {
- //echo '
';
- $DPvideo=$files[$_SERVER['DownurlStrName']];
- echo '
-';
- } elseif (in_array($ext, $exts['music'])) {
- echo '
-';
- } elseif (in_array($ext, ['pdf'])) {
- /*echo '
-
-';*/
- $pdfurl = $files[$_SERVER['DownurlStrName']];
- echo '
-';
- } elseif (in_array($ext, $exts['office'])) {
- echo '
-';
- } elseif (in_array($ext, $exts['txt'])) {
- $txtstr = htmlspecialchars(curl_request($files[$_SERVER['DownurlStrName']])['body']);
-?>
-
-
- ' . curl_request($files[$_SERVER['DownurlStrName']])['body'] . '
-
-';
- }*/ else {
- echo '
'.getconstStr('FileNotSupport').' ';
- } ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-';
- foreach ($files['children'] as $file) {
- // Files
- if (isset($file['file'])) {
- if ($_SERVER['admin'] or !isHideFile($file['name'])) {
- $filenum++; ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-200) {
- $pagenum = $files['folder']['page'];
- $maxpage = ceil($files['folder']['childCount']/200);
- $prepagenext = '
-
-
-
-
- ';
- if ($pagenum!=1) {
- $prepagenum = $pagenum-1;
- $prepagenext .= '
- '.getconstStr('PrePage').' ';
- }
- $prepagenext .= '
-
- ';
- for ($page=1;$page<=$maxpage;$page++) {
- if ($page == $pagenum) {
- $prepagenext .= '
- ' . $page . ' ';
- } else {
- $prepagenext .= '
- ' . $page . ' ';
- }
- }
- $prepagenext = substr($prepagenext,0,-1);
- $prepagenext .= '
-
- ';
- if ($pagenum!=$maxpage) {
- $nextpagenum = $pagenum+1;
- $prepagenext .= '
- '.getconstStr('NextPage').' ';
- }
- $prepagenext .= '
-
-
-
- ';
- echo $prepagenext;
- }
- if ($_SERVER['admin']) { ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ' . fetch_files(spurlencode(path_format($path . '/readme.md'),'/'))['content']['body'] . '
-
-
-';
- }
- }
- } else {
- echo '
-
-
-
-
-
-
-
- ';
- $statusCode = 401;
- }
- } ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/theme/old_tfo_mdtr_nmd.php b/theme/old_tfo_mdtr_nmd.php
deleted file mode 100644
index 70275b7..0000000
--- a/theme/old_tfo_mdtr_nmd.php
+++ /dev/null
@@ -1,1344 +0,0 @@
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-window.onload=function(){var colorList=["linear-gradient(to right,rgba(169,221,204,0.9),rgba(169,221,204,0.3))","linear-gradient(to right,rgba(255,104,103,0.9),rgba(255,104,103,0.3))","linear-gradient(to right,rgba(128,155,156,0.9),rgba(128,155,156,0.3))","linear-gradient(to right,rgba(0,204,203,0.9),rgba(0,204,203,0.3))","linear-gradient(to right,rgba(246,197,0,0.9),rgba(246,197,0,0.3))","linear-gradient(to right,rgba(76,218,100,0.9),rgba(76,218,100,0.3))","linear-gradient(to right,rgba(244,67,54,0.9),rgba(244,67,54,0.3))","linear-gradient(to right,rgba(233,30,99,0.9),rgba(233,30,99,0.3))","linear-gradient(to right,rgba(156,39,176,0.9),rgba(156,39,176,0.3))","linear-gradient(to right,rgba(103,58,183,0.9),rgba(103,58,183,0.3))","linear-gradient(to right,rgba(63,81,181,0.9),rgba(63,81,181,0.3))","linear-gradient(to right,rgba(33,150,243,0.9),rgba(33,150,243,0.3))","linear-gradient(to right,rgba(3,169,244,0.9),rgba(3,169,244,0.3))","linear-gradient(to right,rgba(0,188,212,0.9),rgba(0,188,212,0.3))","linear-gradient(to right,rgba(0,150,136,0.9),rgba(0,150,136,0.3))","linear-gradient(to right,rgba(76,175,80,0.9),rgba(76,175,80,0.3))","linear-gradient(to right,rgba(139,52,171,0.9),rgba(139,52,171,0.3))","linear-gradient(to right,rgba(205,220,57,0.9),rgba(205,220,57,0.3))","linear-gradient(to right,rgba(197,183,60,0.9),rgba(197,183,60,0.3))","linear-gradient(to right,rgba(228,173,8,0.9),rgba(228,173,8,0.3))","linear-gradient(to right,rgba(255,87,34,0.9),rgba(255,87,34,0.3))","linear-gradient(to right,rgba(121,85,72,0.9),rgba(121,85,72,0.3))","linear-gradient(to right,rgba(96,125,139,0.9),rgba(96,125,139,0.3))"];var div=document.getElementsByClassName("list-header-container");for(var i=0;i'; ?>
-
-
-
-
-
-
-
-
-
-
- Language
- $value1) { ?>
- >
-
-
-
-
-
-
-
-
-
-1) { ?>
-
-
-
-
-
-
-
-
';
- $statusCode=404;
- } else {
- if (isset($files['file'])) {
-?>
-
-
-
-document.getElementById(\'url\').offsetWidth) this.style.width=\'100%\';" />
-';
- } elseif (in_array($ext, $exts['video'])) {
- //echo '
';
- $DPvideo=$files[$_SERVER['DownurlStrName']];
- echo '
-';
- } elseif (in_array($ext, $exts['music'])) {
- echo '
-';
- } elseif (in_array($ext, ['pdf'])) {
- /*echo '
-
-';*/
- $pdfurl = $files[$_SERVER['DownurlStrName']];
- echo '
-';
- } elseif (in_array($ext, $exts['office'])) {
- echo '
-';
- } elseif (in_array($ext, $exts['txt'])) {
- $txtstr = htmlspecialchars(curl_request($files[$_SERVER['DownurlStrName']])['body']);
-?>
-
-
- ' . curl_request($files[$_SERVER['DownurlStrName']])['body'] . '
-
-';
- }*/ else {
- echo '
'.getconstStr('FileNotSupport').' ';
- } ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-';
- foreach ($files['children'] as $file) {
- // Files
- if (isset($file['file'])) {
- if ($_SERVER['admin'] or !isHideFile($file['name'])) {
- $filenum++; ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-200) {
- $pagenum = $files['folder']['page'];
- $maxpage = ceil($files['folder']['childCount']/200);
- $prepagenext = '
-
-
-
-
- ';
- if ($pagenum!=1) {
- $prepagenum = $pagenum-1;
- $prepagenext .= '
- '.getconstStr('PrePage').' ';
- }
- $prepagenext .= '
-
- ';
- for ($page=1;$page<=$maxpage;$page++) {
- if ($page == $pagenum) {
- $prepagenext .= '
- ' . $page . ' ';
- } else {
- $prepagenext .= '
- ' . $page . ' ';
- }
- }
- $prepagenext = substr($prepagenext,0,-1);
- $prepagenext .= '
-
- ';
- if ($pagenum!=$maxpage) {
- $nextpagenum = $pagenum+1;
- $prepagenext .= '
- '.getconstStr('NextPage').' ';
- }
- $prepagenext .= '
-
-
-
- ';
- echo $prepagenext;
- }
- if ($_SERVER['admin']) { ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ' . fetch_files(spurlencode(path_format($path . '/readme.md'),'/'))['content']['body'] . '
-
-
-';
- }
- }
- } else {
- echo '
-
-
-
-
-
-
-
- ';
- $statusCode = 401;
- }
- } ?>
-
-
-
-
-
-
-
-
-new Valine({el:\'#vcomments\',appId:\'?\',appKey:\'?\',visitor:true,lang:\'en\'})' ?>
-
- Rd
- 1000000
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/theme/old_tfo_mdtrbaw.php b/theme/old_tfo_mdtrbaw.php
deleted file mode 100644
index b3d5248..0000000
--- a/theme/old_tfo_mdtrbaw.php
+++ /dev/null
@@ -1,1297 +0,0 @@
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-';
-?>
-
-';
-?>
-
-
-
-
-
-
-
-
-
- Language
- $value1) { ?>
- >
-
-
-
-
-
-
-
-
-
-1) { ?>
-
-
-
-
-
-
-
-
';
- $statusCode=404;
- } else {
- if (isset($files['file'])) {
-?>
-
-
-
-document.getElementById(\'url\').offsetWidth) this.style.width=\'100%\';" />
-';
- } elseif (in_array($ext, $exts['video'])) {
- //echo '
';
- $DPvideo=$files[$_SERVER['DownurlStrName']];
- echo '
-';
- } elseif (in_array($ext, $exts['music'])) {
- echo '
-';
- } elseif (in_array($ext, ['pdf'])) {
- /*echo '
-
-';*/
- $pdfurl = $files[$_SERVER['DownurlStrName']];
- echo '
-';
- } elseif (in_array($ext, $exts['office'])) {
- echo '
-';
- } elseif (in_array($ext, $exts['txt'])) {
- $txtstr = htmlspecialchars(curl_request($files[$_SERVER['DownurlStrName']])['body']);
-?>
-
-
- ' . curl_request($files[$_SERVER['DownurlStrName']])['body'] . '
-
-';
- }*/ else {
- echo '
'.getconstStr('FileNotSupport').' ';
- } ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-';
- foreach ($files['children'] as $file) {
- // Files
- if (isset($file['file'])) {
- if ($_SERVER['admin'] or !isHideFile($file['name'])) {
- $filenum++; ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-200) {
- $pagenum = $files['folder']['page'];
- $maxpage = ceil($files['folder']['childCount']/200);
- $prepagenext = '
-
-
-
-
- ';
- if ($pagenum!=1) {
- $prepagenum = $pagenum-1;
- $prepagenext .= '
- '.getconstStr('PrePage').' ';
- }
- $prepagenext .= '
-
- ';
- for ($page=1;$page<=$maxpage;$page++) {
- if ($page == $pagenum) {
- $prepagenext .= '
- ' . $page . ' ';
- } else {
- $prepagenext .= '
- ' . $page . ' ';
- }
- }
- $prepagenext = substr($prepagenext,0,-1);
- $prepagenext .= '
-
- ';
- if ($pagenum!=$maxpage) {
- $nextpagenum = $pagenum+1;
- $prepagenext .= '
- '.getconstStr('NextPage').' ';
- }
- $prepagenext .= '
-
-
-
- ';
- echo $prepagenext;
- }
- if ($_SERVER['admin']) { ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ' . fetch_files(spurlencode(path_format($path . '/readme.md'),'/'))['content']['body'] . '
-
-
-';
- }
- }
- } else {
- echo '
-
-
-
-
-
-
-
- ';
- $statusCode = 401;
- }
- } ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/theme/sE3QMDWLdgL8qUmG3sPJNtUEoZsQIOBAawCsKzHqkIhOSb5cZckRZByNXcO3jXPd.html b/theme/sE3QMDWLdgL8qUmG3sPJNtUEoZsQIOBAawCsKzHqkIhOSb5cZckRZByNXcO3jXPd.html
deleted file mode 100644
index b713ac5..0000000
--- a/theme/sE3QMDWLdgL8qUmG3sPJNtUEoZsQIOBAawCsKzHqkIhOSb5cZckRZByNXcO3jXPd.html
+++ /dev/null
@@ -1,1608 +0,0 @@
-
-{
- "music":"musical-notes-outline",
- "video":"videocam-outline",
- "img":"image-outline",
- "office":"newspaper-outline",
- "txt":"reader-outline",
- "zip":"albums-outline",
- "iso":"disc-outline",
- "apk":"logo-android",
- "exe":"logo-windows",
- "default":"document-outline"
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Language
-
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Loading PDF
-
-
-
-
-
-
-
-
-
-
-
-
- onchange="document.getElementById('txt-save').onclick=function(){document.getElementById('txt-form').submit();}" >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Rd
- 1000000
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Current Version: 20210205
- Update Tips:
- Tip 1: Upgrade with the program. (Best Choice!)
- Tip 2: Copy the CustomTheme link and paste it in the Platform Config form of program setting page.
- Tip 3: Update manually.
-
- Tfo’s CustomTheme Address:
- https://tfo.herokuapp.com/index/Uploaded/WebContents/Github/Tfo/NecessaryFiles/tfo.html
- Tfo's Theme UpdateCheck Address:
- https://github.com/qkqpttgf/OneManager-php/blob/master/theme/tfo.html
- https://github.com/BingoKingo/Tfo/blob/master/theme/tfo.html
- Tfo’s HomePage on GitHub:
- https://github.com/BingoKingo/Tfo
- Tfo’s Example Website:
- https://tfo.herokuapp.com/
-
-
-
-
-
-
-
-
-
-
-
-