include_once "includes/dbConnNew.php";
import_request_variables("gp", "");
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
if($_REQUEST['fid'] > " " ){
$userID = $_REQUEST['fid'];
//MAKE SURE THIS USER IS SUPPOSED TO SEE THIS
$SelectStr = "select * from privacy where (privacy.deleted = 0) AND ((privacy.user_id = '" . $_REQUEST['fid'] . "') and (privacy.friend_id = '" . $_SESSION["sessionUserID"] . "'))";
$result = mysql_query($SelectStr) or die(mysql_error());
if($myrow=MySQL_fetch_array($result)){
$friendok = 'y';
$friendPhoto = $myrow["photo"] ;
$friendBlog = $myrow["blog"] ;
$friendContact = $myrow["contacts"] ;
$friendCook = $myrow["cookbook"] ;
$friendProfile = $myrow["show_profile_page"] ;
$SelectStr = "SELECT DATE_FORMAT(Last_Logon, '%M %d, %Y') as lastLog, DATE_FORMAT(Anniversary, '%M %d, %Y') as Anniv, users.* from users where ID='$fid'";
$result = mysql_query($SelectStr)or die(mysql_error());
if($myrow=MySQL_fetch_array($result)){
$First_Name = ucfirst($myrow["First_Name"]);
$Last_Name = ucfirst($myrow["Last_Name"]);
$lastLog = $myrow["lastLog"] ;
$Anniversary = $myrow["Anniv"] ;
$dob = $myrow["Birth_Date"];
//calculate age
if($dob <> "0000-00-00"){
list($BirthYear,$BirthMonth,$BirthDay) = explode("-", $dob);
$YearDiff = date("Y") - $BirthYear;
$MonthDiff = date("m") - $BirthMonth;
$DayDiff = date("d") - $BirthDay;
if ($MonthDiff < "0"){
$YearDiff --;
} else if ($BirthMonth == date("m") && $DayDiff < "0"){
$YearDiff --;
}
$age = $YearDiff ;
} else {
$age = " " ;
}
if($myrow["Gender"] == "m"){
$sex = "Male" ;
}
if($myrow["Gender"] == "f"){
$sex = "Female" ;
}
}
} else {
header("Location: profileLimited.php?fid=$userID");
exit ;
}
} else {
header("Location: networkFriends.php");
exit ;
}
if($theAction == "postMsg"){
$dateSent=date("Y-m-d") ;
$timeSent = date("H:i") ;
$yada = ereg_replace("'", "´",$_REQUEST["yada"]);
$sqlInsert = "INSERT INTO yadayada (From_ID, To_ID, Date_Sent, Time_Sent, The_Text)" ;
$sqlInsert = $sqlInsert . " VALUES ('" . $_SESSION["sessionUserID"] . "','$fid','$dateSent','$timeSent','$yada')" ;
$result2 = mysql_query($sqlInsert) or die(mysql_error());
$sent = "y" ;
}
?>
Yada Home
include 'beforeEndHead.php'; ?>
 |
 |
 |
 |
include "topSignIn.php"; ?> |
 |
include "nav-new.php" ;?>
 |
 |
| |
|
| |
|
|
$userid = $fid ;
if ($myrow["Photo"] > " ") {
?>
" alt="=$myrow["First_Name"]?> =$myrow["Last_Name"]?>" class="profileImage" />
} else {?>
}?>
include "profileNavLeft.php"; ?>
|
| include "profileNav.php"; ?> |
|
|
| |
if($friendProfile == "Y"){?>
| Age: |
=$age?> |
| Gender: |
=$sex?> |
| Location: |
= ucfirst($myrow["City"]) ?>, =strtoupper($myrow["State_Reside"])?> |
| Relationship: |
=ucfirst($myrow["Marital_Status"])?> |
if($Anniversary > " "){ ?>
| Anniversary: |
=$Anniversary?> |
} ?>
| Occupation: |
=$myrow["Occupation"]?> |
| |
| |
if($myrow["keep_private"] == "No"){?>
| Email: |
" class="profileLinks3">=$myrow["Email"]?> |
| Site: |
" target="_blank" class="profileLinks3">=$myrow["webSite"]?> |
} else {?>
| Private |
|
} ?>
| |
| |
| Schools: |
=$myrow["school1"]?>
=$myrow["school2"]?> |
| Interests: |
$i = 0 ;
$SelectStr2 = "SELECT * FROM interests where (User_ID = '$fid') order by Interest";
$result2 = mysql_query($SelectStr2) or die(mysql_error());
while($myrow2=MySQL_fetch_array($result2)){
if($i == "0"){
$interests = ucfirst($myrow2["Interest"]);
} else {
$interests = $interests . ", ". ucfirst($myrow2["Interest"]);
}
$i ++ ;
}
?>
=$interests?>
|
| Moto: |
=$myrow["Bio"]?> |
if($myrow["Number_Of_Children"] > "0"){ ?>
| Kids: |
=$myrow["Number_Of_Children"]?> |
} ?>
| Pets: |
=$myrow["num_pets"]?> |
| |
|
| |
| =nl2br($myrow["about_me"])?> |
| |
} else {?>
}?>
|
|
$SQL = "SELECT DATE_FORMAT(Date_Sent, '%c/%e/%y') as newDate,TIME_FORMAT(Time_Sent, '%l:%i %p') as newTime, yadayada.ID as MID,yadayada.* from yadayada where (To_ID = '$fid') ORDER BY yadayada.ID DESC";
$resultMsg = mysql_query($SQL) or die(mysql_error());
$msg_rows = mysql_num_rows($resultMsg);
while($myrowMsg=MySQL_fetch_array($resultMsg)){
$MID =$myrowMsg["MID"];
$The_Text =$myrowMsg["The_Text"];
$Date_Sent =$myrowMsg["newDate"];
$Time_Sent =$myrowMsg["newTime"];
$Mark_As_Read =$myrowMsg["Mark_As_Read"];
if($myrowMsg[From_ID] > "0"){
$SQL1 = "SELECT Last_Name,First_Name,ID from users where (ID = $myrowMsg[From_ID] )";
$result1= mysql_query($SQL1) or die(mysql_error());
$User=mysql_fetch_array($result1);
$First_Name =ucfirst($User["First_Name"]);
$Last_Name =substr(ucfirst($User["Last_Name"]),0,1);
$sender = $First_Name." ". $Last_Name .". says" ;
} else {
if($myrowMsg[admin_title] > " "){
$sender = $myrowMsg[admin_title] ;
} else {
$sender = "Tip of the week" ;
}
}
?>
| =$sender?> |
=$Date_Sent?> =$Time_Sent?> |
| =nl2br($The_Text)?>
|
| |
}?>
if($msg_rows == "0"){?>
| send a Yada Yada to =$myrow["First_Name"]?> =$myrow["Last_Name"]?> |
}?>
|
|
|
  |
|
|
 |
| include "bottomLocalSearch.php"; ?> |
|
|
include "googAna.php"; ?>