Subversion-Projekte lars-tiefland.em_wm

Revision

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

Revision 51 Revision 52
Zeile 29... Zeile 29...
29
					$db_meld=$res->getUserInfo();
29
					$db_meld=$res->getUserInfo();
30
					return $error;
30
					return $error;
31
				}
31
				}
32
				else
32
				else
33
				{
33
				{
34
					$row=$res->fetchRow(DB_FETCHMODE_ASSOC);
34
					$row=$res->fetchRow();
35
					$this->u_id=$row["u_id"];
35
					$this->u_id=$row["u_id"];
36
					$this->u_name=$row["u_name"];
36
					$this->u_name=$row["u_name"];
37
					$this->u_type=$row["u_type"];
37
					$this->u_type=$row["u_type"];
38
					$this->u_email=$row["u_email"];
38
					$this->u_email=$row["u_email"];
39
					$this->u_password=$row["u_password"];
39
					$this->u_password=$row["u_password"];
Zeile 74... Zeile 74...
74
		function save()
74
		function save()
75
		{
75
		{
76
			global $db;
76
			global $db;
77
			$sql="UPDATE auth_user SET u_name='$this->u_name', u_email='$this->u_email', u_type=$this->u_type WHERE u_id=$this->u_id";
77
			$sql="UPDATE auth_user SET u_name='$this->u_name', u_email='$this->u_email', u_type=$this->u_type WHERE u_id=$this->u_id";
78
			return $db->query($sql);
78
			return $db->query($sql);
79
	}
-
 
80
	function UserData($u_name)
-
 
81
	{
-
 
82
		global $db, $error, $meld, $db_meld;
-
 
83
		$sql="SELECT * FROM auth_user WHERE u_name='$u_name'";
-
 
84
		$res=$db->query($sql);
-
 
85
		if (true == DB::isError($res))
-
 
86
		{
-
 
87
			$error="true";
-
 
88
			$meld="Ein Fehler ist aufgetreten!";
-
 
89
			$db_meld=$res->getUserInfo();
-
 
90
			return $error;
-
 
91
		}
79
		}
92
		else
80
		function UserData($u_name)
93
		{
81
		{
-
 
82
			global $db, $error, $meld, $db_meld;
-
 
83
			$sql="SELECT * FROM auth_user WHERE u_name='$u_name'";
-
 
84
			$res=$db->query($sql);
-
 
85
			if (true == DB::isError($res))
-
 
86
			{
-
 
87
				$error="true";
-
 
88
				$meld="Ein Fehler ist aufgetreten!";
-
 
89
				$db_meld=$res->getUserInfo();
-
 
90
				return $error;
-
 
91
			}
-
 
92
			else
-
 
93
			{
94
			$row=$res->fetchRow(DB_FETCHMODE_ASSOC);
94
				$row=$res->fetchRow();
95
			$this->u_id=$row["u_id"];
95
				$this->u_id=$row["u_id"];
96
			$this->u_name=$row["u_name"];
96
				$this->u_name=$row["u_name"];
97
			$this->u_email=$row["u_email"];
97
				$this->u_email=$row["u_email"];
98
			$this->u_type=$row["u_type"];
98
				$this->u_type=$row["u_type"];
99
			$this->u_password=$row["u_password"];
99
				$this->u_password=$row["u_password"];
100
			return $this;
100
				return $this;
-
 
101
			}
101
		}
102
		}
102
	}
103
	}
103
	}
-
 
104
?>
104
?>