mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 18:49:17 -07:00
New, simpler WEB UI
This commit is contained in:
parent
2de99900ce
commit
d352cb9385
439 changed files with 3920 additions and 45184 deletions
|
@ -1,18 +1,8 @@
|
|||
<?php
|
||||
echo "<title>Testing Vesta Control Panel</title>\n";
|
||||
echo "<pre>\n";
|
||||
$cmd='/usr/bin/sudo /usr/local/vesta/bin/v_list_users json';
|
||||
echo "Command: $cmd\n\n";
|
||||
exec ($cmd,$output,$return);
|
||||
if ($return > 0) {
|
||||
echo "Error $return: something is wrong\n";
|
||||
foreach ($output as $row) {
|
||||
echo "$row\n";
|
||||
}
|
||||
session_start();
|
||||
if (isset($_SESSION['user'])) {
|
||||
header("Location: /list/user");
|
||||
} else {
|
||||
foreach ($output as $row) {
|
||||
echo "$row\n";
|
||||
}
|
||||
header("Location: /login/");
|
||||
}
|
||||
echo "</pre>\n";
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue