Updated services and fixed minor bugs.

This commit is contained in:
Alexander 2021-10-28 10:55:00 +03:00
commit 2a12fec5ea
90 changed files with 1706 additions and 3 deletions

View file

@ -0,0 +1,19 @@
<?php
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
$user = $_SESSION['user'];
if (($_SESSION['user'] == 'admin') && (!empty($_SESSION['look']))) {
$user=$_SESSION['look'];
}
if (!empty($_REQUEST['path'])) {
$path = htmlspecialchars($_REQUEST['path'], ENT_QUOTES, 'UTF-8');
if (!empty($_REQUEST['raw'])) {
header('content-type: image/jpeg');
passthru (VESTA_CMD . "v-open-fs-file " . $user . " " . escapeshellarg($path));
exit;
}
}
else {
die('File not found');
}