user_exists($user_greet); if($user_exists == "notvalid"){ header("Location: /"); } $user_datass = $sanformation->user_details($user_greet_main); $user_idm = $user_datass[user_id]; $user_data = $sanformation->user_details_by_usr($user_greet); $user_id = $user_data[user_id]; if($user_id == '0'){ header("Location: /users/login.html"); }else{ $user_id_profile = $user_id; $user_name = $user_data[user_name]; $pic = $user_data[pic]; $circles = $user_data[circles]; $in_circle = user_circles($user_id_profile,$user_idm); if($user_id_profile == $user_idm){ $in_circle = 1; } //echo "$user_id_profile,$user_idm,$in_circle"; $user_email = $user_data[user_email]; $user_gender = $user_data[user_gender]; $user_country = $user_data[user_country]; $user_language = $user_data[user_language]; $user_meritial_status = $user_data[user_meritial_status]; $user_birthday = $user_data[user_birthday]; $user_birth_year = $user_data[user_birth_year]; $user_anniversary = $user_data[user_anniversary]; $user_anniversary_year = $user_data[user_anniversary_year]; $user_signup_date = $user_data[user_signup_date]; $user_last_login_date = $user_data[user_last_login_date]; $user_card_sent = $user_data[user_card_sent]; $birth_day = date("d", $user_birth_year); $birth_month = date("m", $user_birth_year); $birth_year = date("Y", $user_birth_year); $user_signup_date_disp = date("F j, Y, g:i a", $user_signup_date); $user_last_login_date_disp = date("F j, Y, g:i a", $user_last_login_date); } //======================================= FRIENDS ===================================================== $in_circle_request = user_circles_request($user_idm,$user_id); //$in_circle = user_circles($user_idm,$user_id); //=========================================================== navigation part =========================== $pr = $_REQUEST['pr']; if(!$pr) $pr = 10; $wn = $_REQUEST['page']; if(!$wn) $wn = 1; $w = (($wn*$pr)-$pr); $st = $w; if((!$st || ($st < 0))) $st = 0; $slr = round($st/$pr, 0)+2; $next = $st+$pr; if($st <= $pr) { $back = 0; }else{ $back = $st-$pr; } //======================================================================================================== function mnth($month){ if($month=='') {$month1 = "MM";} if($month==0) {$month1 = "MM";} if($month==1) {$month1 = "January";} if($month==2) {$month1 = "February";} if($month==3) {$month1 = "March";} if($month==4) {$month1 = "April";} if($month==5) {$month1 = "May";} if($month==6) {$month1 = "June";} if($month==7) {$month1 = "July";} if($month==8) {$month1 = "August";} if($month==9) {$month1 = "September";} if($month==10) {$month1 = "October";} if($month==11) {$month1 = "November";} if($month==12) {$month1 = "December";} return $month1; } include 'opendb.php'; ?> <?=$user_name;?>'s profile - Greet2K.com
Text

All Posts

'; if($fav_ecards != '0'){ echo wall_ecard($wall_id,$fav_ecards,$user_id); } elseif($fav_poems != '0'){ echo wall_poem($wall_id,$fav_poems,$user_id); } elseif($fav_quotes != '0'){ echo wall_quote($wall_id,$fav_quotes,$user_id); } elseif($fav_sms != '0'){ echo wall_sms($wall_id,$fav_sms,$user_id); } elseif($description != ''){ echo wall_text($wall_id,$wall_id,$user_id,$uids); } elseif($photo_name != ''){ echo wall_photo($wall_id,$photo_name,$user_id,$uids); } elseif($video_code != ''){ echo wall_video($wall_id,$wall_id,$user_id,$uids); } echo '
'; } ?> $pr){ ?>
Shown - of
    $y"; }else{ $st = $st+$pr; if($st == $w){ $slrs[] = "
  • $y
  • "; }else{ $slrs[] = "
  • $y
  • "; }}} echo $slrs[$slr-5].$slrs[$slr-4].$slrs[$slr-3].$slrs[$slr-2].$slrs[$slr-1].$slrs[$slr].$slrs[$slr+1].$slrs[$slr+2].$slrs[$slr+3].$slrs[$slr+4].$slrs[$slr+5]; if($next < $res){ $nxt = $next; }else{ $nxt = $st; } ?>