user_details($user_greet_main); $username_sgm = $user_datass[username]; $user_idm = $user_datass[user_id]; $user_data = $sanformation->user_details_by_usr($user_greet); $user_id = $user_data[user_id]; $pro_id = $user_id; if($user_id == '0'){ header("Location: /users/login.html"); }else{ $user_id_profile = $user_id; $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_name = $user_data[user_name]; $username = $user_data[username]; $user_urls = "http://www.greet2k.com/users/$username/"; $pic = $user_data[pic]; $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); } //=========================================================== 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'; $dbh=mysql_connect ("localhost", "greet2_shanti", "shanti123") or die('Cannot connect to the database because: ' . mysql_error()); mysql_select_db ("greet2_users"); $sql_wall = "SELECT * FROM `user_wall` WHERE `wall_id` = '$wid'"; $res_wall = mysql_query($sql_wall) or die('Error, Select query failed of upcoming event list :: ' . mysql_error()); $row_wall = mysql_fetch_array($res_wall); $wall_chk_id = $row_wall['wall_id']; if($wall_chk_id != $wid){ header("Location: http://www.greet2k.com/users/"); }else{ $shared_liked_id = $row_wall['shared_liked_id']; if($shared_liked_id == 0){ $id_for_com = $wid; }else{ $id_for_com = $shared_liked_id; } $sql_walls = "SELECT * FROM `user_wall` WHERE `wall_id` = '$id_for_com'"; $res_walls = mysql_query($sql_walls) or die('Error, Select query failed of upcoming event list :: ' . mysql_error()); $row_walls = mysql_fetch_array($res_walls); $sxa = $row_walls['user_id']; $sxb = $row_walls['friends_id']; $liked = $row_walls['liked']; $shared = $row_walls['shared']; $shared_liked_id = $row_walls['shared_liked_id']; $link_code = $row_walls['link_code']; $pht_code = $row_walls['pht_code']; $photo_name = $row_walls['photo_name']; if($link_code != ''){ $decoded_data = json_decode($link_code); foreach($decoded_data as $dta){ $img = $dta->img; } $lnk_img = $img; }elseif($pht_code != ''){ $decoded_data = json_decode($pht_code); foreach($decoded_data as $dta){ $img = $dta->img; } $lnk_img = $img; }elseif($photo_name != ''){ $lnk_img = $photo_name; }else{ $lnk_img = 'http://www.greet2k.com/images/logo.png'; } if(filter_var($lnk_img, FILTER_VALIDATE_URL) === FALSE){ $lnk_img = "http://sdn.greet2k.com/$lnk_img"; }else{ $lnk_img = $lnk_img; } if($shared != 0){ $acc_postId = $shared_liked_id; }elseif($liked != 0){ $acc_postId = $shared_liked_id; }else{ $acc_postId = $wall_chk_id; } $sql_walln = "SELECT * FROM `user_wall` WHERE `wall_id` = '$acc_postId'"; $res_walln = mysql_query($sql_walln) or die('Error, Select query failed of upcoming event list :: ' . mysql_error()); $row_walln = mysql_fetch_array($res_walln); $acc_poster = $row_walln['friends_id']; $acc_user_data = user_details_byid($acc_poster); $acc_username = $acc_user_data[username]; $acc_path = "http://www.greet2k.com/$acc_username/post/$acc_postId/"; $tags = $row_wall['tags']; $tags_array = explode(",",$tags); foreach($tags_array as $key){ $lnk = str_replace(" ", "-", $key); $lnk = strtolower($lnk); $tgs .= ''.$key.' '; $tg_meta .= "$key, "; } if($tags != ''){ $tg_metas = " - ".rtrim($tg_meta, ', '); }else{ $tg_metas = ""; } $description = $row_wall['description']; $description_meta = substr($description, 0, 65); $photo_name = $row_wall['photo_name']; $video_code = $row_wall['video_code']; $title_p = $row_wall['title']; $pht_meta = "http://poems.greet2k.com/images/poems.png"; if($photo_name != ''){ $pht_meta = "http://sdn.greet2k.com/$photo_name"; } if($title_p == ''){ if($description != ''){ $meta_title = $description_meta; } elseif($photo_name != ''){ $meta_title = "Photo posted by $user_name $tg_metas"; $pht_meta = "http://sdn.greet2k.com/$photo_name"; } elseif($video_code != ''){ $meta_title = "Video posted by $user_name $tg_metas"; } }else{ $meta_title = $title_p; } $meta_title = str_replace("\'", "'", $meta_title); $meta_title = str_replace('\"', '"', $meta_title); $fb_main_url = "http://www.greet2k.com/post/".$_GET['wid']."/"; if($description == ''){ $tw_desc = $meta_title; }else{ $tw_desc = $description; } ?> <?=$meta_title;?>

Post Comments

delete'; } if($user_id == $user_idm){ $del = 'delete'; } $str = '
Posted By '.$user_name.'
'.$posted.''.$del.'
'; $str .= ''.$comments.''; $str .= '
'; echo $str; } ?>
$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; } ?>