diff options
author | Alex Vitkov <alexvitkov98@gmail.com> | 2021-02-12 13:19:04 +0200 |
---|---|---|
committer | Alex Vitkov <alexvitkov98@gmail.com> | 2021-02-12 13:19:04 +0200 |
commit | 774fbfdbabf626ccaf768bf421f8b5ed5ce0172b (patch) | |
tree | c4da62ad8a3c0967e5e133a63b2cebaf88b937ae | |
parent | 1ed8d0f9259ccb8d9adc0cf12267043ef351e5ec (diff) | |
parent | 527301b44e44e994c89ba4db47a49e37eaef4d1b (diff) | |
download | fileup-774fbfdbabf626ccaf768bf421f8b5ed5ce0172b.tar.gz |
Merge branch 'master' of https://github.com/alexvitkov/india
-rw-r--r-- | php/.database.php.swp | bin | 16384 -> 0 bytes | |||
-rw-r--r-- | php/.node.php.swp | bin | 12288 -> 0 bytes | |||
-rw-r--r-- | php/.upload.php.swp | bin | 12288 -> 0 bytes | |||
-rw-r--r-- | php/node.php | 14 | ||||
-rw-r--r-- | php/upload.php | 6 | ||||
-rw-r--r-- | sql/.fileshare.sql.swp | bin | 12288 -> 0 bytes |
6 files changed, 16 insertions, 4 deletions
diff --git a/php/.database.php.swp b/php/.database.php.swp Binary files differdeleted file mode 100644 index eecacf9..0000000 --- a/php/.database.php.swp +++ /dev/null diff --git a/php/.node.php.swp b/php/.node.php.swp Binary files differdeleted file mode 100644 index 2046c2b..0000000 --- a/php/.node.php.swp +++ /dev/null diff --git a/php/.upload.php.swp b/php/.upload.php.swp Binary files differdeleted file mode 100644 index e1fc62b..0000000 --- a/php/.upload.php.swp +++ /dev/null diff --git a/php/node.php b/php/node.php index b6c3428..3c18519 100644 --- a/php/node.php +++ b/php/node.php @@ -1,9 +1,21 @@ <?php require_once "database.php"; - class Current_Directory + class Node { public $node_id; + public $is_directory; + public $relative_path; + public $type; + public $name; + public $note; + function __construct($node_id) + { + $this->node_id=$node_id; + } + } + class Current_Directory + { /*an array of the dir_ids taken to reach here*/ public $path; diff --git a/php/upload.php b/php/upload.php index bd72b6b..42a8bf6 100644 --- a/php/upload.php +++ b/php/upload.php @@ -1,8 +1,8 @@ <?php -require_once "database.php" -require_once "configuration.php" +require_once "database.php"; +require_once "configuration.php"; -if (!isset( $_POST["filename") || !isset($_POST["the_file"]) +if (!isset( $_POST["filename"]) || !isset($_POST["the_file"])) { http_response_code(400); error_log("someone tried to upload something impropperly"); diff --git a/sql/.fileshare.sql.swp b/sql/.fileshare.sql.swp Binary files differdeleted file mode 100644 index 963a386..0000000 --- a/sql/.fileshare.sql.swp +++ /dev/null |