We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 570d932 commit 01d32a4Copy full SHA for 01d32a4
web/bulk/vesta/index.php
@@ -0,0 +1,24 @@
1
+<?php
2
+// Init
3
+error_reporting(NULL);
4
+ob_start();
5
+session_start();
6
+
7
+include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
8
9
+$pkg = $_POST['pkg'];
10
+$action = $_POST['action'];
11
12
+if ($_SESSION['user'] == 'admin') {
13
+ switch ($action) {
14
+ case 'update': $cmd='v-update-sys-vesta';
15
+ break;
16
+ default: header("Location: /list/updates/"); exit;
17
+ }
18
+ foreach ($pkg as $value) {
19
+ $value = escapeshellarg($value);
20
+ exec (VESTA_CMD.$cmd." ".$value, $output, $return_var);
21
22
+}
23
24
+header("Location: /list/updates/");
0 commit comments