0) { #@mysql_query("UPDATE ppl_online SET user_id='" . $_SESSION['ID'] . "', activity=now(), member='y' WHERE session_id='".session_id()."'"); @mysql_query("INSERT INTO ppl_online (session_id, activity, user_id, member, ip_address, refurl, user_agent) VALUES ('" . session_id() . "', now(), '" . $_SESSION['ID'] . "', 'y', '{$_SERVER['REMOTE_ADDR']}', '{$_SERVER['HTTP_REFERER']}', '{$_SERVER['HTTP_USER_AGENT']}')"); $memberaccessid = $_SESSION['ID']; } else { $memberaccessid = 0; } $limit_time = time() - 600; // 5 Minute time out. 60 * 5 = 300 @mysql_query("DELETE FROM ppl_online WHERE UNIX_TIMESTAMP(activity) < " . (time() - 3600)) or die (mysql_error()); #$sql = mysql_query("SELECT * FROM ppl_online WHERE UNIX_TIMESTAMP(activity) >= $limit_time AND member='n' GROUP BY ip_address") or die (mysql_error()); #$visits = mysql_num_rows($sql); $fakehour = date("G"); if ($fakehour == 4 OR $fakehour == 5 OR $fakehour == 6) { $visits = rand(3020, 3120); } elseif ($fakehour == 7 OR $fakehour == 8 or $fakehour == 9) { $visits = rand(3120, 3220); } elseif ($fakehour == 10 OR $fakehour == 11 or $fakehour == 12 OR $fakehour == 13) { $visits = rand(3220, 3340); } elseif ($fakehour == 14 OR $fakehour == 15 or $fakehour == 16 OR $fakehour == 17) { $visits = rand(3420, 3540); } elseif ($fakehour == 18 OR $fakehour == 19 or $fakehour == 20 OR $fakehour == 21) { $visits = rand(3320, 3540); } elseif ($fakehour == 22 OR $fakehour == 23 OR $fakehour == 24 OR $fakehour == 0) { $visits = rand(3520, 1740); } elseif ($fakehour == 1 OR $fakehour == 2 OR $fakehour == 3) { $visits = rand(1620, 1840); } $sql = mysql_query("SELECT user_id AS id FROM ppl_online UNION SELECT id FROM realchat WHERE ID > 0") or die (mysql_error()); $membervisits = mysql_num_rows($sql); #$membervisits = rand(25, 41); #$sql_member = mysql_query("SELECT * FROM realchat5 WHERE ID > 0") or die (mysql_error()); #$usercount = mysql_num_rows($sql_member); $usercount = file_get_contents($FILEPATH . "/posts/static/chatcount5.txt"); #$usercount = 17; #if ($REMOTE_ADDR == gethostbyaddr($REMOTE_ADDR)) { # $subject = $sitename . ': Unable to resolve (' . $REMOTE_ADDR . ')'; # $note = 'IP: ' . $REMOTE_ADDR . "\n\r"; # $note .= 'Warning, a visitor to the site is connecting with an IP address that cannot be resolved. Normally this is a spammer or someone trying to get by the system but not always.' . "\n\r"; # mail($sitemail,$subject,$note,"From: " . $sitemail . "\r\n" . "Reply-To: " . $sitemail . "\r\n" . "X-Mailer: PHP/" . phpversion()); #} // if (isbanned($REMOTE_ADDR) or isbanned(gethostbyaddr($REMOTE_ADDR))) { if ( isbanned($REMOTE_ADDR) ) { $subject = $sitename . ': Attempted Access from (' . gethostbyaddr($REMOTE_ADDR) . ')'; $body = 'IP Address: ' . $REMOTE_ADDR . "\r\n\r\n"; $body .= 'Which resolved as: ' . gethostbyaddr($REMOTE_ADDR) . "\r\n\r\n"; #mail($sitemail,$subject,$note,"From: " . $sitemail . "\r\n" . "Reply-To: " . $sitemail . "\r\n" . "X-Mailer: PHP/" . phpversion()); sock_mail($sitemail,$subject,$body,"",$sitemail); header("Location: http://www.nsa.gov"); } ispersistent(); #2010-08-19 Daniel Saint James #Add code to set latitude and longitude for geolocating if (!isset($_SESSION['latitude'])) { // $geoip = $_SERVER['REMOTE_ADDR']; // $location = new IPGeolocation($geoip); // $_SESSION['latitude'] = (string)$location->getLatitude(); // $_SESSION['longitude'] = (string)$location->getLongitude(); } function adminmsg($fid) { global $db; $fsql = "SELECT admin FROM User_Account WHERE ID = " . $fid; $fresult = mysql_query($fsql,$db); $frow = mysql_fetch_array($fresult); if ($frow[0] <> '') { return true; } else { return false; } } function ccbill_status($fid,$fresponse = null) { global $db; if ($fresponse == "bool") { $fsql = "SELECT * FROM subscriber_log WHERE user_account = " . $fid . " AND TO_DAYS(NOW()) - TO_DAYS(date_stamp) <= 7 ORDER BY date_stamp DESC LIMIT 1"; $fresult = mysql_query($fsql,$db); $frow = mysql_fetch_array($fresult); if ($frow[0] <> '') { return true; } else { return false; } } else { $fsql = "SELECT * FROM subscriber_log WHERE user_account = " . $fid . " AND TO_DAYS(NOW()) - TO_DAYS(date_stamp) <= 7 ORDER BY date_stamp DESC LIMIT 1"; $fresult = mysql_query($fsql,$db); $frow = mysql_fetch_array($fresult); if ($frow[0] <> '') { $fsql2 = 'SELECT User_Class FROM User_Account WHERE ID = ' . $fid; $fresult2 = mysql_query($fsql2,$db); $frow2 = mysql_fetch_array($fresult2); if ($frow2[0] > 2) { echo '' . $frow['ccbill_type'] . ' PLUS Member'; } else { echo '' . $frow['ccbill_type'] . ' Member'; } echo '
'; } else { # no entry was found in the database, we now set their member type based on their user class $fuserclass = getlabel($fid,'User_Account','User_Class'); if ($fuserclass < 3) { echo 'Bronze Member
'; } else { echo 'Silver Member
'; } } } } function getonlinemembers($fcount = '9') { global $db, $domain; $fsql = "SELECT user_id AS User_Account FROM ppl_online UNION SELECT id AS User_Account FROM realchat WHERE ID > 0 LIMIT " . $fcount; $fresult = mysql_query($fsql,$db); echo '
' . "\n"; echo ' ' . "\n"; echo '
'; } function getnearbymembers($fcount = '9') { global $db, $domain; $fsql = "SELECT ID FROM User_Account WHERE Display = 1 AND Visible = 1 AND Country <> '' AND City <> '' AND Groups <> '' AND First_Name <> '' ORDER BY ID DESC LIMIT " . $fcount; $fsql = "SELECT a.ID, SQRT(((" . $_SESSION['latitude'] . " - a.latitude) * (" . $_SESSION['latitude'] . " - a.latitude)) + ((" . $_SESSION['longitude'] . " - a.longitude) * (" . $_SESSION['longitude'] . " - a.longitude))) * 54 AS Distance FROM User_Account a WHERE a.Country <> '' AND a.City <> '' AND a.First_Name <> '' AND a.Groups <> '' AND a.Display = 'True' AND a.Visible = 'True' AND TO_DAYS(NOW()) - TO_DAYS(a.Last_Logon) <= 730 AND a.Birthdate > '1911-08-19' AND a.Birthdate < '1992-08-19' AND a.Groups LIKE '%1%' AND a.latitude BETWEEN " . $_SESSION['latitude'] . " - 15 AND " . $_SESSION['latitude'] . " + 15 AND a.longitude BETWEEN " . $_SESSION['longitude'] . " - 15 AND " . $_SESSION['longitude'] . " + 15 ORDER BY Distance LIMIT " . $fcount; $fresult = mysql_query($fsql,$db); echo '
' . "\n"; echo ' ' . "\n"; echo '
' . "\n"; } function getrecentmembers($fcount = '9') { global $db, $domain; $fsql = "SELECT ID FROM User_Account WHERE Display = 1 AND Visible = 1 AND Country <> '' AND City <> '' AND Groups <> '' AND First_Name <> '' ORDER BY ID DESC LIMIT " . $fcount; $fresult = mysql_query($fsql,$db); echo '
' . "\n"; echo ' ' . "\n"; echo '
' . "\n"; } function gethighestratedmembers($fcount = '9') { global $db, $domain; $fsql = "SELECT * FROM ratings_calculated WHERE votes > " . date("j")/2 . " ORDER BY rating DESC LIMIT " . $fcount; #$fsql = "SELECT * FROM ratings_calculated WHERE votes > 1 ORDER BY rating DESC LIMIT " . $fcount; #$fsql = "SELECT * FROM ratings_calculated WHERE votes > 28 ORDER BY rating DESC LIMIT " . $fcount; # DAS 2013-07-03 Bayesian calc based on view (sproc) $fsql = "SELECT user_account, ((avg_num_votes * avg_rating) + (this_num_votes * this_rating)) / (avg_num_votes + this_num_votes) as real_rating FROM `urnawm`.`ratings_bayesian` ORDER BY real_rating DESC LIMIT " . $fcount; $fresult = mysql_query($fsql,$db); while ($frs = mysql_fetch_row($fresult)) { $fformatname = formatname($frs[0], 10); echo '
' . "\n"; echo ' ' . "\n"; getdbimage($frs[0],'user_account','','_s',$fformatname); echo '
' . "\n"; echo '

' . $fformatname . '
' . "\n"; echo ' ' . round($frs[1],2) . '

' . "\n"; echo '
' . "\n"; echo '
' . "\n"; echo '
' . "\n"; } # now we iterate through the groups and select the highest rated member in each group } function getrecentupdates($fcount = '9') { global $db, $domain; $fsql = "SELECT ID FROM User_Account WHERE Display = 1 AND Visible = 1 AND Country <> '' AND City <> '' AND Groups <> '' AND First_Name <> '' ORDER BY Modified DESC LIMIT " . $fcount; $fresult = mysql_query($fsql,$db); echo '
' . "\n"; echo ' ' . "\n"; echo '
' . "\n"; } function getmostrecent($fgroupid,$fgroupname) { $fdb = mysql_connect("modelts-web01.cavecreek.net","profile","!?bate!?"); $fresult = mysql_query("SELECT ID FROM User_Account WHERE specialgroups LIKE '%$fgroupid%' AND Display = 1 AND Visible = 1 ORDER BY $fgroupname DESC LIMIT 1",$fdb); $frow = mysql_fetch_array($fresult); showprofile($frow[0]); } function getmostrecenttiny($fgroupid,$fgroupname,$fsize = '_s') { global $db; $fresult = mysql_query("SELECT ID,First_Name,Middle_Name,Last_Name,Description FROM User_Account WHERE specialgroups LIKE '%$fgroupid%' AND Display = 1 AND Visible = 1 ORDER BY $fgroupname DESC LIMIT 1",$db); $frow = mysql_fetch_array($fresult); echo '' . "\n"; echo '

' . getlabel($fgroupid,'specialgroups','title') . '

' . "\n"; echo '' . $frow['First_Name'] . ' ' . $frow['Middle_Name'] . ' ' . $frow['Last_Name'] . '
' . "\n"; echo '

' . substr($frow['Description'],0,200); echo '... [more]

' . "\n"; } function showprofile($fid) { global $db, $path, $domain; $fshowprofileresult = mysql_query("SELECT *,Month(Birthdate) as BMonth, DayOfMonth(Birthdate) as BDay FROM User_Account WHERE ID = " . $fid,$db); $fshowprofilerow = mysql_fetch_array($fshowprofileresult); # format the users dB name for use in the profile $ffullname = formatname($fshowprofilerow['ID']); if ($_SESSION['User_Class'] > 2 OR $_SESSION['Adult'] == 'Member' OR $_SESSION['Enhanced'] == 'Member') { # if a user isn't a registered member, they see a little less info, smaller images, etc. echo '
' . "\n"; /* Image cell goes here */ echo '
' . "\n"; echo ' '; if (getdbimage($fshowprofilerow['ID'],'user_account','','_thumb','Full profile for ' . $ffullname)) { } else { if (getdbimage($fshowprofilerow["ID"],'user_account/provisional','','_thumb','Full profile for ' . $ffullname)) { } } echo '' . "\n"; echo '
' . "\n"; echo '
' . "\n"; echo ' ' . "\n"; echo '
' . "\n"; echo '
' . "\n"; } else { # if a user isn't a registered member, they see a little less info, smaller images, etc. echo '
' . "\n"; /* Image cell goes here */ echo '
' . "\n"; echo ' ' . "\n"; echo ' '; if (getdbimage($fshowprofilerow["ID"],'user_account','','_s','Full profile for ' . $ffullname)) { } else { # check to see if they have a provisional photo if (getdbimage($fshowprofilerow["ID"],'user_account/provisional','','_s','Full profile for ' . $ffullname)) { # show image } } echo "\n"; echo '
' . "\n"; echo '
' . "\n"; echo ' ' . "\n"; echo '
' . "\n"; echo '
' . "\n"; } } function showplace($fid,$Country = null, $State = null, $City = null) { global $domain; $path = "/var/www/virtual/urnotalone"; $fshowplacedb = mysql_connect("modelts-db01.cavecreek.net","profile","!?bate!?"); $fshowplaceresult = mysql_query("SELECT * FROM Location WHERE ID = " . $fid,$fshowplacedb); $fshowplacerow = mysql_fetch_array($fshowplaceresult); echo '

' . $fshowplacerow["Location"] . ''; if ($_SESSION['User_Class'] == '20') { echo '  [edit]'; } echo '

' . "\n"; if ($fshowplacerow["eMail"]==='True') { echo '
' . "\n"; } if (strlen(trim($fshowplacerow['Headline'])) > 1) { echo '' . $fshowplacerow['Headline'] . '
' . "\n"; } #mapquestlink(getlabel($fshowplacerow["Country"],'Country','Abbr'),$fshowplacerow["State"],$fshowplacerow["City"],$fshowplacerow["Address1"],$fshowplacerow["Zip"]); mapquestlink($fshowplacerow['Country'],$fshowplacerow['State'],$fshowplacerow['City'],$fshowplacerow['Address1'],$fshowplacerow['Zip']); echo '
' . "\n"; if (trim($fshowplacerow["WebURL"])<>"") { $pos = strpos($fshowplacerow["WebURL"],"http://"); echo 'Website' . "\n"; } echo '
' . "\n"; if ($fshowplacerow['Address1'] <> '') { echo $fshowplacerow['Address1'] . '
' . "\n"; } if ($fshowplacerow["Address2"]<>'') { echo $fshowplacerow["Address2"] . '
' . "\n"; } listlocation($fshowplacerow['City'],$fshowplacerow['State'],$fshowplacerow['Country']); if ($fshowplacerow["Phone"]<>'') { echo '
' . $fshowplacerow["Phone"] . '
' . "\n"; } } ?> URNotAlone (URNA) - The Number One Transgender Community on the Internet
 

Main

Articles

Jump to

About

Since 1995 (19 years!), URNotAlone (URNA has provided FREE services to the Transgendered Community.

Services

We provide ALL of our basic services to the public for FREE. Posting, browsing and responding to profiles is FREE. Even our Transgender Chat Room (TGChat) is FREE

Community

The Transgendered Community is composed of many different people, here for many different reasons. Crossdressers, Transvestites, Male to Female (MtoF) and Female to Male (FtoM), intersexed or genderqueer. Basically, if your gender isn't easily defined, you might just find a home here.

Mission

To provide a community where Trangendered People, their Friends, Family and Admirers can find resources and meet others like themselves.

To tell people searching for their path: You Are Not Alone!

Articles

Recent Members

0) { list ($id, $thumb) = explode('\?',$id); } if (strlen($thumb) > 4) { $error = urldecode($thumb); } if (is_numeric($id)) { $sql = "SELECT *,Month(Birthdate) as BMonth, DayOfMonth(Birthdate) as BDay FROM User_Account WHERE ID = $id"; } else { $sql = "SELECT *,Month(Birthdate) as BMonth, DayOfMonth(Birthdate) as BDay FROM User_Account WHERE handle = '$id'"; } $result = mysql_query($sql,$db); $row = mysql_fetch_array($result); $ONLINEFILE = $ONLINEFILE . $row["ID"]; $PROVISIONAL = $PROVISIONAL . $row["ID"]; $ONLINEBANNER = $ONLINEBANNER . $row["ID"]; if ($row['Visible'] == 'True' and $row['First_Name'] <> '' and $row['Country'] <> '' and $row['City'] <> '' and $row['User_Class'] > 1) { # is the person viewing this profile logged on as a member? We add an entry to the database to track which profiles they've viewed log_visit(); # create a string for the users full name $fullname = formatname($row['ID']); $metadescription = substr(strip_tags($row['Description']),0,200); # create the description from the users profile if (is_numeric($row['City'])) { $metalocation = getlabel($row['City'],'City','','False') . ', '; } else { $metalocation = properCase($row['City']) . ', '; } if ( is_numeric($row['State']) ) { $metalocation .= getlabel($row['State'],'State','','False'); } else { $metalocation .= $row['State']; } if ( is_numeric($row['Country']) ) { $metalocation .= ' (' . getlabel($row['Country'],'Country','','False') . ')'; } else { $metalocation .= ' (' . $row['Country'] . ')'; } # describe this person if ($row['Orientation'] <> '') { $describe = strip_tags(getlabel($row['Orientation'],'Orientation','','False')); } $arrgroups = explode (",",$row['Groups']); if (in_array ('1',$arrgroups)) { if ($row['Category']<>'') { $describe .= ' ' . strip_tags(getlabel($row['Category'],'Category',''.'False')) . ' '; } } $memberdescription = ''; if ($row['Gender'] <> '') { $memberdescription .= getlabel($row["Gender"],'Gender','','False') . ' '; $describe .= ' (' . strip_tags(getlabel($row["Gender"],'Gender','','False')) . ') ' . "\n"; } if ($row['Orientation'] <> '') { $memberdescription .= getlabel($row['Orientation'],'Orientation','','False') . ' '; } if ($row['Category'] <> '') { $memberdescription .= getlabel($row['Category'],'Category','','False') . ' '; } If ($row['Groups'] <> '' AND strlen($row['Groups']) > 3) { # $memberdescription .= multilist2($row['Groups'],'Groups'); } $memberdescription = strip_tags($memberdescription); $pagetitle = $sitename . ' Profile for ' . $fullname . ', ' . $memberdescription . ' in ' . $metalocation; $pagedescription = $pagetitle; $pagekeywords = str_replace(' ,',',',str_replace(',,',',',str_replace(')','',str_replace('(','',str_replace(' ',', ',$fullname . ', ' . $describe . ' ' . $metalocation))))); include("includes/header.php"); if ($row['Visible'] == 'True') { echo '
' . "\n"; echo '

'. $fullname; if ($_SESSION['User_Class'] == 20) { echo ' [edit]'; } echo '

' . "\n"; # we look to see if there is an active status message, if there is, we use that. $statussql = 'SELECT * FROM statusupdate WHERE user_account = ' . $row['ID'] . ' AND active = True AND statusupdate <> "Update your status..." ORDER BY posted DESC'; $statusresult = mysql_query($statussql,$db); $statusrow = mysql_fetch_array($statusresult); if ($statusrow['statusupdate'] <> '') { $statusupdated = strtotime($statusrow[2]); $et = elapsedtime(date("U") - $statusupdated); echo '

"' . trim(stripslashes($statusrow['statusupdate'])) . '"

' . "\n"; } if (!isset($_SESSION['myUser_Class'])) { ?>
' . "\n"; # echo '
' . "\n"; echo '' . "\n"; echo '
' . "\n"; echo '
' . "\n"; # Added by Dan 2008-06-23 include("includes/profile-navigation.php"); echo '
' . "\n"; echo '
' . "\n"; if ($block == 0 OR $_SESSION['User_Class'] > 10) { echo '

Profile Photos

' . "\n"; echo '
' . "\n"; # Profile pics $showgalleries = mysql_query("SELECT * FROM Gallery WHERE Display = 'True' AND Visible = 'True' AND Count > 3 AND User_Account = " . $row['ID'],$db); $showgalleryrow = mysql_fetch_array($showgalleries); $arrgroups = explode (',',$row['specialgroups']); echo ' ' . "\n"; $alt = $fullname . ' - photo'; if (getdbimage($row['ID'],'user_account','','_thumb',$fullname)) { # if image exists in file system or database, we write it out # this puts an invisible image on the page for content linking sites like facebook echo '' . "\n"; } else { echo '
This member has not uploaded a photo that meets our requirements for Silver Member status
' . "\n"; echo '
' . "\n"; if (getdbimage($row['ID'],'user_account/provisional','','_thumb',$fullname)) { # if image exists in file system or database, we write it out # this puts an invisible image on the page for content linking sites like facebook echo '' . "\n"; } } echo '' . "\n"; $rating = 0; $votes = 0; $rsql = 'SELECT * FROM ratings_calculated WHERE user_account = ' . $row['ID']; $rsql = "SELECT ((avg_num_votes * avg_rating) + (this_num_votes * this_rating)) / (avg_num_votes + this_num_votes) as real_rating, this_num_votes FROM `urnawm`.`ratings_bayesian` WHERE user_account = " . $row['ID']; $rresult = mysql_query($rsql,$db); $rrow = mysql_fetch_array($rresult); if ($rrow['real_rating'] > $rating) { $rating = $rrow['real_rating']; } if ($rrow['this_num_votes'] > $votes) { $votes = $rrow['this_num_votes']; } # Rate Member if ($row['User_Class'] > 2 AND $row['exclude_rating'] == 'False') { echo '
' . "\n"; echo '
' . "\n"; echo '
' . "\n"; echo '
' . "\n"; echo ' ' . "\n"; echo '
' . "\n"; echo '
' . "\n"; echo '
' . "\n"; echo '
Speed Rate
'; echo '
' . "\n"; } echo '
' . "\n"; $pviewcount = 0; $pviewsql = 'SELECT * FROM log_visit WHERE User_Account = ' . $row['ID']; $pviewsql = mysql_query($pviewsql,$db) or die (mysql_error()); $pviewcount = mysql_num_rows($pviewsql); echo '
' . "\n"; if ($row['ID'] == $_SESSION['ID']) { echo '' . "\n"; echo 'You have ' . $pviewcount . ' views!
'; } else { echo 'Viewed ' . $pviewcount . ' times!
'; } echo '
' . "\n"; echo '' . "\n\r"; # New Friends News Updates if ($row['User_Class'] > 2) { # we are going to collect a lot of different data and feed it into an array that we then sort by date $limit = 6; $feedrow = 0; # new event posts by user $sql = "SELECT ID,Event,Start_Date,User_Account FROM Event WHERE User_Account = " . $row['ID'] . " ORDER BY Start_Date DESC LIMIT " . $limit; $result = mysql_query($sql,$db); while ($rs = mysql_fetch_row($result)) { $feedupdated = strtotime($rs[2]); $et = elapsedtime(date("U") - $feedupdated); $feedowner = $rs[3]; $feedcontent = '
'; $feedcontent .= 'posted an event entitled ' . $rs[1] . '
' . $et . '
'; $feedcontent .= '
'; $feedinformation[$feedrow]["updated"] = $feedupdated; #Place the Video count into the array $feedinformation[$feedrow]["owner"] = $feedowner; #place the Image count into the array $feedinformation[$feedrow]["content"] = $feedcontent; #place the Image name into the array $feedrow++; } # new article posts by user $sql = "SELECT ID,Article,Date,User FROM Article WHERE User = " . $row['ID'] . " ORDER BY Date DESC LIMIT " . $limit; $result = mysql_query($sql,$db); while ($rs = mysql_fetch_row($result)) { $feedupdated = strtotime($rs[2]); $et = elapsedtime(date("U") - $feedupdated); $feedowner = $rs[3]; $feedcontent = '
'; $feedcontent .= 'posted an article entitled ' . $rs[1] . '
' . $et . '
'; $feedcontent .= '
'; $feedinformation[$feedrow]["updated"] = $feedupdated; #Place the Video count into the array $feedinformation[$feedrow]["owner"] = $feedowner; #place the Image count into the array $feedinformation[$feedrow]["content"] = $feedcontent; #place the Image name into the array $feedrow++; } # new guestbook posts by user $sql = "SELECT ID,parent_ID,posted,user FROM comment WHERE user = " . $row['ID'] . " AND comment_type = 1 ORDER BY posted DESC LIMIT " . $limit; $result = mysql_query($sql,$db); while ($rs = mysql_fetch_row($result)) { $feedupdated = strtotime($rs[2]); $et = elapsedtime(date("U") - $feedupdated); $feedowner = $rs[3]; $feedcontent = ''; $feedinformation[$feedrow]["updated"] = $feedupdated; #Place the Video count into the array $feedinformation[$feedrow]["owner"] = $feedowner; #place the Image count into the array $feedinformation[$feedrow]["content"] = $feedcontent; #place the Image name into the array $feedrow++; } # now journal posts by people this person lists as a friend $sql = 'SELECT user,posted,title,ID FROM comment WHERE user = ' . $row['ID'] . " AND comment_type = 4 AND comment_access = 1 and parent_id IS NULL ORDER BY posted DESC LIMIT " . $limit; $result = mysql_query($sql,$db); while ($rs = mysql_fetch_row($result)) { $feedupdated = strtotime($rs[1]); $et = elapsedtime(date("U") - $feedupdated); $feedowner = $rs[0]; $feedcontent = ''; $feedinformation[$feedrow]["updated"] = $feedupdated; #Place the Video count into the array $feedinformation[$feedrow]["owner"] = $feedowner; #place the Image count into the array $feedinformation[$feedrow]["content"] = $feedcontent; #place the Image name into the array $feedrow++; } #video updates $sql = 'SELECT user,posted,title,ID FROM comment WHERE user = ' . $row['ID'] . " AND comment_type = 5 AND comment_access = 1 and parent_id IS NULL ORDER BY posted DESC LIMIT " . $limit; $result = mysql_query($sql,$db); while ($rs = mysql_fetch_row($result)) { $feedupdated = strtotime($rs[1]); $et = elapsedtime(date("U") - $feedupdated); $feedowner = $rs[0]; $gallerytitle = $rs[2]; if ($gallerytitle == '') { $gallerytitle = 'Untitled'; } $feedcontent = '
'; $feedcontent .= 'added the video "' . $gallerytitle . '"
' . $et . '
'; $feedcontent .= '
'; $feedinformation[$feedrow]["updated"] = $feedupdated; #Place the Video count into the array $feedinformation[$feedrow]["owner"] = $feedowner; #place the Image count into the array $feedinformation[$feedrow]["content"] = $feedcontent; #place the Image name into the array $feedrow++; } #gallery updates $sql ="SELECT User_Account,Modified,Gallery,ID FROM Gallery WHERE User_Account = " . $row['ID'] . " and Count > 3 ORDER BY Modified DESC LIMIT " . $limit; $result = mysql_query($sql,$db); while ($rs = mysql_fetch_row($result)) { $feedupdated = strtotime($rs[1]); $et = elapsedtime(date("U") - $feedupdated); $feedowner = $rs[0]; $gallerytitle = $rs[2]; if ($gallerytitle == '') { $gallerytitle = 'Untitled'; } $feedcontent = '
'; $feedcontent .= 'modified the gallery "' . $gallerytitle . '"
' . $et . '
'; $feedcontent .= '
'; $feedinformation[$feedrow]["updated"] = $feedupdated; #Place the Video count into the array $feedinformation[$feedrow]["owner"] = $feedowner; #place the Image count into the array $feedinformation[$feedrow]["content"] = $feedcontent; #place the Image name into the array $feedrow++; } # now we sort the array based on time, newest to oldest if (count($feedinformation) > 0) { $feedinformation = record_sort($feedinformation,"updated",true); echo ''; } else { # if this is a disabled profile, we state that if ($row['User_Class'] == 1) { $AdminLink = True; $pagetitle = 'Disabled Profile'; include ("includes/header.php"); echo '

Disabled Profile

' . "\n"; echo 'This profile has been disabled for violations of our Terms and Conditions.' . "\n"; } else if ($row['ID'] == '') { $AdminLink = False; $pagetitle = 'Invalid Profile Request'; include ("includes/header.php"); echo '

Invalid Profile Request

' . "\n"; echo '
'. "\n"; echo '

The profile that you requested does not exist in the system or if has been removed.

' . "\n"; echo '
' . "\n"; echo '

Perhaps you mispelled it? You can use the links below to search for other profiles containing the word "' . $row["ID"] . '".

' . "\n"; echo '' . "\n"; echo '
' . "\n"; echo '

 

' . "\n"; echo '

You can also search for members by location HERE, or by following any of the links below.

' . "\n"; echo '' . "\n"; echo '
' . "\n"; echo '

 

' . "\n"; } else if ($row['Visible'] == 'False') { $AdminLink = True; $Title = 'Disabled Profile'; include ("includes/header.php"); echo '

Disabled Profile

' . "\n"; echo 'The owner of this profile has temporarily disabled it.

' . "\n"; } else if ($row['User_Class'] == 0) { $AdminLink = True; $Title = 'In Loving Memory'; include ("includes/header.php"); include ("404-deceased.php"); } else { $AdminLink = True; $Title = 'Incomplete Profile'; include ("includes/header.php"); echo '

Incomplete Profile

' . "\n"; echo 'The profile has either not been approved yet,
or the member has not completed all of the required information.

' . "\n"; } if ($_SESSION['User_Class'] == 20 and $AdminLink) { echo ' [edit]' . "\n"; } echo '

' . "\n"; } include("includes/footer.php"); ?>