예제 #1
0
    exit;
}
if (isset($_GET["uninstall-bridge"])) {
    uninstall_bridge();
    exit;
}
if (isset($_GET["check-master"])) {
    check_lxc();
    exit;
}
if (isset($_GET["single-status"])) {
    status_single();
    exit;
}
if (isset($_GET["lxc-ps"])) {
    lxc_ps();
    exit;
}
if (isset($_GET["vps-restart"])) {
    vps_restart();
    exit;
}
if (isset($_GET["vps-stop"])) {
    vps_stop();
    exit;
}
if (isset($_GET["vps-start"])) {
    vps_start();
    exit;
}
if (isset($_GET["vps-running"])) {
예제 #2
0
    die;
}
if ($argv[1] == "--vps-server-mod") {
    vps_server_check_single($argv[2]);
    die;
}
if ($argv[1] == "--status") {
    vps_servers_status();
    die;
}
if ($argv[1] == "--status-single") {
    echo vps_servers_status_single($argv[2]);
    die;
}
if ($argv[1] == "--lxc-ps") {
    lxc_ps($argv[2]);
    die;
}
if ($argv[1] == "--lxc-restart") {
    vps_restart($argv[2]);
    die;
}
if ($argv[1] == "--lxc-stop") {
    vps_stop($argv[2]);
    die;
}
if ($argv[1] == "--lxc-start") {
    vps_start($argv[2]);
    die;
}
if ($argv[1] == "--lxc-freeze") {