mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 13:54:28 -07:00
i18n + service manager + web updater
This commit is contained in:
parent
3612d08933
commit
6e631c32a1
84 changed files with 1806 additions and 1458 deletions
23
web/update/vesta/index.php
Normal file
23
web/update/vesta/index.php
Normal file
|
@ -0,0 +1,23 @@
|
|||
<?php
|
||||
// Init
|
||||
error_reporting(NULL);
|
||||
ob_start();
|
||||
session_start();
|
||||
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
||||
|
||||
if ($_SESSION['user'] == 'admin') {
|
||||
if (!empty($_GET['pkg'])) {
|
||||
$v_pkg = escapeshellarg($_GET['pkg']);
|
||||
exec (VESTA_CMD."v-update-sys-vesta ".$v_pkg, $output, $return_var);
|
||||
}
|
||||
|
||||
if ($return_var != 0) {
|
||||
$error = implode('<br>', $output);
|
||||
if (empty($error)) $error = 'Error: '.$v_pkg.' update failed';
|
||||
$_SESSION['error_upd'] = $error;
|
||||
}
|
||||
unset($output);
|
||||
}
|
||||
|
||||
header("Location: /list/updates/");
|
||||
exit;
|
Loading…
Add table
Add a link
Reference in a new issue