Subversion-Projekte lars-tiefland.openvz_admin

Revision

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

Revision 97 Revision 102
Zeile 1... Zeile 1...
1
<?php
1
<?php
2
	//$Id: vServer.class.php 97 2008-02-19 19:42:48Z lars $
2
	//$Id: vServer.class.php 102 2008-02-23 20:10:11Z lars $
3
	class vServer
3
	class vServer
4
	{
4
	{
5
	 	protected $status;
5
	 	protected $status;
6
	 	protected $name;
6
	 	protected $name;
7
	 	protected $hn_id;
7
	 	protected $hn_id;
Zeile 125... Zeile 125...
125
			}
125
			}
126
			unset($out);
126
			unset($out);
127
			if($this->v_id!=0)
127
			if($this->v_id!=0)
128
			{
128
			{
129
				$id=$this->v_id;
129
				$id=$this->v_id;
-
 
130
				$hn=HN::getHN($this->hn_id);
130
				$cmd="ssh root@mainframe vzctl $cmd $id";
131
				$cmd="ssh root@".$hn["name"]." vzctl $cmd $id";
131
				exec($cmd,$out,$ret);
132
				exec($cmd,$out,$ret);
132
				if(!$ret)
133
				if(!$ret)
133
				{
134
				{
134
					$out_v["status"]=implode("<br>",$out);
135
					$out_v["status"]=implode("<br>",$out);
135
					$out_v["error"]=false;
136
					$out_v["error"]=false;