Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
271f623
Bundle with bootstrap created
labietelabiete Jun 22, 2021
6acbe24
labietelabiete Jun 22, 2021
fd86041
sass installed
labietelabiete Jun 22, 2021
c4cffb6
Prueba
sebastianeliasb Jun 22, 2021
239dbf9
style: first structural design finished
sebastianeliasb Jun 22, 2021
e632045
Firsts folders test
labietelabiete Jun 22, 2021
d850998
Merge branch 'master' into create-remove-folder
labietelabiete Jun 22, 2021
927fc1e
Details fails done
labietelabiete Jun 22, 2021
8cf57d2
feat: Upload file with directory
sebastianeliasb Jun 22, 2021
421c90c
Merge remote-tracking branch 'origin/feat/uploading-files' into creat…
labietelabiete Jun 22, 2021
e9f8f4c
labietelabiete Jun 22, 2021
22311eb
First navigation model done
labietelabiete Jun 23, 2021
b3da876
Bar navigation done
labietelabiete Jun 23, 2021
e7b4f49
Bar navigation done
labietelabiete Jun 23, 2021
89a13d6
First coding review
labietelabiete Jun 23, 2021
91dda73
Cleaning code done
labietelabiete Jun 23, 2021
e4e5fbe
Second commit styles
labietelabiete Jun 28, 2021
14e63af
merge with both paths
sebastianeliasb Jun 28, 2021
7b9602b
merged with both paths
sebastianeliasb Jun 28, 2021
c9c679f
first icon commit
labietelabiete Jun 28, 2021
06894f5
Both paths
sebastianeliasb Jun 28, 2021
36ab007
Merge branch 'master' of https://github.com/labietelabiete/filesystem…
sebastianeliasb Jun 28, 2021
0a29fa9
Icon and filtering size files
labietelabiete Jun 28, 2021
ec53278
jquery installation
labietelabiete Jun 28, 2021
91c3131
first modal styles
labietelabiete Jun 28, 2021
e4df75e
Rename folders done with one bug
labietelabiete Jun 28, 2021
0ea1f89
Rename folder bug done
labietelabiete Jun 28, 2021
03d1fd2
Merge branch 'master' of https://github.com/labietelabiete/filesystem…
sebastianeliasb Jun 29, 2021
c58e2aa
uploading files using one click
labietelabiete Jun 29, 2021
a412d02
Merge branch 'master' of https://github.com/labietelabiete/filesystem…
labietelabiete Jun 29, 2021
fce029f
Probamos diosito
labietelabiete Jun 29, 2021
b72bccc
Size files fixed
labietelabiete Jun 29, 2021
b577654
Path with / fixed
labietelabiete Jun 29, 2021
96a2090
Index for navbar done
labietelabiete Jun 29, 2021
2a6c2a9
uploading video done
labietelabiete Jun 29, 2021
b656fe0
labietelabiete Jun 29, 2021
f062266
pictures done
labietelabiete Jun 29, 2021
5a8db98
feat: audio player done
sebastianeliasb Jun 29, 2021
2ef3454
Merge branch 'master' of https://github.com/labietelabiete/filesystem…
sebastianeliasb Jun 29, 2021
1a8e344
Merge branch 'master' into feat/play-img
labietelabiete Jun 29, 2021
5fe9662
style media player
labietelabiete Jun 29, 2021
b3ef250
labietelabiete Jun 29, 2021
8f32718
Cleaning code v2
labietelabiete Jun 30, 2021
847a53a
style: upload button with style
sebastianeliasb Jun 30, 2021
e9c0906
Merge branch 'master' of https://github.com/labietelabiete/filesystem…
labietelabiete Jun 30, 2021
5881007
readme done
labietelabiete Jun 30, 2021
3267c4f
labietelabiete Jun 30, 2021
3c6fe1c
scss cleaned
labietelabiete Jun 30, 2021
c1216e6
labietelabiete Jul 1, 2021
d3e6dd9
Search working
labietelabiete Jul 1, 2021
982d82f
search done
labietelabiete Jul 1, 2021
a2cb2fa
pause media
labietelabiete Jul 1, 2021
58daf72
min width
labietelabiete Jul 1, 2021
0c288e2
style: span centered
sebastianeliasb Jul 1, 2021
872f17a
Merge branch 'master' of https://github.com/labietelabiete/filesystem…
sebastianeliasb Jul 1, 2021
4c6d6e3
labietelabiete Jul 1, 2021
f18ffb1
Folders system done
labietelabiete Jul 2, 2021
eaf15c8
Doc uploaded
labietelabiete Jul 2, 2021
ea4d496
labietelabiete Jul 2, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
69 changes: 40 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,42 +6,67 @@
<img alt="Version" src="https://img.shields.io/badge/version-1.0-blue.svg?cacheSeconds=2592000" />
</p>

