mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
commit
c80350ff3a
3 changed files with 14 additions and 10 deletions
|
@ -16,6 +16,7 @@ $LANG['nl'] = array(
|
|||
'Services' => 'Processen',
|
||||
'Firewall' => 'Firewall',
|
||||
'Updates' => 'Updates',
|
||||
'Apps' => 'Applicaties',
|
||||
'Log in' => 'Inloggen',
|
||||
'Log out' => 'Uitloggen',
|
||||
|
||||
|
|
|
@ -13,10 +13,10 @@ if (($_SESSION['user'] == 'admin') && (!empty($_SESSION['look']))) {
|
|||
}
|
||||
|
||||
if (!empty($_REQUEST['path'])) {
|
||||
$path = $_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(htmlspecialchars($_REQUEST['path'], ENT_QUOTES, 'UTF-8')));
|
||||
passthru (VESTA_CMD . "v-open-fs-file " . $user . " " . escapeshellarg($path));
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue