Beispiel #1
0
 function get_user_by_id($id)
 {
     $this->db->where('user.id', $id);
     $this->db->join('user_profile', 'user.id = user_profile.id');
     $query = $this->db->get('user');
     foreach ($query->result_array() as $row) {
         return prep_user($row);
     }
     return array();
 }
Beispiel #2
0
<?
$base_url = base_url();
$user = array();
if (isValidUser())
{
  $user = $this->freakauth_light->_getUserProfile(getUserProperty("id"));
  $user["id"] = getUserProperty("id");
  $user["user_name"] = getUserProperty("user_name");
  $user = prep_user($user);
}

?>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
		<title>Vivagrams :: Healthy Habits for Happiness</title>
		<link id="page_favicon" href="<?php 
echo $base_url;
?>
/public/images/favicon.ico" rel="icon" type="image/x-icon" />
		
		<script>
		var base_url = "<?php 
echo $base_url;
?>
";
		</script>
		
		<link type="text/css" href="<?php 
echo $base_url;