New, simpler WEB UI

This commit is contained in:
Serghey Rodin 2012-05-15 15:51:43 +03:00
commit d352cb9385
439 changed files with 3920 additions and 45184 deletions

View file

@ -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";
?>