'; //---------------- $bannerX=''; $skyscraperX=''; $mpuX=''; $headerBanner= $banner; //---------------- // Essential for UH servers $HIGH_SECURITY_MODE=0; $mainTableColour="orange"; $MIRAGO_ID="PORT"; $SCOOT_ID="0"; $MIRAGO_MAXIMUM_NUMBER_OF_PAID_WEB_LISTINGS=3; // Overrides ======================================================== $CITY_GUIDE_CATEGORY_TABLE_NAME = "category"; $CITY_GUIDE_LISTING_TABLE_NAME = "listing"; $PATH_TO_INCLUDES_FOLDER = "SITE"; $CITY = "Portsmouth"; $city=$CITY; $CITY_LOWERCASE_UNDERSCORED = str_replace(" ", "_", strtolower($CITY) ); $COUNTY="Hampshire"; $COUNTRY="UK"; $SITE_TITLE="Portsmouth Online"; $SITE_URL = "https://www.portsmouthonline.co.uk"; $A_TO_Z_DIRECTORY = "atoz"; $STREET_INDEX_DIRECTORY = "street"; $LISTINGS_DIRECTORY = "info"; $REVIEWS_DIRECTORY = "reviews"; $CITY_GUIDE_DIRECTORY = "local"; $DIRECTORY_DIRECTORY = "directory"; $POSTCODES_DIRECTORY = "postcodes"; $LEGAL_DIRECTORY = "legal"; $cityCapitalisedAndUnderscored = str_replace(" ", "_", ucwords( strtolower($CITY) ) ); $ARRAY_OF_CITY_STREETS_INCLUDE_FILE = "arrayOf".$cityCapitalisedAndUnderscored."Streets.inc.php"; $GRAPHICS_DIRECTORY_URL = $SITE_URL."/"."graphics"; $CITY_GUIDE_URL = $SITE_URL."/".$CITY_GUIDE_DIRECTORY; $DIRECTORY_URL = $SITE_URL."/".$DIRECTORY_DIRECTORY; $TEXT_LISTING_PROFILES_URL = $SITE_URL."/".$LISTINGS_DIRECTORY; $A_TO_Z_LISTINGS_URL = $SITE_URL."/".$A_TO_Z_DIRECTORY; $DISPLAY_REVIEW_URL = $SITE_URL."/".$REVIEWS_DIRECTORY; $SUBMIT_REVIEW_URL = $SITE_URL."/submitreview"; $REPORT_ERROR_URL = $SITE_URL."/reporterror"; $SINGLE_REVIEW_URL = $SITE_URL."/".$REVIEWS_DIRECTORY; $LIST_ALL_REVIEWS_FOR_LISTING_URL = $SITE_URL."/allreviews"; $STREET_INDEX_URL = $SITE_URL."/".$STREET_INDEX_DIRECTORY; $POSTCODES_URL = $SITE_URL."/".$POSTCODES_DIRECTORY; $STYLESHEET_URL = $SITE_URL."/css/".$CITY_LOWERCASE_UNDERSCORED.".css"; $LEGAL_URL = $SITE_URL."/".$LEGAL_DIRECTORY; $PRIVACY_POLICY_URL = $LEGAL_URL."/privacy"; $DISCLAIMER_URL = $LEGAL_URL."/disclaimer"; $TERMS_AND_CONDITIONS_URL = $LEGAL_URL."/tandc"; $NUMBER_OF_DIRECTORY_LISTINGS = 20; $NUMBER_OF_CITY_GUIDE_LISTINGS = 20; $NUMBER_OF_A_TO_Z_LISTINGS = 50; $DISPLAY_REVIEWS_BEFORE_VALIDATING = true; $DISPLAY_CATEGORIES=1; $DISPLAY_DMOZ_LISTINGS=1; #$DISPLAY_PAID_THOMSON_WEBSITE_LISTINGS=1; #$DISPLAY_MIRAGO_LISTINGS=1; #$THOMSON_MAXIMUM_NUMBER_OF_PAID_WEB_LISTINGS=3; $DISPLAY_PAID_THOMSON_LISTINGS = 1; $DISPLAY_PAID_MIRAGO_LISTINGS = 1; $KEYWORDS = "Portsmouth hotels"; $LISTING_FRONT_HTML = "
  • "; $LISTING_BACK_HTML = "

  • "; $MAXIMUM_FEED_WAITING_TIME=5; $TEST_MODE = 0; // DB for http://www.portsmouthonline.co.uk $sqldatabase = "bexhill_portsmouthonline"; $database = $sqldatabase; // UH = 127.0.0.1 $sqlhost = "db47.pair.com"; $sqlusername = "bexhill_8"; $sqlpassword = "en5QbjCk1"; $websiteTableName = strtolower($CITY)."website"; $categoryTableName = strtolower($CITY)."category"; $RAQUO_IMAGE = $GRAPHICS_DIRECTORY_URL."/raquo.gif"; $BLOCKY_ARROW_IMAGE = $GRAPHICS_DIRECTORY_URL."/blocky_arrow.gif"; $PRIMARY_COLOUR = "#0000cc"; $PRIMARY_COLOUR_BORDER = "#000099"; $SECONDARY_COLOUR = "#f4f4f4"; $SECONDARY_COLOUR_BORDER = "#eeeeee"; $BAR_COLOUR = "#ffcc00"; $FRONT_PAGE_BOX_BORDER_COLOUR = "#B0C8DF"; $SUBHEADINGS_COLOUR="#ff9933"; // Overrides ======================================================== $adsenseLinkUnitX = ' '; $leftMenu = ' .
    '.$adsenseLinkUnit.'
    '."
    \"city \"directory\" \"hotels\" "; $menu = $leftMenu; $leftColumn = $menu; if ($city) { $changeCityLink = ''; } //=================================================================================================================== // Tab changing functionality $onTabLeft = ''; $onTabBackground = ''.$SITE_URL.'/graphics/curved-box-yellow-middle.gif'; $onTabRight = ''; $offTabLeft = ''; $offTabBackground = ''.$SITE_URL.'/graphics/curved-box-blue-middle.gif'; $offTabRight = ''; $clear=''; $arrayOfPossibleTabs = array("home", "shopping", "restaurants", "pubs", "hotels", "forums", "reviews", "directory", "business"); foreach($arrayOfPossibleTabs as $possibleTab) { if($tab==$possibleTab) { $tabsLeft["$tab"] = $onTabLeft; $tabsBackground["$tab"] = $onTabBackground; $tabsRight["$tab"] = $onTabRight; } else { $tabsLeft["$possibleTab"] = $offTabLeft; $tabsBackground["$possibleTab"] = $offTabBackground; $tabsRight["$possibleTab"] = $offTabRight; } } // end foreach $googleSearchBoxX = '
    Custom Search
    '; $header='
    '.$headerBanner.'
    '.$tabsLeft["home"].' Home '.$tabsRight["home"].' '.$clear.' '.$tabsLeft["shopping"].' Shopping '.$tabsRight["shopping"].' '.$clear.' '.$tabsLeft["restaurants"].' Restaurants '.$tabsRight["restaurants"].' '.$clear.' '.$tabsLeft["pubs"].' Pubs '.$tabsRight["pubs"].' '.$clear.' '.$tabsLeft["hotels"].' Hotels '.$tabsRight["hotels"].' '.$clear.' '.$tabsLeft["reviews"].' Reviews '.$tabsRight["reviews"].' '.$clear.' '.$tabsLeft["directory"].' Directory '.$tabsRight["directory"].' '.$clear.' '.$tabsLeft["business"].' Business Finder '.$tabsRight["business"].'  
    '.$googleSearchBox.'
    '; if($DISPLAY_BRITAIN_ONLINE_HEADER) { $header = $BRITAIN_ONLINE_HEADER.$header; } $footer='
     

    '.$SITE_TITLE.' | About us | Reviews | Shopping | Business | Hotels '.$footerExtras.'
    CSE © '.date("Y").' CSE. All rights reserved. '.$SITE_TITLE.' is a city guide for '.$CITY.' and '.$COUNTY.' in '.$COUNTRY.' UK. The content of the '.$SITE_TITLE.' website is provided in good faith but we cannot be held responsible for inaccuracies, omissions or visitors\' comments.


    '.$SITE_TITLE.' is part of the  Britain Online network of city guides.
    '; //====================================================================================================================== // Articles $WELCOME_ARTICLE = 'Welcome'; $HOTELS_ARTICLE = 'Hotels'; $WELCOME_ARTICLE = "Welcome to $SITE_TITLE, your local guide for $CITY and $COUNTY."; $HOTELS_ARTICLE = "$SITE_TITLE provides hotel bookings for many of $CITY's hotels and guesthouses, enabling you to benefit from massive discounts on normal rates."; $FRONT_PAGE_ABOUT_CITY_ARTICLE = 'On the south coast of England lies the country\'s only island city, the busy naval port of Portsmouth. The city, affectionately known by local residents as \'Pompey\' is more densely populated even than London and is home to around 200,000 people.

    Portsmouth has a long and illustrious seafaring history and, to this day operates as a major dockyard, as well as retaining strong ties to the Royal Navy - the Royal Marines still have their headquarters there.

    Two of the town\'s major employers are the successful military contractor BAE Systems and the firm currently working on The Royal Navy\'s next generation of aircraft carriers, The VT Group.

    Alongside its military links, the port is very much a commercial concern in its own right, with many continent-bound passenger ships and a plethora of freight-bearing craft berthing at Portsmouth\'s docks.

    '; $LONG_ABOUT_CITY_ARTICLE = 'Portsmouth is perhaps best known for its naval history, even today it hosts such glorious sights as the HMS Victory - the immaculately restored flagship of national naval hero Lord Horatio Nelson - and the remains of Henry VIII\'s iconic Mary Rose which was rescued from the seabed a quarter of a century ago.

    Much of the port area has undergone massive regeneration in the modern era, with a variety of quality restaurants and cafes replacing more traditional quayside activities. One particularly striking example of this modernisation is the Spinnaker Tower, a stunning piece of cutting-edge architecture that dominates the city\'s skyline.

    Although primarily focussed around its historic port, the city also offers a number of other attractions, not least of which are its extensive shopping and leisure areas. A number of large shopping centres are dotted around the central part of the city that lies on Portsea Island, the busiest and most varied of which is The Cascades.

    With a thriving local economy, most major high-street chains are represented in the retail quarter of the city and more specialist goods can be found within the tourist areas around the docks at one of Portsmouth\'s popular European or seasonal markets.

    The city also offers several popular theatres with eclectic programmes - from classical drama to avant garde productions - and many museums chronicling Portsmouth\'s seafaring past.

    The city\'s sporting links are perhaps best embodied in its successful Premiership football team Portsmouth FC, who are based at Fratton Park stadium. '; //====================================================================================================================== $rightColumn='
    Advertisements
    '; $adsenseCentralColumn=' '; $googleSearchResults = '
    '; ?>","
  • ", $body); $body = str_replace("
  • ","", $body); // cookie code by https://www.codeply.com/p/XfNkaBlD4j //----- #$cookieConsentJS = ''; // No longer needed - now on UPD45 and using Google's CMP $cookieConsentJS = ''; // Disable cookieConsent on legal notices as cookies are not set on those pages and they may be read duing cookie consent if($legal) { $cookieConsentJS=""; } //----- if($SITE_TITLE=="London Online") { // Even though LO has extra stuff, we can add it or make any exceptions here and still give LO the latest CSE template update. // We will already have the most up-to-date CSE network STYLESHEET_URL from components.inc.php however LO has extra classes // So we need to insert extra HTML in the $STYLESHEET_URL (which should just be a URL without HTML) so that 2 stylesheets can be // called. Here is what it would look like before we alter it // $STYLESHEET_URL = $SITE_URL."/css/21.10.css"; // Here is what the HTML it will get slotted into looks like: // $additionalStylesheetLinks .= ''; if($contextMenu) { $leftColumn = $contextMenu; } else{ $leftColumn = $defaultLeftColumn; } } //================================================ // Tweak to tidy up the awful front page HTML if($tab=="home") { $body = str_replace("\".\"", ">", $body); # $body = str_replace("valign=\"top\"", "", $body); $body = str_replace("valign=", "data-a=", $body); $body = str_replace("width=", "data-w=", $body); $body = str_replace("border=", "data-b=", $body); $body = str_replace("bgcolor", "data-g", $body); $body = str_replace("colspan", "data-c", $body); $body = str_replace("cellspacing", "data-s", $body); $body = str_replace("cellpadding", "data-p", $body); $body = str_replace("  ", "", $body); } // Extra tweak to get rid of all the
    's in certain pages if($fileName=="local" || $tab=="a-z") { $body = str_replace("
    \r\n\t\t
    ", "", $body); $body = str_replace("offers", "", $body); $body = str_replace("listings", "", $body); $body = str_replace("
    ", "", $body); } if($fileName=="reviews") { $body = str_replace("
    ", "", $body); $body = str_replace("H3>", "H1>", $body); $body = str_replace("reviews", "", $body); } $body = str_replace("
    ", "", $body); $body = str_replace(" style=\"font-size:10pt;\"", "", $body); $body = str_replace(" style=\"color:#000000; text-decoration:none\"", "", $body); // Replace ad colour with Bootstrap's default $adsenseCentralColumn = str_replace("000099", "337ab7", $adsenseCentralColumn); if($youAreHere) { $breadcrumb = $youAreHere; $breadcrumb = str_replace("", "", $breadcrumb); $breadcrumb = str_replace("", "", $breadcrumb); $breadcrumb = str_replace("", "", $breadcrumb); # $breadcrumb=" #
    $breadcrumb
    # "; # Home > Businesses > Southbank // Make it shorter $breadcrumb = str_replace("You are here:", "", $breadcrumb); $breadcrumb = str_replace("You are here:", "", $breadcrumb); $breadcrumb = str_replace($SITE_TITLE, "Home", $breadcrumb); $breadcrumbDiv = '
    '.$breadcrumb.'
    '; } //====================================================================================================================================== // New additions for bootstrap template #$googleSearchWhite=''; // $googleSearchBox if($footerExtras) { $footerExtras = "
  • $footerExtras
  • "; } // Stop it saying UK UK if(!$COUNTRY || $COUNTRY=="UK") { $COUNTRY2 = "the"; } //==================================================================================================== //==================================================================================================== //==================================================================================================== //==================================================================================================== // Now we include components.config.inc.php // Why here? Because we can't do it before as some of the vars set above get slotted into the vars in components.config.inc.php. Wouldn't want to do it after as below is basically where the real template preparation begins // Forming the path this way makes it relative to this file, not the main extensionless file include(dirname(__FILE__)."/components.config.inc.php"); //==================================================================================================== //==================================================================================================== //==================================================================================================== //========================================================================================== //------- //Code to switch off ads on certain pages if($switchOffAds) { $rightColumn=""; $adsenseCentralColumn=""; $googlePageLevelAds=""; } //------- $labelledAdsenseCentralColumn ='
    Advertisements
    '.$adsenseCentralColumn.'
    '; #$labelledAdsenseCentralColumn = '
    Advertisements
    '.$adsenseCentralColumn; $pubsSectionAdvert = "

    \n\nWhy not add a review of your favourite pub...\n\n

    "; $restaurantsSectionAdvert = "

    \n\nWhy not add a review of your favourite restaurant...\n\n

    "; $body = str_replace("","\n", $body); if($fileName=="reviews") { $body = str_replace("","
    $labelledAdsenseCentralColumn
    ", $body); } elseif($fileName=="local") { $self = $_SERVER["PHP_SELF"]; if(preg_match("/pubs/",$self) ) { $body = str_replace("","
    $pubsSectionAdvert
    ", $body); } elseif(preg_match("/restaurants/",$self) ) { $body = str_replace("","
    $restaurantsSectionAdvert
    ", $body); } else { $body = str_replace("","
    $labelledAdsenseCentralColumn
    ", $body); } } elseif($fileName=="info") { # $body = str_replace("","
    $labelledAdsenseCentralColumn
    ", $body); $body = str_replace("","
    $labelledAdsenseCentralColumn
    ", $body); } else { $body = str_replace("","
    $labelledAdsenseCentralColumn
    ", $body); } //----------------------------------------------------------------------------- // Code to insert adsenseCentralColumnUnderneath #$adsenseCentralColumnUnderneath = "
    $adsenseCentralColumnUnderneath
    "; $adsenseCentralColumnUnderneath ='
    Advertisements
    '.$adsenseCentralColumnUnderneath.'
    '; #if($fileName=="reviews") # { # $body = str_replace("","$adsenseCentralColumnUnderneath", $body); # } #elseif($fileName=="info") # { # $body = str_replace("","\n$adsenseCentralColumnUnderneath", $body); # } #elseif(preg_match("//", $body)) if(preg_match("//", $body)) { $body = str_replace("","\n$adsenseCentralColumnUnderneath", $body); } // street, local, a-z etc have the Te comments #elseif(preg_match("//", $body)) # { # $body = str_replace("","\n$adsenseCentralColumnUnderneath", $body); # } //----------------------------------------------------------------------------- //========================================================================================== if($bodyTagAttributes) { $bodyTagAttributes = " ".$bodyTagAttributes; } if($metaDescriptionTag) { $metaDescriptionTag = ''; } if($metaKeywordsTag) { $metaKeywordsTag = ''; } // Breadcrumb $resHeader = str_replace("", "$youAreHere", $resHeader); //============================================================================================================================== //============================================================================================================================== //============================================================================================================================== # ?> <? if ($titleTag) { echo($titleTag); } else { echo($pageName); } ?> >