sync
parent
f21b5b19b9
commit
142d0e628c
919
common.php
919
common.php
File diff suppressed because it is too large
Load Diff
65
conststr.php
65
conststr.php
|
@ -1,10 +1,10 @@
|
||||||
<?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', 'rm', 'rmvb'];
|
||||||
$exts['zip'] = ['zip', 'rar', '7z', 'gz', 'tar'];
|
$exts['zip'] = ['zip', 'rar', '7z', 'gz', 'tar'];
|
||||||
|
|
||||||
$constStr = [
|
$constStr = [
|
||||||
|
@ -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' => '暗号化',
|
||||||
|
@ -255,6 +259,14 @@ $constStr = [
|
||||||
'ko-kr' => '홈',
|
'ko-kr' => '홈',
|
||||||
'fa' => 'خانه',
|
'fa' => 'خانه',
|
||||||
],
|
],
|
||||||
|
'Preview' => [
|
||||||
|
'en-us' => 'Preview',
|
||||||
|
'zh-cn' => '预览',
|
||||||
|
],
|
||||||
|
'List' => [
|
||||||
|
'en-us' => 'List',
|
||||||
|
'zh-cn' => '列表',
|
||||||
|
],
|
||||||
'NeedUpdate' => [
|
'NeedUpdate' => [
|
||||||
'en-us' => 'Program can update<br>Click setup in Operate at top.',
|
'en-us' => 'Program can update<br>Click setup in Operate at top.',
|
||||||
'zh-cn' => '可以升级程序<br>在上方管理菜单中<br>进入设置页面升级',
|
'zh-cn' => '可以升级程序<br>在上方管理菜单中<br>进入设置页面升级',
|
||||||
|
@ -325,6 +337,10 @@ $constStr = [
|
||||||
'ko-kr' => '사진 섬네일',
|
'ko-kr' => '사진 섬네일',
|
||||||
'fa' => 'تصویر بندانگشتی',
|
'fa' => 'تصویر بندانگشتی',
|
||||||
],
|
],
|
||||||
|
'OriginalPic' => [
|
||||||
|
'en-us' => 'OriginalPic',
|
||||||
|
'zh-cn' => '原图',
|
||||||
|
],
|
||||||
'CopyAllDownloadUrl' => [
|
'CopyAllDownloadUrl' => [
|
||||||
'en-us' => 'CopyAllDownloadUrl',
|
'en-us' => 'CopyAllDownloadUrl',
|
||||||
'zh-cn' => '复制所有下载链接',
|
'zh-cn' => '复制所有下载链接',
|
||||||
|
@ -332,6 +348,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 +422,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 +609,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,13 +661,17 @@ $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文件夹共享,允许所有人编辑,然后将共享链接填在下方',
|
||||||
],
|
],
|
||||||
'CustomIdSecret' => [
|
'CustomIdSecret' => [
|
||||||
'en-us' => 'Use custom client id & secret',
|
'en-us' => 'Use custom client id & secret instead of OneManager default',
|
||||||
'zh-cn' => '自己申请应用ID与机密',
|
'zh-cn' => '自己申请应用ID与机密,不用OneManager默认的',
|
||||||
'ja' => 'アプリケーションIDとシークレットを自分で申請する',
|
'ja' => 'アプリケーションIDとシークレットを自分で申請する',
|
||||||
'ko-kr' => '응용 프로그램 ID 및 비밀 신청',
|
'ko-kr' => '응용 프로그램 ID 및 비밀 신청',
|
||||||
'fa' => 'به طور پیش فرض اما از شناسه برنامه و سکرت استفاده کنید',
|
'fa' => 'به طور پیش فرض اما از شناسه برنامه و سکرت استفاده کنید',
|
||||||
|
@ -654,13 +686,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=='') {
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
function getpath()
|
function getpath()
|
||||||
{
|
{
|
||||||
$_SERVER['firstacceptlanguage'] = strtolower(splitfirst(splitfirst($_SERVER['HTTP_ACCEPT_LANGUAGE'],';')[0],',')[0]);
|
$_SERVER['firstacceptlanguage'] = strtolower(splitfirst(splitfirst($_SERVER['HTTP_ACCEPT_LANGUAGE'],';')[0],',')[0]);
|
||||||
|
if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_X_FORWARDED_FOR'];
|
||||||
$_SERVER['base_path'] = path_format(substr($_SERVER['SCRIPT_NAME'], 0, -10) . '/');
|
$_SERVER['base_path'] = path_format(substr($_SERVER['SCRIPT_NAME'], 0, -10) . '/');
|
||||||
$p = strpos($_SERVER['REQUEST_URI'],'?');
|
$p = strpos($_SERVER['REQUEST_URI'],'?');
|
||||||
if ($p>0) $path = substr($_SERVER['REQUEST_URI'], 0, $p);
|
if ($p>0) $path = substr($_SERVER['REQUEST_URI'], 0, $p);
|
||||||
|
@ -72,14 +73,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 +92,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 +120,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');
|
||||||
|
|
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){
|
||||||
|
|
|
@ -1,64 +1,365 @@
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="<?php echo $constStr['language']; ?>">
|
<html lang="<?php echo $constStr['language']; ?>">
|
||||||
<head>
|
<head>
|
||||||
<title><?php echo $pretitle; if ($_SERVER['base_disk_path']!=$_SERVER['base_path']) { if (getConfig('diskname')!='') $diskname = getConfig('diskname'); else $diskname = $_SERVER['disktag']; echo ' - ' . $diskname; } ?> - <?php echo $_SERVER['sitename'];?></title>
|
<title><?php echo $pretitle; if ($_SERVER['base_disk_path']!=$_SERVER['base_path']) { if (getConfig('diskname')!='') $diskname = getConfig('diskname'); else $diskname = $_SERVER['disktag']; echo ' - ' . $diskname; } ?> - <?php echo $_SERVER['sitename'];?></title>
|
||||||
<meta charset=utf-8>
|
<meta charset="utf-8">
|
||||||
<meta http-equiv=X-UA-Compatible content="IE=edge">
|
<meta http-equiv=X-UA-Compatible content="IE=edge">
|
||||||
<meta name=viewport content="width=device-width,initial-scale=1">
|
<meta name=viewport content="width=device-width,initial-scale=1">
|
||||||
<meta name="keywords" content="<?php echo $n_path;?>,<?php if ($p_path!='') echo $p_path.','; echo $_SERVER['sitename'];?>">
|
<meta name="keywords" content="<?php echo $n_path;?>,<?php if ($p_path!='') echo $p_path.','; echo $_SERVER['sitename'];?>,OneManager,auth_by_逸笙">
|
||||||
<meta name="description" content="<?php if ($_GET['preview']) echo 'Preview of '.$n_path; else echo 'List of '.$n_path; ?>. OneManager(An index & manager of Onedrive auth by ysun).">
|
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net/" />
|
||||||
<link rel="icon" href="<?php echo $_SERVER['base_disk_path'];?>favicon.ico" type="image/x-icon" />
|
<link rel="icon" href="<?php echo $_SERVER['base_disk_path'];?>favicon.ico" type="image/x-icon" />
|
||||||
<link rel="shortcut icon" href="<?php echo $_SERVER['base_disk_path'];?>favicon.ico" type="image/x-icon" />
|
<link rel="shortcut icon" href="<?php echo $_SERVER['base_disk_path'];?>favicon.ico" type="image/x-icon" />
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/normalizecss@3.0.0/normalize.min.css" />
|
||||||
|
<link rel="stylesheet" href="https://fonts.loli.net/css?family=Roboto:100,400,700" />
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
body{font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:1em;color:#000;background-color:#f7f7f9;<?php if (getConfig('background')) { ?>background-repeat:no-repeat;background-size:cover;background-attachment:fixed;background-image:url("<?php echo getConfig('background'); ?>");<?php } ?>}
|
.loading-box {
|
||||||
a{color:#24292e;cursor:pointer;text-decoration:none}
|
position: fixed;
|
||||||
ion-icon{font-size:15px;vertical-align:bottom}
|
right: 0;
|
||||||
.changelanguage{position:absolute;right:5px;}
|
top: 0;
|
||||||
.title{text-align:center;margin-top:1rem;letter-spacing:2px;margin-bottom:2rem}
|
}
|
||||||
.title a{color:#333;text-decoration:none}
|
|
||||||
.list-wrapper{width:80%;margin:0 auto 30px;position:relative;box-shadow:0 0 32px 0 rgb(128,128,128);border-radius:15px;}
|
.lds-ring {
|
||||||
.list-container{position:relative;overflow:hidden;border-radius:15px;}
|
display: inline-block;
|
||||||
.list-header-container{position:relative}
|
position: relative;
|
||||||
.list-header-container a.back-link{color:#000;display:inline-block;position:absolute;font-size:16px;margin:20px 10px;padding:10px 10px;vertical-align:middle;text-decoration:none}
|
width: 40px;
|
||||||
.list-container,.list-header-container,.list-wrapper,a.back-link:hover,body{color:#24292e}
|
height: 40px;
|
||||||
.table-header{margin:0;border:0 none;padding:30px 60px;text-align:left;font-weight:400;color:#000;background-color:rgba(245,245,245,0.5);word-break: break-all;word-wrap: break-word;}
|
}
|
||||||
.list-body-container{position:relative;left:0;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;background:rgba(245,245,245,0.5)}
|
|
||||||
.more-disk{margin:0;border:0 none;padding:30px 30px;text-align:left;font-weight:400;color:#000;background-color:rgba(245,245,245,0.5);white-space:nowrap;overflow:auto;}
|
.lds-ring div {
|
||||||
.more-disk a{margin:0 10px;padding:5px;transition-duration: 0.4s;border-radius: 12px; background-color: white; color: black; border: 2px solid rgba(85,85,85,0.7); }
|
box-sizing: border-box;
|
||||||
.more-disk a:hover, .more-disk a[now]{ background-color: rgba(85,85,85,0.7); color: white; }
|
display: block;
|
||||||
.list-table{width:100%;padding:0 20px 20px 20px;border-spacing:0}
|
position: absolute;
|
||||||
.list-table tr{height:40px}
|
width: 32px;
|
||||||
.list-table tr[data-to]:hover{background:rgba(85,85,85,0.7);color:white;}
|
height: 32px;
|
||||||
.list-table tr[data-to]:hover a{color:white}
|
margin: 4px;
|
||||||
.list-table tr:first-child{background:rgba(245,245,245,0)}
|
border: 4px solid #000;
|
||||||
.list-table td,.list-table th{padding:0 10px;text-align:left}
|
border-radius: 50%;
|
||||||
.list-table .size,.list-table .updated_at{text-align:right}
|
animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
|
||||||
.mask{position:absolute;left:0px;top:0px;width:100%;background-color:#000;filter:alpha(opacity=50);opacity:0.5;z-index:2;}
|
border-color: #000 transparent transparent transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lds-ring div:nth-child(1) {
|
||||||
|
animation-delay: -0.45s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lds-ring div:nth-child(2) {
|
||||||
|
animation-delay: -0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lds-ring div:nth-child(3) {
|
||||||
|
animation-delay: -0.15s;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes lds-ring {
|
||||||
|
0% {
|
||||||
|
transform: rotate(0deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
100% {
|
||||||
|
transform: rotate(360deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* loading */
|
||||||
|
a {
|
||||||
|
text-decoration: none;
|
||||||
|
color: #000
|
||||||
|
}
|
||||||
|
|
||||||
|
.upload_style {
|
||||||
|
border-radius: .1em;
|
||||||
|
background: #FAFAFB;
|
||||||
|
padding: 1em
|
||||||
|
}
|
||||||
|
|
||||||
|
#upload_file {
|
||||||
|
display: inline-block;
|
||||||
|
width: 75%
|
||||||
|
}
|
||||||
|
|
||||||
|
#upload_submit {
|
||||||
|
display: inline-block;
|
||||||
|
width: 22%
|
||||||
|
}
|
||||||
|
|
||||||
|
button,
|
||||||
|
select,
|
||||||
|
input[type=submit],
|
||||||
|
input[type=button],
|
||||||
|
.pagination .updated_at a {
|
||||||
|
transition: all 1s;
|
||||||
|
outline: none;
|
||||||
|
background: #66CCFF;
|
||||||
|
color: #FFF;
|
||||||
|
border-style: none;
|
||||||
|
border-radius: .2em;
|
||||||
|
padding: .5em 1em;
|
||||||
|
}
|
||||||
|
.pagination .updated_at a {
|
||||||
|
display: inline-block;
|
||||||
|
text-align: center;
|
||||||
|
padding: 4px;
|
||||||
|
width: 1.2em;
|
||||||
|
height: 1.2em
|
||||||
|
}
|
||||||
|
|
||||||
|
button:hover,
|
||||||
|
select:hover,
|
||||||
|
input[type=submit]:hover,
|
||||||
|
input[type=button]:hover,
|
||||||
|
.pagination .updated_at a:hover,
|
||||||
|
textarea {
|
||||||
|
opacity:0.5;
|
||||||
|
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type=text],
|
||||||
|
input[type=password],
|
||||||
|
textarea {
|
||||||
|
outline: none;
|
||||||
|
border-style: none;
|
||||||
|
border-bottom: 2px solid #E8E9EC;
|
||||||
|
height: 2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
font-family: "Microsoft YaHei", 微软雅黑;
|
||||||
|
font-family: Roboto, Impact, Charcoal, sans-serif;
|
||||||
|
max-width: 100%;
|
||||||
|
overflow: auto;
|
||||||
|
word-break: break-all
|
||||||
|
}
|
||||||
|
|
||||||
|
.topbar {
|
||||||
|
width: 100%;
|
||||||
|
height: 3.5em;
|
||||||
|
background-color: #FAFAFB;
|
||||||
|
}
|
||||||
|
|
||||||
|
.topbar .login {
|
||||||
|
display: inline;
|
||||||
|
line-height: 3.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.topbar .title {
|
||||||
|
display: inline-block;
|
||||||
|
margin-left: .5em;
|
||||||
|
font-weight: lighter;
|
||||||
|
font-size: 1.5em
|
||||||
|
}
|
||||||
|
|
||||||
|
.title a {
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
.topbar .changelanguage {
|
||||||
|
display: inline-block;
|
||||||
|
float: right
|
||||||
|
}
|
||||||
|
|
||||||
|
.list-wrapper {
|
||||||
|
max-width: 45em;
|
||||||
|
width: 90%;
|
||||||
|
margin: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.more-disk {}
|
||||||
|
|
||||||
|
.more-disk a {
|
||||||
|
display: inline-block;
|
||||||
|
margin: 4px 2px;
|
||||||
|
font-size: 1.5em;
|
||||||
|
min-width: 4em;
|
||||||
|
overflow: auto;
|
||||||
|
border-bottom: solid 2px #dddddd;
|
||||||
|
color: deepskyblue
|
||||||
|
}
|
||||||
|
|
||||||
|
.more-disk a[now] {
|
||||||
|
border-bottom: solid 2px black;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-header {
|
||||||
|
/* path */
|
||||||
|
display: inline;
|
||||||
|
font-size: 1em;
|
||||||
|
font-weight: lighter;
|
||||||
|
color: #000
|
||||||
|
}
|
||||||
|
|
||||||
|
.back-link {
|
||||||
|
/* back */
|
||||||
|
font-size: 1em;
|
||||||
|
font-weight: bold
|
||||||
|
}
|
||||||
|
|
||||||
|
.list-header-container {
|
||||||
|
margin-bottom: 1em
|
||||||
|
}
|
||||||
|
|
||||||
|
.list-container,
|
||||||
|
.list-body-container,
|
||||||
|
.list-table {
|
||||||
|
margin-top: 1em;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tr0 .file {
|
||||||
|
width: 100%;
|
||||||
|
text-align: left
|
||||||
|
}
|
||||||
|
.list-table .file {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.list-table .file a {
|
||||||
|
color: #000
|
||||||
|
}
|
||||||
|
|
||||||
|
.list-table .updated_at {
|
||||||
|
display: inline-block;
|
||||||
|
color: #ccc;
|
||||||
|
font-size: .625em
|
||||||
|
}
|
||||||
|
|
||||||
|
.list-table .size {
|
||||||
|
display: inline-block;
|
||||||
|
float: right;
|
||||||
|
color: #ccc;
|
||||||
|
font-size: .625em
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-to] {
|
||||||
|
/* a true file OR folder item */
|
||||||
|
cursor: pointer;
|
||||||
|
display: block;
|
||||||
|
transition: background-color 0.5s;
|
||||||
|
padding: 1em
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-to]:hover {
|
||||||
|
background-color: #FAFAFB
|
||||||
|
}
|
||||||
|
|
||||||
|
#tr0 {
|
||||||
|
border-style: none;
|
||||||
|
border-bottom: 2px solid #E8E9EC;
|
||||||
|
background-color: lightcyan
|
||||||
|
}
|
||||||
|
|
||||||
|
.operatediv {
|
||||||
|
transition: all 2s;
|
||||||
|
position: absolute;
|
||||||
|
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
|
||||||
|
z-index: 2;
|
||||||
|
border-radius: 4px;
|
||||||
|
background-color: #FAFAFB;
|
||||||
|
}
|
||||||
|
|
||||||
|
.loginstyle {
|
||||||
|
width: 250px;
|
||||||
|
height: 124px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.loginstyle input[type="password"] {
|
||||||
|
width: 100%;
|
||||||
|
height: 2em;
|
||||||
|
margin: 1.5em auto 1em auto;
|
||||||
|
text-indent: .625em
|
||||||
|
}
|
||||||
|
|
||||||
|
.loginstyle input[type="password"]::-webkit-input-placeholder {
|
||||||
|
color: #A6AAB4;
|
||||||
|
font-size: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.loginstyle input[type="submit"] {
|
||||||
|
width: 100%
|
||||||
|
}
|
||||||
|
|
||||||
|
.operatediv div {
|
||||||
|
padding: 2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.operatediv_close {
|
||||||
|
position: absolute;
|
||||||
|
right: .75em;
|
||||||
|
top: .75em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.readme {
|
||||||
|
padding: .5em;
|
||||||
|
background-color: rgba(245, 245, 245, 0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
.markdown-body {
|
||||||
|
padding: 2em;
|
||||||
|
text-align: left
|
||||||
|
}
|
||||||
<?php if ($_SERVER['admin']) { ?>
|
<?php if ($_SERVER['admin']) { ?>
|
||||||
.operate{display:inline-table;margin:0;margin-right:5px;list-style:none}
|
.operate {
|
||||||
.operate ul{position:absolute;display:none;background:#fffaaa;border:0px #f7f7f7 solid;border-radius:5px;margin:-7px 0 0 0;padding:0 7px;color:#205D67;z-index:1;}
|
transition: all 2s;
|
||||||
.operate:hover ul{position:absolute;display:inline-table;}
|
display: inline-table;
|
||||||
.operate ul li{padding:7px;list-style:none;display:block;}
|
margin: 0;
|
||||||
.list-table tr[data-to]:hover .operate ul li a{color:black}
|
margin-right: 5px;
|
||||||
|
list-style: none;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.operate ul {
|
||||||
|
position: absolute;
|
||||||
|
display: none;
|
||||||
|
background: #FAFAFB;
|
||||||
|
color: #000;
|
||||||
|
border-style: none;
|
||||||
|
border-radius: 2px;
|
||||||
|
margin: 0;
|
||||||
|
padding: .5em;
|
||||||
|
z-index: 1;
|
||||||
|
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
|
||||||
|
}
|
||||||
|
|
||||||
|
.operate:hover ul {
|
||||||
|
position: absolute;
|
||||||
|
display: inline-table;
|
||||||
|
}
|
||||||
|
|
||||||
|
.operate ul li {
|
||||||
|
transition:all 1s;
|
||||||
|
list-style: none;
|
||||||
|
display: block;
|
||||||
|
margin: auto .5em;
|
||||||
|
line-height: 2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.operate ul li:hover {
|
||||||
|
background: lightcyan
|
||||||
|
}
|
||||||
|
|
||||||
|
.list-table tr[data-to]:hover .operate ul li a {
|
||||||
|
color: #000
|
||||||
|
}
|
||||||
|
|
||||||
|
.list-table tr[data-to]:hover .operate ul li a ion-icon {
|
||||||
|
margin-top: .75em;
|
||||||
|
}
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
.operatediv{position:absolute;border:1px #CCCCCC;background-color:#FFFFCC;z-index:2;}
|
|
||||||
.operatediv div{margin:16px}
|
|
||||||
.operatediv_close{position:absolute;right:3px;top:3px;}
|
|
||||||
.readme{padding:8px;background-color:rgba(245,245,245,0.5);}
|
|
||||||
.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}
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div style="padding:1px">
|
|
||||||
|
<script>
|
||||||
|
let loadingBox = document.createElement("div");
|
||||||
|
loadingBox.id="loadingBox";
|
||||||
|
loadingBox.innerHTML=`<div class="loading-box"><div class="lds-ring"><div></div><div></div><div></div><div></div></div></div>`;
|
||||||
|
loadingBox.hidden=true;
|
||||||
|
document.body.prepend(loadingBox);
|
||||||
|
</script>
|
||||||
|
<div class="topbar">
|
||||||
|
<span class="title">
|
||||||
|
<a href="<?php echo $_SERVER['base_path']; ?>"><?php echo $_SERVER['sitename']; ?></a>
|
||||||
|
</span>
|
||||||
<?php
|
<?php
|
||||||
if (getConfig('admin')!='') if (!$_SERVER['admin']) {
|
if (getConfig('admin')!='') if (!$_SERVER['admin']) {
|
||||||
if (getConfig('adminloginpage')=='') { ?>
|
if (getConfig('adminloginpage')=='') { ?>
|
||||||
|
@ -68,7 +369,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>
|
||||||
|
@ -86,13 +387,12 @@
|
||||||
} ?>
|
} ?>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if (isset($_SERVER['needUpdate'])&&$_SERVER['needUpdate']) { ?>
|
if (isset($_SERVER['needUpdate'])&&$_SERVER['needUpdate']) { ?>
|
||||||
<div style='position:absolute;'><font color='red'><?php echo getconstStr('NeedUpdate'); ?></font></div>
|
<div class="update_notice" style='position:absolute;'><?php echo getconstStr('NeedUpdate'); ?></div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<h1 class="title">
|
|
||||||
<a href="<?php echo $_SERVER['base_path']; ?>"><?php echo $_SERVER['sitename']; ?></a>
|
|
||||||
</h1>
|
|
||||||
<?php $disktags = explode("|",getConfig('disktag'));
|
<?php $disktags = explode("|",getConfig('disktag'));
|
||||||
if (count($disktags)>1) { ?>
|
if (count($disktags)>1) { ?>
|
||||||
<div class="list-wrapper">
|
<div class="list-wrapper">
|
||||||
|
@ -126,7 +426,7 @@
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<div class="list-wrapper" id="list-div">
|
<div class="list-wrapper" id="list-div">
|
||||||
<div class="list-container">
|
<div class="list-container">
|
||||||
<div class="list-header-container">
|
<div class="list-header-container fix">
|
||||||
<?php
|
<?php
|
||||||
if ($path !== '/') {
|
if ($path !== '/') {
|
||||||
$current_url = $_SERVER['PHP_SELF'];
|
$current_url = $_SERVER['PHP_SELF'];
|
||||||
|
@ -150,11 +450,9 @@
|
||||||
$pdfurl = false;
|
$pdfurl = false;
|
||||||
$DPvideo = false;
|
$DPvideo = false;
|
||||||
if ($_SERVER['is_guestup_path']&&!$_SERVER['admin']) { ?>
|
if ($_SERVER['is_guestup_path']&&!$_SERVER['admin']) { ?>
|
||||||
<div id="upload_div" style="margin:10px">
|
<div id="upload_div" class="upload_style">
|
||||||
<center>
|
<input id="upload_file" type="file" name="upload_filename" value="<?php echo getconstStr('FileSelected'); ?>">
|
||||||
<input id="upload_file" type="file" name="upload_filename">
|
|
||||||
<input id="upload_submit" onclick="preup();" value="<?php echo getconstStr('Upload'); ?>" type="button">
|
<input id="upload_submit" onclick="preup();" value="<?php echo getconstStr('Upload'); ?>" type="button">
|
||||||
<center>
|
|
||||||
</div>
|
</div>
|
||||||
<?php } else {
|
<?php } else {
|
||||||
if ($_SERVER['ishidden']<4) {
|
if ($_SERVER['ishidden']<4) {
|
||||||
|
@ -167,33 +465,33 @@
|
||||||
<div style="margin: 12px 4px 4px; text-align: center">
|
<div style="margin: 12px 4px 4px; text-align: center">
|
||||||
<div style="margin: 24px">
|
<div style="margin: 24px">
|
||||||
<textarea id="url" title="url" rows="1" style="width: 100%; margin-top: 2px;" readonly><?php echo str_replace('%2523', '%23', str_replace('%26amp%3B','&',spurlencode(path_format($_SERVER['base_disk_path'] . '/' . $path), '/'))); ?></textarea>
|
<textarea id="url" title="url" rows="1" style="width: 100%; margin-top: 2px;" readonly><?php echo str_replace('%2523', '%23', str_replace('%26amp%3B','&',spurlencode(path_format($_SERVER['base_disk_path'] . '/' . $path), '/'))); ?></textarea>
|
||||||
<a href="<?php echo path_format($_SERVER['base_disk_path'] . '/' . $path);//$files[$_SERVER['DownurlStrName']] ?>"><ion-icon name="download" style="line-height: 16px;vertical-align: middle;"></ion-icon> <?php echo getconstStr('Download'); ?></a>
|
<a href="<?php echo path_format($_SERVER['base_disk_path'] . '/' . $path);//$files['@microsoft.graph.downloadUrl'] ?>"><ion-icon name="download" style="line-height: 16px;vertical-align: middle;"></ion-icon> <?php echo getconstStr('Download'); ?></a>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin: 24px">
|
<div style="margin: 24px">
|
||||||
<?php $ext = strtolower(substr($path, strrpos($path, '.') + 1));
|
<?php $ext = strtolower(substr($path, strrpos($path, '.') + 1));
|
||||||
if (in_array($ext, $exts['img'])) {
|
if (in_array($ext, $exts['img'])) {
|
||||||
echo ' <img src="' . $files[$_SERVER['DownurlStrName']] . '" alt="' . substr($path, strrpos($path, '/')) . '" onload="if(this.offsetWidth>document.getElementById(\'url\').offsetWidth) this.style.width=\'100%\';" />
|
echo ' <img src="' . $files['@microsoft.graph.downloadUrl'] . '" alt="' . substr($path, strrpos($path, '/')) . '" onload="if(this.offsetWidth>document.getElementById(\'url\').offsetWidth) this.style.width=\'100%\';" />
|
||||||
';
|
';
|
||||||
} elseif (in_array($ext, $exts['video'])) {
|
} elseif (in_array($ext, $exts['video'])) {
|
||||||
//echo '<video src="' . $files[$_SERVER['DownurlStrName']] . '" controls="controls" style="width: 100%"></video>';
|
//echo '<video src="' . $files['@microsoft.graph.downloadUrl'] . '" controls="controls" style="width: 100%"></video>';
|
||||||
$DPvideo=$files[$_SERVER['DownurlStrName']];
|
$DPvideo=$files['@microsoft.graph.downloadUrl'];
|
||||||
echo ' <div id="video-a0"></div>
|
echo ' <div id="video-a0"></div>
|
||||||
';
|
';
|
||||||
} elseif (in_array($ext, $exts['music'])) {
|
} elseif (in_array($ext, $exts['music'])) {
|
||||||
echo ' <audio src="' . $files[$_SERVER['DownurlStrName']] . '" controls="controls" style="width: 100%"></audio>
|
echo ' <audio src="' . $files['@microsoft.graph.downloadUrl'] . '" controls="controls" style="width: 100%"></audio>
|
||||||
';
|
';
|
||||||
} elseif (in_array($ext, ['pdf'])) {
|
} elseif (in_array($ext, ['pdf'])) {
|
||||||
/*echo '
|
/*echo '
|
||||||
<embed src="' . $files[$_SERVER['DownurlStrName']] . '" type="application/pdf" width="100%" height=800px">
|
<embed src="' . $files['@microsoft.graph.downloadUrl'] . '" type="application/pdf" width="100%" height=800px">
|
||||||
';*/
|
';*/
|
||||||
$pdfurl = $files[$_SERVER['DownurlStrName']];
|
$pdfurl = $files['@microsoft.graph.downloadUrl'];
|
||||||
echo ' <div id="pdf-d"></div>
|
echo ' <div id="pdf-d"></div>
|
||||||
';
|
';
|
||||||
} elseif (in_array($ext, $exts['office'])) {
|
} elseif (in_array($ext, $exts['office'])) {
|
||||||
echo ' <iframe id="office-a" src="https://view.officeapps.live.com/op/view.aspx?src=' . urlencode($files[$_SERVER['DownurlStrName']]) . '" style="width: 100%;height: 800px" frameborder="0"></iframe>
|
echo ' <iframe id="office-a" src="https://view.officeapps.live.com/op/view.aspx?src=' . urlencode($files['@microsoft.graph.downloadUrl']) . '" style="width: 100%;height: 800px" frameborder="0"></iframe>
|
||||||
';
|
';
|
||||||
} elseif (in_array($ext, $exts['txt'])) {
|
} elseif (in_array($ext, $exts['txt'])) {
|
||||||
$txtstr = htmlspecialchars(curl_request($files[$_SERVER['DownurlStrName']])['body']);
|
$txtstr = htmlspecialchars(curl_request($files['@microsoft.graph.downloadUrl'])['body']);
|
||||||
?>
|
?>
|
||||||
<div id="txt">
|
<div id="txt">
|
||||||
<?php if ($_SERVER['admin']) { ?>
|
<?php if ($_SERVER['admin']) { ?>
|
||||||
|
@ -207,7 +505,7 @@
|
||||||
</div>
|
</div>
|
||||||
<?php } /*elseif (in_array($ext, ['md'])) {
|
<?php } /*elseif (in_array($ext, ['md'])) {
|
||||||
echo ' <div class="markdown-body" id="readme">
|
echo ' <div class="markdown-body" id="readme">
|
||||||
<textarea id="readme-md" style="display:none;">' . curl_request($files[$_SERVER['DownurlStrName']])['body'] . '</textarea>
|
<textarea id="readme-md" style="display:none;">' . curl_request($files['@microsoft.graph.downloadUrl'])['body'] . '</textarea>
|
||||||
</div>
|
</div>
|
||||||
';
|
';
|
||||||
}*/ else {
|
}*/ else {
|
||||||
|
@ -219,11 +517,14 @@
|
||||||
if (isset($_POST['filenum'])) $filenum = $_POST['filenum'];
|
if (isset($_POST['filenum'])) $filenum = $_POST['filenum'];
|
||||||
if (!isset($filenum) and isset($files['folder']['page'])) $filenum = ($files['folder']['page']-1)*200;
|
if (!isset($filenum) and isset($files['folder']['page'])) $filenum = ($files['folder']['page']-1)*200;
|
||||||
else $filenum = 0; ?>
|
else $filenum = 0; ?>
|
||||||
|
|
||||||
|
<?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>
|
||||||
|
|
||||||
<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></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);
|
||||||
|
@ -236,7 +537,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>
|
||||||
|
@ -309,7 +610,7 @@
|
||||||
<form action="" method="POST" id="nextpageform">
|
<form action="" method="POST" id="nextpageform">
|
||||||
<input type="hidden" id="pagenum" name="pagenum" value="'. $pagenum .'">
|
<input type="hidden" id="pagenum" name="pagenum" value="'. $pagenum .'">
|
||||||
<table width=100% border=0>
|
<table width=100% border=0>
|
||||||
<tr>
|
<tr class="pagination">
|
||||||
<td width=60px align=center>';
|
<td width=60px align=center>';
|
||||||
if ($pagenum!=1) {
|
if ($pagenum!=1) {
|
||||||
$prepagenum = $pagenum-1;
|
$prepagenum = $pagenum-1;
|
||||||
|
@ -345,11 +646,10 @@
|
||||||
echo $prepagenext;
|
echo $prepagenext;
|
||||||
}
|
}
|
||||||
if ($_SERVER['admin']) { ?>
|
if ($_SERVER['admin']) { ?>
|
||||||
<div id="upload_div" style="margin:0 0 16px 0">
|
<div id="upload_div" class="upload_style">
|
||||||
<center>
|
<input id="upload_file" type="file" name="upload_filename" value="<?php echo getconstStr('FileSelected'); ?>" multiple="multiple">
|
||||||
<input id="upload_file" type="file" name="upload_filename" multiple="multiple">
|
|
||||||
<input id="upload_submit" onclick="preup();" value="<?php echo getconstStr('Upload'); ?>" type="button">
|
<input id="upload_submit" onclick="preup();" value="<?php echo getconstStr('Upload'); ?>" type="button">
|
||||||
</center>
|
|
||||||
</div>
|
</div>
|
||||||
<?php }
|
<?php }
|
||||||
} else {
|
} else {
|
||||||
|
@ -425,7 +725,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>
|
||||||
|
@ -499,7 +799,7 @@
|
||||||
} else {
|
} else {
|
||||||
if (getConfig('admin')!='') if (getConfig('adminloginpage')=='') { ?>
|
if (getConfig('admin')!='') if (getConfig('adminloginpage')=='') { ?>
|
||||||
<div id="login_div" class="operatediv" style="display:none">
|
<div id="login_div" class="operatediv" style="display:none">
|
||||||
<div style="margin:50px">
|
<div class="loginstyle">
|
||||||
<a onclick="operatediv_close('login')" class="operatediv_close"><?php echo getconstStr('Close'); ?></a>
|
<a onclick="operatediv_close('login')" class="operatediv_close"><?php echo getconstStr('Close'); ?></a>
|
||||||
<center>
|
<center>
|
||||||
<form action="<?php echo isset($_GET['preview'])?'?preview&':'?';?>admin" method="post">
|
<form action="<?php echo isset($_GET['preview'])?'?preview&':'?';?>admin" method="post">
|
||||||
|
@ -512,12 +812,14 @@
|
||||||
<?php }
|
<?php }
|
||||||
} ?>
|
} ?>
|
||||||
<div style="color: rgba(247,247,249,0);"><?php echo date("Y-m-d H:i:s")." ".getconstStr('Week')[date("w")]." ".$_SERVER['REMOTE_ADDR'];?></div>
|
<div style="color: rgba(247,247,249,0);"><?php echo date("Y-m-d H:i:s")." ".getconstStr('Week')[date("w")]." ".$_SERVER['REMOTE_ADDR'];?></div>
|
||||||
|
<center><small style="font-weight:100">Theme <a style="color:#ccc" href="https://github.com/Crazy-White/OneManager-theme-minus">minus</a> by <a style="color:#ccc" href="https://blog.poo.li/">Crazy白茫茫</a></small></center>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/sweetalert@2.1.2/dist/sweetalert.min.js"></script>
|
||||||
</body>
|
</body>
|
||||||
<?php if ($files) { ?>
|
<?php if ($files) { ?>
|
||||||
<?php if (isset($files['children']['head.md'])||isset($files['children']['readme.md'])) { ?><link rel="stylesheet" href="//unpkg.zhimg.com/github-markdown-css@3.0.1/github-markdown.css">
|
<?php if (isset($files['children']['head.md'])||isset($files['children']['readme.md'])) { ?><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/github-markdown-css@3.0.1/github-markdown.min.css">
|
||||||
<script type="text/javascript" src="//unpkg.zhimg.com/marked@0.6.2/marked.min.js"></script><?php } ?>
|
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/marked@0.6.2/marked.min.js"></script><?php } ?>
|
||||||
<?php if (isset($files['folder']) && $_SERVER['is_guestup_path'] && !$_SERVER['admin']) { ?><script type="text/javascript" src="//cdn.bootcss.com/spark-md5/3.0.0/spark-md5.min.js"></script><?php } ?>
|
<?php if (isset($files['folder']) && $_SERVER['is_guestup_path'] && !$_SERVER['admin']) { ?><script type="text/javascript" src="https://cdn.jsdelivr.net/npm/spark-md5@3.0.1/spark-md5.min.js"></script><?php } ?>
|
||||||
<?php if ($pdfurl!='') { ?><script src="//cdn.bootcss.com/pdf.js/2.3.200/pdf.min.js"></script><?php } ?>
|
<?php if ($pdfurl!='') { ?><script src="https://cdn.jsdelivr.net/npm/pdfjs-dist@2.3.200/build/pdf.min.js"></script><?php } ?>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function changelanguage(str)
|
function changelanguage(str)
|
||||||
|
@ -542,7 +844,7 @@
|
||||||
e.innerHTML = '/ ';
|
e.innerHTML = '/ ';
|
||||||
for (var i = 1; i < paths.length - 1; i++) {
|
for (var i = 1; i < paths.length - 1; i++) {
|
||||||
var to = path_format(root + paths.slice(0, i + 1).join('/'));
|
var to = path_format(root + paths.slice(0, i + 1).join('/'));
|
||||||
e.innerHTML += '<a href="' + to + '">' + paths[i] + '</a> / '
|
e.innerHTML += paths[i] + ' / '
|
||||||
}
|
}
|
||||||
e.innerHTML += paths[paths.length - 1];
|
e.innerHTML += paths[paths.length - 1];
|
||||||
e.innerHTML = e.innerHTML.replace(/\s\/\s$/, '')
|
e.innerHTML = e.innerHTML.replace(/\s\/\s$/, '')
|
||||||
|
@ -629,7 +931,7 @@
|
||||||
addVideos(['<?php echo $DPvideo;?>']);
|
addVideos(['<?php echo $DPvideo;?>']);
|
||||||
<?php }
|
<?php }
|
||||||
if ($pdfurl!='') { ?>
|
if ($pdfurl!='') { ?>
|
||||||
pdfjsLib.GlobalWorkerOptions.workerSrc = '//cdn.bootcss.com/pdf.js/2.3.200/pdf.worker.min.js';
|
pdfjsLib.GlobalWorkerOptions.workerSrc = 'https://cdn.jsdelivr.net/npm/pdfjs-dist@2.3.200/build/pdf.worker.min.js';
|
||||||
var loadingTask = pdfjsLib.getDocument({ url: '<?php echo $pdfurl;?>', });
|
var loadingTask = pdfjsLib.getDocument({ url: '<?php echo $pdfurl;?>', });
|
||||||
loadingTask.promise.then(function(pdf) {
|
loadingTask.promise.then(function(pdf) {
|
||||||
var pagenum = pdf.numPages;
|
var pagenum = pdf.numPages;
|
||||||
|
@ -670,6 +972,10 @@
|
||||||
$readme.innerHTML = marked(document.getElementById('readme-md').innerText);
|
$readme.innerHTML = marked(document.getElementById('readme-md').innerText);
|
||||||
}
|
}
|
||||||
function showthumbnails(obj) {
|
function showthumbnails(obj) {
|
||||||
|
swal("正在获取缩略图", {
|
||||||
|
buttons: false,
|
||||||
|
timer: 1200,
|
||||||
|
});
|
||||||
var files=document.getElementsByName('filelist');
|
var files=document.getElementsByName('filelist');
|
||||||
for ($i=0;$i<files.length;$i++) {
|
for ($i=0;$i<files.length;$i++) {
|
||||||
str=files[$i].innerText;
|
str=files[$i].innerText;
|
||||||
|
@ -706,7 +1012,7 @@
|
||||||
tmptextarea.select();
|
tmptextarea.select();
|
||||||
tmptextarea.setSelectionRange(0, tmptextarea.value.length);
|
tmptextarea.setSelectionRange(0, tmptextarea.value.length);
|
||||||
document.execCommand("copy");
|
document.execCommand("copy");
|
||||||
alert(tmptextarea.innerHTML+"<?php echo getconstStr('Success');?>");
|
swal(tmptextarea.innerHTML+'<?php echo getconstStr('Success'); ?>');
|
||||||
}
|
}
|
||||||
var sort=0;
|
var sort=0;
|
||||||
function sortby(string) {
|
function sortby(string) {
|
||||||
|
@ -802,8 +1108,8 @@
|
||||||
expd.setTime(expd.getTime()+(2*60*60*1000));
|
expd.setTime(expd.getTime()+(2*60*60*1000));
|
||||||
var expires = "expires="+expd.toGMTString();
|
var expires = "expires="+expd.toGMTString();
|
||||||
document.cookie="timezone="+timezone+"; path=/; "+expires;
|
document.cookie="timezone="+timezone+"; path=/; "+expires;
|
||||||
if (timezone!=<?php echo $_SERVER['timezone']; ?>) {
|
if (timezone!='8') {
|
||||||
alert('Your timezone is '+timezone+', reload local timezone.');
|
swal('Your timezone is '+timezone+', reload local timezone.');
|
||||||
location.href=location.protocol + "//" + location.host + "<?php echo path_format($_SERVER['base_path'] . '/' . $path );?>" ;
|
location.href=location.protocol + "//" + location.host + "<?php echo path_format($_SERVER['base_path'] . '/' . $path );?>" ;
|
||||||
}
|
}
|
||||||
<?php }
|
<?php }
|
||||||
|
@ -859,7 +1165,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){
|
||||||
|
@ -970,7 +1276,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){
|
||||||
|
@ -979,7 +1285,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){
|
||||||
|
@ -989,7 +1295,7 @@
|
||||||
//if (xhr4.status==409) filename = filemd5 + file.name.substr(file.name.indexOf('.'));
|
//if (xhr4.status==409) filename = filemd5 + file.name.substr(file.name.indexOf('.'));
|
||||||
filename = JSON.parse(xhr4.responseText)['name'];
|
filename = JSON.parse(xhr4.responseText)['name'];
|
||||||
if (filename=='') {
|
if (filename=='') {
|
||||||
alert('<?php echo getconstStr('UploadErrorUpAgain'); ?>');
|
swal('<?php echo getconstStr('UploadErrorUpAgain'); ?>');
|
||||||
uploadbuttonshow();
|
uploadbuttonshow();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -1067,7 +1373,7 @@
|
||||||
if (str=='') {
|
if (str=='') {
|
||||||
str=document.getElementById('file_a'+num).getElementsByTagName("img")[0].alt;
|
str=document.getElementById('file_a'+num).getElementsByTagName("img")[0].alt;
|
||||||
if (str=='') {
|
if (str=='') {
|
||||||
alert('<?php echo getconstStr('GetFileNameFail'); ?>');
|
swal('<?php echo getconstStr('GetFileNameFail'); ?>');
|
||||||
operatediv_close(action);
|
operatediv_close(action);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -1123,7 +1429,7 @@
|
||||||
html=JSON.parse(xhr.responseText);
|
html=JSON.parse(xhr.responseText);
|
||||||
addelement(html);
|
addelement(html);
|
||||||
}
|
}
|
||||||
} else alert(xhr.status+'\n'+xhr.responseText);
|
} else swal(xhr.status+'\n'+xhr.responseText);
|
||||||
document.getElementById(str+'_div').style.display='none';
|
document.getElementById(str+'_div').style.display='none';
|
||||||
document.getElementById('mask').style.display='none';
|
document.getElementById('mask').style.display='none';
|
||||||
}
|
}
|
||||||
|
@ -1233,5 +1539,6 @@
|
||||||
}
|
}
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</script>
|
</script>
|
||||||
<script src="//unpkg.zhimg.com/ionicons@4.4.4/dist/ionicons.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/ionicons@4.4.4/dist/ionicons.js"></script>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -0,0 +1,341 @@
|
||||||
|
<!--IconValuesStart-->
|
||||||
|
{
|
||||||
|
"music":"audiotrack",
|
||||||
|
"video":"ondemand_video",
|
||||||
|
"img":"image",
|
||||||
|
"default":"insert_drive_file"
|
||||||
|
}
|
||||||
|
<!--IconValuesEnd-->
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="<!--constStr@language-->">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=no"/>
|
||||||
|
<title><!--Title--></title>
|
||||||
|
<link rel="stylesheet" href="//cdnjs.loli.net/ajax/libs/mdui/0.4.1/css/mdui.css">
|
||||||
|
<style>
|
||||||
|
body{background-color:#f2f5fa;padding-bottom:60px;background-position:center bottom;background-repeat:no-repeat;background-attachment:fixed}.nexmoe-item{margin:20px -8px 0!important;padding:15px!important;border-radius:5px;background-color:#fff;-webkit-box-shadow:0 .5em 3em rgba(161,177,204,.4);box-shadow:0 .5em 3em rgba(161,177,204,.4);background-color:#fff}.mdui-img-fluid,.mdui-video-fluid{border-radius:5px;border:1px solid #eee}.mdui-list{padding:0}.mdui-list-item{margin:0!important;border-radius:5px;padding:0 10px 0 5px!important;border:1px solid #eee;margin-bottom:10px!important}.mdui-list-item:last-child{margin-bottom:0!important}.mdui-list-item:first-child{border:none}.mdui-toolbar{width:auto;margin-top:60px!important}.mdui-appbar .mdui-toolbar{height:56px;font-size:16px}.mdui-toolbar>*{padding:0 6px;margin:0 2px;opacity:.5}.mdui-toolbar>.mdui-typo-headline{padding:0 16px 0 0}.mdui-toolbar>i{padding:0}.mdui-toolbar>a:hover,a.mdui-typo-headline,a.active{opacity:1}.mdui-container{max-width:980px}.mdui-list>.th{background-color:initial}.mdui-list-item>a{width:100%;line-height:48px}.mdui-toolbar>a{padding:0 16px;line-height:30px;border-radius:30px;border:1px solid #eee}.mdui-toolbar>a:last-child{opacity:1;background-color:#1e89f2;color:#ffff}@media screen and (max-width:980px){.mdui-list-item .mdui-text-right{display:none}.mdui-container{width:100%!important;margin:0}.mdui-toolbar>*{display:none}.mdui-toolbar>a:last-child,.mdui-toolbar>.mdui-typo-headline,.mdui-toolbar>i:first-child{display:block}}
|
||||||
|
</style>
|
||||||
|
<script src="//cdnjs.loli.net/ajax/libs/mdui/0.4.1/js/mdui.min.js"></script>
|
||||||
|
</head>
|
||||||
|
<body class="mdui-theme-primary-blue-grey mdui-theme-accent-blue">
|
||||||
|
<div class="mdui-container">
|
||||||
|
<div class="mdui-container-fluid">
|
||||||
|
<div class="mdui-toolbar nexmoe-item" id="toolbar">
|
||||||
|
<!--Path-->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!--ListStart-->
|
||||||
|
<div class="mdui-container-fluid">
|
||||||
|
<!--EncryptedStart-->
|
||||||
|
<div class="mdui-col-md-6 mdui-col-offset-md-3">
|
||||||
|
<!--<center><h1 class="mdui-typo-display-2-opacity">这是一个受保护的文件夹,您需要提供访问密码才能查看。</h1></center>-->
|
||||||
|
<form action="" method="post">
|
||||||
|
<div class="mdui-textfield mdui-textfield-floating-label">
|
||||||
|
<i class="mdui-icon material-icons">https</i>
|
||||||
|
<label class="mdui-textfield-label"><!--constStr@InputPassword--></label>
|
||||||
|
<input name="password1" class="mdui-textfield-input" type="password"/>
|
||||||
|
</div>
|
||||||
|
<br>
|
||||||
|
<button type="submit" class="mdui-center mdui-btn mdui-btn-raised mdui-ripple mdui-color-theme">
|
||||||
|
<i class="mdui-icon material-icons">fingerprint</i>
|
||||||
|
<!--constStr@Submit-->
|
||||||
|
</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<!--EncryptedEnd-->
|
||||||
|
<!--GuestUploadStart-->
|
||||||
|
<!--
|
||||||
|
<div class="nexmoe-item" style="padding: 100px!important;">
|
||||||
|
<div class="mdui-typo-display-3-opacity" style="text-align:center;">OneImages</div>
|
||||||
|
<form action="" method="post" enctype="multipart/form-data">
|
||||||
|
<input class="mdui-center" type="file" style="margin: 50px 0;" name="file" />
|
||||||
|
<div class="mdui-row-xs-3">
|
||||||
|
<div class="mdui-col"></div>
|
||||||
|
<div class="mdui-col">
|
||||||
|
<button class="mdui-btn mdui-btn-block mdui-color-theme-accent mdui-ripple"><!--constStr@Upload--></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
-->
|
||||||
|
<!--GuestUploadEnd-->
|
||||||
|
<!--HeadmdStart-->
|
||||||
|
<div class="mdui-typo mdui-shadow-3" style="padding: 20px;margin: 20px 0">
|
||||||
|
<!--<div class="mdui-chip">
|
||||||
|
<span class="mdui-chip-icon"><i class="mdui-icon material-icons">face</i></span>
|
||||||
|
<span class="mdui-chip-title">HEAD.md</span>
|
||||||
|
</div>-->
|
||||||
|
<!--HeadmdContent-->
|
||||||
|
</div>
|
||||||
|
<!--HeadmdEnd-->
|
||||||
|
<!--IsFileStart-->
|
||||||
|
<!--IsimgFileStart-->
|
||||||
|
<div class="nexmoe-item">
|
||||||
|
<img class="mdui-img-fluid mdui-center" src="<!--FileDownUrl-->"/>
|
||||||
|
</div>
|
||||||
|
<!--IsimgFileEnd-->
|
||||||
|
<!--IstxtFileStart-->
|
||||||
|
<div class="nexmoe-item">
|
||||||
|
<pre id="editor" ><!--TxtContent--></pre>
|
||||||
|
</div>
|
||||||
|
<!--IstxtFileEnd-->
|
||||||
|
<!--IsmusicFileStart-->
|
||||||
|
<div class="nexmoe-item">
|
||||||
|
<audio class="mdui-center" src="<!--FileDownUrl-->" controls autoplay style="width: 100%;" ></audio>
|
||||||
|
</div>
|
||||||
|
<!--IsmusicFileEnd-->
|
||||||
|
<!--IsofficeFileStart-->
|
||||||
|
<div class="nexmoe-item">
|
||||||
|
<iframe id="office-a" src="https://view.officeapps.live.com/op/view.aspx?src=<!--FileEncodeDownUrl-->" style="width: 100%;height: 800px" frameborder="0"></iframe>
|
||||||
|
</div>
|
||||||
|
<!--IsofficeFileEnd-->
|
||||||
|
<!--IsvideoFileStart-->
|
||||||
|
<link class="dplayer-css" rel="stylesheet" href="https://cdn.jsdelivr.net/npm/dplayer/dist/DPlayer.min.css">
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/dplayer/dist/DPlayer.min.js"></script>
|
||||||
|
<div class="nexmoe-item">
|
||||||
|
<div class="mdui-center" id="dplayer"></div>
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
const dp = new DPlayer({
|
||||||
|
container: document.getElementById('dplayer'),
|
||||||
|
lang:'zh-cn',
|
||||||
|
video: {
|
||||||
|
url: '<!--FileDownUrl-->',
|
||||||
|
type: 'auto'
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<!--IsvideoFileEnd-->
|
||||||
|
<!--IsOtherFileStart-->
|
||||||
|
<div class="nexmoe-item"><!--constStr@FileNotSupport--></div>
|
||||||
|
<!--IsOtherFileEnd-->
|
||||||
|
<a href="<!--FileEncodeReplaceUrl-->" class="mdui-fab mdui-fab-fixed mdui-ripple mdui-color-theme-accent"><i class="mdui-icon material-icons">file_download</i></a>
|
||||||
|
<!--IsFileEnd-->
|
||||||
|
<!--IsFolderStart-->
|
||||||
|
<style>
|
||||||
|
.thumb .th{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.thumb .mdui-text-right{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.thumb .mdui-list-item a ,.thumb .mdui-list-item {
|
||||||
|
width:217px;
|
||||||
|
height: 230px;
|
||||||
|
float: left;
|
||||||
|
margin: 10px 10px !important;
|
||||||
|
}
|
||||||
|
.thumb .mdui-col-xs-12,.thumb .mdui-col-sm-7{
|
||||||
|
width:100% !important;
|
||||||
|
height:230px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.thumb .mdui-list-item .mdui-icon{
|
||||||
|
font-size:100px;
|
||||||
|
display: block;
|
||||||
|
margin-top: 40px;
|
||||||
|
color: #7ab5ef;
|
||||||
|
}
|
||||||
|
.thumb .mdui-list-item span{
|
||||||
|
float: left;
|
||||||
|
display: block;
|
||||||
|
text-align: center;
|
||||||
|
width:100%;
|
||||||
|
position: absolute;
|
||||||
|
top: 180px;
|
||||||
|
}
|
||||||
|
.more-disk{
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
.more-disk div{
|
||||||
|
list-style:none;
|
||||||
|
position:absolute;display:none;background:#fffaaa;border:0px #f7f7f7 solid;border-radius:5px;margin:-7px 0 0 0;padding:0 7px;color:#205D67;z-index:1;
|
||||||
|
}
|
||||||
|
.more-disk:hover div{display:block}
|
||||||
|
.more-disk div li{line-height:normal;}
|
||||||
|
.more-disk div li a[now]{background:#11faaa;}
|
||||||
|
</style>
|
||||||
|
<div class="nexmoe-item">
|
||||||
|
<div class="mdui-row">
|
||||||
|
<ul class="mdui-list">
|
||||||
|
<li class="mdui-list-item th">
|
||||||
|
<div class="mdui-col-xs-12 mdui-col-sm-7"><!--constStr@File--> <i class="mdui-icon material-icons icon-sort" data-sort="name" data-order="downward">expand_more</i></div>
|
||||||
|
<div class="mdui-col-sm-3 mdui-text-right"><!--constStr@EditTime--> <i class="mdui-icon material-icons icon-sort" data-sort="date" data-order="downward">expand_more</i></div>
|
||||||
|
<div class="mdui-col-sm-2 mdui-text-right"><!--constStr@Size--> <i class="mdui-icon material-icons icon-sort" data-sort="size" data-order="downward">expand_more</i></div>
|
||||||
|
</li>
|
||||||
|
<!--BackArrowStart-->
|
||||||
|
<li class="mdui-list-item mdui-ripple">
|
||||||
|
<a href="<!--BackArrowUrl-->">
|
||||||
|
<div class="mdui-col-xs-12 mdui-col-sm-7">
|
||||||
|
<i class="mdui-icon material-icons">arrow_upward</i>
|
||||||
|
..
|
||||||
|
</div>
|
||||||
|
<div class="mdui-col-sm-3 mdui-text-right"></div>
|
||||||
|
<div class="mdui-col-sm-2 mdui-text-right"></div>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<!--BackArrowEnd-->
|
||||||
|
|
||||||
|
<!--IsFolderStart-->
|
||||||
|
<!--FolderListStart-->
|
||||||
|
<li class="mdui-list-item mdui-ripple">
|
||||||
|
<a href="<!--FileEncodeReplaceUrl-->/">
|
||||||
|
<div class="mdui-col-xs-12 mdui-col-sm-7 mdui-text-truncate">
|
||||||
|
<i class="mdui-icon material-icons">folder_open</i>
|
||||||
|
<span><!--FileEncodeReplaceName--></span>
|
||||||
|
</div>
|
||||||
|
<div class="mdui-col-sm-3 mdui-text-right"><!--lastModifiedDateTime--></div>
|
||||||
|
<div class="mdui-col-sm-2 mdui-text-right"><!--size--></div>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<!--FolderListEnd-->
|
||||||
|
<!--FileListStart-->
|
||||||
|
<li class="mdui-list-item file mdui-ripple">
|
||||||
|
<a href="<!--FileEncodeReplaceUrl-->?preview" target="_blank">
|
||||||
|
<div class="mdui-col-xs-12 mdui-col-sm-7 mdui-text-truncate">
|
||||||
|
<i class="mdui-icon material-icons"><!--IconValue--></i>
|
||||||
|
<span><!--FileEncodeReplaceName--></span>
|
||||||
|
</div>
|
||||||
|
<div class="mdui-col-sm-3 mdui-text-right"><!--lastModifiedDateTime--></div>
|
||||||
|
<div class="mdui-col-sm-2 mdui-text-right"><!--size--></div>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<!--FileListEnd-->
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!--ReadmemdStart-->
|
||||||
|
<div class="mdui-typo mdui-shadow-3" style="padding: 20px;margin: 20px 0">
|
||||||
|
<!--<div class="mdui-chip">
|
||||||
|
<span class="mdui-chip-icon"><i class="mdui-icon material-icons">face</i></span>
|
||||||
|
<span class="mdui-chip-title">README.md</span>
|
||||||
|
</div>-->
|
||||||
|
<!--ReadmemdContent-->
|
||||||
|
</div>
|
||||||
|
<!--ReadmemdEnd-->
|
||||||
|
</div>
|
||||||
|
<a href="javascript:thumb();" class="mdui-fab mdui-fab-fixed mdui-ripple mdui-color-theme-accent"><i class="mdui-icon material-icons">format_list_bulleted</i></a>
|
||||||
|
<!--IsFolderEnd-->
|
||||||
|
<!--ListEnd-->
|
||||||
|
<script>
|
||||||
|
var root = '<!--base_disk_path-->';
|
||||||
|
function path_format(path) {
|
||||||
|
path = '/' + path + '/';
|
||||||
|
while (path.indexOf('//') !== -1) {
|
||||||
|
path = path.replace('//', '/')
|
||||||
|
}
|
||||||
|
return path
|
||||||
|
}
|
||||||
|
document.querySelectorAll('#toolbar').forEach(function (e) {
|
||||||
|
var path = e.innerText;
|
||||||
|
if (path.substr(path.length-1)=='/') path = path.substr(0, path.length-1);
|
||||||
|
var paths = path.split('/');
|
||||||
|
//e.innerHTML = '<a href="<!--base_path-->"><!--Sitename--></a><i class="mdui-icon material-icons mdui-icon-dark" style="margin:0;">chevron_right</i>';
|
||||||
|
e.innerHTML = '<a href="<!--base_path-->"><!--Sitename--></a><i class="mdui-icon material-icons mdui-icon-dark" style="margin:0;">chevron_right</i>';
|
||||||
|
<!--MultiDiskAreaStart-->
|
||||||
|
e.innerHTML += '<div class="more-disk"><span><!--DisktagNow--></span><div><!--MultiDisksStart--><li><a href="<!--MultiDisksUrl-->" <!--MultiDisksNow-->><!--MultiDisksName--></a></li><!--MultiDisksEnd--></div></div><i class="mdui-icon material-icons mdui-icon-dark" style="margin:0;">chevron_right</i>';
|
||||||
|
<!--MultiDiskAreaEnd-->
|
||||||
|
if (paths <= 2) return;
|
||||||
|
for (var i = 1; i < paths.length - 1; i++) {
|
||||||
|
var to = path_format(root + paths.slice(0, i + 1).join('/'));
|
||||||
|
e.innerHTML += '<a href="' + to + '">' + paths[i] + '</a> <i class="mdui-icon material-icons mdui-icon-dark" style="margin:0;">chevron_right</i>'
|
||||||
|
}
|
||||||
|
e.innerHTML += paths[paths.length - 1];
|
||||||
|
e.innerHTML = e.innerHTML.replace(/\s\/\s$/, '')
|
||||||
|
});
|
||||||
|
|
||||||
|
$ = mdui.JQ;
|
||||||
|
|
||||||
|
$.fn.extend({
|
||||||
|
sortElements: function (comparator, getSortable) {
|
||||||
|
getSortable = getSortable || function () { return this; };
|
||||||
|
|
||||||
|
var placements = this.map(function () {
|
||||||
|
var sortElement = getSortable.call(this),
|
||||||
|
parentNode = sortElement.parentNode,
|
||||||
|
nextSibling = parentNode.insertBefore(
|
||||||
|
document.createTextNode(''),
|
||||||
|
sortElement.nextSibling
|
||||||
|
);
|
||||||
|
|
||||||
|
return function () {
|
||||||
|
parentNode.insertBefore(this, nextSibling);
|
||||||
|
parentNode.removeChild(nextSibling);
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
|
return [].sort.call(this, comparator).each(function (i) {
|
||||||
|
placements[i].call(getSortable.call(this));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
function downall() {
|
||||||
|
let dl_link_list = Array.from(document.querySelectorAll("li a"))
|
||||||
|
.map(x => x.href) // 所有list中的链接
|
||||||
|
.filter(x => x.slice(-1) != "/"); // 筛选出非文件夹的文件下载链接
|
||||||
|
|
||||||
|
let blob = new Blob([dl_link_list.join("\r\n")], {
|
||||||
|
type: 'text/plain'
|
||||||
|
}); // 构造Blog对象
|
||||||
|
let a = document.createElement('a'); // 伪造一个a对象
|
||||||
|
a.href = window.URL.createObjectURL(blob); // 构造href属性为Blob对象生成的链接
|
||||||
|
a.download = "folder_download_link.txt"; // 文件名称,你可以根据你的需要构造
|
||||||
|
a.click() // 模拟点击
|
||||||
|
a.remove();
|
||||||
|
}
|
||||||
|
|
||||||
|
function thumb(){
|
||||||
|
if($('.mdui-fab i').text() == "apps"){
|
||||||
|
$('.mdui-fab i').text("format_list_bulleted");
|
||||||
|
$('.nexmoe-item').removeClass('thumb');
|
||||||
|
$('.nexmoe-item .mdui-icon').show();
|
||||||
|
$('.nexmoe-item .mdui-list-item').css("background","");
|
||||||
|
}else{
|
||||||
|
$('.mdui-fab i').text("apps");
|
||||||
|
$('.nexmoe-item').addClass('thumb');
|
||||||
|
$('.mdui-col-xs-12 i.mdui-icon').each(function(){
|
||||||
|
if($(this).text() == "image" || $(this).text() == "ondemand_video"){
|
||||||
|
var href = $(this).parent().parent().attr('href');
|
||||||
|
var thumb =(href.indexOf('?') == -1)?'?t=220':'&t=220';
|
||||||
|
$(this).hide();
|
||||||
|
$(this).parent().parent().parent().css("background","url("+href+thumb+") no-repeat center top");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
$(function(){
|
||||||
|
$('.file a').each(function(){
|
||||||
|
$(this).on('click', function () {
|
||||||
|
var form = $('<form target=_blank method=post></form>').attr('action', $(this).attr('href')).get(0);
|
||||||
|
$(document.body).append(form);
|
||||||
|
form.submit();
|
||||||
|
$(form).remove();
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
$('.icon-sort').on('click', function () {
|
||||||
|
let sort_type = $(this).attr("data-sort"), sort_order = $(this).attr("data-order");
|
||||||
|
let sort_order_to = (sort_order === "less") ? "more" : "less";
|
||||||
|
|
||||||
|
$('li[data-sort]').sortElements(function (a, b) {
|
||||||
|
let data_a = $(a).attr("data-sort-" + sort_type), data_b = $(b).attr("data-sort-" + sort_type);
|
||||||
|
let rt = data_a.localeCompare(data_b, undefined, {numeric: true});
|
||||||
|
return (sort_order === "more") ? 0-rt : rt;
|
||||||
|
});
|
||||||
|
|
||||||
|
$(this).attr("data-order", sort_order_to).text("expand_" + sort_order_to);
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
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){
|
||||||
|
|
|
@ -16,9 +16,9 @@
|
||||||
ion-icon{font-size:16px;vertical-align:middle}
|
ion-icon{font-size:16px;vertical-align:middle}
|
||||||
::selection{background-color:rgba(200,200,200,0.6)}
|
::selection{background-color:rgba(200,200,200,0.6)}
|
||||||
input{cursor:pointer;padding: 0 8px;height:24px;font-weight:bold;border:1px solid rgba(27,31,35,0);transition-duration: 0.3s;border-radius:16px;background-color:transparent;color:#24292e}
|
input{cursor:pointer;padding: 0 8px;height:24px;font-weight:bold;border:1px solid rgba(27,31,35,0);transition-duration: 0.3s;border-radius:16px;background-color:transparent;color:#24292e}
|
||||||
input:hover{background:rgb(3,102,214,0.6);color:#FFF;box-shadow:0 1px 15px rgba(27,31,35,.15);border:1px solid rgba(27,31,35,.15);}
|
input:focus{background:rgb(3,102,214,0.6);color:#FFF;box-shadow:0 1px 15px rgba(27,31,35,.15);border:1px solid rgba(27,31,35,.15);}
|
||||||
textarea{font-weight:bold;border:1px solid rgba(27,31,35,0);transition-duration: 0.3s;border-radius:6px;background-color:transparent;color:#24292e}
|
textarea{font-weight:bold;border:1px solid rgba(27,31,35,0);transition-duration: 0.3s;border-radius:6px;background-color:transparent;color:#24292e}
|
||||||
textarea:hover{background:rgba(3,102,214,0.6);color:#FFF;box-shadow:0 1px 15px rgba(27,31,35,.15);border:1px solid rgba(27,31,35,.15);}
|
textarea:focus{background:rgba(3,102,214,0.6);color:#FFF;box-shadow:0 1px 15px rgba(27,31,35,.15);border:1px solid rgba(27,31,35,.15);}
|
||||||
.changelanguage{position:absolute;right:5px;}
|
.changelanguage{position:absolute;right:5px;}
|
||||||
.title{text-shadow:0 1px 15px rgba(27,31,35,1);text-decoration:none;transition-duration: 0.3s;border:1px solid rgba(27,31,35,0);text-align:center;letter-spacing:1px;height: 10px;margin:1rem auto;padding: 16px 16px;white-space:nowrap;overflow:hidden;width:fit-content;border-radius:36px;}
|
.title{text-shadow:0 1px 15px rgba(27,31,35,1);text-decoration:none;transition-duration: 0.3s;border:1px solid rgba(27,31,35,0);text-align:center;letter-spacing:1px;height: 10px;margin:1rem auto;padding: 16px 16px;white-space:nowrap;overflow:hidden;width:fit-content;border-radius:36px;}
|
||||||
.title:hover{text-shadow:0 1px 15px rgba(27,31,35,0);background-color:rgba(200,200,200,1);box-shadow:0 1px 15px rgba(27,31,35,.15);}
|
.title:hover{text-shadow:0 1px 15px rgba(27,31,35,0);background-color:rgba(200,200,200,1);box-shadow:0 1px 15px rgba(27,31,35,.15);}
|
||||||
|
|
|
@ -16,9 +16,9 @@
|
||||||
ion-icon{font-size:16px;vertical-align:middle}
|
ion-icon{font-size:16px;vertical-align:middle}
|
||||||
::selection{background-color:rgba(200,200,200,0.6)}
|
::selection{background-color:rgba(200,200,200,0.6)}
|
||||||
input{cursor:pointer;padding: 0 8px;height:24px;font-weight:bold;border:1px solid rgba(27,31,35,0);transition-duration: 0.3s;border-radius:16px;background-color:transparent;color:#24292e}
|
input{cursor:pointer;padding: 0 8px;height:24px;font-weight:bold;border:1px solid rgba(27,31,35,0);transition-duration: 0.3s;border-radius:16px;background-color:transparent;color:#24292e}
|
||||||
input:hover{background:rgba(3,102,214,0.6);color:#FFF;box-shadow:0 1px 15px rgba(27,31,35,.15);border:1px solid rgba(27,31,35,.15);}
|
input:focus{background:rgba(3,102,214,0.6);color:#FFF;box-shadow:0 1px 15px rgba(27,31,35,.15);border:1px solid rgba(27,31,35,.15);}
|
||||||
textarea{font-weight:bold;border:1px solid rgba(27,31,35,0);transition-duration: 0.3s;border-radius:6px;background-color:transparent;color:#24292e}
|
textarea{font-weight:bold;border:1px solid rgba(27,31,35,0);transition-duration: 0.3s;border-radius:6px;background-color:transparent;color:#24292e}
|
||||||
textarea:hover{background:rgba(3,102,214,0.6);color:#FFF;box-shadow:0 1px 15px rgba(27,31,35,.15);border:1px solid rgba(27,31,35,.15);}
|
textarea:focus{background:rgba(3,102,214,0.6);color:#FFF;box-shadow:0 1px 15px rgba(27,31,35,.15);border:1px solid rgba(27,31,35,.15);}
|
||||||
.changelanguage{position:absolute;right:5px;}
|
.changelanguage{position:absolute;right:5px;}
|
||||||
.title{text-shadow:0 1px 15px rgba(27,31,35,1);text-decoration:none;transition-duration: 0.3s;border:1px solid rgba(27,31,35,0);text-align:center;letter-spacing:1px;height: 10px;margin:1rem auto;padding: 16px 16px;white-space:nowrap;overflow:hidden;width:fit-content;border-radius:36px;}
|
.title{text-shadow:0 1px 15px rgba(27,31,35,1);text-decoration:none;transition-duration: 0.3s;border:1px solid rgba(27,31,35,0);text-align:center;letter-spacing:1px;height: 10px;margin:1rem auto;padding: 16px 16px;white-space:nowrap;overflow:hidden;width:fit-content;border-radius:36px;}
|
||||||
.title:hover{text-shadow:0 1px 15px rgba(27,31,35,0);background-color:rgba(200,200,200,.6);box-shadow:0 1px 15px rgba(27,31,35,.15);}
|
.title:hover{text-shadow:0 1px 15px rgba(27,31,35,0);background-color:rgba(200,200,200,.6);box-shadow:0 1px 15px rgba(27,31,35,.15);}
|
||||||
|
@ -34,7 +34,7 @@
|
||||||
.more-disk a{border:1px solid rgba(27,31,35,0);font-weight:bold;margin:0 2px;padding:5px;transition-duration: 0.3s;border-radius: 18px;background-color:transparent;color: #24292e}
|
.more-disk a{border:1px solid rgba(27,31,35,0);font-weight:bold;margin:0 2px;padding:5px;transition-duration: 0.3s;border-radius: 18px;background-color:transparent;color: #24292e}
|
||||||
.more-disk a:hover, .more-disk a[now]{color:#FFF;background:rgba(245,245,245,0.3);border:1px solid rgba(27,31,35,.15);box-shadow:0 1px 15px rgba(27,31,35,.15)}
|
.more-disk a:hover, .more-disk a[now]{color:#FFF;background:rgba(245,245,245,0.3);border:1px solid rgba(27,31,35,.15);box-shadow:0 1px 15px rgba(27,31,35,.15)}
|
||||||
.list-table{width:100%;padding:0 20px 20px 20px;border-spacing:0;overflow:hidden;table-layout:fixed}
|
.list-table{width:100%;padding:0 20px 20px 20px;border-spacing:0;overflow:hidden;table-layout:fixed}
|
||||||
.list-table tr{height:fit-content;float:left;width:100%;transition-duration: 0.3s;border-radius:16px}
|
.list-table tr{height:32px;float:left;width:100%;transition-duration: 0.3s;border-radius:16px}
|
||||||
.list-table tr[data-to]:hover{background:linear-gradient(to right, rgb(3,102,214,0.9) , rgba(3,102,214,0.3));color:white;box-shadow:0 1px 15px rgba(27,31,35,.15)}
|
.list-table tr[data-to]:hover{background:linear-gradient(to right, rgb(3,102,214,0.9) , rgba(3,102,214,0.3));color:white;box-shadow:0 1px 15px rgba(27,31,35,.15)}
|
||||||
.list-table tr[data-to]:hover a{color:white}
|
.list-table tr[data-to]:hover a{color:white}
|
||||||
.list-table tr:first-child{background:rgba(245,245,245,0)}
|
.list-table tr:first-child{background:rgba(245,245,245,0)}
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
.list-table td,.list-table th{padding:0 8px;text-align:left;float:left;line-height:32px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
|
.list-table td,.list-table th{padding:0 8px;text-align:left;float:left;line-height:32px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
|
||||||
.list-table td button,.list-table th button{border-radius:16px;transition-duration: 0.3s;cursor:pointer;color:#24292e;height:24px;padding: 0 8px;background:transparent;border:1px solid rgba(27,31,35,0);font-weight:bold;}
|
.list-table td button,.list-table th button{border-radius:16px;transition-duration: 0.3s;cursor:pointer;color:#24292e;height:24px;padding: 0 8px;background:transparent;border:1px solid rgba(27,31,35,0);font-weight:bold;}
|
||||||
.list-table td button:hover,.list-table th button:hover{color:#FFF;background:rgba(3,102,214,0.6);border:1px solid rgba(27,31,35,.15);box-shadow:0 1px 15px rgba(27,31,35,.15);} .list-table .size,.list-table .updated_at{text-align:right}
|
.list-table td button:hover,.list-table th button:hover{color:#FFF;background:rgba(3,102,214,0.6);border:1px solid rgba(27,31,35,.15);box-shadow:0 1px 15px rgba(27,31,35,.15);} .list-table .size,.list-table .updated_at{text-align:right}
|
||||||
.mask{position:absolute;left:0px;top:0px;width:100%;background-color:#000;filter:alpha(opacity=30);opacity:0.3;z-index:2;}
|
.mask{position:absolute;left:0px;top:0px;width:100%;background-color:#000;filter:alpha(opacity=20);opacity:0.2;z-index:2;}
|
||||||
<?php if ($_SERVER['admin']) { ?>
|
<?php if ($_SERVER['admin']) { ?>
|
||||||
.operate{display:inline-table;margin:0;margin-right:5px;list-style:none}
|
.operate{display:inline-table;margin:0;margin-right:5px;list-style:none}
|
||||||
.operate ul{position:absolute;display:none;background:white;transition-duration: 0.3s;box-shadow:0 1px 15px rgba(27,31,35,.15);border:1px solid rgba(27,31,35,.15);border-radius:32px;margin:-7px 0 0 0;padding:0 3px;color:#205D67;z-index:3;}
|
.operate ul{position:absolute;display:none;background:white;transition-duration: 0.3s;box-shadow:0 1px 15px rgba(27,31,35,.15);border:1px solid rgba(27,31,35,.15);border-radius:32px;margin:-7px 0 0 0;padding:0 3px;color:#205D67;z-index:3;}
|
||||||
|
@ -284,7 +284,7 @@ echo '</script>';
|
||||||
<tr data-to id="tr<?php echo $filenum;?>">
|
<tr data-to id="tr<?php echo $filenum;?>">
|
||||||
<td class="file">
|
<td class="file">
|
||||||
<?php if ($_SERVER['admin']) { ?>
|
<?php if ($_SERVER['admin']) { ?>
|
||||||
<li class="operate"><ion-icon name="construct"></ion-icon><a style=><?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>
|
||||||
|
@ -397,7 +397,7 @@ echo '</script>';
|
||||||
if ($_SERVER['admin']) { ?>
|
if ($_SERVER['admin']) { ?>
|
||||||
<div id="upload_div" style="margin:0 0 16px 0">
|
<div id="upload_div" style="margin:0 0 16px 0">
|
||||||
<center>
|
<center>
|
||||||
<input style="width:60%" id="upload_file" type="file" name="upload_filename" multiple="multiple">
|
<input id="upload_file" type="file" name="upload_filename" multiple="multiple">
|
||||||
<input id="upload_submit" onclick="preup();" value="<?php echo getconstStr('Upload'); ?>" type="button">
|
<input id="upload_submit" onclick="preup();" value="<?php echo getconstStr('Upload'); ?>" type="button">
|
||||||
</center>
|
</center>
|
||||||
</div>
|
</div>
|
||||||
|
@ -428,7 +428,7 @@ echo '</script>';
|
||||||
<div style="padding:20px">
|
<div style="padding:20px">
|
||||||
<center>
|
<center>
|
||||||
<form action="" method="post">
|
<form action="" method="post">
|
||||||
<input style="width: 60%" name="password1" type="password" placeholder="'.getconstStr('InputPassword').'">
|
<input name="password1" type="password" placeholder="'.getconstStr('InputPassword').'">
|
||||||
<input type="submit" value="'.getconstStr('Submit').'">
|
<input type="submit" value="'.getconstStr('Submit').'">
|
||||||
</form>
|
</form>
|
||||||
</center>
|
</center>
|
||||||
|
@ -530,7 +530,7 @@ echo '</script>';
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php echo getconstStr('Name'); ?>:</td>
|
<td><?php echo getconstStr('Name'); ?>:</td>
|
||||||
<td><input style="width: 94%" id="create_input" name="create_name" type="text" value=""></td>
|
<td><input id="create_input" name="create_name" type="text" value=""></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr id="create_text_div">
|
<tr id="create_text_div">
|
||||||
<td><?php echo getconstStr('Content'); ?>:</td>
|
<td><?php echo getconstStr('Content'); ?>:</td>
|
||||||
|
@ -561,8 +561,7 @@ echo '</script>';
|
||||||
</div>
|
</div>
|
||||||
<?php }
|
<?php }
|
||||||
} ?>
|
} ?>
|
||||||
<div style="color: rgba(247,247,249,1);text-align:center;text-shadow:0 1px 15px rgba(27,31,35,1);font-weight:bold">The Website used <a href="https://github.com/BingoKingo/Tfo">Tfo</a>'s Theme for <a href="https://github.com/qkqpttgf/OneManager-php">OneManager-php</a></div>
|
<div style="color: rgba(247,247,249,0);"><?php echo date("Y-m-d H:i:s")." ".getconstStr('Week')[date("w")]." ".$_SERVER['REMOTE_ADDR'];?></div>
|
||||||
<div style="color: rgba(247,247,249,0);text-align:center;text-shadow:0 1px 15px rgba(27,31,35,0);font-weight:bold;margin-top:6px"><?php echo date("Y-m-d H:i:s")." ".getconstStr('Week')[date("w")]." ".$_SERVER['REMOTE_ADDR'];?></div>
|
|
||||||
</body>
|
</body>
|
||||||
<?php if ($files) { ?>
|
<?php if ($files) { ?>
|
||||||
<?php if (isset($files['children']['head.md'])||isset($files['children']['readme.md'])) { ?><link rel="stylesheet" href="//unpkg.zhimg.com/github-markdown-css@3.0.1/github-markdown.css">
|
<?php if (isset($files['children']['head.md'])||isset($files['children']['readme.md'])) { ?><link rel="stylesheet" href="//unpkg.zhimg.com/github-markdown-css@3.0.1/github-markdown.css">
|
||||||
|
@ -895,6 +894,7 @@ echo '</script>';
|
||||||
var tr1=document.createElement('tr');
|
var tr1=document.createElement('tr');
|
||||||
table1.appendChild(tr1);
|
table1.appendChild(tr1);
|
||||||
tr1.setAttribute('data-to',1);
|
tr1.setAttribute('data-to',1);
|
||||||
|
tr1.setAttribute('style','height:fit-content');
|
||||||
var td1=document.createElement('td');
|
var td1=document.createElement('td');
|
||||||
tr1.appendChild(td1);
|
tr1.appendChild(td1);
|
||||||
td1.setAttribute('style','width:fit-content');
|
td1.setAttribute('style','width:fit-content');
|
||||||
|
|
|
@ -16,9 +16,9 @@
|
||||||
ion-icon{font-size:16px;vertical-align:middle}
|
ion-icon{font-size:16px;vertical-align:middle}
|
||||||
::selection{background-color:rgba(200,200,200,0.6)}
|
::selection{background-color:rgba(200,200,200,0.6)}
|
||||||
input{cursor:pointer;padding: 0 8px;height:24px;font-weight:bold;border:1px solid rgba(27,31,35,0);transition-duration: 0.3s;border-radius:16px;background-color:transparent;color:#24292e}
|
input{cursor:pointer;padding: 0 8px;height:24px;font-weight:bold;border:1px solid rgba(27,31,35,0);transition-duration: 0.3s;border-radius:16px;background-color:transparent;color:#24292e}
|
||||||
input:hover{background:rgba(3,102,214,0.6);color:#FFF;box-shadow:0 1px 15px rgba(27,31,35,.15);border:1px solid rgba(27,31,35,.15);}
|
input:focus{background:rgba(3,102,214,0.6);color:#FFF;box-shadow:0 1px 15px rgba(27,31,35,.15);border:1px solid rgba(27,31,35,.15);}
|
||||||
textarea{font-weight:bold;border:1px solid rgba(27,31,35,0);transition-duration: 0.3s;border-radius:6px;background-color:transparent;color:#24292e}
|
textarea{font-weight:bold;border:1px solid rgba(27,31,35,0);transition-duration: 0.3s;border-radius:6px;background-color:transparent;color:#24292e}
|
||||||
textarea:hover{background:rgba(3,102,214,0.6);color:#FFF;box-shadow:0 1px 15px rgba(27,31,35,.15);border:1px solid rgba(27,31,35,.15);}
|
textarea:focus{background:rgba(3,102,214,0.6);color:#FFF;box-shadow:0 1px 15px rgba(27,31,35,.15);border:1px solid rgba(27,31,35,.15);}
|
||||||
.changelanguage{position:absolute;right:5px;}
|
.changelanguage{position:absolute;right:5px;}
|
||||||
.title{text-shadow:0 1px 15px rgba(27,31,35,1);text-decoration:none;transition-duration: 0.3s;border:1px solid rgba(27,31,35,0);text-align:center;letter-spacing:1px;height: 10px;margin:1rem auto;padding: 16px 16px;white-space:nowrap;overflow:hidden;width:fit-content;border-radius:36px;}
|
.title{text-shadow:0 1px 15px rgba(27,31,35,1);text-decoration:none;transition-duration: 0.3s;border:1px solid rgba(27,31,35,0);text-align:center;letter-spacing:1px;height: 10px;margin:1rem auto;padding: 16px 16px;white-space:nowrap;overflow:hidden;width:fit-content;border-radius:36px;}
|
||||||
.title:hover{text-shadow:0 1px 15px rgba(27,31,35,0);background-color:rgba(200,200,200,.6);box-shadow:0 1px 15px rgba(27,31,35,.15);}
|
.title:hover{text-shadow:0 1px 15px rgba(27,31,35,0);background-color:rgba(200,200,200,.6);box-shadow:0 1px 15px rgba(27,31,35,.15);}
|
||||||
|
|
|
@ -17,9 +17,9 @@
|
||||||
ion-icon{font-size:16px;vertical-align:middle}
|
ion-icon{font-size:16px;vertical-align:middle}
|
||||||
::selection{background-color:rgba(200,200,200,0.6)}
|
::selection{background-color:rgba(200,200,200,0.6)}
|
||||||
input{cursor:pointer;padding: 0 8px;height:24px;font-weight:bold;border:1px solid rgba(27,31,35,0);transition-duration: 0.3s;border-radius:16px;background-color:transparent;color:#24292e}
|
input{cursor:pointer;padding: 0 8px;height:24px;font-weight:bold;border:1px solid rgba(27,31,35,0);transition-duration: 0.3s;border-radius:16px;background-color:transparent;color:#24292e}
|
||||||
input:hover{background:rgb(3,102,214,0.6);color:#FFF;box-shadow:0 1px 15px rgba(27,31,35,.15);border:1px solid rgba(27,31,35,.15);}
|
input:focus{background:rgb(3,102,214,0.6);color:#FFF;box-shadow:0 1px 15px rgba(27,31,35,.15);border:1px solid rgba(27,31,35,.15);}
|
||||||
textarea{font-weight:bold;border:1px solid rgba(27,31,35,0);transition-duration: 0.3s;border-radius:6px;background-color:transparent;color:#24292e}
|
textarea{font-weight:bold;border:1px solid rgba(27,31,35,0);transition-duration: 0.3s;border-radius:6px;background-color:transparent;color:#24292e}
|
||||||
textarea:hover{background:rgba(3,102,214,0.6);color:#FFF;box-shadow:0 1px 15px rgba(27,31,35,.15);border:1px solid rgba(27,31,35,.15);}
|
textarea:focus{background:rgba(3,102,214,0.6);color:#FFF;box-shadow:0 1px 15px rgba(27,31,35,.15);border:1px solid rgba(27,31,35,.15);}
|
||||||
.changelanguage{position:absolute;right:5px;}
|
.changelanguage{position:absolute;right:5px;}
|
||||||
.title{text-shadow:0 1px 15px rgba(27,31,35,1);text-decoration:none;transition-duration: 0.3s;border:1px solid rgba(27,31,35,0);text-align:center;letter-spacing:1px;height: 10px;margin:1rem auto;padding: 16px 16px;white-space:nowrap;overflow:hidden;width:fit-content;border-radius:36px;}
|
.title{text-shadow:0 1px 15px rgba(27,31,35,1);text-decoration:none;transition-duration: 0.3s;border:1px solid rgba(27,31,35,0);text-align:center;letter-spacing:1px;height: 10px;margin:1rem auto;padding: 16px 16px;white-space:nowrap;overflow:hidden;width:fit-content;border-radius:36px;}
|
||||||
.title:hover{text-shadow:0 1px 15px rgba(27,31,35,0);background-color:rgba(200,200,200,.6);box-shadow:0 1px 15px rgba(27,31,35,.15);}
|
.title:hover{text-shadow:0 1px 15px rgba(27,31,35,0);background-color:rgba(200,200,200,.6);box-shadow:0 1px 15px rgba(27,31,35,.15);}
|
||||||
|
|
|
@ -11,7 +11,7 @@ example:
|
||||||
"$0" -i
|
"$0" -i
|
||||||
"$0" -u
|
"$0" -u
|
||||||
"$0" -b master
|
"$0" -b master
|
||||||
"$0" - -b master
|
"$0" -u -b master
|
||||||
"$0" -ib test
|
"$0" -ib test
|
||||||
"
|
"
|
||||||
# exit
|
# exit
|
||||||
|
|
5
version
5
version
|
@ -1,8 +1,7 @@
|
||||||
20200402-1830.17
|
|
||||||
Oneclick update can select which branch to update. Now use the accept language instead of the language config.
|
|
||||||
一键更新可以选择哪个分支了。现在开始使用浏览器语言,抛弃language设置。
|
|
||||||
<font color=#CCCCCC >
|
<font color=#CCCCCC >
|
||||||
Update Data:
|
Update Data:
|
||||||
|
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 Oneclick update can select which branch to update. Now use the accept language instead of the language config.一键更新可以选择哪个分支了。现在开始使用浏览器语言,抛弃language设置。
|
||||||
20200326-0001.16 You can add sharepoint site drive as a disk,you must reinstall after update.可以将sharepoint网站添加成一个盘,由于结构改变,升级后只能重装。
|
20200326-0001.16 You can add sharepoint site drive as a disk,you must reinstall after update.可以将sharepoint网站添加成一个盘,由于结构改变,升级后只能重装。
|
||||||
20200321-1830.15 after this update, then 'index.html' function will bug in other theme.cache text file content;add hideFunctionalityFile;list exist disktags when AddDisk。本次更新后,'index.html'功能在其它主题会导致bug。文本类文件将缓存;添加hideFunctionalityFile开关;在添加网盘时会显示已经在用的标签。
|
20200321-1830.15 after this update, then 'index.html' function will bug in other theme.cache text file content;add hideFunctionalityFile;list exist disktags when AddDisk。本次更新后,'index.html'功能在其它主题会导致bug。文本类文件将缓存;添加hideFunctionalityFile开关;在添加网盘时会显示已经在用的标签。
|
||||||
20200311-2150.14 Add a switch, can download a known file or not, while the folder is encrypted.Hide time and size in mobile.Now, you can get a random 'jpg' from a folder when you type '?random=jpg' after the folder.增加一个开关,在目录加密后能否下载其中的某个文件。在手机上浏览时,隐藏修改时间跟大小。加入一个功能,现在可以在某个目录后面加上'?random=jpg'来得到本目录里面的一张随机jpg。
|
20200311-2150.14 Add a switch, can download a known file or not, while the folder is encrypted.Hide time and size in mobile.Now, you can get a random 'jpg' from a folder when you type '?random=jpg' after the folder.增加一个开关,在目录加密后能否下载其中的某个文件。在手机上浏览时,隐藏修改时间跟大小。加入一个功能,现在可以在某个目录后面加上'?random=jpg'来得到本目录里面的一张随机jpg。
|
||||||
|
|
Loading…
Reference in New Issue