Subversion-Projekte lars-tiefland.openvz_admin

Revision

Revision 17 | Revision 74 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 17 Revision 68
Zeile 1... Zeile 1...
1
<?php
1
<?php
2
	//$Id: control.php 17 2007-09-30 16:23:20Z lars $
2
	//$Id: control.php 68 2007-10-25 14:11:23Z lars $
3
	require("include/common.php");
3
	require("include/common.php");
4
	$smarty->assign("title","openVZ Administration");
4
	$smarty->assign("title","openVZ Administration");
5
	$smarty->assign("h1","vServer kontrollieren");
5
	$smarty->assign("h1","vServer kontrollieren");
6
	$mode=(isset($_POST["mode"]))?$_POST["mode"]:"";
6
	$mode=(isset($_POST["mode"]))?$_POST["mode"]:"";
7
	$act=(isset($_POST["action"]))?$_POST["action"]:"";
7
	$act=(isset($_POST["action"]))?$_POST["action"]:"";
Zeile 10... Zeile 10...
10
	switch($mode)
10
	switch($mode)
11
	{
11
	{
12
		case "ask":
12
		case "ask":
13
			switch($act)
13
			switch($act)
14
			{
14
			{
-
 
15
				case "destroy":
-
 
16
					$action="löschen";
-
 
17
					break;
15
				case "stop":
18
				case "stop":
16
					$action="stoppen";
19
					$action="stoppen";
17
					break;
20
					break;
18
				case "start":
21
				case "start":
19
					$action="starten";
22
					$action="starten";
Zeile 28... Zeile 31...
28
			$smarty->assign("hn_id",$hn_id);
31
			$smarty->assign("hn_id",$hn_id);
29
			$smarty->assign("art","vServer");
32
			$smarty->assign("art","vServer");
30
			$smarty->assign("mode",$act);
33
			$smarty->assign("mode",$act);
31
			$smarty->display("confirm.tpl");
34
			$smarty->display("confirm.tpl");
32
			break;
35
			break;
-
 
36
		case "destroy":
33
		case "start":
37
		case "start":
34
		case "stop":
38
		case "stop":
35
		case "restart":
39
		case "restart":
36
			$vs=new vServer($v_id, $hn_id);
40
			$vs=new vServer($v_id, $hn_id);
37
			$ret=$vs->control($mode);
41
			$ret=$vs->control($mode);