From a4d098c08c9cccccdf15500b54e88148ff6dd577 Mon Sep 17 00:00:00 2001 From: BingoKingo Date: Sat, 4 Apr 2020 16:36:28 +0800 Subject: [PATCH] re --- theme/tfo_md.php | 1249 ++++++++++++++++++++++++++++++++++++++++++++ theme/tfo_mdtr.php | 8 +- 2 files changed, 1253 insertions(+), 4 deletions(-) create mode 100644 theme/tfo_md.php diff --git a/theme/tfo_md.php b/theme/tfo_md.php new file mode 100644 index 0000000..3a01613 --- /dev/null +++ b/theme/tfo_md.php @@ -0,0 +1,1249 @@ + + + + + <?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'];?> + + + + + + + + + + +'; +?> + +'; +?> +
+ + + +
    • + +
    • +
    • +
    • + +
    • +
    • +
  • + +   + +
    + +
    + +

    + +

    +1) { ?> +
    +
    +
    +
    +'.$diskname.' +'; + } ?> +
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    +
    + + + + + +

    +
    +
    + +
    +
    + + +
    +
    +' . $files['error']['message'] . '
    '; + $statusCode=404; + } else { + if (isset($files['file'])) { +?> +
    +
    + +   +
    +
    +document.getElementById(\'url\').offsetWidth) this.style.width=\'100%\';" /> +'; + } elseif (in_array($ext, $exts['video'])) { + //echo ''; + $DPvideo=$files[$_SERVER['DownurlStrName']]; + echo '
    +'; + } elseif (in_array($ext, $exts['music'])) { + echo ' +'; + } elseif (in_array($ext, ['pdf'])) { + /*echo ' + +';*/ + $pdfurl = $files[$_SERVER['DownurlStrName']]; + echo '
    +'; + } elseif (in_array($ext, $exts['office'])) { + echo ' +'; + } elseif (in_array($ext, $exts['txt'])) { + $txtstr = htmlspecialchars(curl_request($files[$_SERVER['DownurlStrName']])['body']); +?> +
    + +
    + +     + + + +'; ?> +
    + + +
    +'; + }*/ else { + echo ''.getconstStr('FileNotSupport').''; + } ?> +
    +
    + + + + + + + + + + + + + + +'; + foreach ($files['children'] as $file) { + // Files + if (isset($file['file'])) { + if ($_SERVER['admin'] or !isHideFile($file['name'])) { + $filenum++; ?> + + + + + + +
        
    + +
  • +
      +
    • +
    • +
    • +
    • +
    • +
    +
  • + + + +
    + +
  • +
      +
    • +
    • +
    • +
    • +
    +
  • + + + + + + + + + + + + + + + + + + + + + + + +
    +200) { + $pagenum = $files['folder']['page']; + $maxpage = ceil($files['folder']['childCount']/200); + $prepagenext = ' + + + + + + + + +
    '; + if ($pagenum!=1) { + $prepagenum = $pagenum-1; + $prepagenext .= ' + '.getconstStr('PrePage').''; + } + $prepagenext .= ' + '; + for ($page=1;$page<=$maxpage;$page++) { + if ($page == $pagenum) { + $prepagenext .= ' + ' . $page . ' '; + } else { + $prepagenext .= ' + ' . $page . ' '; + } + } + $prepagenext = substr($prepagenext,0,-1); + $prepagenext .= ' + '; + if ($pagenum!=$maxpage) { + $nextpagenum = $pagenum+1; + $prepagenext .= ' + '.getconstStr('NextPage').''; + } + $prepagenext .= ' +
    + '; + echo $prepagenext; + } + if ($_SERVER['admin']) { ?> +
    +
    + + +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    +
    +'; + } + } + } else { + echo ' +
    +
    +
    + + +
    +
    +
    '; + $statusCode = 401; + } + } ?> +
    +
    +
    + + + +
    + + + + + + +
    + + + +
    + + + + + + + + + + diff --git a/theme/tfo_mdtr.php b/theme/tfo_mdtr.php index d9322df..115d0c4 100644 --- a/theme/tfo_mdtr.php +++ b/theme/tfo_mdtr.php @@ -15,14 +15,14 @@ a{color:#24292e;cursor:pointer;text-decoration:none} ion-icon{font-size:16px;vertical-align:bottom} input{border:none;transition-duration: 0.3s;border-radius:16px;background-color:transparent;color:#24292e} - input:hover{shadow:0 0 6px 0 rgb(128,128,128);background-color:rgba(205,205,245,0.8)} + input:hover{shadow:0 0 6px 0 rgb(128,128,128);background-color:rgba(125,125,125,0.8)} ::-webkit-scrollbar{display:none} .changelanguage{position:absolute;right:5px;} .title{text-align:center;margin-top:1rem;letter-spacing:2px;margin-bottom:2rem} .title a{color:#24292e;text-decoration:none} .list-wrapper{width:88%;margin:0 auto 10px;position:relative;box-shadow:0 0 6px 0 rgb(128,128,128);border-radius:6px;} .list-container{position:relative;overflow:hidden;border-radius:6px;} - .list-header-container{position:relative;box-shadow:0px 2px 6px rgba(128, 128, 128)} + .list-header-container{position:relative;box-shadow:0px 2px 6px rgba(128, 128, 128,0.3)} .list-header-container a.back-link{color: #000;display: inline-block;font-size: 16px;margin: 8px 8px;padding: 8px 8px;vertical-align:middle;text-decoration: none;position: absolute;top: 4px;left: 12px} .list-container,.list-header-container,.list-wrapper,a.back-link:hover,body{color:#24292e} .table-header{margin:0;border:0 none;padding:18px 48px;line-height:1.3;text-align:left;font-weight:400;color:#556677;background-color:rgba(245,245,245,0.3);word-break: break-all;word-wrap: break-word;} @@ -48,11 +48,11 @@ .operatediv{position:absolute;border:0px #CCCCCC;box-shadow:0 0 6px 0 rgb(128,128,128);transition-duration: 0.3s;border-radius:6px;background-color:white;color:#24292e;z-index:3;} .operatediv div{margin:16px} .operatediv_close{position:absolute;right:3px;top:3px;} - .readme{padding:8px;background-color:rgba(245,245,245,0.5);} + .readme{padding:8px;background-color:rgba(245,245,245,0.3);} .markdown-body{padding:20px;text-align:left;font-size:14px !important} @media only screen and (max-width:480px){ .title{margin-bottom:24px} - .list-wrapper{width:96%; margin-bottom:0 auto 10px;} + .list-wrapper{width:96%; margin:0 auto 10px;} .list-table {padding:8px} .list-table td, .list-table th{white-space:nowrap;overflow:auto;max-width:80px} .size, .updated_at{display:none}