Revision 4 | Revision 15 | Zur aktuellen Revision | Blame | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed
<?php//$Id: control.php 9 2007-09-25 18:24:34Z lars $require("include/common.php");$smarty->assign("title","openVZ Administration");$smarty->assign("h1","vServer kontrollieren");$mode=(isset($_POST["mode"]))?$_POST["mode"]:"";$act=(isset($_POST["action"]))?$_POST["action"]:"";$v_id=(isset($_POST["v_id"]))?$_POST["v_id"]:0;$v_id=(isset($_POST["id"])&&!$v_id)?$_POST["id"]:$v_id;switch($mode){case "ask":switch($act){case "stop":$action="stoppen";break;case "start":$action="starten";break;case "restart":$action="neu starten";break;}$smarty->assign("action",$action);$smarty->assign("name",$v_id);$smarty->assign("id",$v_id);$smarty->assign("art","vServer");$smarty->assign("mode",$act);$smarty->display("confirm.tpl");break;case "start":case "stop":case "restart":$ret=exec_cmd($mode, $v_id);$smarty->assign("meld",$ret["status"]);$smarty->display("meld.tpl");break;}?>