$dir
44 | 45 | 49 |Creation date | 56 |Last Modified Date | 57 |Extension | 58 |Size | 59 |
---|---|---|---|
$fileCreationDate | 64 |$fileTimeModify | 65 |$fileOnlyExt | 66 |" . fileSizeUnit($bytes) . " | 67 |
├── README.md ├── add-file.php ├── create-directory.php ├── css └── style.css ├── delete-file.php ├── file-size.php ├── index.php ├── main-file-size.php ├── main.js ├── navigate.php ├── print-directory.php ├── print-file.php ├── remove-directories.php ├── rename-directory.php ├── root ├── pepito │ ├── Por qué te crees tus excusas y cómo dejar de hacerlo.pdf │ └── html-handbook.pdf └── perro │ └── MicrosoftTeams-image (10).png ├── search-file.php ├── show-icon.php └── src └── img └── icons ├── csv.png ├── doc.png ├── exe.png ├── jpg.png ├── mp3.png ├── mp4.png ├── odt.png ├── pdf.png ├── png.png ├── ppt.png ├── rar.png ├── txt.png └── zip.png /README.md: -------------------------------------------------------------------------------- 1 | # Local FileSystem Explorer - PHP Project 2 | 3 | In this project we have created a **file explorer** that allows the user to browse, create directories and upload files, in order to keep them in a more comfortable way 4 | 5 | 6 | ## Developed with 7 | 8 | - HTML 9 | - CSS 10 | - JS 11 | - PHP 12 | 13 | ## TEAM 14 | 15 | - [Víctor](https://github.com/victor-gv) 16 | - [Jesús](https://github.com/Jesusjha) 17 | -------------------------------------------------------------------------------- /add-file.php: -------------------------------------------------------------------------------- 1 | .list-group-item { 43 | border-width: 0 0 1px; 44 | } 45 | 46 | .list-group-item+.list-group-item { 47 | border-top-width: 0; 48 | } 49 | 50 | .py-1 { 51 | padding-top: .25rem !important; 52 | padding-bottom: .25rem !important; 53 | } 54 | 55 | .list-group-item { 56 | position: relative; 57 | display: block; 58 | padding: .5rem 1rem; 59 | text-decoration: none; 60 | background-color: #fff; 61 | border: 1px solid rgba(0, 0, 0, .125); 62 | } 63 | 64 | .radius-15 { 65 | border-radius: 15px; 66 | } 67 | 68 | .fm-icon-box { 69 | font-size: 32px; 70 | background: #ffffff; 71 | width: 52px; 72 | height: 52px; 73 | display: flex; 74 | align-items: center; 75 | justify-content: center; 76 | border-radius: .25rem; 77 | } 78 | 79 | .font-24 { 80 | font-size: 24px; 81 | } 82 | 83 | .ms-auto { 84 | margin-left: auto !important; 85 | } 86 | 87 | .font-30 { 88 | font-size: 30px; 89 | } 90 | 91 | .user-groups img { 92 | margin-left: -14px; 93 | border: 1px solid #e4e4e4; 94 | padding: 2px; 95 | cursor: pointer; 96 | } 97 | 98 | .rounded-circle { 99 | border-radius: 50% !important; 100 | } 101 | 102 | 103 | -------------------------------------------------------------------------------- /delete-file.php: -------------------------------------------------------------------------------- 1 | alert('File deleted successfully');window.location= 'index.php'"; 12 | } 13 | 14 | -------------------------------------------------------------------------------- /file-size.php: -------------------------------------------------------------------------------- 1 | = 1073741824) { 5 | $bytes = number_format($bytes / 1073741824, 2) . ' GB'; 6 | } elseif ($bytes >= 1048576) { 7 | $bytes = number_format($bytes / 1048576, 2) . ' MB'; 8 | } elseif ($bytes >= 1024) { 9 | $bytes = number_format($bytes / 1024, 2) . ' KB'; 10 | } elseif ($bytes > 1) { 11 | $bytes = $bytes . ' bytes'; 12 | } elseif ($bytes == 1) { 13 | $bytes = $bytes . ' byte'; 14 | } else { 15 | $bytes = '0 bytes'; 16 | } 17 | 18 | return $bytes; 19 | } -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 |UsedUpgrade 137 |
138 |1,756 files
153 |123 files
162 |24 files
171 |458 files
180 |57 files
189 |Name 233 | | 234 |Creation date | 235 |Last Modified | 236 |Size | 237 |
---|
$direct | 263 |$directoryCreationDate | 264 |$directoryTimeModify | 265 |" . fileSizeUnit($totalSize) . " | 266 |
Creation date | 56 |Last Modified Date | 57 |Extension | 58 |Size | 59 |
---|---|---|---|
$fileCreationDate | 64 |$fileTimeModify | 65 |$fileOnlyExt | 66 |" . fileSizeUnit($bytes) . " | 67 |