Subversion-Projekte lars-tiefland.openvz_admin

Revision

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

Revision 107 Revision 108
Zeile 1... Zeile 1...
1
<?php
1
<?php
2
	//$Id: vServer.class.php 107 2008-03-16 13:30:23Z lars $
2
	//$Id: vServer.class.php 108 2008-03-16 13:41:42Z 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 164... Zeile 164...
164
			$db->beginTransaction();
164
			$db->beginTransaction();
165
			$sql="INSERT into vservers (v_id, hn_id, v_name, v_dist) VALUES ($this->v_id, $this->hn_id, '$this->name', $this->dist_id)";
165
			$sql="INSERT into vservers (v_id, hn_id, v_name, v_dist) VALUES ($this->v_id, $this->hn_id, '$this->name', $this->dist_id)";
166
			$res=$db->query($sql);
166
			$res=$db->query($sql);
167
			if(!PEAR::isError($res))
167
			if(!PEAR::isError($res))
168
			{
168
			{
169
				$v_id=$res->lasinsertid();
169
				$v_id=$db->lasinsertid();
170
				$sql="SELECT id FROM ips WHERE ip='".$ip["ip"]."'";
170
				$sql="SELECT id FROM ips WHERE ip='".$ip["ip"]."'";
171
				$res=$db->query($sql);
171
				$res=$db->query($sql);
172
				if(!PEAR::isError($res))
172
				if(!PEAR::isError($res))
173
				{
173
				{
174
					$row=$res->fetchRow();
174
					$row=$res->fetchRow();