escape($attraction); } //make $_GET['page'] safe for echoing to html if(isset($_GET['page'])) { $page = htmlspecialchars($_GET['page']); } if(empty($page)) { $page = '1'; } if(!$attraction OR $attraction == '') { header("HTTP/1.1 301 Moved Permanently"); header("Location: $domain/index.htm"); exit(); } if(!isset($db)) {include_once("ez_sql.php"); } //echo $attraction; $current_date = date("Y-m-d"); include("word-trim.php"); $path_parts = pathinfo($_SERVER['PHP_SELF']); $file = $path_parts['basename']; $dir = $path_parts['dirname']; if(!$attractioninfo = $db->get_row("SELECT ID,County,Country,subregion,Latitude,Longitude,Photo1,Photo1_Caption,OurURL,Name, AttractionType, AttractionType2,Summary,Summary2,Body,Town,Address1,Address2,Address3, PostCode, ScotlandCounty,WalesCounty,LondonRegion, AttractionSubType, Directions,Website,Email,Organization,GalleryURL,OSRef, HeritageRating, HeritageHighlight,PhotoCredit,opening_times,Pass,OurVisit,OurPhotos,underground_station,underground_zone,underground_miles,underground_id,status,Title,MetaDescription,leftnav,rightnav FROM attractions WHERE ID = '$attraction' AND Publication_Date <= '$current_date' LIMIT 1")) { header("HTTP/1.1 301 Moved Permanently"); header("Location: $location/index.htm"); exit(); } $Country = $attractioninfo->Country; $County = $attractioninfo->County; $firstTown = $attractioninfo->Town; $Town = preg_replace('/[^a-zA-Z0-9\- ]+/', '', $firstTown); $id = $attractioninfo->ID; $lng = $attractioninfo->Longitude; $lat = $attractioninfo->Latitude; //print_r($attractioninfo); $Limit = 12; If($page == "") $page=1; //If no page number is set, the default page is 1 //Get the number of results $AttractionID = $attractioninfo->ID; $SearchResult=$db->get_results("SELECT ID,image_path,userID,AttractionID,Title,Description,tags,Status,timestamp FROM attraction_images WHERE AttractionID = '$AttractionID' AND userID = '1' "); $NumberOfResults = count($SearchResult); //print_r(SearchResult); //Get the number of pages $NumberOfPages=ceil($NumberOfResults/$Limit); $userphotos = $db->get_results("SELECT ID,image_path,userID,AttractionID,Title,Description,tags,Status,timestamp FROM attraction_images WHERE AttractionID = '$AttractionID' AND userID = '1' LIMIT " . ($page-1)*$Limit . ",$Limit"); //print_r(userphotos); $docroot = ($_SERVER['DOCUMENT_ROOT']); ?> <?php if($attraction == '3250') { ?>London Photo Gallery, Photos of historic places to visit in London<?php if($page > 1) { echo ', page '; echo $page; } } else { echo $attractioninfo->Name;?> Photos, <?php echo $attractioninfo->County; ?> Travel Guide<?php if($page > 1) { echo ', page '; echo "$page of $NumberOfPages"; } }?> . Part of the County; ?> Travel Guide on Britain Express.Celebrating County; ?> Heritage!Explore County; ?> heritage and historic attractions."> " /> . Part of the County; ?> Travel Guide on Britain Express.Celebrating County; ?> Heritage!Explore County; ?> heritage and historic attractions." /> Country == 'England') { $countrypage = '/counties/index.htm'; } elseif ($attractioninfo->Country == 'Scotland') { $countrypage = '/scotland/index.htm'; } elseif ($attractioninfo->Country == 'Wales') { $countrypage = '/wales/index.htm'; } ?>

London Photo Gallery

Name; if($attractioninfo->AttractionType == 'Town' || $attractioninfo->AttractionType == 'Village') { if(!empty($attractioninfo->WalesCounty)) { echo ', '; echo $attractioninfo->WalesCounty; } if(!empty($attractioninfo->ScotlandCounty)) { echo ', '; echo $attractioninfo->ScotlandCounty; } else { echo ", "; echo $attractioninfo->County; }} ?> Photos 1) { echo ', page '; echo $page; } ?>

Photos of historic places to visit in London

OurURL <> '') { ?>Travel information for Name); ?>Travel information for Name;?>

image_path; $imagefile = str_replace(".jpg", "-s.jpg", $filename); $imagepath = $docroot .$imagefile; list($width, $height, $type, $attr) = getimagesize("$imagepath"); $counter++; ?>

get_results("SELECT DISTINCT image_tags.tagName FROM image_tags, tagLinks, attraction_images WHERE attraction_images.AttractionID = '$AttractionID' AND image_tags.ID = tagLinks.tagID AND tagLinks.imageID = attraction_images.ID ORDER BY tagName")) { ?> Find images within this photo gallery
tagName !== $attractioninfo->Name) { ?> tagName; ?>,

Gosh, it seems that we don't have any photos of Name)) { echo ($attraction->Name); } else { echo 'this location'; }?> yet.

Attraction search
in