aboutsummaryrefslogtreecommitdiffstats
path: root/php/share.php
diff options
context:
space:
mode:
Diffstat (limited to 'php/share.php')
-rw-r--r--php/share.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/php/share.php b/php/share.php
index 0853058..aeffac4 100644
--- a/php/share.php
+++ b/php/share.php
@@ -2,6 +2,7 @@
require_once "configuration.php";
require_once "database.php";
require_once "user.php";
+
session_start();
$user=$_SESSION['user_object'];
@@ -32,8 +33,8 @@ if($_SERVER["REQUEST_METHOD"] == "POST")
exit(1);
}
- //$share_link=create_share_link($path,$filename,$password,$user,$can_read,$can_write);
- $share_link=create_share_link($path,$filename,$password,$user,true,true);
+ $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)