Subversion-Projekte lars-tiefland.openvz_admin

Revision

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

Revision 34 Revision 44
Zeile 1... Zeile 1...
1
<?php
1
<?php
2
	// $Id: change.php 34 2007-10-01 17:55:00Z lars $
2
	// $Id: change.php 44 2007-10-02 18:56:09Z lars $
3
	require("include/common.php");
3
	require("include/common.php");
4
	$mode=(isset($_POST["mode"]))?$_POST["mode"]:"";
4
	$mode=(isset($_POST["mode"]))?$_POST["mode"]:"";
5
	$v_id=(isset($_POST["v_id"]))?$_POST["v_id"]:0;
5
	$v_id=(isset($_POST["v_id"]))?$_POST["v_id"]:0;
6
	$hn_id=(isset($_POST["hn_id"]))?$_POST["hn_id"]:1;
6
	$hn_id=(isset($_POST["hn_id"]))?$_POST["hn_id"]:1;
7
	$ips=IP::getIPs();
7
	$ips=IP::getIPs();
Zeile 17... Zeile 17...
17
			$tpl_file="change.tpl";
17
			$tpl_file="change.tpl";
18
			break;
18
			break;
19
		case "create_v":
19
		case "create_v":
20
			$vs=new vServer($v_id, $hn_id);
20
			$vs=new vServer($v_id, $hn_id);
21
			$vs->save($v_name, $dist_id, $ip, $root_pw);
21
			$vs->save($v_name, $dist_id, $ip, $root_pw);
-
 
22
			$tpl_file="meld.tpl";
22
			break;
23
			break;
23
		case "sve_conf":
24
		case "save_conf":
-
 
25
			$tpl_file="meld.tpl";
24
			break;
26
			break;
25
	}
27
	}
26
	$smarty->assign("title","openVZ Administration");
28
	$smarty->assign("title","openVZ Administration");
27
	$smarty->assign("h1",$title);
29
	$smarty->assign("h1",$title);
28
	$smarty->assign("ips",$ips);
30
	$smarty->assign("ips",$ips);