testing new uploader
This commit is contained in:
10
sys0-code/api/uploader/cloudprint.php
Normal file
10
sys0-code/api/uploader/cloudprint.php
Normal 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"];
|
||||
?>
|
||||
Reference in New Issue
Block a user