diff options
author | adam <adam@> | 2021-02-13 22:25:06 +0200 |
---|---|---|
committer | adam <adam@> | 2021-02-13 22:25:06 +0200 |
commit | 5c4f408cada9b60ab1b65335879378c43cfdca21 (patch) | |
tree | e418b3c1646e5993535b5a10d4cbcf9d2bf34ec5 /php/share.php | |
parent | b55b1021a2b0cb53b2f18622207f659dcfb8ba77 (diff) | |
download | fileup-5c4f408cada9b60ab1b65335879378c43cfdca21.tar.gz |
text files are kinda shared
Diffstat (limited to 'php/share.php')
-rw-r--r-- | php/share.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/php/share.php b/php/share.php index 28d00f8..c56f19e 100644 --- a/php/share.php +++ b/php/share.php @@ -45,7 +45,7 @@ if($_SERVER["REQUEST_METHOD"] == "POST") exit(0); }else if($_SERVER["REQUEST_METHOD"]== "GET") { - $code=$_GET["code"]; + $code=$_GET["file"]; $file_id=$database->get_node_with_code($code); if($file_id==NULL) { @@ -63,8 +63,8 @@ if($_SERVER["REQUEST_METHOD"] == "POST") exit(1); }else { - header("Content-type: $node[type]"); - readfile("$storage_root/$node[code]"); + header("Content-type: $node->type"); + readfile("$storage_root/$node->code"); } } |