ob_start();
include_once("config.php");
include_once("paging.php");
include_once("$FS_PATH/includefiles/templateClass.php");
if(trim($_GET['id'])!='' && trim($_GET['key'])!='' && isset($_GET['id']) && isset($_GET['key']))
{
$varr=1;
include_once("$FS_PATH/affiliates/add_AffiliateReffMember.php");
header("location:$WS_PATH/home");
exit();
}
$pageMainTemplateImage="{wspath}/images/Temp-greenline/top-temp2.jpg";
$pageMainTransparent="{wspath}/images/Temp-greenline/top-green2.jpg";
/* echo"
";
print_r($_GET);
echo"
"; */
$country=str_replace("-"," ",$_GET['getcountry']);
$today_date = date("Y-m-d");
if(isset($_GET['getconti']))
{
$m_contname = str_replace("-"," ",$_GET['getconti']);
$select_m_desc = "select * from ".$GLOBAL_TABLE["gptv_continents"]." where continent_name='".mysql_real_escape_string($m_contname)."'";
$result_m_desc = mysql_query($select_m_desc);
$data_m = mysql_fetch_array($result_m_desc);
$metaKeyword = stripslashes($data_m['meta_keyword']);
$metaDescription = stripslashes($data_m['meta_desc']);
$metaTitle='';
$pagetitle= stripslashes($data_m['html_title']);
$conti_desc = stripslashes($data_m['conti_description']);
$conti_desc = str_replace("\r\n","
",$conti_desc);
}
elseif(isset($_GET['getcountry']))
{
$m_countname = str_replace("-"," ",$_GET['getcountry']);
$select_m_desc = "select * from ".$GLOBAL_TABLE["gptv_country"]." where country_name='".mysql_real_escape_string($m_countname)."'";
$result_m_desc = mysql_query($select_m_desc);
$data_m = mysql_fetch_array($result_m_desc);
$metaKeyword = stripslashes($data_m['meta_keyword']);
$metaDescription = stripslashes($data_m['meta_desc']);
$metaTitle='';
$pagetitle= stripslashes($data_m['html_title']);
}
elseif(isset($_GET['getstate']))
{
$m_statename = str_replace("-"," ",$_GET['getstate']);
$select_m_desc = "select * from ".$GLOBAL_TABLE["gptv_region"]." where region_name='".mysql_real_escape_string($m_statename)."' or region_name='".mysql_real_escape_string($_GET['getstate'])."'";
$result_m_desc = mysql_query($select_m_desc);
$data_m = mysql_fetch_array($result_m_desc);
$metaKeyword = stripslashes($data_m['meta_keyword']);
$metaDescription = stripslashes($data_m['meta_desc']);
$metaTitle='';
$pagetitle= stripslashes($data_m['html_title']);
}
elseif(isset($_GET['gettown']))
{
$m_townname = str_replace("-"," ",$_GET['gettown']);
$select_m_desc = "select * from ".$GLOBAL_TABLE["gptv_town"]." where town_name='".mysql_real_escape_string($m_townname)."' or town_name='".mysql_real_escape_string($_GET['gettown'])."'";
$result_m_desc = mysql_query($select_m_desc);
$data_m = mysql_fetch_array($result_m_desc);
$metaKeyword = stripslashes($data_m['meta_keyword']);
$metaDescription = stripslashes($data_m['meta_desc']);
$metaTitle='';
$pagetitle= stripslashes($data_m['html_title']);
}
else
{
$metaKeyword='holiday villas, holidayhome, last minute villa holidays, home, holiday rentals, Holiday villas, holiday lettings, holiday, entals, villas, holiday cottages, holiday apartments, self catering apartments, Jamaica villas, orlando, holiday home, , vacation apartments, holiday home advertising, Nerja, Marbella, florida, gites in France, villa in Tuscany, holiday accommodation in Australia, holiday villas in Spain, holidays, holiday villas in florida, apartments spain, holiday lets, holiday homes, holiday homes france, vacation rentals, golfing holidays, apartments, france, italy, property, pool, owners direct, not james villas';
$metaDescription="holidayhomelistings.com has 1,000s of holiday rentals - We advertise holiday villas, apartments and cottages for rent direct from owners. Rent holiday accommodation in Spain, France, Italy, Florida and 70 other countries worldwide.";
$metaTitle='';
$pagetitle='holidayhomelistings.com - Holiday Rentals, Apartments and Villas in Spain, France, Italy, Cyprus, England, Turkey, Florida, Portugal and accommodation worldwide';
$robotS='index,follow';
}
//include("buildapi/selectindex.php");
//echo"";
//print_r($_GET);
//echo"
";
?>
$sql_country="select * from ".$GLOBAL_TABLE["gptv_country"]." where country_name='$country'";
$res_country=@mysql_query($sql_country);
$line_country=@mysql_fetch_array($res_country);
$country_id=$line_country['country_id'];
$country_desc=stripslashes($line_country['country_desc']);
$country_desc = str_replace("\r\n","
",$country_desc);
$country_desc = html_entity_decode($country_desc);
?>
$select_Prop="select * from ".$GLOBAL_TABLE["gptv_property"]." where status='1' and paid='1' and expire_subcription >= '".$today_date."' and featured_property='1' and countryid='$country_id' order by rand() limit 0,3";
$result_Prop=mysql_query($select_Prop) or die(mysql_errno().":".mysql_error());
$num_Prop_fe=mysql_num_rows($result_Prop);
?>
//$rowsPerPage=10;
$select_Prop_not_feature="select * from ".$GLOBAL_TABLE["gptv_property"]." where status='1' and paid='1' and expire_subcription >= '".$today_date."' and countryid='$country_id' order by `id` desc";
//$result_Prop_not_feature=mysql_query(getPagingQuery($select_Prop_not_feature,$rowsPerPage));
$result_Prop_not_feature=mysql_query($select_Prop_not_feature);
//$queryString='country='.$_GET['country'];
//$pagingLink = getPagingLink($select_Prop_not_feature, $rowsPerPage, $queryString);
$num_Prop_not_feature=mysql_num_rows($result_Prop_not_feature);
?>
|
|
|
=html_entity_decode($conti_desc)?>
|
|
=$country_desc?>
|
",$db_region_desc2);
?>
|
=html_entity_decode($db_region_desc2)?>
|
| |
|
| |
|
//} ?>
// }else{
// echo "outt";
?>
//} ?>
|
|
$qry_cms2 = mysql_fetch_array(mysql_query("select * from ".$GLOBAL_TABLE["gptv_cms"]." where cmsid = 12"));
?>
$pagecontent = ob_get_contents();
ob_clean();
print templatePageContent($WS_PATH, array("title" => $pagetitle,"javascript" => $pagejavascript,"mainform" => $pagecontent, "roboTs"=>$robotS, "metatitle" => $metaTitle, "metakeyword" => $metaKeyword, "metadescription" => $metaDescription));
?>