Subversion-Projekte lars-tiefland.ci

Revision

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

Revision 1117 Revision 2372
Zeile 3... Zeile 3...
3
/**
3
/**
4
 *
4
 *
5
 * @package WebanOS CI
5
 * @package WebanOS CI
6
 * @author Lars Tiefland <ltiefland@gmail.com> 
6
 * @author Lars Tiefland <ltiefland@gmail.com> 
7
 * @copyright 2016
7
 * @copyright 2016
8
 * @version $Rev: 1117 $
8
 * @version $Rev: 2372 $
9
 */
9
 */
Zeile 10... Zeile 10...
10
 
10
 
11
class User_model extends CI_Model
11
class User_model extends CI_Model
12
{
12
{
Zeile 36... Zeile 36...
36
			FROM
36
			FROM
37
				Access
37
				Access
38
			WHERE
38
			WHERE
39
				id=".$user_id."
39
				id=".$user_id."
40
		";
40
		";
-
 
41
		trigger_error($sql);
41
		$res = $GLOBALS["db_red"]->query($sql);
42
		$res = $GLOBALS["db_red"]->query($sql);
42
		$user = $res->row_array();
43
		$user = $res->row_array();
43
		list($user_local, $domain) = explode("@", $user["user"]);
44
		list($user_local, $domain) = explode("@", $user["user"]);
44
		$user["domain"] = $domain;
45
		$user["domain"] = $domain;
45
		$user["local"] = $user_local;
46
		$user["local"] = $user_local;