mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 10:37:39 -07:00
New, simpler WEB UI
This commit is contained in:
parent
2de99900ce
commit
d352cb9385
439 changed files with 3920 additions and 45184 deletions
36
web/add/user/index.php
Normal file
36
web/add/user/index.php
Normal file
|
@ -0,0 +1,36 @@
|
|||
<?php
|
||||
// Init
|
||||
error_reporting(NULL);
|
||||
ob_start();
|
||||
session_start();
|
||||
$TAB = 'USER';
|
||||
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
||||
|
||||
// Header
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/header.html');
|
||||
|
||||
// Panel
|
||||
top_panel($user,$TAB);
|
||||
|
||||
// Data
|
||||
if ($_SESSION['user'] == 'admin') {
|
||||
if (!empty($_POST['cancel'])) {
|
||||
echo $_POST['cancel'];
|
||||
header("Location: /list/user/");
|
||||
}
|
||||
if (!empty($_POST['ok'])) {
|
||||
echo $_POST['vusername'];
|
||||
echo $_POST['vpassword'];
|
||||
}
|
||||
|
||||
exec (VESTA_CMD."v_list_user_packages json", $output, $return_var);
|
||||
check_error($return_var);
|
||||
$data = json_decode(implode('', $output), true);
|
||||
unset($output);
|
||||
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_add_user.html');
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/add_user.html');
|
||||
}
|
||||
|
||||
// Footer
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/footer.html');
|
Loading…
Add table
Add a link
Reference in a new issue