mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
🔒 ♻️ Implement secure exec
wrapper functions.
This commit is contained in:
parent
6e13036780
commit
8e951ac72e
115 changed files with 1345 additions and 1986 deletions
|
@ -13,16 +13,14 @@ top_panel($user,$TAB);
|
|||
|
||||
// Data
|
||||
if (empty($_GET['backup'])){
|
||||
exec (VESTA_CMD."v-list-user-backups $user json", $output, $return_var);
|
||||
$data = json_decode(implode('', $output), true);
|
||||
$data = array_reverse($data,true);
|
||||
unset($output);
|
||||
v_exec('v-list-user-backups', [$user, 'json'], false, $output);
|
||||
$data = json_decode($output, true);
|
||||
$data = array_reverse($data, true);
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_backup.html');
|
||||
} else {
|
||||
exec (VESTA_CMD."v-list-user-backup $user '".escapeshellarg($_GET['backup'])."' json", $output, $return_var);
|
||||
$data = json_decode(implode('', $output), true);
|
||||
$data = array_reverse($data,true);
|
||||
unset($output);
|
||||
v_exec('v-list-user-backup', [$user, $_GET['backup'], 'json'], false, $output);
|
||||
$data = json_decode($output, true);
|
||||
$data = array_reverse($data, true);
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_backup_detail.html');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue