diff --git a/LICENSE.md b/LICENSE.md index 525764d..54e26d2 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,4 +1,4 @@ -Copyright 2018 Netsyms Technologies +Copyright 2018-2019 Netsyms Technologies Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: diff --git a/index.php b/index.php index c04f1d1..3dd32b2 100644 --- a/index.php +++ b/index.php @@ -4,7 +4,7 @@ Nice Dirlist https://source.netsyms.com/Netsyms/NiceDirlist -Copyright 2018 Netsyms Technologies +Copyright 2018-2019 Netsyms Technologies Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -58,15 +58,10 @@ $MIRRORBASE = [ ]; */ -// Bootstrap and optional CSS +// Bootstrap, FontAwesome, and optional CSS $STYLESHEETS = [ - "https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" -]; -// FontAwesome 5 locations -$FONTAWESOME = [ - "https://use.fontawesome.com/releases/v5.0.9/js/solid.js", - "https://use.fontawesome.com/releases/v5.0.9/js/brands.js", - "https://use.fontawesome.com/releases/v5.0.9/js/fontawesome.js" + "https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css", + "https://use.fontawesome.com/releases/v5.6.3/css/all.css" ]; // Mimetype to FontAwesome conversion table $MIMEICONS = [ @@ -76,7 +71,7 @@ $MIMEICONS = [ // Text/Code "text/html" => "fab fa-html5", "text/css" => "fab fa-css3", - "text/csv" => "fas fa-table", + "text/csv" => "fas fa-file-csv", "application/ecmascript" => "fas fa-code", "text/calendar" => "fas fa-calendar", "application/javascript" => "fab fa-js", @@ -91,7 +86,12 @@ $MIMEICONS = [ "text/checksum" => "fas fa-file-medical-alt", "text/config" => "fas fa-list", "text/other" => "fas fa-file-alt", - // Archives and disk images + "text/x-java-source" => "fab fa-java", + "application/x-python-code" => "fab fa-python", + "text/x-vcard" => "fas fa-address-card", + "text/x-c" => "fas fa-code", + "text/x-asm" => "fas fa-microchip", + // Archives, disk images, and executables "application/x-iso9660-image" => "fas fa-hdd", "application/x-gzip" => "fas fa-file-archive", "application/zip" => "fas fa-file-archive", @@ -100,11 +100,15 @@ $MIMEICONS = [ "application/x-7z-compressed" => "fas fa-file-archive", "application/x-msi" => "fab fa-windows", "application/x-msdownload" => "fab fa-windows", - "application/java-archive" => "fas fa-coffee", + "application/java-archive" => "fab fa-java", + "application/x-java-jnlp-file" => "fab fa-java", "application/x-rar-compressed" => "fas fa-file-archive", "application/x-tar" => "fas fa-file-archive", "application/x-apple-diskimage" => "fab fa-apple", "application/imgfile" => "fas fa-hdd", + "application/x-debian-package" => "fab fa-linux", + "application/x-appimage" => "fab fa-linux", + "application/x-msdownload" => "fab fa-windows", // Fonts "application/vnd.ms-fontobject" => "fas fa-font", "application/x-font-ttf" => "fas fa-font", @@ -124,6 +128,7 @@ $MIMEICONS = [ "image/tiff" => "fas fa-image", "image/webp" => "fas fa-image", "image/other" => "fas fa-image", + "application/postscript" => "fas fa-file-image", // Audio "audio/acc" => "fas fa-file-audio", "audio/ogg" => "fas fa-file-audio", @@ -133,6 +138,8 @@ $MIMEICONS = [ "audio/3gpp" => "fas fa-file-audio", "audio/3gpp2" => "fas fa-file-audio", "audio/other" => "fas fa-file-audio", + "audio/mpeg" => "fas fa-file-audio", + "application/vnd.apple.mpegurl" => "fas fa-podcast", // Video "application/x-shockwave-flash" => "fas fa-video-slash", "video/mpeg" => "fas fa-file-video", @@ -141,6 +148,7 @@ $MIMEICONS = [ "video/3gpp" => "fas fa-file-video", "video/3gpp2" => "fas fa-file-video", "video/other" => "fas fa-file-video", + "video/x-matroska" => "fas fa-file-video", // Office files "application/x-abiword" => "fas fa-file-word", "application/msword" => "fas fa-file-word", @@ -152,12 +160,24 @@ $MIMEICONS = [ "application/vnd.oasis.opendocument.text" => "fas fa-file-word", "application/pdf" => "fas fa-file-pdf", "application/rtf" => "fas fa-file", + "application/x-gnumeric" => "fas fa-file-excel", // Other "application/vnd.amazon.ebook" => "fas fa-book", "application/epub+zip" => "fas fa-book", + "application/x-mobipocket-ebook" => "fas fa-book", "application/ogg" => "fas fa-play", "application/x-sql" => "fas fa-database", "application/odb" => "fas fa-database", + "application/gpx+xml" => "fas fa-compass", + "application/java-serialized-object" => "fab fa-java", + "application/java-vm" => "fab fa-java", + "application/x-ms-shortcut" => "fas fa-external-link-alt", + "application/x-bittorrent" => "fas fa-share-alt", + "application/x-pkcs12" => "fas fa-certificate", + "application/pgp-encrypted" => "fas fa-lock", + "application/pgp-signature" => "fas fa-file-signature", + "model/mesh" => "fas fa-cube", + "model/vnd.dwf" => "fas fa-cube", ]; // File extension to mimetype conversion $EXT2MIME = [ @@ -180,6 +200,8 @@ $EXT2MIME = [ "img" => "application/imgfile", "ini" => "text/config", "yml" => "text/config", + "py" => "application/x-python-code", + "appimage" => "application/x-appimage", // From Apache: http://svn.apache.org/viewvc?view=revision&revision=1810122 "ez" => "application/andrew-inset", "aw" => "application/applixware", @@ -1223,116 +1245,113 @@ word-break: break-all; } } -\n"; -} -?>
-
-
-
-
- -
-
-
-

-

-
-
-
-
-
- -
- +
+
+
+
+ +
+
+
+

+

+
+
+
+
+
-
+
+ +