<?php 

require_once($_SERVER["DOCUMENT_ROOT"] . "/connection.php");
require_once($_SERVER["DOCUMENT_ROOT"] . "/includes/php/Listing.class.php");

$listing = new Listing($_GET["ListingID"]);

if ($listing->usePT())
	//header("Location: PTPhotoTour.php?PTID=" . $listing->getField(listingTablePTID) . "&type=1&ListingID=" . $listing->getListingID());

	//header("Location: PhotoTour.php?ListingID=" . $listing->getListingID() . "&type=1&window=1");
		
	header("Location: /preview/ptflexlanding.php?ListingID=" . $listing->getListingID() );


else
	header("Location: PhotoTour.php?type=1&ListingID=" . $listing->getListingID());
exit();
?>