Esempio n. 1
0
    exit;
}
if (isset($_GET["IsArtica"])) {
    IsArtica();
    exit;
}
if (isset($_GET["tpl-delete"])) {
    lxc_templates_delete();
    exit;
}
if (isset($_GET["checkconfig"])) {
    checkconfig();
    exit;
}
if (isset($_GET["vps-freeze"])) {
    vps_freeze();
    exit;
}
if (isset($_GET["vps-unfreeze"])) {
    vps_unfreeze();
    exit;
}
while (list($num, $ligne) = each($_GET)) {
    $a[] = "{$num}={$ligne}";
}
writelogs_framework("unable to unserstand " . @implode("&", $a), __FUNCTION__, __FILE__, __LINE__);
function lxc_version()
{
    $unix = new unix();
    $lxc_version = $unix->find_program("lxc-version");
    if (!is_file($lxc_version)) {
Esempio n. 2
0
    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") {
    vps_freeze($argv[2]);
    die;
}
if ($argv[1] == "--lxc-unfreeze") {
    vps_unfreeze($argv[2]);
    die;
}
if ($argv[1] == "--watchdog") {
    vps_servers_watchdogs();
    die;
}
if ($argv[1] == "--interfaces-list") {
    print_r(ifconfiglisteth());
    die;
}
if ($argv[1] == "--checkbridge") {