FILEUP



LOG | FILES | OVERVIEW


F diff --git a/php/share.php b/php/share.php --- a/php/share.php +++ b/php/share.php
$filename=$_POST["filename"];
$users=$_POST["users"];
$password=$_POST["password"];
- $premissions=$_POST["premissions"];
+ $permissions=$_POST["permissions"];
- if($premissions==1)
+ if($permissions==1)
{
$can_read=true;
$can_write=false;
- }else if($premissions==3)
+ }else if($permissions==3)
{
$can_read=true;
$can_write=true;
else
{
// http_response_code(409);
- error_log("someone gave wrong premmissions =".$premissions."! This could be an attack");
+ error_log("someone gave wrong premmissions =".$permissions."! This could be an attack");
// exit(1);
}
http_response_code(409);
exit(0);
}
- $premissions=$database->get_premissions($file_id,$user->user_id);
- if($premissions["can_view"]==true)
+ $permissions=$database->get_permissions($file_id,$user->user_id);
+ if($permissions["can_view"]==true)
{
$node=$database->get_node($file_id);
if($node->is_directory)