commit
3d4c2f57f3
872
common.php
872
common.php
File diff suppressed because it is too large
Load Diff
47
conststr.php
47
conststr.php
|
@ -1,9 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$exts['img'] = ['ico', 'bmp', 'gif', 'jpg', 'jpeg', 'jpe', 'jfif', 'tif', 'tiff', 'png', 'heic', 'webp'];
|
$exts['img'] = ['ico', 'bmp', 'gif', 'jpg', 'jpeg', 'jpe', 'jfif', 'tif', 'tiff', 'png', 'heic', 'webp'];
|
||||||
$exts['music'] = ['mp3', 'wma', 'flac', 'wav', 'ogg'];
|
$exts['music'] = ['mp3', 'wma', 'flac', 'wav', 'ogg', 'm4a'];
|
||||||
$exts['office'] = ['doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx'];
|
$exts['office'] = ['doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx'];
|
||||||
$exts['txt'] = ['txt', 'bat', 'sh', 'php', 'asp', 'js', 'json', 'html', 'c', 'md', 'py'];
|
$exts['txt'] = ['txt', 'bat', 'sh', 'php', 'asp', 'js', 'json', 'html', 'c', 'md', 'py', 'omf'];
|
||||||
$exts['video'] = ['mp4', 'webm', 'mkv', 'mov', 'flv', 'blv', 'avi', 'wmv', 'm3u8'];
|
$exts['video'] = ['mp4', 'webm', 'mkv', 'mov', 'flv', 'blv', 'avi', 'wmv', 'm3u8'];
|
||||||
$exts['zip'] = ['zip', 'rar', '7z', 'gz', 'tar'];
|
$exts['zip'] = ['zip', 'rar', '7z', 'gz', 'tar'];
|
||||||
|
|
||||||
|
@ -66,6 +66,8 @@ $constStr = [
|
||||||
'en-us' => [
|
'en-us' => [
|
||||||
'admin' => 'The admin password, Login button will not show when empty',
|
'admin' => 'The admin password, Login button will not show when empty',
|
||||||
'adminloginpage' => 'if set, the Login button will not display, and the login page no longer \'?admin\', it is \'?{this value}\'.',
|
'adminloginpage' => 'if set, the Login button will not display, and the login page no longer \'?admin\', it is \'?{this value}\'.',
|
||||||
|
'customScript' => '<script> in all pages, e.g. http turn to https',
|
||||||
|
'customCss' => '<style> in <head>',
|
||||||
'domain_path' => 'more custom domain, format is a1.com:/dirto/path1|b2.com:/path2',
|
'domain_path' => 'more custom domain, format is a1.com:/dirto/path1|b2.com:/path2',
|
||||||
'diskname' => 'The disk name you want show.',
|
'diskname' => 'The disk name you want show.',
|
||||||
'disktag' => 'A tag used in store config and url.',
|
'disktag' => 'A tag used in store config and url.',
|
||||||
|
@ -81,6 +83,8 @@ $constStr = [
|
||||||
'zh-cn' => [
|
'zh-cn' => [
|
||||||
'admin' => '管理密码,不添加时不显示登录页面且无法登录。',
|
'admin' => '管理密码,不添加时不显示登录页面且无法登录。',
|
||||||
'adminloginpage' => '如果设置,登录按钮及页面隐藏。管理登录的页面不再是\'?admin\',而是\'?此设置的值\'。',
|
'adminloginpage' => '如果设置,登录按钮及页面隐藏。管理登录的页面不再是\'?admin\',而是\'?此设置的值\'。',
|
||||||
|
'customScript' => '<script>,在所有页都会存在,例如放一个http跳转https',
|
||||||
|
'customCss' => '<style>,在<head>最后面',
|
||||||
'domain_path' => '使用多个自定义域名时,指定每个域名看到的目录。格式为a1.com:/dirto/path1|b1.com:/path2,比private_path优先。',
|
'domain_path' => '使用多个自定义域名时,指定每个域名看到的目录。格式为a1.com:/dirto/path1|b1.com:/path2,比private_path优先。',
|
||||||
'diskname' => '这个盘你想显示什么名称。',
|
'diskname' => '这个盘你想显示什么名称。',
|
||||||
'disktag' => '一个标签,用于保存配置,多盘时会显示在url中。',
|
'disktag' => '一个标签,用于保存配置,多盘时会显示在url中。',
|
||||||
|
@ -178,7 +182,7 @@ $constStr = [
|
||||||
'ko-kr' => '로그인',
|
'ko-kr' => '로그인',
|
||||||
'fa' => 'ورود',
|
'fa' => 'ورود',
|
||||||
],
|
],
|
||||||
'encrypt' => [
|
'Encrypt' => [
|
||||||
'en-us' => 'Encrypt',
|
'en-us' => 'Encrypt',
|
||||||
'zh-cn' => '加密',
|
'zh-cn' => '加密',
|
||||||
'ja' => '暗号化',
|
'ja' => '暗号化',
|
||||||
|
@ -332,6 +336,10 @@ $constStr = [
|
||||||
'ko-kr' => '모든 다운로드 링크 복사',
|
'ko-kr' => '모든 다운로드 링크 복사',
|
||||||
'fa' => 'کپی از تمام لینک ها',
|
'fa' => 'کپی از تمام لینک ها',
|
||||||
],
|
],
|
||||||
|
'Search' => [
|
||||||
|
'en-us' => 'Search',
|
||||||
|
'zh-cn' => '搜索',
|
||||||
|
],
|
||||||
'EditTime' => [
|
'EditTime' => [
|
||||||
'en-us' => 'EditTime',
|
'en-us' => 'EditTime',
|
||||||
'zh-cn' => '修改时间',
|
'zh-cn' => '修改时间',
|
||||||
|
@ -402,6 +410,14 @@ $constStr = [
|
||||||
'ko-kr' => '업로드',
|
'ko-kr' => '업로드',
|
||||||
'fa' => 'آپلود',
|
'fa' => 'آپلود',
|
||||||
],
|
],
|
||||||
|
'UploadFile' => [
|
||||||
|
'en-us' => 'Upload File(s)',
|
||||||
|
'zh-cn' => '上传文件',
|
||||||
|
],
|
||||||
|
'UploadFolder' => [
|
||||||
|
'en-us' => 'Upload Folder',
|
||||||
|
'zh-cn' => '上传文件夹',
|
||||||
|
],
|
||||||
'FileSelected' => [
|
'FileSelected' => [
|
||||||
'en-us' => 'Select File',
|
'en-us' => 'Select File',
|
||||||
'zh-cn' => '选择文件',
|
'zh-cn' => '选择文件',
|
||||||
|
@ -581,11 +597,11 @@ $constStr = [
|
||||||
'fa' => 'در حال ذخیره refresh_token!',
|
'fa' => 'در حال ذخیره refresh_token!',
|
||||||
],
|
],
|
||||||
'MayinEnv' => [
|
'MayinEnv' => [
|
||||||
'en-us' => 'The \'Onedrive_ver\' may in Config',
|
'en-us' => 'The \'Drive_ver\' may in Config',
|
||||||
'zh-cn' => 'Onedrive_ver应该已经写入',
|
'zh-cn' => 'Drive_ver应该已经写入',
|
||||||
'ja' => 'Onedrive_verは環境変数に書き込まれている必要があります',
|
'ja' => 'Drive_verは環境変数に書き込まれている必要があります',
|
||||||
'ko-kr' => 'Onedrive_verが書き込まれている必要があります',
|
'ko-kr' => 'Drive_verが書き込まれている必要があります',
|
||||||
'fa' => 'The \'Onedrive_ver\' may in Config',
|
'fa' => 'The \'Drive_ver\' may in Config',
|
||||||
],
|
],
|
||||||
'Wait' => [
|
'Wait' => [
|
||||||
'en-us' => 'Wait',
|
'en-us' => 'Wait',
|
||||||
|
@ -633,6 +649,10 @@ $constStr = [
|
||||||
'ko-kr' => '중국 Onedrive',
|
'ko-kr' => '중국 Onedrive',
|
||||||
'fa' => 'Onedrive در چین',
|
'fa' => 'Onedrive در چین',
|
||||||
],
|
],
|
||||||
|
'DriveVerShareurl' => [
|
||||||
|
'en-us' => 'A share link of a folder',
|
||||||
|
'zh-cn' => '共享链接',
|
||||||
|
],
|
||||||
'UseShareLink' => [
|
'UseShareLink' => [
|
||||||
'en-us' => 'Share a folder in Onedrive (enable EDIT for everyone), input the link url below.',
|
'en-us' => 'Share a folder in Onedrive (enable EDIT for everyone), input the link url below.',
|
||||||
'zh-cn' => '对一个Onedrive文件夹共享,允许所有人编辑,然后将共享链接填在下方',
|
'zh-cn' => '对一个Onedrive文件夹共享,允许所有人编辑,然后将共享链接填在下方',
|
||||||
|
@ -654,13 +674,12 @@ $constStr = [
|
||||||
'en-us' => 'Use space in Sharepoint website instead of Onedrive',
|
'en-us' => 'Use space in Sharepoint website instead of Onedrive',
|
||||||
'zh-cn' => '使用Sharepoint网站的空间,不使用Onedrive',
|
'zh-cn' => '使用Sharepoint网站的空间,不使用Onedrive',
|
||||||
],
|
],
|
||||||
'GetSharepointName' => [
|
'GetSharepointSiteAddress' => [
|
||||||
'en-us' => 'Login office.com and click the SharePoint, create a website or find an exist website, input the name below',
|
'en-us' => 'Login office.com and click the SharePoint, create a website or find an exist website, input the Site address below',
|
||||||
'zh-cn' => '登录office.com,点击Sharepoint,创建一个网站或使用原有网站,然后将它的名字填在下方',
|
'zh-cn' => '登录office.com,点击Sharepoint,创建一个网站(或使用原有网站),然后将它的站点地址填在下方',
|
||||||
],
|
],
|
||||||
'InputSharepointName' => [
|
'InputSharepointSiteAddress' => [
|
||||||
'en-us' => 'Input the name of Sharepoint website',
|
'en-us' => 'https://xxxxx.sharepoint.com/sites(teams)/{name}',
|
||||||
'zh-cn' => '输入Sharepoint网站的名称',
|
|
||||||
],
|
],
|
||||||
'TagFormatAlert' => [
|
'TagFormatAlert' => [
|
||||||
'en-us' => 'Tag must start with a letter, end with a letter or digit and can only contain lowercase letters, digits, and dashes, at least 2 letters!',
|
'en-us' => 'Tag must start with a letter, end with a letter or digit and can only contain lowercase letters, digits, and dashes, at least 2 letters!',
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
error_reporting(E_ALL ^ E_NOTICE);
|
||||||
include 'vendor/autoload.php';
|
include 'vendor/autoload.php';
|
||||||
include 'conststr.php';
|
include 'conststr.php';
|
||||||
include 'common.php';
|
include 'common.php';
|
||||||
|
|
|
@ -106,7 +106,7 @@ function install()
|
||||||
if ($_GET['install1']) {
|
if ($_GET['install1']) {
|
||||||
if ($_POST['admin']!='') {
|
if ($_POST['admin']!='') {
|
||||||
$tmp['admin'] = $_POST['admin'];
|
$tmp['admin'] = $_POST['admin'];
|
||||||
$tmp['language'] = $_POST['language'];
|
//$tmp['language'] = $_POST['language'];
|
||||||
$tmp['timezone'] = $_COOKIE['timezone'];
|
$tmp['timezone'] = $_COOKIE['timezone'];
|
||||||
$APIKey = getConfig('APIKey');
|
$APIKey = getConfig('APIKey');
|
||||||
if ($APIKey=='') {
|
if ($APIKey=='') {
|
||||||
|
|
|
@ -72,14 +72,13 @@ function setConfig($arr, $disktag = '')
|
||||||
$configs = substr($s, 18, -2);
|
$configs = substr($s, 18, -2);
|
||||||
if ($configs!='') $envs = json_decode($configs, true);
|
if ($configs!='') $envs = json_decode($configs, true);
|
||||||
$disktags = explode("|",getConfig('disktag'));
|
$disktags = explode("|",getConfig('disktag'));
|
||||||
//$indisk = 0;
|
$indisk = 0;
|
||||||
$operatedisk = 0;
|
$operatedisk = 0;
|
||||||
foreach ($arr as $k => $v) {
|
foreach ($arr as $k => $v) {
|
||||||
if (in_array($k, $InnerEnv)) {
|
if (in_array($k, $InnerEnv)) {
|
||||||
if (in_array($k, $Base64Env)) $envs[$disktag][$k] = equal_replace($v);
|
if (in_array($k, $Base64Env)) $envs[$disktag][$k] = equal_replace($v);
|
||||||
else $envs[$disktag][$k] = $v;
|
else $envs[$disktag][$k] = $v;
|
||||||
/*$diskconfig[$k] = $v;
|
$indisk = 1;
|
||||||
$indisk = 1;*/
|
|
||||||
} elseif ($k=='disktag_add') {
|
} elseif ($k=='disktag_add') {
|
||||||
array_push($disktags, $v);
|
array_push($disktags, $v);
|
||||||
$operatedisk = 1;
|
$operatedisk = 1;
|
||||||
|
@ -92,11 +91,12 @@ function setConfig($arr, $disktag = '')
|
||||||
else $envs[$k] = $v;
|
else $envs[$k] = $v;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*if ($indisk) {
|
if ($indisk) {
|
||||||
|
$diskconfig = $envs[$disktag];
|
||||||
$diskconfig = array_filter($diskconfig, 'array_value_isnot_null');
|
$diskconfig = array_filter($diskconfig, 'array_value_isnot_null');
|
||||||
ksort($diskconfig);
|
ksort($diskconfig);
|
||||||
$tmp[$disktag] = json_encode($diskconfig);
|
$envs[$disktag] = $diskconfig;
|
||||||
}*/
|
}
|
||||||
if ($operatedisk) {
|
if ($operatedisk) {
|
||||||
$disktags = array_unique($disktags);
|
$disktags = array_unique($disktags);
|
||||||
foreach ($disktags as $disktag) if ($disktag!='') $disktag_s .= $disktag . '|';
|
foreach ($disktags as $disktag) if ($disktag!='') $disktag_s .= $disktag . '|';
|
||||||
|
@ -119,7 +119,7 @@ function install()
|
||||||
if ($_GET['install2']) {
|
if ($_GET['install2']) {
|
||||||
if ($_POST['admin']!='') {
|
if ($_POST['admin']!='') {
|
||||||
$tmp['admin'] = $_POST['admin'];
|
$tmp['admin'] = $_POST['admin'];
|
||||||
$tmp['language'] = $_COOKIE['language'];
|
//$tmp['language'] = $_COOKIE['language'];
|
||||||
$tmp['timezone'] = $_COOKIE['timezone'];
|
$tmp['timezone'] = $_COOKIE['timezone'];
|
||||||
$response = setConfig($tmp);
|
$response = setConfig($tmp);
|
||||||
if (api_error($response)) {
|
if (api_error($response)) {
|
||||||
|
|
|
@ -139,7 +139,7 @@ function install()
|
||||||
}
|
}
|
||||||
if ($_GET['install1']) {
|
if ($_GET['install1']) {
|
||||||
//if ($_POST['admin']!='') {
|
//if ($_POST['admin']!='') {
|
||||||
$tmp['language'] = $_POST['language'];
|
//$tmp['language'] = $_POST['language'];
|
||||||
$tmp['Region'] = $_POST['Region'];
|
$tmp['Region'] = $_POST['Region'];
|
||||||
$tmp['timezone'] = $_COOKIE['timezone'];
|
$tmp['timezone'] = $_COOKIE['timezone'];
|
||||||
$SecretId = getConfig('SecretId');
|
$SecretId = getConfig('SecretId');
|
||||||
|
|
|
@ -4,7 +4,7 @@ Install program first, then add onedrive in setup after login.
|
||||||
# Deploy to heroku
|
# Deploy to heroku
|
||||||
Official: https://heroku.com
|
Official: https://heroku.com
|
||||||
|
|
||||||
How to Install: Click the button [](https://heroku.com/deploy) 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.
|
||||||
|
|
||||||
DEMO: https://herooneindex.herokuapp.com/
|
DEMO: https://herooneindex.herokuapp.com/
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -71,7 +71,7 @@
|
||||||
<li class="operate"><ion-icon name="construct"></ion-icon><?php echo getconstStr('Operate'); ?><ul>
|
<li class="operate"><ion-icon name="construct"></ion-icon><?php echo getconstStr('Operate'); ?><ul>
|
||||||
<?php if (isset($files['folder'])) { ?>
|
<?php if (isset($files['folder'])) { ?>
|
||||||
<li><a onclick="showdiv(event,'create','');"><ion-icon name="add-circle"></ion-icon><?php echo getconstStr('Create'); ?></a></li>
|
<li><a onclick="showdiv(event,'create','');"><ion-icon name="add-circle"></ion-icon><?php echo getconstStr('Create'); ?></a></li>
|
||||||
<li><a onclick="showdiv(event,'encrypt','');"><ion-icon name="lock"></ion-icon><?php echo getconstStr('encrypt'); ?></a></li>
|
<li><a onclick="showdiv(event,'encrypt','');"><ion-icon name="lock"></ion-icon><?php echo getconstStr('Encrypt'); ?></a></li>
|
||||||
<li><a href="?RefreshCache"><ion-icon name="refresh"></ion-icon><?php echo getconstStr('RefreshCache'); ?></a></li>
|
<li><a href="?RefreshCache"><ion-icon name="refresh"></ion-icon><?php echo getconstStr('RefreshCache'); ?></a></li>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<li><a href="<?php echo isset($_GET['preview'])?'?preview&':'?';?>setup"><ion-icon name="settings"></ion-icon><?php echo getconstStr('Setup'); ?></a></li>
|
<li><a href="<?php echo isset($_GET['preview'])?'?preview&':'?';?>setup"><ion-icon name="settings"></ion-icon><?php echo getconstStr('Setup'); ?></a></li>
|
||||||
|
@ -239,7 +239,7 @@
|
||||||
<?php if ($_SERVER['admin']) { ?>
|
<?php if ($_SERVER['admin']) { ?>
|
||||||
<li class="operate"><ion-icon name="construct"></ion-icon><a><?php echo getconstStr('Operate'); ?></a>
|
<li class="operate"><ion-icon name="construct"></ion-icon><a><?php echo getconstStr('Operate'); ?></a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a onclick="showdiv(event,'encrypt',<?php echo $filenum;?>);"><ion-icon name="lock"></ion-icon><?php echo getconstStr('encrypt'); ?></a></li>
|
<li><a onclick="showdiv(event,'encrypt',<?php echo $filenum;?>);"><ion-icon name="lock"></ion-icon><?php echo getconstStr('Encrypt'); ?></a></li>
|
||||||
<li><a onclick="showdiv(event, 'rename',<?php echo $filenum;?>);"><ion-icon name="create"></ion-icon><?php echo getconstStr('Rename'); ?></a></li>
|
<li><a onclick="showdiv(event, 'rename',<?php echo $filenum;?>);"><ion-icon name="create"></ion-icon><?php echo getconstStr('Rename'); ?></a></li>
|
||||||
<li><a onclick="showdiv(event, 'move',<?php echo $filenum;?>);"><ion-icon name="move"></ion-icon><?php echo getconstStr('Move'); ?></a></li>
|
<li><a onclick="showdiv(event, 'move',<?php echo $filenum;?>);"><ion-icon name="move"></ion-icon><?php echo getconstStr('Move'); ?></a></li>
|
||||||
<li><a onclick="showdiv(event, 'copy',<?php echo $filenum;?>);"><ion-icon name="copy"></ion-icon><?php echo getconstStr('Copy'); ?></a></li>
|
<li><a onclick="showdiv(event, 'copy',<?php echo $filenum;?>);"><ion-icon name="copy"></ion-icon><?php echo getconstStr('Copy'); ?></a></li>
|
||||||
|
@ -428,7 +428,7 @@
|
||||||
<input id="encrypt_sid" name="encrypt_sid" type="hidden" value="">
|
<input id="encrypt_sid" name="encrypt_sid" type="hidden" value="">
|
||||||
<input id="encrypt_hidden" name="encrypt_folder" type="hidden" value="">
|
<input id="encrypt_hidden" name="encrypt_folder" type="hidden" value="">
|
||||||
<input id="encrypt_input" name="encrypt_newpass" type="text" value="" placeholder="<?php echo getconstStr('InputPasswordUWant'); ?>">
|
<input id="encrypt_input" name="encrypt_newpass" type="text" value="" placeholder="<?php echo getconstStr('InputPasswordUWant'); ?>">
|
||||||
<?php if (getConfig('passfile')!='') {?><input name="operate_action" type="submit" value="<?php echo getconstStr('encrypt'); ?>"><?php } else { ?><br><label><?php echo getconstStr('SetpassfileBfEncrypt'); ?></label><?php } ?>
|
<?php if (getConfig('passfile')!='') {?><input name="operate_action" type="submit" value="<?php echo getconstStr('Encrypt'); ?>"><?php } else { ?><br><label><?php echo getconstStr('SetpassfileBfEncrypt'); ?></label><?php } ?>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -911,7 +911,7 @@ echo 'IPv4: ' ,$ip, "\n";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var xhr1 = new XMLHttpRequest();
|
var xhr1 = new XMLHttpRequest();
|
||||||
xhr1.open("GET", '?action=upbigfile&upbigfilename='+ encodeURIComponent(file.name) +'&filesize='+ file.size +'&lastModified='+ file.lastModified);
|
xhr1.open("GET", '?action=upbigfile&upbigfilename='+ encodeURIComponent((file.webkitRelativePath||file.name)) +'&filesize='+ file.size +'&lastModified='+ file.lastModified);
|
||||||
xhr1.setRequestHeader('x-requested-with','XMLHttpRequest');
|
xhr1.setRequestHeader('x-requested-with','XMLHttpRequest');
|
||||||
xhr1.send(null);
|
xhr1.send(null);
|
||||||
xhr1.onload = function(e){
|
xhr1.onload = function(e){
|
||||||
|
@ -1022,7 +1022,7 @@ echo 'IPv4: ' ,$ip, "\n";
|
||||||
if (response['size']>0) {
|
if (response['size']>0) {
|
||||||
// contain size, upload finish. 有size说明是最终返回,上传结束
|
// contain size, upload finish. 有size说明是最终返回,上传结束
|
||||||
var xhr3 = new XMLHttpRequest();
|
var xhr3 = new XMLHttpRequest();
|
||||||
xhr3.open("GET", '?action=del_upload_cache&filename=.'+file.lastModified+ '_' +file.size+ '_' +encodeURIComponent(file.name)+'.tmp');
|
xhr3.open("GET", '?action=del_upload_cache&filelastModified='+file.lastModified+'&filesize='+file.size+'&filename='+encodeURIComponent((file.webkitRelativePath||file.name)));
|
||||||
xhr3.setRequestHeader('x-requested-with','XMLHttpRequest');
|
xhr3.setRequestHeader('x-requested-with','XMLHttpRequest');
|
||||||
xhr3.send(null);
|
xhr3.send(null);
|
||||||
xhr3.onload = function(e){
|
xhr3.onload = function(e){
|
||||||
|
@ -1031,7 +1031,7 @@ echo 'IPv4: ' ,$ip, "\n";
|
||||||
<?php if (!$_SERVER['admin']) { ?>
|
<?php if (!$_SERVER['admin']) { ?>
|
||||||
var filemd5 = spark.end();
|
var filemd5 = spark.end();
|
||||||
var xhr4 = new XMLHttpRequest();
|
var xhr4 = new XMLHttpRequest();
|
||||||
xhr4.open("GET", '?action=uploaded_rename&filename='+encodeURIComponent(file.name)+'&filemd5='+filemd5);
|
xhr4.open("GET", '?action=uploaded_rename&filename='+encodeURIComponent((file.webkitRelativePath||file.name))+'&filemd5='+filemd5);
|
||||||
xhr4.setRequestHeader('x-requested-with','XMLHttpRequest');
|
xhr4.setRequestHeader('x-requested-with','XMLHttpRequest');
|
||||||
xhr4.send(null);
|
xhr4.send(null);
|
||||||
xhr4.onload = function(e){
|
xhr4.onload = function(e){
|
||||||
|
|
|
@ -74,7 +74,7 @@
|
||||||
<li class="operate"><ion-icon name="construct"></ion-icon><?php echo getconstStr('Operate'); ?><ul>
|
<li class="operate"><ion-icon name="construct"></ion-icon><?php echo getconstStr('Operate'); ?><ul>
|
||||||
<?php if (isset($files['folder'])) { ?>
|
<?php if (isset($files['folder'])) { ?>
|
||||||
<li><a onclick="showdiv(event,'create','');"><ion-icon name="add-circle"></ion-icon><?php echo getconstStr('Create'); ?></a></li>
|
<li><a onclick="showdiv(event,'create','');"><ion-icon name="add-circle"></ion-icon><?php echo getconstStr('Create'); ?></a></li>
|
||||||
<li><a onclick="showdiv(event,'encrypt','');"><ion-icon name="lock"></ion-icon><?php echo getconstStr('encrypt'); ?></a></li>
|
<li><a onclick="showdiv(event,'encrypt','');"><ion-icon name="lock"></ion-icon><?php echo getconstStr('Encrypt'); ?></a></li>
|
||||||
<li><a href="?RefreshCache"><ion-icon name="refresh"></ion-icon><?php echo getconstStr('RefreshCache'); ?></a></li>
|
<li><a href="?RefreshCache"><ion-icon name="refresh"></ion-icon><?php echo getconstStr('RefreshCache'); ?></a></li>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<li><a href="<?php echo $_GET['preview']?'?preview&':'?';?>setup"><ion-icon name="settings"></ion-icon><?php echo getconstStr('Setup'); ?></a></li>
|
<li><a href="<?php echo $_GET['preview']?'?preview&':'?';?>setup"><ion-icon name="settings"></ion-icon><?php echo getconstStr('Setup'); ?></a></li>
|
||||||
|
@ -229,7 +229,7 @@
|
||||||
<?php if ($_SERVER['admin']) { ?>
|
<?php if ($_SERVER['admin']) { ?>
|
||||||
<li class="operate"><ion-icon name="construct"></ion-icon><a><?php echo getconstStr('Operate'); ?></a>
|
<li class="operate"><ion-icon name="construct"></ion-icon><a><?php echo getconstStr('Operate'); ?></a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a onclick="showdiv(event,'encrypt',<?php echo $filenum;?>);"><ion-icon name="lock"></ion-icon><?php echo getconstStr('encrypt'); ?></a></li>
|
<li><a onclick="showdiv(event,'encrypt',<?php echo $filenum;?>);"><ion-icon name="lock"></ion-icon><?php echo getconstStr('Encrypt'); ?></a></li>
|
||||||
<li><a onclick="showdiv(event, 'rename',<?php echo $filenum;?>);"><ion-icon name="create"></ion-icon><?php echo getconstStr('Rename'); ?></a></li>
|
<li><a onclick="showdiv(event, 'rename',<?php echo $filenum;?>);"><ion-icon name="create"></ion-icon><?php echo getconstStr('Rename'); ?></a></li>
|
||||||
<li><a onclick="showdiv(event, 'move',<?php echo $filenum;?>);"><ion-icon name="move"></ion-icon><?php echo getconstStr('Move'); ?></a></li>
|
<li><a onclick="showdiv(event, 'move',<?php echo $filenum;?>);"><ion-icon name="move"></ion-icon><?php echo getconstStr('Move'); ?></a></li>
|
||||||
<li><a onclick="showdiv(event, 'copy',<?php echo $filenum;?>);"><ion-icon name="copy"></ion-icon><?php echo getconstStr('Copy'); ?></a></li>
|
<li><a onclick="showdiv(event, 'copy',<?php echo $filenum;?>);"><ion-icon name="copy"></ion-icon><?php echo getconstStr('Copy'); ?></a></li>
|
||||||
|
@ -445,7 +445,7 @@
|
||||||
<input id="encrypt_sid" name="encrypt_sid" type="hidden" value="">
|
<input id="encrypt_sid" name="encrypt_sid" type="hidden" value="">
|
||||||
<input id="encrypt_hidden" name="encrypt_folder" type="hidden" value="">
|
<input id="encrypt_hidden" name="encrypt_folder" type="hidden" value="">
|
||||||
<input id="encrypt_input" name="encrypt_newpass" type="text" value="" placeholder="<?php echo getconstStr('InputPasswordUWant'); ?>">
|
<input id="encrypt_input" name="encrypt_newpass" type="text" value="" placeholder="<?php echo getconstStr('InputPasswordUWant'); ?>">
|
||||||
<?php if (getConfig('passfile')!='') {?><input name="operate_action" type="submit" value="<?php echo getconstStr('encrypt'); ?>"><?php } else { ?><br><label><?php echo getconstStr('SetpassfileBfEncrypt'); ?></label><?php } ?>
|
<?php if (getConfig('passfile')!='') {?><input name="operate_action" type="submit" value="<?php echo getconstStr('Encrypt'); ?>"><?php } else { ?><br><label><?php echo getconstStr('SetpassfileBfEncrypt'); ?></label><?php } ?>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -908,7 +908,7 @@ echo 'IPv4: ' ,$ip, "\n";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var xhr1 = new XMLHttpRequest();
|
var xhr1 = new XMLHttpRequest();
|
||||||
xhr1.open("GET", '?action=upbigfile&upbigfilename='+ encodeURIComponent(file.name) +'&filesize='+ file.size +'&lastModified='+ file.lastModified);
|
xhr1.open("GET", '?action=upbigfile&upbigfilename='+ encodeURIComponent((file.webkitRelativePath||file.name)) +'&filesize='+ file.size +'&lastModified='+ file.lastModified);
|
||||||
xhr1.setRequestHeader('x-requested-with','XMLHttpRequest');
|
xhr1.setRequestHeader('x-requested-with','XMLHttpRequest');
|
||||||
xhr1.send(null);
|
xhr1.send(null);
|
||||||
xhr1.onload = function(e){
|
xhr1.onload = function(e){
|
||||||
|
@ -1019,7 +1019,7 @@ echo 'IPv4: ' ,$ip, "\n";
|
||||||
if (response['size']>0) {
|
if (response['size']>0) {
|
||||||
// contain size, upload finish. 有size说明是最终返回,上传结束
|
// contain size, upload finish. 有size说明是最终返回,上传结束
|
||||||
var xhr3 = new XMLHttpRequest();
|
var xhr3 = new XMLHttpRequest();
|
||||||
xhr3.open("GET", '?action=del_upload_cache&filename=.'+file.lastModified+ '_' +file.size+ '_' +encodeURIComponent(file.name)+'.tmp');
|
xhr3.open("GET", '?action=del_upload_cache&filelastModified='+file.lastModified+'&filesize='+file.size+'&filename='+encodeURIComponent((file.webkitRelativePath||file.name)));
|
||||||
xhr3.setRequestHeader('x-requested-with','XMLHttpRequest');
|
xhr3.setRequestHeader('x-requested-with','XMLHttpRequest');
|
||||||
xhr3.send(null);
|
xhr3.send(null);
|
||||||
xhr3.onload = function(e){
|
xhr3.onload = function(e){
|
||||||
|
@ -1028,7 +1028,7 @@ echo 'IPv4: ' ,$ip, "\n";
|
||||||
<?php if (!$_SERVER['admin']) { ?>
|
<?php if (!$_SERVER['admin']) { ?>
|
||||||
var filemd5 = spark.end();
|
var filemd5 = spark.end();
|
||||||
var xhr4 = new XMLHttpRequest();
|
var xhr4 = new XMLHttpRequest();
|
||||||
xhr4.open("GET", '?action=uploaded_rename&filename='+encodeURIComponent(file.name)+'&filemd5='+filemd5);
|
xhr4.open("GET", '?action=uploaded_rename&filename='+encodeURIComponent((file.webkitRelativePath||file.name))+'&filemd5='+filemd5);
|
||||||
xhr4.setRequestHeader('x-requested-with','XMLHttpRequest');
|
xhr4.setRequestHeader('x-requested-with','XMLHttpRequest');
|
||||||
xhr4.send(null);
|
xhr4.send(null);
|
||||||
xhr4.onload = function(e){
|
xhr4.onload = function(e){
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -1,4 +1,5 @@
|
||||||
<!-- theme purenice designed & coded by wendale-->
|
|
||||||
|
<!-- theme purenice designed & coded by wendale v1.1 Responsive fixed on May 1st-->
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="<?php echo $constStr['language']; ?>">
|
<html lang="<?php echo $constStr['language']; ?>">
|
||||||
<head>
|
<head>
|
||||||
|
@ -33,10 +34,10 @@
|
||||||
.fix{height:60px;}
|
.fix{height:60px;}
|
||||||
.list-body-container{position:relative;left:0;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;}
|
.list-body-container{position:relative;left:0;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;}
|
||||||
.more-disk{border-bottom:1px solid #E8E9EC;height:40px;white-space:nowrap;overflow:auto;}
|
.more-disk{border-bottom:1px solid #E8E9EC;height:40px;white-space:nowrap;overflow:auto;}
|
||||||
.more-disk a{display:block;float:left;width:20%;height:38px;text-align:center;font-weight: bold;font-size: 18px;line-height:38px;color:#A6AAB4; }
|
.more-disk a{display:block;float:left;width:30%;height:38px;text-align:center;font-weight: bold;font-size: 18px;line-height:38px;color:#A6AAB4; }
|
||||||
.more-disk a:hover, .more-disk a[now]{ color: #3B414B;border-bottom:2px solid #FF7D00;}
|
.more-disk a:hover, .more-disk a[now]{ color: #3B414B;border-bottom:2px solid #FF7D00;}
|
||||||
.list-table{width:100%;border-spacing:0;margin-bottom:20px;}
|
.list-table{width:100%;border-spacing:0;margin-bottom:20px;}
|
||||||
.list-table tr{display:block;margin:10px 20px;width:96%;float:left;background:#ffffff;box-shadow: 0px 4px 26px rgba(0, 0, 0, 0.06);border-radius: 6px;}
|
.list-table tr{display:block;margin:10px 10px;width:96%;float:left;background:#ffffff;box-shadow: 0px 4px 26px rgba(0, 0, 0, 0.06);border-radius: 6px;}
|
||||||
.list-table tr[data-to]:hover{background:#10C971;color:white;}
|
.list-table tr[data-to]:hover{background:#10C971;color:white;}
|
||||||
.list-table tr[data-to]:hover a{color:white}
|
.list-table tr[data-to]:hover a{color:white}
|
||||||
.list-table td,.list-table th{display:block;float:left;line-height:60px;text-align:left;}
|
.list-table td,.list-table th{display:block;float:left;line-height:60px;text-align:left;}
|
||||||
|
@ -67,20 +68,28 @@
|
||||||
.operatediv_close{position:absolute;right:15px;top:15px;}
|
.operatediv_close{position:absolute;right:15px;top:15px;}
|
||||||
.readme{padding:8px;background-color:rgba(245,245,245,0.5);}
|
.readme{padding:8px;background-color:rgba(245,245,245,0.5);}
|
||||||
.markdown-body{padding:20px;text-align:left}
|
.markdown-body{padding:20px;text-align:left}
|
||||||
@media only screen and (max-width:480px){
|
|
||||||
.title{margin-bottom:24px}
|
|
||||||
.list-wrapper{width:95%; margin-bottom:24px;}
|
|
||||||
.list-table {padding:8px}
|
|
||||||
.list-table td, .list-table th{white-space:nowrap;overflow:auto;max-width:80px}
|
|
||||||
.size, .updated_at{display:none}
|
|
||||||
}
|
|
||||||
.update_notice{position:absolute;color:#A6AAB4;left:10%;margin-top:10px;}
|
.update_notice{position:absolute;color:#A6AAB4;left:10%;margin-top:10px;}
|
||||||
.upload_style{height:60px;width:96%;margin:20px;background:#ffffff;box-shadow: 0px 4px 26px rgba(0, 0, 0, 0.06);border-radius: 6px;}
|
.upload_style{height:60px;width:96%;margin:10px;background:#ffffff;box-shadow: 0px 4px 26px rgba(0, 0, 0, 0.06);border-radius: 6px;}
|
||||||
/* .upload_style .file{position: relative;float:left;width:100px;height:60px;;display: block;background: #FF7D00;border-radius: 6px;overflow: hidden;color: #fff;text-decoration: none;text-align:center;line-height: 60px;font-size:14px;pointer-events: none;} */
|
|
||||||
.upload_style input[type="file"]{display:block;color:#A6AAB4;float:left;height:38px;margin:20px 0 0 20px;outline:none;font-size:14px;text-align:center;}
|
.upload_style input[type="file"]{display:block;color:#A6AAB4;float:left;height:38px;margin:20px 0 0 20px;outline:none;font-size:14px;text-align:center;}
|
||||||
.upload_style input[type="button"]{display:block;color:#fff;float:right;height:60px;width:160px;outline:none;font-size:16px;background:#613EEA;border-radius:6px;border:0;}
|
.upload_style input[type="button"]{display:block;color:#fff;float:right;height:60px;width:160px;outline:none;font-size:16px;background:#613EEA;border-radius:6px;border:0;}
|
||||||
.upload_style .list-table tr td{line-height:30px;margin:10px 20px;}
|
.upload_style .list-table tr td{line-height:30px;margin:10px 20px;}
|
||||||
.upload_style .list-table tr td button{margin-left:10px;}
|
.upload_style .list-table tr td button{margin-left:10px;}
|
||||||
|
@media only screen and (max-width:480px){
|
||||||
|
.title{margin-bottom:24px}
|
||||||
|
.list-wrapper{width:95%; margin-bottom:24px;}
|
||||||
|
.list-table {padding:8px}
|
||||||
|
.list-table td button,.list-table th button{cursor:pointer;color:#ffffff;height:24px;background:#FF7D00;padding:0 8px;border-width:0;border-radius:6px;box-shadow: 0px 2px 6px rgba(255, 125, 0, 0.5);}
|
||||||
|
.list-table td, .list-table th{white-space:nowrap;overflow:auto;line-height:40px;}
|
||||||
|
.list-table td.file,.list-table th.file{padding-left: 10px;width: 96%;}
|
||||||
|
.size, .updated_at{display:none}
|
||||||
|
.changelanguage{color:#fff;}
|
||||||
|
.list-table td.updated_at,.list-table th.updated_at{width:50%;text-align:left;margin-left:10px;}
|
||||||
|
.list-table td.size,.list-table th.size{width:30%;text-align:left;}
|
||||||
|
.list-table td.file ion-icon{float:left;margin-top:13px;margin-right:5px;}
|
||||||
|
.upload_style input[type="file"]{display:block;color:#A6AAB4;float:left;height:38px;margin:18px 0 0 10px;outline:none;font-size:14px;text-align:center;width:70%;}
|
||||||
|
.upload_style input[type="button"]{display:block;color:#fff;float:right;height:60px;width:25%;outline:none;font-size:16px;background:#613EEA;border-radius:6px;border:0;}
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
@ -96,7 +105,7 @@
|
||||||
<li class="operate"><ion-icon name="construct"></ion-icon><?php echo getconstStr('Operate'); ?><ul>
|
<li class="operate"><ion-icon name="construct"></ion-icon><?php echo getconstStr('Operate'); ?><ul>
|
||||||
<?php if (isset($files['folder'])) { ?>
|
<?php if (isset($files['folder'])) { ?>
|
||||||
<li><a onclick="showdiv(event,'create','');"><ion-icon name="add-circle"></ion-icon><?php echo getconstStr('Create'); ?></a></li>
|
<li><a onclick="showdiv(event,'create','');"><ion-icon name="add-circle"></ion-icon><?php echo getconstStr('Create'); ?></a></li>
|
||||||
<li><a onclick="showdiv(event,'encrypt','');"><ion-icon name="lock"></ion-icon><?php echo getconstStr('encrypt'); ?></a></li>
|
<li><a onclick="showdiv(event,'encrypt','');"><ion-icon name="lock"></ion-icon><?php echo getconstStr('Encrypt'); ?></a></li>
|
||||||
<li><a href="?RefreshCache"><ion-icon name="refresh"></ion-icon><?php echo getconstStr('RefreshCache'); ?></a></li>
|
<li><a href="?RefreshCache"><ion-icon name="refresh"></ion-icon><?php echo getconstStr('RefreshCache'); ?></a></li>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<li><a href="<?php echo isset($_GET['preview'])?'?preview&':'?';?>setup"><ion-icon name="settings"></ion-icon><?php echo getconstStr('Setup'); ?></a></li>
|
<li><a href="<?php echo isset($_GET['preview'])?'?preview&':'?';?>setup"><ion-icon name="settings"></ion-icon><?php echo getconstStr('Setup'); ?></a></li>
|
||||||
|
@ -249,8 +258,8 @@
|
||||||
<table class="list-table" id="list-table">
|
<table class="list-table" id="list-table">
|
||||||
<tr id="tr0">
|
<tr id="tr0">
|
||||||
<th class="file"><a onclick="sortby('a');"><?php echo getconstStr('File'); ?></a><?php if (!(isset($_SERVER['USER'])&&$_SERVER['USER']=='qcloud')) { ?> <button onclick="showthumbnails(this);"><?php echo getconstStr('ShowThumbnails'); ?></button><?php } ?> <button onclick="CopyAllDownloadUrl('.download');"><?php echo getconstStr('CopyAllDownloadUrl'); ?></button></th>
|
<th class="file"><a onclick="sortby('a');"><?php echo getconstStr('File'); ?></a><?php if (!(isset($_SERVER['USER'])&&$_SERVER['USER']=='qcloud')) { ?> <button onclick="showthumbnails(this);"><?php echo getconstStr('ShowThumbnails'); ?></button><?php } ?> <button onclick="CopyAllDownloadUrl('.download');"><?php echo getconstStr('CopyAllDownloadUrl'); ?></button></th>
|
||||||
<th class="updated_at" width="25%"><a onclick="sortby('time');"><?php echo getconstStr('EditTime'); ?></a></th>
|
<th class="updated_at"><a onclick="sortby('time');"><?php echo getconstStr('EditTime'); ?></a></th>
|
||||||
<th class="size" width="15%"><a onclick="sortby('size');"><?php echo getconstStr('Size'); ?></a></th>
|
<th class="size"><a onclick="sortby('size');"><?php echo getconstStr('Size'); ?></a></th>
|
||||||
</tr>
|
</tr>
|
||||||
<!-- Dirs -->
|
<!-- Dirs -->
|
||||||
<?php //echo json_encode($files['children'], JSON_PRETTY_PRINT);
|
<?php //echo json_encode($files['children'], JSON_PRETTY_PRINT);
|
||||||
|
@ -263,7 +272,7 @@
|
||||||
<?php if ($_SERVER['admin']) { ?>
|
<?php if ($_SERVER['admin']) { ?>
|
||||||
<li class="operate"><ion-icon name="construct"></ion-icon><a><?php echo getconstStr('Operate'); ?></a>
|
<li class="operate"><ion-icon name="construct"></ion-icon><a><?php echo getconstStr('Operate'); ?></a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a onclick="showdiv(event,'encrypt',<?php echo $filenum;?>);"><ion-icon name="lock"></ion-icon><?php echo getconstStr('encrypt'); ?></a></li>
|
<li><a onclick="showdiv(event,'encrypt',<?php echo $filenum;?>);"><ion-icon name="lock"></ion-icon><?php echo getconstStr('Encrypt'); ?></a></li>
|
||||||
<li><a onclick="showdiv(event, 'rename',<?php echo $filenum;?>);"><ion-icon name="create"></ion-icon><?php echo getconstStr('Rename'); ?></a></li>
|
<li><a onclick="showdiv(event, 'rename',<?php echo $filenum;?>);"><ion-icon name="create"></ion-icon><?php echo getconstStr('Rename'); ?></a></li>
|
||||||
<li><a onclick="showdiv(event, 'move',<?php echo $filenum;?>);"><ion-icon name="move"></ion-icon><?php echo getconstStr('Move'); ?></a></li>
|
<li><a onclick="showdiv(event, 'move',<?php echo $filenum;?>);"><ion-icon name="move"></ion-icon><?php echo getconstStr('Move'); ?></a></li>
|
||||||
<li><a onclick="showdiv(event, 'copy',<?php echo $filenum;?>);"><ion-icon name="copy"></ion-icon><?php echo getconstStr('Copy'); ?></a></li>
|
<li><a onclick="showdiv(event, 'copy',<?php echo $filenum;?>);"><ion-icon name="copy"></ion-icon><?php echo getconstStr('Copy'); ?></a></li>
|
||||||
|
@ -451,7 +460,7 @@
|
||||||
<input id="encrypt_sid" name="encrypt_sid" type="hidden" value="">
|
<input id="encrypt_sid" name="encrypt_sid" type="hidden" value="">
|
||||||
<input id="encrypt_hidden" name="encrypt_folder" type="hidden" value="">
|
<input id="encrypt_hidden" name="encrypt_folder" type="hidden" value="">
|
||||||
<input id="encrypt_input" name="encrypt_newpass" type="text" value="" placeholder="<?php echo getconstStr('InputPasswordUWant'); ?>">
|
<input id="encrypt_input" name="encrypt_newpass" type="text" value="" placeholder="<?php echo getconstStr('InputPasswordUWant'); ?>">
|
||||||
<?php if (getConfig('passfile')!='') {?><input name="operate_action" type="submit" value="<?php echo getconstStr('encrypt'); ?>"><?php } else { ?><br><label><?php echo getconstStr('SetpassfileBfEncrypt'); ?></label><?php } ?>
|
<?php if (getConfig('passfile')!='') {?><input name="operate_action" type="submit" value="<?php echo getconstStr('Encrypt'); ?>"><?php } else { ?><br><label><?php echo getconstStr('SetpassfileBfEncrypt'); ?></label><?php } ?>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -872,7 +881,7 @@
|
||||||
tr1.setAttribute('data-to',1);
|
tr1.setAttribute('data-to',1);
|
||||||
var td1=document.createElement('td');
|
var td1=document.createElement('td');
|
||||||
tr1.appendChild(td1);
|
tr1.appendChild(td1);
|
||||||
td1.setAttribute('class','uplist');
|
td1.setAttribute('style','width:30%');
|
||||||
td1.setAttribute('id','upfile_td1_'+timea+'_'+i);
|
td1.setAttribute('id','upfile_td1_'+timea+'_'+i);
|
||||||
td1.innerHTML=file.name+'<br>'+size_format(file.size);
|
td1.innerHTML=file.name+'<br>'+size_format(file.size);
|
||||||
var td2=document.createElement('td');
|
var td2=document.createElement('td');
|
||||||
|
@ -885,7 +894,7 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var xhr1 = new XMLHttpRequest();
|
var xhr1 = new XMLHttpRequest();
|
||||||
xhr1.open("GET", '?action=upbigfile&upbigfilename='+ encodeURIComponent(file.name) +'&filesize='+ file.size +'&lastModified='+ file.lastModified);
|
xhr1.open("GET", '?action=upbigfile&upbigfilename='+ encodeURIComponent((file.webkitRelativePath||file.name)) +'&filesize='+ file.size +'&lastModified='+ file.lastModified);
|
||||||
xhr1.setRequestHeader('x-requested-with','XMLHttpRequest');
|
xhr1.setRequestHeader('x-requested-with','XMLHttpRequest');
|
||||||
xhr1.send(null);
|
xhr1.send(null);
|
||||||
xhr1.onload = function(e){
|
xhr1.onload = function(e){
|
||||||
|
@ -996,7 +1005,7 @@
|
||||||
if (response['size']>0) {
|
if (response['size']>0) {
|
||||||
// contain size, upload finish. 有size说明是最终返回,上传结束
|
// contain size, upload finish. 有size说明是最终返回,上传结束
|
||||||
var xhr3 = new XMLHttpRequest();
|
var xhr3 = new XMLHttpRequest();
|
||||||
xhr3.open("GET", '?action=del_upload_cache&filename=.'+file.lastModified+ '_' +file.size+ '_' +encodeURIComponent(file.name)+'.tmp');
|
xhr3.open("GET", '?action=del_upload_cache&filelastModified='+file.lastModified+'&filesize='+file.size+'&filename='+encodeURIComponent((file.webkitRelativePath||file.name)));
|
||||||
xhr3.setRequestHeader('x-requested-with','XMLHttpRequest');
|
xhr3.setRequestHeader('x-requested-with','XMLHttpRequest');
|
||||||
xhr3.send(null);
|
xhr3.send(null);
|
||||||
xhr3.onload = function(e){
|
xhr3.onload = function(e){
|
||||||
|
@ -1005,7 +1014,7 @@
|
||||||
<?php if (!$_SERVER['admin']) { ?>
|
<?php if (!$_SERVER['admin']) { ?>
|
||||||
var filemd5 = spark.end();
|
var filemd5 = spark.end();
|
||||||
var xhr4 = new XMLHttpRequest();
|
var xhr4 = new XMLHttpRequest();
|
||||||
xhr4.open("GET", '?action=uploaded_rename&filename='+encodeURIComponent(file.name)+'&filemd5='+filemd5);
|
xhr4.open("GET", '?action=uploaded_rename&filename='+encodeURIComponent((file.webkitRelativePath||file.name))+'&filemd5='+filemd5);
|
||||||
xhr4.setRequestHeader('x-requested-with','XMLHttpRequest');
|
xhr4.setRequestHeader('x-requested-with','XMLHttpRequest');
|
||||||
xhr4.send(null);
|
xhr4.send(null);
|
||||||
xhr4.onload = function(e){
|
xhr4.onload = function(e){
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<link rel="icon" href="https://cdn.jsdelivr.net/gh/ldxw/CDN@0.003/favicon/64x64/favicon.ico" type="image/x-icon" />
|
<link rel="icon" href="https://cdn.jsdelivr.net/gh/ldxw/CDN@0.003/favicon/64x64/favicon.ico" type="image/x-icon" />
|
||||||
<link rel="shortcut icon" href="https://cdn.jsdelivr.net/gh/ldxw/CDN@0.003/favicon/64x64/favicon.ico" type="image/x-icon" />
|
<link rel="shortcut icon" href="https://cdn.jsdelivr.net/gh/ldxw/CDN@0.003/favicon/64x64/favicon.ico" type="image/x-icon" />
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
body{font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:16px;line-height:1em;color:#1E90FF;background:url("http://www.qqzzz.net/www/images/bj.png")}
|
body{font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:16px;line-height:1em;color:#1E90FF;background:url("//www.qqzzz.net/www/images/bj.png")}
|
||||||
a{color:#1E90FF;cursor:pointer;text-decoration:none}
|
a{color:#1E90FF;cursor:pointer;text-decoration:none}
|
||||||
a:hover{color:#1E90FF}
|
a:hover{color:#1E90FF}
|
||||||
.login ion-icon{vertical-align:bottom}
|
.login ion-icon{vertical-align:bottom}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -11,7 +11,7 @@ example:
|
||||||
"$0" -i
|
"$0" -i
|
||||||
"$0" -u
|
"$0" -u
|
||||||
"$0" -b master
|
"$0" -b master
|
||||||
"$0" -r -b master
|
"$0" -u -b master
|
||||||
"$0" -ib test
|
"$0" -ib test
|
||||||
"
|
"
|
||||||
# exit
|
# exit
|
||||||
|
|
5
version
5
version
|
@ -1,7 +1,10 @@
|
||||||
|
20200503-1848.18
|
||||||
|
Rebuild theme. Add custom Css & custom Script, add FunctionalityFile: head.omf & foot.omf.
|
||||||
|
重建主题文件结构。增加自定义css与自定义script。增加2个功能文件:head.omf、foot.omf。
|
||||||
|
|
||||||
20200402-1830.17
|
20200402-1830.17
|
||||||
Oneclick update can select which branch to update. Now use the accept language instead of the language config.
|
Oneclick update can select which branch to update. Now use the accept language instead of the language config.
|
||||||
一键更新可以选择哪个分支了。现在开始使用浏览器语言,抛弃language设置。
|
一键更新可以选择哪个分支了。现在开始使用浏览器语言,抛弃language设置。
|
||||||
|
|
||||||
20200326-0001.16
|
20200326-0001.16
|
||||||
You can add sharepoint site drive as a disk, <font color=red>you must reinstall after update</font>.
|
You can add sharepoint site drive as a disk, <font color=red>you must reinstall after update</font>.
|
||||||
可以将sharepoint网站添加成一个盘,<font color=red>由于结构改变,升级后只能重装</font>。
|
可以将sharepoint网站添加成一个盘,<font color=red>由于结构改变,升级后只能重装</font>。
|
||||||
|
|
Loading…
Reference in New Issue