Subversion-Projekte lars-tiefland.openvz_admin

Revision

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

Revision 30 Revision 33
Zeile 13... Zeile 13...
13
		protected $used;
13
		protected $used;
14
		protected $dns;
14
		protected $dns;
15
		protected $gw;
15
		protected $gw;
16
		function __construct($ip=NULL, $used=0, $dns=0, $gw=0)
16
		function __construct($ip=NULL, $used=0, $dns=0, $gw=0)
17
		{
17
		{
-
 
18
			global $db;
18
			if(!is_null($ip))
19
			if(!is_null($ip))
19
			{
20
			{
20
				$sql="SELECT * FROM ips WHERE ip='$ip'";
21
				$sql="SELECT * FROM ips WHERE ip='$ip'";
21
				$res=$db->query($sql);
22
				$res=$db->query($sql);
22
				$row=$res->fetchRow();
23
				$row=$res->fetchRow();