diff --git a/theme/ly_white.php b/theme/ly_white.php index a98d4ef..4b93214 100644 --- a/theme/ly_white.php +++ b/theme/ly_white.php @@ -2,7 +2,7 @@ - <?php echo $pretitle; if ($_SERVER['base_disk_path']!=$_SERVER['base_path']) echo ' - ' . getConfig('diskname');?> - <?php echo $_SERVER['sitename'];?> + <?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'];?> @@ -59,6 +59,7 @@ } +
-  
  • +   +
    + + + + +
    @@ -136,8 +150,6 @@
    @@ -247,12 +259,6 @@ foreach ($files['children'] as $file) { // Files if (isset($file['file'])) { - if (strtolower($file['name']) === 'head.md') $head = $file; - if (strtolower($file['name']) === 'readme.md') $readme = $file; - if (strtolower($file['name']) === 'index.html' && !$_SERVER['admin']) { - $html = curl_request(fetch_files(spurlencode(path_format($path . '/' .$file['name']),'/'))['@microsoft.graph.downloadUrl'])['body']; - return output($html,200); - } if ($_SERVER['admin'] or !isHideFile($file['name'])) { $filenum++; ?> @@ -354,25 +360,7 @@ echo 'Unknown path or file.'; echo json_encode($files, JSON_PRETTY_PRINT); } - if ($head) { - echo ' -
    -
    -
    -
    -
    -
    -
    - - -
    -'; - } - if ($readme) { + if (isset($files['children']['readme.md'])) { echo '
    @@ -381,11 +369,8 @@
    -
    - +
    '; @@ -575,18 +560,24 @@ echo 'IPv4: ' ,$ip, "\n";
      - +