include "header.php"; if(!isset($_GET['u'])) { echo $head; echo "
|
";
// AVATAR INFO
$avatar = "";
$contactme = "";
if($admin_info[allow_avatars] == "1" & str_replace(" ", "", $owner_info[avatar]) != "") {
$avatar = " "; } // SHOW WHOS ONLINE if($admin_info[show_whosonline] == "1") { if($owner_info[last_activity] >= time()-15*60) { $contactme .= " $profile32 ";
} else {
$contactme .= "$profile33 ";
}
}
// SHOW EMAIL ADDRESS
if($owner_info[show_email] == 1) {
$contactme .= "";
}
// SHOW WEBSITE URL
if($admin_info[field_website] == 3 | (($admin_info[field_website] == 2 | $admin_info[field_website] == 1) & str_replace(" ", "", $owner_info[website]) != "")) {
if(substr($owner_info[website], 0, 7) != "http://") { $website = "http://".$owner_info[website]; } else { $website = $owner_info[website]; }
$contactme .= "";
}
// SHOW PHOTO ALBUM
if($group_info[allow_album] == 1) {
// IF THERE ARE ANY IMAGES IN ALBUM BASE FOLDER
$album_info = mysql_query("SELECT location FROM bhost_uploads WHERE u_id='$owner_info[u_id]' AND location='album' LIMIT 1");
if(mysql_num_rows($album_info) != 0) {
$show_albumlink = 1;
} else {
// IF THERE ARE ANY FOLDERS IN ALBUM BASE FOLDER
$album_folders = mysql_query("SELECT in_album FROM bhost_folders WHERE u_id='$owner_info[u_id]' AND in_album='1' LIMIT 1");
if(mysql_num_rows($album_folders) != 0) {
$show_albumlink = 1;
}
}
// SHOW ALBUM LINK
if($show_albumlink == 1) {
$contactme .= "";
}
}
// SHOW ADD TO FRIENDS LINK
if($is_logged_in == "yes" & $user_info[u_id] != $owner_info[u_id] & $group_info[allow_friends] == 1 & mysql_num_rows(mysql_query("SELECT fr_id, friend_u_id FROM bhost_friends WHERE u_id='$user_info[u_id]' AND friend_u_id='$owner_info[u_id]'")) == 0) {
$contactme .= "";
}
// SHOW SEND MESSAGE
if($is_logged_in == "yes" & $user_info[u_id] != $owner_info[u_id] & $group_info[allow_pms] == 1 & $owner_group_info[allow_pms] == 1) {
$contactme .= "";
}
// SHOW THE AVATAR BOX
if($contactme != "" | $avatar != "") {
echo "$avatar";
if($contactme != "") {
echo "$contactme";
}
echo " ";
}
// SHOW NAME
if($owner_info[show_name] == 1) {
echo " $profile6 ";
if($admin_info[search_fname] == "2") { echo "$owner_info[fname]"; } else { echo "$owner_info[fname]"; }
if($admin_info[search_lname] == "2") { echo " $owner_info[lname]"; } else { echo " $owner_info[lname]"; }
} else {
if($owner_info[display_name] != "") {
echo " $profile6 ";
if($admin_info[search_display_name] == "2") { echo "$owner_info[display_name]"; } else { echo "$owner_info[display_name]"; }
}
}
// SHOW GENDER
if($admin_info[field_gender] == 3 | (($admin_info[field_gender] == 2 | $admin_info[field_gender] == 1) & str_replace(" ", "", $owner_info[gender]) != "")) {
echo " $profile7 "; if($admin_info[search_gender] == "2") { echo "$owner_info[gender]"; } else { echo "$owner_info[gender]"; } } // SHOW BIRTHDAY if($admin_info[field_birthday] == 3 | (($admin_info[field_birthday] == 2 | $admin_info[field_birthday] == 1) & $owner_info[birthday] != "-2019787262")) { $birthday_date = MakeDate($owner_info[birthday]); $age = myAge("$birthday_date[2]-$birthday_date[0]-$birthday_date[1]"); if($age != 0) { echo " $profile8 "; if($admin_info[search_birthday] == "2") { echo "".cdate("$admin_info[signup_format_date]", $owner_info[birthday])." ($profile9 $age)"; } else { echo "$birthday_date[3] $birthday_date[1], $birthday_date[2] ($profile9 $age)"; } } } // SHOW IM SCREENNAME if($admin_info[field_screenname] == 3 | (($admin_info[field_screenname] == 2 | $admin_info[field_screenname] == 1) & str_replace(" ", "", $owner_info[screenname]) != "")) { if($owner_info[screenname_type] == "AIM") { $imlink = "$owner_info[screenname]"; } elseif($owner_info[screenname_type] == "ICQ") { $imlink = "$owner_info[screenname]"; } elseif($owner_info[screenname_type] == "MSN") { $imlink = "$owner_info[screenname]"; } elseif($owner_info[screenname_type] == "Yahoo!") { $imlink = "$owner_info[screenname]"; } else { $imlink = "$owner_info[screenname]"; } echo " $profile39 $imlink ($owner_info[screenname_type])"; } // SHOW LOCATION if(($admin_info[field_city] == 3 | (($admin_info[field_city] == 2 | $admin_info[field_city] == 1) & str_replace(" ", "", $owner_info[city]) != "")) | ($admin_info[field_state] == 3 | (($admin_info[field_state] == 2 | $admin_info[field_state] == 1) & str_replace(" ", "", $owner_info[state]) != "")) | ($admin_info[field_country] == 3 | (($admin_info[field_country] == 2 | $admin_info[field_country] == 1) & str_replace(" ", "", $owner_info[country]) != ""))) { $location = ""; if($owner_info[city] != "") { if($admin_info[search_city] == "2") { $location .= "$owner_info[city]"; } else { $location .= $owner_info[city]; } } if($owner_info[state] != "") { if($location != "") { $location .= ", "; } if($admin_info[search_state] == "2") { $location .= "$owner_info[state]"; } else { $location .= $owner_info[state]; } } if($owner_info[country] != "") { if($location != "") { $location .= ", "; } if($admin_info[search_country] == "2") { $location .= "$owner_info[country]"; } else { $location .= $owner_info[country]; } } if($location != "") { echo " $profile10 $location"; } } // SHOW CUSTOM FIELDS $custom_fields = mysql_query("SHOW COLUMNS FROM bhost_profile FROM `$mysql_database`"); $owner_user_profile = mysql_fetch_assoc(mysql_query("SELECT * FROM bhost_profile WHERE u_id='$owner_info[u_id]'")); while($custom = mysql_fetch_assoc($custom_fields)) { if($custom[Field] != "p_id" & $custom[Field] != "u_id") { $custom_name = str_replace("_", " ", substr($custom[Field], 0, -3)); $custom_required = substr($custom[Field], -3, 2); $custom_search = substr($custom[Field], -1); $custom_field = $custom[Field]; if($custom_required != "_0") { if($custom_required == "_3" | (($custom_required == "_2" | $custom_required == "_1") & str_replace(" ", "", $owner_user_profile[$custom_field]) != "")) { echo " $custom_name "; if($custom_search == "2") { $custom_values = explode(",", $owner_user_profile[$custom_field]); $total_values = count($custom_values); $count = 0; $where = ""; while($count < $total_values) { if($count != 0) { echo ", "; } echo "$custom_values[$count]"; $count++; } } else { echo "$owner_user_profile[$custom_field]"; } } } } } if($admin_info[show_userstats] == 2 | ($admin_info[show_userstats] == 1 & $owner_info[show_userstats] == 1)) { $entries = mysql_num_rows(mysql_query("SELECT author_u_id FROM bhost_entries WHERE author_u_id='$owner_info[u_id]'")); $comments_written = mysql_num_rows(mysql_query("SELECT author_u_id FROM bhost_comments WHERE author_u_id='$owner_info[u_id]'")); $signupdate = cdate("F j, Y", $owner_info[signup_date]); $lastlogin = $owner_info[last_login]; $lastlogin_date = cdate("F j, Y", $owner_info[last_login]); echo " $profile14 $entries $profile11 $profile15 $comments_written $profile12 $profile17 $signupdate "; if($lastlogin != "" AND $lastlogin != 0) { echo " $profile18 $lastlogin_date"; } } $friendlist = ""; $friends = mysql_query("SELECT bhost_friends.u_id, bhost_friends.friend_u_id, bhost_users.username FROM bhost_friends LEFT JOIN bhost_users ON bhost_friends.friend_u_id=bhost_users.u_id WHERE bhost_friends.u_id='$owner_info[u_id]' ORDER BY bhost_users.username"); $totalfriends = mysql_num_rows($friends); $count = 0; while($friend = mysql_fetch_assoc($friends)) { $count++; $friendlist .= "$friend[username]"; if($totalfriends != $count AND $friend[username] != "") { $friendlist .= ", "; } } $friendoflist = ""; $friends = mysql_query("SELECT bhost_friends.u_id, bhost_friends.friend_u_id, bhost_users.username FROM bhost_friends LEFT JOIN bhost_users ON bhost_friends.u_id=bhost_users.u_id WHERE bhost_friends.friend_u_id='$owner_info[u_id]' ORDER BY bhost_users.username"); $totalfriendsof = mysql_num_rows($friends); $count = 0; while($friend = mysql_fetch_assoc($friends)) { $count++; $friendoflist .= "$friend[username]"; if($totalfriendsof != $count AND $friend[username] != "") { $friendoflist .= ", "; } } // SHOW FRIENDLIST if($owner_group_info[allow_friends] == 1) { if($admin_info[show_friendlist] == 2 | ($admin_info[show_friendlist] == 1 & $owner_info[show_friendlist] == 1)) { if($totalfriends != 0) { echo " $profile19 ($totalfriends) $friendlist "; } if($totalfriendsof != 0) { echo " $profile20 ($totalfriendsof) $friendoflist "; } } } // SHOW INTERESTS LIST if($admin_info[field_interests] != 0) { $interests = explode(",", trim($owner_info[interests])); $total_interests = count($interests); if(str_replace(" ", "", $owner_info[interests]) == "") { $total_interests = 0; } $count = 0; $where = ""; $myinterests = ""; while($count < $total_interests) { if($count != 0) { $myinterests .= ", "; } $interest_url = urlencode($interests[$count]); $myinterests .= "$interests[$count]"; $count++; } if($count != 0) { echo " $profile26 ($count) $myinterests "; }} echo " |
$weblogtitle | $total_entries $profile27, $total_comments $profile28 |
| $profile25 $category_info[name] | |
| $weblogs_own_info[description] | $profile16 "; $count = 0; while($member_info = mysql_fetch_assoc($allmembers)) { if($count != 0) { echo ", "; } echo "$member_info[username]"; $count++; } echo " | "; } } } } if($owner_group_info[allow_multiauthor] == "1") { // WEBLOGS ADMINED $weblogs_admin_total = mysql_num_rows($weblogs_admin); while($weblogs_admin_info = mysql_fetch_assoc($weblogs_admin)) { $total++; if($total == 1) { $class = "2"; } else { $class = "3"; } if($weblogs_admin_info[title] != "") { $weblogtitle = $weblogs_admin_info[title]; } else { $weblogtitle = "$profile4"; } $total_entries = mysql_num_rows(mysql_query("SELECT e_id FROM bhost_entries WHERE w_id='$weblogs_admin_info[w_id]'")); $total_comments = mysql_num_rows(mysql_query("SELECT c_id FROM bhost_comments WHERE w_id='$weblogs_admin_info[w_id]'")); echo "
$weblogtitle | $total_entries $profile27, $total_comments $profile28 |
| $profile25 $category_info[name] | |
| $weblogs_admin_info[description] | $profile16 "; $count = 0; while($member_info = mysql_fetch_assoc($allmembers)) { if($count != 0) { echo ", "; } echo "$member_info[username]"; $count++; } echo " | "; } } } // WEBLOGS MEMBERED $weblogs_member_total = mysql_num_rows($weblogs_member); while($weblogs_member_info = mysql_fetch_assoc($weblogs_member)) { $total++; if($total == 1) { $class = "2"; } else { $class = "3"; } if($weblogs_member_info[title] != "") { $weblogtitle = $weblogs_member_info[title]; } else { $weblogtitle = "$profile4"; } $total_entries = mysql_num_rows(mysql_query("SELECT e_id FROM bhost_entries WHERE w_id='$weblogs_member_info[w_id]'")); $total_comments = mysql_num_rows(mysql_query("SELECT c_id FROM bhost_comments WHERE w_id='$weblogs_member_info[w_id]'")); echo "
$weblogtitle | $total_entries $profile27, $total_comments $profile28 |
| $profile25 $category_info[name] | |
| $weblogs_member_info[description] | $profile16 "; $count = 0; while($member_info = mysql_fetch_assoc($allmembers)) { if($count != 0) { echo ", "; } echo "$member_info[username]"; $count++; } echo " | "; } } } } $total_weblogs = $weblogs_own_total + $weblogs_admin_total + $weblogs_member_total; if($total_weblogs == 0) { echo "
| $profile13 | |