Subversion-Projekte lars-tiefland.openvz_admin

Revision

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

Revision 63 Revision 64
Zeile 1... Zeile 1...
1
<?php
1
<?php
2
	//$Id: details.php 63 2007-10-03 15:24:39Z lars $
2
	//$Id: details.php 64 2007-10-03 15:27:33Z 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 Konfiguration");
5
	$smarty->assign("h1","vServer Konfiguration");
6
	$v_id=(isset($_POST["v_id"]))?$_POST["v_id"]:0;
6
	$v_id=(isset($_POST["v_id"]))?$_POST["v_id"]:0;
7
	$hn_id=(isset($_POST["hn_id"]))?$_POST["hn_id"]:1;
7
	$hn_id=(isset($_POST["hn_id"]))?$_POST["hn_id"]:1;
Zeile 34... Zeile 34...
34
				case "DCACHESIZE":
34
				case "DCACHESIZE":
35
					$barrier=number_format(substr($row["vc_value"],0,strpos($row["vc_value"],":")) / 1048576,2,',','.');
35
					$barrier=number_format(substr($row["vc_value"],0,strpos($row["vc_value"],":")) / 1048576,2,',','.');
36
					$limit	=number_format(substr($row["vc_value"],strpos($row["vc_value"],":")+1) / 1048576,2,',','.');
36
					$limit	=number_format(substr($row["vc_value"],strpos($row["vc_value"],":")+1) / 1048576,2,',','.');
37
					$row["vc_value2"]="BARRIER: $barrier MB ==> LIMIT: $limit MB";
37
					$row["vc_value2"]="BARRIER: $barrier MB ==> LIMIT: $limit MB";
38
					break;
38
					break;
-
 
39
				case "FEATURES":
-
 
40
					$row["vc_value2"]=$row["vc_value"];
-
 
41
					break;
39
				default:
42
				default:
40
					if(strpos($row["vc_value"],":") !== false)
43
					if(strpos($row["vc_value"],":") !== false)
41
					{
44
					{
42
						$barrier=substr($row["vc_value"],0,strpos($row["vc_value"],":"));
45
						$barrier=substr($row["vc_value"],0,strpos($row["vc_value"],":"));
43
						$limt	=substr($row["vc_value"],strpos($row["vc_value"],":")+1);
46
						$limt	=substr($row["vc_value"],strpos($row["vc_value"],":")+1);