".$entryRow[post_title]."
"; if($client_website == 'http://www.zimbabweancommunity.com') echo "".$entryRow[post_title]."
"; else echo "".$entryRow[post_title]."
"; //start facebook share ******************* //start comments code if($_GET[id]){ //if(!$notice_id) //$notice_id = intval($_GET[id]); if(!$viewRow[numviews]) $viewRow = getRow('views', 'notice_id', $notice_id); $noticeRow = getRow('notices', 'notice_id', $notice_id); if($viewRow[numviews]){ if(!$_SESSION[logged_in]) $views = $viewRow[numviews]; updateViews($notice_id); }else insertView($notice_id, $_SESSION[user_id], $noticeRow[create_date]); //emailCommenters($notice_id); } if(!$views) $views = 1; $append_s = 's'; $num_feeds = countFeeds($notice_id); echo ""; //include( "contact_me.php"); //if($num_feeds > 0){ if($num_feeds != 1) $append_s = 's'; //echo "
".$num_feeds." comment, ".$append_s." "; /* if($num_feeds > 0) echo " ".$num_feeds." ".$views." view".$append_s." "; else echo " ".$views." view".$append_s." "; */ if($num_feeds > 0) echo " ".$num_feeds." ".$views." view".$append_s.""; else echo " ".$views." view".$append_s.""; //} if(!$page_row) $page_row = getRow("notices", "notice_id", $notice_id); if($page_row[permalink]) { $permalink = trim($page_row[permalink]); $cachefile = $permalink."-".$notice_id.".html"; echo " "; } else echo " "; //echo " "; //echo ''; echo "
"; //end comments code //end facebook share ******************* echo ""; /* if($livesearch_on){ echo ""; include( "cms_dbasecode".DIRECTORY_SEPARATOR."search_form.php"); echo ""; } */ $count = 1; writePage($id, $count); }else include( "cms_dbasecode".DIRECTORY_SEPARATOR."main_content.php"); $ref = $_SERVER['HTTP_REFERER']; //start of video code if($_SESSION[videos_on]) { $videoRow = getRow('videos', 'notice_id', $notice_id); if($videoRow[video_id] AND ($videoRow[is_blocked] == 'n')){ echo "
".ucwords($videoRow[video_name])." edit video
"; $video_parameter = $videoRow[video_parameter]; $display_video = ''; echo $display_video; //echo htmlspecialchars($display_video); } } //end of video code //write nearby links nearby_locations($id); //write the links linking to this page writeLinks($id); echo ""; // if($livesearch_on) //include( "cms_dbasecode".DIRECTORY_SEPARATOR."search_form.php"); //start of map $location_row = getRow("locations", "notice_id", $id); if($location_row[location_id] and $map_service_on){ //start display a back link $easting = $location_row[easting]; $northing = $location_row[northing]; $name = "location_maps".DIRECTORY_SEPARATOR.$easting."_".$northing.".jpeg"; $map_link = ""; if(file_exists($name)) echo $map_link." "; else{ $_SESSION[easting] = $easting; $_SESSION[northing] = $northing; echo ''; } } //end of map if(!$notice_id){ $notice_id = strip_tags(trim($_GET[id])); $notice_id = mysql_real_escape_string($notice_id); $notice_id = intval($notice_id); $id = $notice_id; } //contact form include( "contact_me.php"); //include( "cms_dbasecode".DIRECTORY_SEPARATOR."contact_me.php"); //tag cloud //include( "cms_dbasecode".DIRECTORY_SEPARATOR."tag_cloud_ZW.php"); ?>