Subversion-Projekte lars-tiefland.ci

Revision

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

Revision 999 Revision 1002
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: 999 $
8
 * @version $Rev: 1002 $
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 40... Zeile 40...
40
			WHERE
40
			WHERE
41
				id=".$user_id."
41
				id=".$user_id."
42
		";
42
		";
43
		$res = $GLOBALS["db_red"]->query($sql);
43
		$res = $GLOBALS["db_red"]->query($sql);
44
		$user = $res->row_array();
44
		$user = $res->row_array();
-
 
45
		list($user_local, $domain) = explode("@", $user["user"]);
-
 
46
		$user["domain"] = $domain;
-
 
47
		$user["local"] = $user_local;
45
		return $user;
48
		return $user;
46
	}
49
	}
47
}
50
}
Zeile 48... Zeile 51...
48
 
51
 
49
?>
52
?>