From 4b6e168dc3301f2957ba1629b21ae90fc5b840de Mon Sep 17 00:00:00 2001 From: Cellie Date: Thu, 29 Aug 2019 22:20:05 +0200 Subject: [PATCH] whitespace and indentation. --- index.php | 128 +++++++++++++++++++++--------------------------------- 1 file changed, 50 insertions(+), 78 deletions(-) diff --git a/index.php b/index.php index cf9eb2e..1247a60 100644 --- a/index.php +++ b/index.php @@ -1,17 +1,17 @@ ''){ $path=$path.'/'; if(!file_exists($path)){ - header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found", true,404); + header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found",true,404); echo "Requested resource could not be found."; die(); } @@ -41,7 +41,7 @@ if(isset($_GET["icon"])) { $icon=htmlspecialchars($_GET["icon"]); - $header="Content-Type: image/svg+xml"; + $header="Content-Type:image/svg+xml"; if($icon=="delete"){ header($header); echo ''; @@ -97,13 +97,13 @@ die(); } } -if(count($_GET)) die('ERROR unknown request.'); +if(count($_GET))die('ERROR unknown request.'); ?> <?php $_SERVER['HTTP_HOST'] ?> - + @@ -155,7 +155,7 @@ width:50%; overflow-y:auto; } -#upLink, .fileLink, .folderLink{ +#upLink,.fileLink,.folderLink{ cursor:pointer; margin:5px 0; background-color:grey; @@ -168,7 +168,7 @@ .fileLink{ color:white; } -#upLink:hover, .fileLink:hover, .folderLink:hover{ +#upLink:hover,.fileLink:hover,.folderLink:hover{ background-color:black; } .playListLink{ @@ -182,7 +182,7 @@ display:flex; align-items:center; } -.folderIcon, .actionIcon{ +.folderIcon,.actionIcon{ background-color:red; margin:0 15px 0 0; min-width:40px; @@ -240,7 +240,7 @@ -khtml-user-select:none; /* Konqueror HTML */ -moz-user-select:none; /* Firefox */ -ms-user-select:none; /* Internet Explorer/Edge */ - user-select:none; /* Non-prefixed version, currently + user-select:none; /* Non-prefixed version,currently supported by Chrome and Opera */ } @@ -254,26 +254,23 @@