include_once "includes/dbConnNew.php";
include_once "includes/loggedOn.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"] ;
$SelectFr = "SELECT Photo,DATE_FORMAT(Last_Logon, '%M %d, %Y') as lastLog,First_Name,Last_Name,ID FROM users where ID = '" . $_REQUEST['fid'] . "' ";
$resultFr = MySQL($dbName,$SelectFr) or die(mysql_error());
if($myrowFr=MySQL_fetch_array($resultFr)){
$First_Name = ucfirst($myrowFr["First_Name"]);
$Last_Name = ucfirst($myrowFr["Last_Name"]);
$lastLog = $myrowFr["lastLog"] ;
}
} else {
$SelectFr = "SELECT Photo,DATE_FORMAT(Last_Logon, '%M %d, %Y') as lastLog,First_Name,Last_Name,ID FROM users where ID = '" . $_SESSION["sessionUserID"] . "' ";
$resultFr = MySQL($dbName,$SelectFr) or die(mysql_error());
if($myrowFr=MySQL_fetch_array($resultFr)){
$First_Name = ucfirst($myrowFr["First_Name"]);
$Last_Name = ucfirst($myrowFr["Last_Name"]);
$lastLog = $myrowFr["lastLog"] ;
}
}
} else {
$SelectFr = "SELECT Photo,DATE_FORMAT(Last_Logon, '%M %d, %Y') as lastLog,First_Name,Last_Name,ID FROM users where ID = '" . $_SESSION["sessionUserID"] . "' ";
$resultFr = MySQL($dbName,$SelectFr) or die(mysql_error());
if($myrowFr=MySQL_fetch_array($resultFr)){
$First_Name = ucfirst($myrowFr["First_Name"]);
$Last_Name = ucfirst($myrowFr["Last_Name"]);
$lastLog = $myrowFr["lastLog"] ;
$myProfile = "y";
}
}
if($conf == "y" && $eid > " "){
$SQL = "select * from user_events where (user_events.deleted = 0) AND ((ID ='$eid'))";
$result = mysql_query($SQL) or die(mysql_error());
if($myrow=MySQL_fetch_array($result)){
$Event_Name = $myrow["Event_Name"] ;
$Event_Date = $myrow["Event_Date"] ;
$Start_Time = $myrow["Start_Time"] ;
$Start_Minute=$myrow["Start_Minute"] ;
$End_Time=$myrow["End_Time"] ;
$End_Minute=$myrow["End_Minute"] ;
$Description = $myrow["Description"] ;
$sqlInsert = " INSERT INTO user_events (Start_Minute,End_Minute,Event_Name, Start_Time ,End_Time ,Description, User_ID, Event_Date)";
$sqlInsert = $sqlInsert . "VALUES ('$Start_Minute','$End_Minute','$Event_Name','$Start_Time','$End_Time','$Description','". $_SESSION["sessionUserID"] . "','$Event_Date')" ;
$result = mysql_query($sqlInsert) or die(mysql_error());
$added = "
The event has been added to your Calendar." ;
}
}
$lastm = $_REQUEST["lastm"];
$lasty = $_REQUEST["lasty"];
//Calendar
if($lastm > " "){
if($lastm == 0){
$lasty = $lasty -1 ;
$lastm = 12 ;
}
if($lastm == 13){
$lasty = $lasty +1 ;
$lastm = 1 ;
}
$thismonth = date("m",mktime(0, 0, 0, $lastm, 1, $lasty));
$thisyear = date("Y",mktime(0, 0, 0, $thismonth, 1,$lasty));
} else {
$date = date("Y-m-d") ;
$thisday = date("d",mktime((date("h")+3), 0, 0, date("m"), date("d"), date("Y")));
//$thisday = date('d');
$thismonth = date('m');
$thisyear = date('Y');
}
$lastDay = strftime("%d", mktime(0, 0, 0, ($thismonth + 1), 0, $thisyear));
$day=date("d", mktime(0, 0, 0, 04, $lastDay, 2008));
$firstDayWeek=date("D", mktime(0, 0, 0, $thismonth, 01, $thisyear));
$lastDayWeek=date("D", mktime(0, 0, 0, $thismonth, $lastDay, $thisyear));
$toMonth =date("F",mktime(0, 0, 0, $thismonth, 1, $thisyear));
$shoMonth=date("M",mktime(0, 0, 0, $thismonth, 1, $thisyear));
$today = $thisday ;
if($today == 01) {$today="1";}
if($today == 02) {$today="2";}
if($today == 03) {$today="3";}
if($today == 04) {$today="4";}
if($today == 05) {$today="5";}
if($today == 06) {$today="6";}
if($today == 07) {$today="7";}
if($today == 08) {$today="8";}
if($today == 09) {$today="9";}
?>
YadaHome | Sharing Center
include 'beforeEndHead.php'; ?>
 |
 |
 |
 |
include "topSignIn.php"; ?> |
 |
include "nav-new.php" ;?>
 |
 |
| |
|
| |
|
|
|
 |
| include "bottomLocalSearch.php"; ?> |
|
|
include "googAna.php"; ?>