aboutsummaryrefslogtreecommitdiffstats
path: root/php
diff options
context:
space:
mode:
authoradam <adam@>2021-02-13 22:17:50 +0200
committeradam <adam@>2021-02-13 22:17:50 +0200
commitb55b1021a2b0cb53b2f18622207f659dcfb8ba77 (patch)
tree258f4373c7a976151fefe0b295c143a60156b30c /php
parent80098f89e1e6deebf3a986312f0b84d77618a202 (diff)
downloadfileup-b55b1021a2b0cb53b2f18622207f659dcfb8ba77.tar.gz
returns something'
Diffstat (limited to 'php')
-rw-r--r--php/node.php2
-rw-r--r--php/share.php8
2 files changed, 6 insertions, 4 deletions
diff --git a/php/node.php b/php/node.php
index 383cc97..e0f7ceb 100644
--- a/php/node.php
+++ b/php/node.php
@@ -81,7 +81,7 @@ require_once "user.php";
{
return NULL;
}
- $node_id=get_node_id($filename,$dir_id);
+ $node_id=$database->get_node_id($filename,$dir_id);
if($node_id==NULL)
{
return NULL;
diff --git a/php/share.php b/php/share.php
index 3122162..28d00f8 100644
--- a/php/share.php
+++ b/php/share.php
@@ -27,12 +27,14 @@ if($_SERVER["REQUEST_METHOD"] == "POST")
}
else
{
- http_response_code(409);
+// http_response_code(409);
error_log("someone gave wrong premmissions =".$premissions."! This could be an attack");
- exit(1);
+// exit(1);
}
- $share_link=create_share_link($path,$filename,$password,$user,$can_read,$can_write);
+ //$share_link=create_share_link($path,$filename,$password,$user,$can_read,$can_write);
+ $share_link=create_share_link($path,$filename,$password,$user,true,true);
+
if($share_link==NULL)
{