>In this project you will have to create a system file explorer that allows the user to navigate, create directories and upload files in the same way as he would in his usual operating system.
![PHP Logo](https://www.hostname.cl/uploads/2013/07/php-logo.jpeg)


>The file explorer is a tool that allows you to directly view and manipulate the files and directories associated with a path, so you must take into account from which path the user starts and which path they can access.


## Index <!-- omit in toc -->

- [Requirements](#requirements)
- [Repository](#repository)
- [Getting Started](#getting-started)
- [Repository](#repository)
- [Installing](#installing)
- [Server Environment](#server-environment)
- [Technologies used](#technologies-used)
- [Project delivery](#project-delivery)
- [Resources](#resources)


## Requirements

- You cannot use file third-party libraries
- You will not be able to use global variables in PHP.
- You must use GIT
- You must use the PHP > v7
- Non use third-party libraries
- Non global variables in PHP.
- Using GIT
- PHP > v7
- Create a clear and orderly directory structure
- Both the code and the comments must be written in English
- Use the camelCase code style to define variables and functions
- In the case of using HTML, never use inline styles
- Never use inline styles in HTML
- In the case of using different programming languages ​​always define the implementation in separate terms
- Remember that it is important to divide the tasks into several sub-tasks so that in this way you can associate each particular step of the construction with a specific commit
- You should try as much as possible that the commits and the planned tasks are the same
Delete files that are not used or are not necessary to evaluate the project

## Repository
## Getting Started

First of all you must fork this project into your GitHub account.
These instructions will get you a copy of the project up and running on your
local machine for development and testing purposes.
### Repository

To create a fork on GitHub is as easy as clicking the “fork” button on the repository page.
First, you will need to `clone` or `fork` the repository into your Github
account:

<img src="https://docs.github.com/assets/images/help/repository/fork_button.jpg" alt="Fork on GitHub" width='450'>

```
$ git clone https://github.com/labietelabiete/filesystem-explorer
```
### Installing

First, you will need to install the dependencies with: `npm install`.

Run the following command in your terminal after cloning the main repo:

```sh
$ npm install
```
### Server Environment

Then, you can run your local server environment (XAMPP for example) in order to run the web application.

For more information about XAMPP local server environment:

[XAMPP local server enviroment](https://www.apachefriends.org/es/index.html)



## Technologies used

\* HTML
Expand All @@ -52,20 +77,6 @@ To create a fork on GitHub is as easy as clicking the “fork” button on the r

\* PHP

## Project delivery

To deliver this project you must follow the steps indicated in the document:

- [Submitting a solution](https://www.notion.so/Submitting-a-solution-524dab1a71dd4b96903f26385e24cdb6)

- You must include the project documentation in PDF format.
- You must include a presentation in PDF format explaining:
- Comparison of the original design (Wireframe) with the final result of the project
- Comparison of the use case diagram with the actions that the user can finally perform
- Comparison of the original use case diagram with the final user actions
- What lessons you’ve learned during this project
- What problems have you encountered when developing this project?
- How you have organized and distributed the tasks


## Resources
Expand Down
Binary file not shown.
Binary file not shown.
84 changes: 84 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
<?php
// $rootPathManual = "C:/xampp/htdocs/Assembler/Projects/02-php-file-manager/filesystem-explorer/root";

session_start();
require("./src/modules/upload.php");
require("./src/modules/path_manager.php");
$rootPath = getRootPath();
require_once("./src/modules/set_dir.php");

?>

<html lang="en">

<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PHP File Manager</title>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Anton&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;700&display=swap" rel="stylesheet">
<script src="https://kit.fontawesome.com/ecea200bd3.js" crossorigin="anonymous"></script>
<link href="node_modules\bootstrap\dist\css\bootstrap.min.css" rel="stylesheet" crossorigin="anonymous">
<link rel="stylesheet" href="./src/assets/css/styles.css">
</head>

<body>
<div class="row">
<div class="col col-12 title d-flex align-items-center justify-content-center">
<img src="./src/assets/img/logo-orange-01.png">
<h2>Filesystem Explorer</h2>
</div>
</div>
<main class="main_container container">
<div class="top_container row">
<form class="form-inline search_bar col col-12 d-flex" action="./src/modules/search.php" method="POST">
<input class="form-control" type="text" name="search" placeholder="Search..." id="search" aria-label="Search">
<button class="btn btn-search" type="submit">Search</button>
</form>
<div class="col-6"></div>
<form class="form-inline search_bar col col-6 d-flex" action="./src/modules/creating_folder.php" method="POST">
<input class="form-control" type="text" name="folderName" placeholder="Folder name..." id="folderName">
<button class="btn btn-new-folder" type="submit">New Folder</button>
</form>

<div class="col col-12 current_path">
<?php require_once("./src/modules/set_navbar.php"); ?>
</div>
</div>
<div class="content-container">
<table class="table">
<thead>
<tr>
<th class="col col-3" scope="col">File name</th>
<th class="col col-2" scope="col">Creation date</th>
<th class="col col-2" scope="col">Modified date</th>
<th class="col col-1" scope="col">Type</th>
<th class="col col-2" scope="col">Size</th>
<th class="col col-2" scope="col"></th>
</tr>
</thead>
<tbody class="table-content">
<?php require_once("./src/modules/set_files_info.php") ?>
</tbody>
</table>
</div>
</main>
<?php
require("./src/modules/modal.php");
?>
<aside class="aside_left">
<form action="" method="POST" enctype="multipart/form-data">
<label class="custom-file-input">
<span>+</span>
<input type="file" name="file" onchange="form.submit()" style="display:none;">
</label>
</form>
</aside>
</body>
<script src="node_modules/jquery/dist/jquery.min.js"></script>
<script src="node_modules\bootstrap\dist\js\bootstrap.bundle.min.js" crossorigin="anonymous"></script>
<script src="src/assets/js/getModalInfo.js"></script>

</html>
15 changes: 15 additions & 0 deletions node_modules/.bin/sass

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions node_modules/.bin/sass.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions node_modules/.bin/sass.ps1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading