testing new uploader

This commit is contained in:
Janis Steiner
2025-02-28 17:00:53 +00:00
parent 7627f33503
commit c236b4a495
7 changed files with 704 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
<?php
session_start();
if(!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== true or $_SESSION["role"][0]!=="1"){
die("no_auth");
exit;
}
$username=$_SESSION["username"];
$path = "/var/www/html/user_files/$username/";
$_SESSION["current_file"]=$path.$_GET["file"];
?>