aboutsummaryrefslogtreecommitdiffstats
path: root/php/database.php
diff options
context:
space:
mode:
authoradam <adam@>2021-02-14 12:22:13 +0200
committeradam <adam@>2021-02-14 12:22:13 +0200
commit458078b50b26105b8147b4d492c9d4f2796da4eb (patch)
tree1c35e21a20825e60332c7fb0a8371d5cf9debe37 /php/database.php
parenta1a2e2e0533a640aeff3448572f8ee6a9862ccc2 (diff)
downloadfileup-458078b50b26105b8147b4d492c9d4f2796da4eb.tar.gz
trash code and hacks
Diffstat (limited to 'php/database.php')
-rw-r--r--php/database.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/php/database.php b/php/database.php
index 57aac3d..c951576 100644
--- a/php/database.php
+++ b/php/database.php
@@ -472,11 +472,14 @@ require_once "node.php";
$prep->bindParam(':code',$code);
if($users=="")
{
- $prep->bindParam(':is_public',true);
+ $is_public=1;
}else
{
- $prep->bindParam(':is_public',false);
+ $is_public=0;
+ error_log("shared with $users is set to public=$is_public");
}
+ $prep->bindParam(':is_public',$is_public);
+
if($prep->execute()==false)
{
error_log("could not create shared node in create_shared_node");
@@ -620,6 +623,7 @@ require_once "node.php";
$nod->node_id=$ret["node_id"];
$nod->password=$ret["passcode"];
$nod->code=$ret["code"];
+ $nod->is_public=$ret["is_public"];
return $nod;
}