diff --git a/File System Project/Deletedtem/fotonumero3.jpg b/File System Project/Deletedtem/fotonumero3.jpg new file mode 100644 index 00000000..7c7f58b3 Binary files /dev/null and b/File System Project/Deletedtem/fotonumero3.jpg differ diff --git a/File System Project/Root/JEFFF/2. Materiales del curso - DESCARGA MATERIALES AQUI.mp4 b/File System Project/Root/JEFFF/2. Materiales del curso - DESCARGA MATERIALES AQUI.mp4 new file mode 100644 index 00000000..78184499 Binary files /dev/null and b/File System Project/Root/JEFFF/2. Materiales del curso - DESCARGA MATERIALES AQUI.mp4 differ diff --git a/File System Project/Root/JEFFF/JEFF.exe b/File System Project/Root/JEFFF/JEFF.exe new file mode 100644 index 00000000..e69de29b diff --git a/File System Project/Root/abcde/dan.gif b/File System Project/Root/abcde/dan.gif new file mode 100644 index 00000000..83374e99 Binary files /dev/null and b/File System Project/Root/abcde/dan.gif differ diff --git a/File System Project/Root/abcde/dentrodeabcde/fotonumero2.jpg b/File System Project/Root/abcde/dentrodeabcde/fotonumero2.jpg new file mode 100644 index 00000000..e0b0d523 Binary files /dev/null and b/File System Project/Root/abcde/dentrodeabcde/fotonumero2.jpg differ diff --git a/File System Project/Root/abcde/fotonumero4.jpg b/File System Project/Root/abcde/fotonumero4.jpg new file mode 100644 index 00000000..38e0f733 Binary files /dev/null and b/File System Project/Root/abcde/fotonumero4.jpg differ diff --git a/File System Project/Root/abcde/fotos numero.jpg b/File System Project/Root/abcde/fotos numero.jpg new file mode 100644 index 00000000..44c9cd47 Binary files /dev/null and b/File System Project/Root/abcde/fotos numero.jpg differ diff --git a/File System Project/assets/icons/csv.png b/File System Project/assets/icons/csv.png new file mode 100644 index 00000000..1eb3c9f8 Binary files /dev/null and b/File System Project/assets/icons/csv.png differ diff --git a/File System Project/assets/icons/doc.png b/File System Project/assets/icons/doc.png new file mode 100644 index 00000000..7765e3a3 Binary files /dev/null and b/File System Project/assets/icons/doc.png differ diff --git a/File System Project/assets/icons/exe.png b/File System Project/assets/icons/exe.png new file mode 100644 index 00000000..0c5ab648 Binary files /dev/null and b/File System Project/assets/icons/exe.png differ diff --git a/File System Project/assets/icons/folder.png b/File System Project/assets/icons/folder.png new file mode 100644 index 00000000..27bd9390 Binary files /dev/null and b/File System Project/assets/icons/folder.png differ diff --git a/File System Project/assets/icons/jpg.png b/File System Project/assets/icons/jpg.png new file mode 100644 index 00000000..20b89b5e Binary files /dev/null and b/File System Project/assets/icons/jpg.png differ diff --git a/File System Project/assets/icons/mp3.png b/File System Project/assets/icons/mp3.png new file mode 100644 index 00000000..85f570f7 Binary files /dev/null and b/File System Project/assets/icons/mp3.png differ diff --git a/File System Project/assets/icons/mp4.png b/File System Project/assets/icons/mp4.png new file mode 100644 index 00000000..274551ad Binary files /dev/null and b/File System Project/assets/icons/mp4.png differ diff --git a/File System Project/assets/icons/odt.png b/File System Project/assets/icons/odt.png new file mode 100644 index 00000000..2a2dd983 Binary files /dev/null and b/File System Project/assets/icons/odt.png differ diff --git a/File System Project/assets/icons/pdf.png b/File System Project/assets/icons/pdf.png new file mode 100644 index 00000000..6095c451 Binary files /dev/null and b/File System Project/assets/icons/pdf.png differ diff --git a/File System Project/assets/icons/png.png b/File System Project/assets/icons/png.png new file mode 100644 index 00000000..43e86dcb Binary files /dev/null and b/File System Project/assets/icons/png.png differ diff --git a/File System Project/assets/icons/ppt.png b/File System Project/assets/icons/ppt.png new file mode 100644 index 00000000..3f3ba2f0 Binary files /dev/null and b/File System Project/assets/icons/ppt.png differ diff --git a/File System Project/assets/icons/rar.png b/File System Project/assets/icons/rar.png new file mode 100644 index 00000000..c7e8ff34 Binary files /dev/null and b/File System Project/assets/icons/rar.png differ diff --git a/File System Project/assets/icons/svg.png b/File System Project/assets/icons/svg.png new file mode 100644 index 00000000..828a8905 Binary files /dev/null and b/File System Project/assets/icons/svg.png differ diff --git a/File System Project/assets/icons/txt.png b/File System Project/assets/icons/txt.png new file mode 100644 index 00000000..7f9a540b Binary files /dev/null and b/File System Project/assets/icons/txt.png differ diff --git a/File System Project/assets/icons/zip.png b/File System Project/assets/icons/zip.png new file mode 100644 index 00000000..25710210 Binary files /dev/null and b/File System Project/assets/icons/zip.png differ diff --git a/File System Project/assets/normalize.css b/File System Project/assets/normalize.css new file mode 100644 index 00000000..192eb9ce --- /dev/null +++ b/File System Project/assets/normalize.css @@ -0,0 +1,349 @@ +/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */ + +/* Document + ========================================================================== */ + +/** + * 1. Correct the line height in all browsers. + * 2. Prevent adjustments of font size after orientation changes in iOS. + */ + +html { + line-height: 1.15; /* 1 */ + -webkit-text-size-adjust: 100%; /* 2 */ +} + +/* Sections + ========================================================================== */ + +/** + * Remove the margin in all browsers. + */ + +body { + margin: 0; +} + +/** + * Render the `main` element consistently in IE. + */ + +main { + display: block; +} + +/** + * Correct the font size and margin on `h1` elements within `section` and + * `article` contexts in Chrome, Firefox, and Safari. + */ + +h1 { + font-size: 2em; + margin: 0.67em 0; +} + +/* Grouping content + ========================================================================== */ + +/** + * 1. Add the correct box sizing in Firefox. + * 2. Show the overflow in Edge and IE. + */ + +hr { + box-sizing: content-box; /* 1 */ + height: 0; /* 1 */ + overflow: visible; /* 2 */ +} + +/** + * 1. Correct the inheritance and scaling of font size in all browsers. + * 2. Correct the odd `em` font sizing in all browsers. + */ + +pre { + font-family: monospace, monospace; /* 1 */ + font-size: 1em; /* 2 */ +} + +/* Text-level semantics + ========================================================================== */ + +/** + * Remove the gray background on active links in IE 10. + */ + +a { + background-color: transparent; +} + +/** + * 1. Remove the bottom border in Chrome 57- + * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. + */ + +abbr[title] { + border-bottom: none; /* 1 */ + text-decoration: underline; /* 2 */ + text-decoration: underline dotted; /* 2 */ +} + +/** + * Add the correct font weight in Chrome, Edge, and Safari. + */ + +b, +strong { + font-weight: bolder; +} + +/** + * 1. Correct the inheritance and scaling of font size in all browsers. + * 2. Correct the odd `em` font sizing in all browsers. + */ + +code, +kbd, +samp { + font-family: monospace, monospace; /* 1 */ + font-size: 1em; /* 2 */ +} + +/** + * Add the correct font size in all browsers. + */ + +small { + font-size: 80%; +} + +/** + * Prevent `sub` and `sup` elements from affecting the line height in + * all browsers. + */ + +sub, +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +sub { + bottom: -0.25em; +} + +sup { + top: -0.5em; +} + +/* Embedded content + ========================================================================== */ + +/** + * Remove the border on images inside links in IE 10. + */ + +img { + border-style: none; +} + +/* Forms + ========================================================================== */ + +/** + * 1. Change the font styles in all browsers. + * 2. Remove the margin in Firefox and Safari. + */ + +button, +input, +optgroup, +select, +textarea { + font-family: inherit; /* 1 */ + font-size: 100%; /* 1 */ + line-height: 1.15; /* 1 */ + margin: 0; /* 2 */ +} + +/** + * Show the overflow in IE. + * 1. Show the overflow in Edge. + */ + +button, +input { /* 1 */ + overflow: visible; +} + +/** + * Remove the inheritance of text transform in Edge, Firefox, and IE. + * 1. Remove the inheritance of text transform in Firefox. + */ + +button, +select { /* 1 */ + text-transform: none; +} + +/** + * Correct the inability to style clickable types in iOS and Safari. + */ + +button, +[type="button"], +[type="reset"], +[type="submit"] { + -webkit-appearance: button; +} + +/** + * Remove the inner border and padding in Firefox. + */ + +button::-moz-focus-inner, +[type="button"]::-moz-focus-inner, +[type="reset"]::-moz-focus-inner, +[type="submit"]::-moz-focus-inner { + border-style: none; + padding: 0; +} + +/** + * Restore the focus styles unset by the previous rule. + */ + +button:-moz-focusring, +[type="button"]:-moz-focusring, +[type="reset"]:-moz-focusring, +[type="submit"]:-moz-focusring { + outline: 1px dotted ButtonText; +} + +/** + * Correct the padding in Firefox. + */ + +fieldset { + padding: 0.35em 0.75em 0.625em; +} + +/** + * 1. Correct the text wrapping in Edge and IE. + * 2. Correct the color inheritance from `fieldset` elements in IE. + * 3. Remove the padding so developers are not caught out when they zero out + * `fieldset` elements in all browsers. + */ + +legend { + box-sizing: border-box; /* 1 */ + color: inherit; /* 2 */ + display: table; /* 1 */ + max-width: 100%; /* 1 */ + padding: 0; /* 3 */ + white-space: normal; /* 1 */ +} + +/** + * Add the correct vertical alignment in Chrome, Firefox, and Opera. + */ + +progress { + vertical-align: baseline; +} + +/** + * Remove the default vertical scrollbar in IE 10+. + */ + +textarea { + overflow: auto; +} + +/** + * 1. Add the correct box sizing in IE 10. + * 2. Remove the padding in IE 10. + */ + +[type="checkbox"], +[type="radio"] { + box-sizing: border-box; /* 1 */ + padding: 0; /* 2 */ +} + +/** + * Correct the cursor style of increment and decrement buttons in Chrome. + */ + +[type="number"]::-webkit-inner-spin-button, +[type="number"]::-webkit-outer-spin-button { + height: auto; +} + +/** + * 1. Correct the odd appearance in Chrome and Safari. + * 2. Correct the outline style in Safari. + */ + +[type="search"] { + -webkit-appearance: textfield; /* 1 */ + outline-offset: -2px; /* 2 */ +} + +/** + * Remove the inner padding in Chrome and Safari on macOS. + */ + +[type="search"]::-webkit-search-decoration { + -webkit-appearance: none; +} + +/** + * 1. Correct the inability to style clickable types in iOS and Safari. + * 2. Change font properties to `inherit` in Safari. + */ + +::-webkit-file-upload-button { + -webkit-appearance: button; /* 1 */ + font: inherit; /* 2 */ +} + +/* Interactive + ========================================================================== */ + +/* + * Add the correct display in Edge, IE 10+, and Firefox. + */ + +details { + display: block; +} + +/* + * Add the correct display in all browsers. + */ + +summary { + display: list-item; +} + +/* Misc + ========================================================================== */ + +/** + * Add the correct display in IE 10+. + */ + +template { + display: none; +} + +/** + * Add the correct display in IE 10. + */ + +[hidden] { + display: none; +} diff --git a/File System Project/assets/stylefile.css b/File System Project/assets/stylefile.css new file mode 100644 index 00000000..4589d353 --- /dev/null +++ b/File System Project/assets/stylefile.css @@ -0,0 +1,16 @@ +body{ + width: 90%; + margin: 0 auto; +} +.content{ + margin-top: 15em; +} + +.logo{ + margin-left: 0.5em; +} + +.sectionImg{ + max-width: fit-content; + width: 25%; +} diff --git a/File System Project/createfolder.php b/File System Project/createfolder.php new file mode 100644 index 00000000..6bf02b7b --- /dev/null +++ b/File System Project/createfolder.php @@ -0,0 +1,72 @@ +getMessage(); + } +} +// echo "jaksj"; + +if (isset($_POST['buttclick'])) { + $dirinside=$_POST["fileroot"]; + $target_dir = "./root/$dirinside/"; + // $jj=$_FILES['Fileimage']; + $target_file = $target_dir . basename($_FILES["Fileimage"]["name"]); + move_uploaded_file($_FILES['Fileimage']['tmp_name'], $target_file); + header('location: ./index.php'); +} + +if (isset($_POST['upload'])) { + if ($_POST['foldername'] != "") { + $dirinside=$_POST["fileroot"]; + $target_dir = "./root/$dirinside/"; + $foldername = $_POST['foldername']; + if (!is_dir($target_dir . $foldername)) mkdir($target_dir . $foldername); + foreach ($_FILES['files']['name'] as $i => $name) { + if (strlen($_FILES['files']['name'][$i]) > 1) { + move_uploaded_file($_FILES['files']['tmp_name'][$i], $target_dir . $foldername . + "/" . $name); + } + } + //echo "Folder is successfully uploaded"; + //header('location: ./index.php'); + } else + header('location: ./index.php'); +} diff --git a/File System Project/index.php b/File System Project/index.php new file mode 100644 index 00000000..79c037b9 --- /dev/null +++ b/File System Project/index.php @@ -0,0 +1,81 @@ + + + + + + + + Rocket File System + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + + + + + getFilename(); + if ($fileName == $searchbar) { + $extensiona = $rightPath->getExtension(); + $infofilea = $rightPath->getFileInfo(); + $fileNamea = $rightPath->getFilename(); + $rutanueva = folderSize($infofilea); + $fileSizea = bytesToHuman($rutanueva); + $lastUpdatea = date('F d Y H:i:s', filemtime($infofilea)); + fillTable($extensiona, $infofilea, $fileNamea, $fileSizea, $lastUpdatea); + } + } + } + } + } + ?> + +
IconFile Name File SizeLast Updatedelete/edit
+
+ +
+ + + + + \ No newline at end of file diff --git a/File System Project/mainScript.js b/File System Project/mainScript.js new file mode 100644 index 00000000..773127d3 --- /dev/null +++ b/File System Project/mainScript.js @@ -0,0 +1,15 @@ +function obtenerdatos(elem){ + fetch(elem) + .then(respuesta => { + return respuesta + }).then(datos => { + appendfile(datos.url) + }) + +} + +function appendfile(elem){ + asidefile= document.getElementById('asidefile'); + content=`