Subversion-Projekte lars-tiefland.openvz_admin

Revision

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

Revision 38 Revision 50
Zeile 15... Zeile 15...
15
		function __construct($dist=NULL)
15
		function __construct($dist=NULL)
16
		{
16
		{
17
			global $db;
17
			global $db;
18
			if(!is_null($dist))
18
			if(!is_null($dist))
19
			{
19
			{
20
				$sql="SELECT * FROM distributions WHERE id=$dist";
20
				$sql="SELECT * FROM distributions WHERE dist_id=$dist";
21
				$res=$db->query($sql);
21
				$res=$db->query($sql);
22
				$row=$res->fetchRow();
22
				$row=$res->fetchRow();
23
				$this->id=$row["dist_id"];
23
				$this->id=$row["dist_id"];
24
				$this->dist_name=$row["dist_name"];
24
				$this->dist_name=$row["dist_name"];
25
				$this->template=$row["template_name"];
25
				$this->template=$row["template_name"];