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
|
@ -7,15 +7,14 @@ include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
|||
// Header
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_weblog.html');
|
||||
|
||||
$v_domain = escapeshellarg($_GET['domain']);
|
||||
$v_domain = $_GET['domain'];
|
||||
if ($_GET['type'] == 'access') $type = 'access';
|
||||
if ($_GET['type'] == 'error') $type = 'error';
|
||||
|
||||
exec (VESTA_CMD."v-list-web-domain-".$type."log $user ".$v_domain, $output, $return_var);
|
||||
$return_var = v_exec("v-list-web-domain-{$type}log", [$user, $v_domain], false, $output);
|
||||
|
||||
if ($return_var == 0 ) {
|
||||
foreach($output as $file) {
|
||||
echo $file . "\n";
|
||||
}
|
||||
if ($return_var == 0) {
|
||||
print $output . "\n";
|
||||
}
|
||||
|
||||
echo " </pre>\n</body>\n</html>\n";
|
Loading…
Add table
Add a link
Reference in a new issue