";
}
return $table;
}
$viewer_id = 0;
if(isset($_SESSION['user5237Id']))
$viewer_id=$_SESSION['user5237Id'];
$user_id=$_GET['id'];
$userName = $_SESSION['user5237'];
$image=getUserImage($user_id);
$friends = getFriends($user_id);
$array = getViewableProfile($viewer_id, $user_id);//$userName);
$error_code = $array["error_code"];
$first_name=$array["first_name"];
//echo $first_name."22222222222222222";
$last_name=$array["last_name"];
$city=$array["city"];
$province=$array["province"];
$country=$array["country"];
if($error_code != 0){
}
else{
//echo $array;
// get the user information, including user's privacy.
// privacy=2 can be viewed by every one, privacy=1 can be viewed by friends only
$about=$array["about"];
$what_like=$array["what_like"];
$interest=$array["interest"];
$book=$array["book"];
$book = $book . "
Recommend a book 
";
$movie=$array["movie"];
$movie = $movie . "
Recommend a movie 
";
$tv=$array["tv"];
$tv = $tv . "
Recommend a TV show 
";
$people=$array["people"];
$celebrity=$array["celebrity"];
$money_or_science=$array["money_or_science"];
$politic=$array["politic"];
$education=$array["education"];
$job=$array["job"];
$first_name=$array["first_name"];
//echo $first_name."22222222222222222";
$last_name=$array["last_name"];
$city=$array["city"];
$province=$array["province"];
$country=$array["country"];
$privacy=$array["first_name"];
$line=$array["line"];
$age=$array["age"];
$last_logged_in=$array["last_logged_in"];
$counter=$array["counter"];
$num_friends=$array["num_friends"];
$user_id=$array["user_id"];
$user_name=$array["user_name"];
$viewer_is_family=$array["viewer_is_family"];
$viewer_is_friend=$array["viewer_is_friend"];
$activity=$array["activity"];
$activity = $activity . "
Recommend an activity to ".$first_name." 
";
$relationship_status=$array["relationship_status"];
$travel_destination=$array["travel_destination"];
$travel_destination = $travel_destination . "
Recommend a travel destination to ".$first_name." 
";
if(strlen($city)>0)
$city = $city. ", ";
if(strlen($province)>0)
$province = $province. ", ";
$location = $city. $province.$country;
if(strlen($location) ==0 )
$location = "Not Specified";
// get all blog entries.
$entries = getLatestBlogEntries($user_id, $viewer_id);
$groups = getGroups($user_id);
$groups = $groups . "
Recommend a group to ".$first_name." 
";
$recent_activity = getRecentActivities($viewer_id, $user_id, $first_name);
$news = getLastNewsItem($user_id, $viewer_id,$viewer_is_family,$viewer_is_friend );
$news_title=$news['title'];
$news_id=$news['id'];
$news_date_posted=$news['date_posted'];
$news_text=$news['text'];
//$friends = getFriends($user_id);
$images = getUserImages($user_id);
$comments = getShortComments($user_id, $first_name, $last_name);
if(money_or_science == 0)
$money_or_science="I think science is better.";
else
$money_or_science="I think money is better.";
if($education == 0){
//$education="Not specified.";
}
else if($education == 1){
$education="High school";
}
else if($education == 2){
$education="College degree";
}
else if($education == 3){
$education="University degree.";
}
else if($education == 4){
$education="In school";
}
else if($education == 5){
$education="In colledge";
}
else if($education == 6){
$education="In university";
}
// on the left side a short description of
}
?>
Blogs ontariowww.com
include "$include_path/top.include";
?>
Advertisment
| Friends |
Pictures |
Comment |
|
|
echo $friends; ?>
if($error_code == 0) echo $images; ?>
if($error_code == 0) echo $comments; ?>
|
|
" > ... All Friends
|
|
include "$include_path/left_menu.include";
?>
|
- |
if($error_code==0){
?>
Interest :
echo $interest; ?>
|
Movies :
echo $movie; ?>
|
TV-Shows :
echo $tv; ?>
|
Books :
echo $book; ?>
|
People :
echo $people; ?>
|
|
Activity :
echo $activity; ?>
|
Groups :
echo $groups; ?>
|
Travel :
echo $travel_destination; ?>
|
|
|
Recently ...
|
|
echo $recent_activity; ?>
|
}
else{
// login to see the profile ["error_code"] = 3
?>
}
?>
|
- |
asdfasd
|
| Message |
|
To: echo $first_name. " ".$last_name; ?>
Date:
|
|
|
|
|
|
|
|
| Asking a Question |
|
|
|
|
| Recommend ... |
|
To: echo $first_name. " ".$last_name; ?>
Date:
|
|
|
|
|
|
|
|
|
| Recommend |
|
|
|
|