mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 18:49:17 -07:00
Replaced CRLF by LF again
This commit is contained in:
parent
cfe677c674
commit
baad48a87d
74 changed files with 9826 additions and 9826 deletions
|
@ -1,22 +1,22 @@
|
|||
<?php
|
||||
// Init
|
||||
error_reporting(NULL);
|
||||
ob_start();
|
||||
session_start();
|
||||
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
||||
|
||||
if ($_SESSION['user'] == 'admin') {
|
||||
if (!empty($_GET['srv'])) {
|
||||
$v_service = escapeshellarg($_GET['srv']);
|
||||
exec (VESTA_CMD."v-restart-service ".$v_service, $output, $return_var);
|
||||
}
|
||||
if ($return_var != 0) {
|
||||
$error = implode('<br>', $output);
|
||||
if (empty($error)) $error = _('SERVICE_ACTION_FAILED',_('restart'),$v_service);
|
||||
$_SESSION['error_srv'] = $error;
|
||||
}
|
||||
unset($output);
|
||||
}
|
||||
|
||||
header("Location: /list/services/");
|
||||
exit;
|
||||
<?php
|
||||
// Init
|
||||
error_reporting(NULL);
|
||||
ob_start();
|
||||
session_start();
|
||||
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
||||
|
||||
if ($_SESSION['user'] == 'admin') {
|
||||
if (!empty($_GET['srv'])) {
|
||||
$v_service = escapeshellarg($_GET['srv']);
|
||||
exec (VESTA_CMD."v-restart-service ".$v_service, $output, $return_var);
|
||||
}
|
||||
if ($return_var != 0) {
|
||||
$error = implode('<br>', $output);
|
||||
if (empty($error)) $error = _('SERVICE_ACTION_FAILED',_('restart'),$v_service);
|
||||
$_SESSION['error_srv'] = $error;
|
||||
}
|
||||
unset($output);
|
||||
}
|
||||
|
||||
header("Location: /list/services/");
|
||||
exit;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue