//IM COMMENTING OUT THE HOST/USER/PASS CONFIGS FROM PAGES THAT QUERY HOMES DATA SO THEY CAN USE THE CONFIG BELOW TO QUERY HOMES DATA FROM OTHER SERVER. REFERRALS DB QUERIES WILL BE LEFT AS THEY ARE SO THEY QUERY/ADD/UPDATE THE LOCAL SERVER USING THE LOCALHOST CREDENTIALS THEY HAVE. //$host="db.saguaromail.com"; //$user="thisuser"; //$password="thispassxyz"; $host="localhost"; $user="root"; $password="baldeagle"; $user_agent=$_SERVER['HTTP_USER_AGENT']; //print "$user_agent
"; $ip= $REMOTE_ADDR; $existing_url="http://". $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; //print "$existing_url
"; $www_count=substr_count($existing_url, "http://www."); //print "$www_count
"; if ($www_count==0){ $redirected_url=str_replace("http://", "http://www.", $existing_url); //print "$redirected_url
"; header("Location: $redirected_url"); } include ("/sites/relocationusa_tp/register_globals.htm"); include "header_variables.htm"; include "/sites/relocationusa_tp/spam_lead_checks.htm"; $thisbrokerage='relocationUSA'; $theirip=$_SERVER['REMOTE_ADDR']; $myphone='(602)562-8416'; $mydir="armls"; $site_name=('phoenixrealestate-homes.com'); $partner='barb'; $lastrecip='lastrecip_phx'; $recip_page='recip_page_phx'; $entry_date='entry_date_phx'; //$table='partners'; $thispath=$_SERVER["REQUEST_URI"]; //$thispath=str_replace("%20", " ", $thispath); $htmcount=substr_count($thispath, ".htm"); $homescount=substr_count($thispath, "/homes/"); $spacecount=substr_count($thispath, "%20"); //print "
$spacecount"; if ($spacecount>=5 and $htmcount and $homescount) { //print "Homes Page"; $homespage='yes'; //set header ok after www. url redirect if ($www_count==1){ //header("HTTP/1.1 200 OK"); } } //print "$thispath
"; if (!substr_count($thispath, "/blog/") and !substr_count($thispath, "enter_commitment.htm") and !substr_count($thispath, ".js") ) { //load rest of header file //print "$thispath"; //print ("--$whichsection--"); //print_r($_COOKIE); $key=date("F j, Y"); //$key=date('l jS \of F Y \h\i\h\o'); $mypath=str_replace("%20", " ", $thispath); $today=date("Y-m-d H:i:s"); //print ("$mypath
"); $rev=strrev($mypath); //print ("$rev
"); $pos=strpos($rev, "/"); //print ("$pos
"); $show=substr($rev, 0, $pos); //print ("$show
"); $show=strrev($show); //print ("$show
"); $show=substr($show, 0, strlen($show)-4 ); //print ("$show
"); $underscorepos=strpos($show, "_"); if ($underscorepos) { $pagenum=substr($show, $underscorepos+1); //print $pagenum; $show=substr($show, 0, $underscorepos); } //if ($mlsno and $show!="saproperty") header("location:/data/armls/saproperty.asp?mlsno=$mlsno"); //REFORMAT CASE AND CHANGE CERTAIN FILENAMES VALUES $show=ucwords($show); $show=str_replace(" Of ", " of ", $show); $show=str_replace("Golfcity", "City", $show); $show=str_replace("Golfcourse", "Golf Community", $show); $show=str_replace("Listingtype", "Property Type", $show); $show=str_replace("Golfcommunity", "Golf Community", $show); //$show=str_replace("Horse", "City", $show); $show=str_replace("Index", "", $show); $show=str_replace("Popular", "Subdivision", $show); //print $show; //SET THE MODIFIER, MIDDLER, BETWEEN, ENDER AS APPROPRIATE if (substr_count($mypath, "/golf/")) {$modifier=("Golf ");} if (substr_count($mypath, "/gated/")) {$ender=(" Communities");} if (substr_count($mypath, "/construction/")) {$ender=(" Construction");} if (substr_count($mypath, "/levels/")) {$ender=(" Story");} if (substr_count($mypath, "/style/")) {$ender=(" Style");} if (substr_count($mypath, "/bedrooms/")) {$ender=(" Bedroom");} if (substr_count($mypath, "/baths/")) {$ender=(" Bath");} if (substr_count($mypath, "/horse/")) {$modifier=("Horse ");} if (substr_count($mypath, "/Apartment Style/")) {$modifier=("Apartment Style ");} if (substr_count($mypath, "/Single Family/")) {$modifier=("Single Family ");} if (substr_count($mypath, "/Single Family (New)/")) {$modifier=("Single Family (New) ");} if (substr_count($mypath, "/Townhouse/")) {$modifier=("Townhouse ");} if (substr_count($mypath, "/Townhouse (New)/")) {$modifier=("Townhouse (New) ");} if (substr_count($mypath, "/Patio Home/")) {$modifier=("Patio Home ");} if (substr_count($mypath, "/Loft Style/")) {$modifier=("Loft Style ");} if (substr_count($mypath, "/Gemini Twin/")) {$modifier=("Gemini Twin ");} if (substr_count($mypath, "/Modular Home/")) {$modifier=("Modular Home ");} if (substr_count($mypath, "/bankowned.htm")) {$modifier="Bank Owned"; $between=''; $show='by City';} if (substr_count($mypath, "/bankowned/")) {$modifier="Bank Owned";} if (substr_count($mypath, "/shortsale.htm")) {$modifier="Short Sale"; $between=''; $show='by City';} if (substr_count($mypath, "/shortsale/")) {$modifier="Short Sale";} if (substr_count($mypath, "/leasepurchase.htm")) {$modifier="Lease Purchase"; $between=''; $show=' ';} if (substr_count($mypath, "/leasepurchase/")) {$modifier="Lease Purchase";} //if (substr_count($mypath, "/district/")) {$middler=("District");} if (substr_count($mypath, "/area/")) {$middler=("Area");} //if (substr_count($mypath, "/acres/")) {$ender=(" on 1 or more Acres of Land");} if (substr_count($mypath, "/homes/")) $show=substr($show, 7, 100); if (substr_count($mypath, "/property/")) $show=substr($show, 7, 100); /* if (substr_count($mypath, "/levels/") or substr_count($mypath, "/zip/")) {} else { $digits = array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9"); $show=str_replace($digits,"",$show); } */ if (substr_count($mypath, "/levels/")) $show=$show{0}; //only show first digit & leave out the page # if (substr_count($mypath, "/zip/")) $show=substr($show, 0, 5); //only show first digit & leave out the page # $between='in'; if (substr_count($mypath, "/address.htm")) {$between=('by');} if (substr_count($mypath, "/popular.htm")) {$between=('by');} if (substr_count($mypath, "/high.htm")) {$show=('High School'); $between=('by'); $list="yes";} if (substr_count($mypath, "/middle.htm")) {$show=('Junior High School '); $between=('by'); $list="yes";} if (substr_count($mypath, "/elementary.htm")) {$show=('Elementary School '); $between=('by'); $list="yes";} if (substr_count($mypath, "/districthigh.htm")) {$show='High School District'; $between=('by'); $list="yes";} if (substr_count($mypath, "/districtelem.htm")) {$show='Elementary School District'; $between=('by'); $list="yes";} if (substr_count($mypath, "/style.htm")) {$between=('by');} if (substr_count($mypath, "/rent.htm")) {$between=('for');} if (substr_count($mypath, "/University of Arizona")) {$between=('near');} if (substr_count($mypath, "/Acres")) {$between=""; $show="with Land"; $list="yes";} //if (substr_count($mypath, "/golf.htm")) {$between=('by'); $ender=" Community";} if (substr_count($mypath, "/gated.htm")) {$between=('by'); $ender=" Community";} if (substr_count($mypath, "/listingtype.htm")) {$between=('by'); $list="yes";} if (substr_count($mypath, "/subdivision.htm")) {$between=('by'); $list="yes";} if (substr_count($mypath, "/community.htm")) {$between=('by'); $list="yes";} if (substr_count($mypath, "/golf.htm")) {$between=('by'); $modifier=('Golf');} if (substr_count($mypath, "/school.htm")) {$between=('by'); $list="yes";} if (substr_count($mypath, "/construction.htm")) {$between=('by'); $list="yes";} if (substr_count($mypath, "/zoning.htm")) {$between=('by'); $list="yes";} if (substr_count($mypath, "/levels.htm")) {$between=('by'); $list="yes";} if (substr_count($mypath, "/bedrooms.htm")) {$between=('by');} if (substr_count($mypath, "/bathrooms.htm")) {$between=('by');} if (substr_count($mypath, "/city.htm")) {$between=('by'); $list="yes";} if (substr_count($mypath, "/area.htm")) {$between=('by'); $list="yes";} if (substr_count($mypath, "/zip.htm")) {$between=('by'); $list="yes";} if (substr_count($mypath, "/builder.htm")) {$between=('by'); $list="yes";} if (substr_count($mypath, "/retirement.htm")) {$show=('Active Adult Communities');} if (substr_count($mypath, "/golfcity.htm")) {$modifier='Golf Course '; $between=('by');} if (substr_count($mypath, "/golfcourse.htm")) {$modifier='Golf Course '; $between=('by');} if (substr_count($mypath, "/golfcommunity.htm")) {$between=('by');} if (substr_count($mypath, "/horse.htm")) {$between=('by'); $ender=(' Property');} if (substr_count($mypath, "/combination")) {$between=('by'); $list="yes";} if (substr_count($mypath, "/income listingtype.htm")) {$show="Income Property Type"; $between=('by'); $list="yes";} $firstpart="Real Estate"; if (substr_count($mypath, "/favorite_sites/")) {$firstpart=('Recommended Sites');} elseif (substr_count($mypath, "/saved/contact_form.htm")) print ("
");
//$KWD IS THE START OF THE TITLE AND HEADING - IT IS 'TUCSON' or ANOTHER CITY
//$REDUNDANT is KWD but is set to nothing if it's in $SHOW
$kwd='Phoenix';
//SET THE KWD TO THE OTHER CITY IF THERE IS ONE
if (substr_count("$mypath", "/acres/")) {$kwd="$show";}
if (substr_count("$mypath", "/horse/")) {$kwd="$show";}
if (substr_count("$mypath", "/city/")) {$kwd="$show";}
$redundant=$kwd;
if (substr_count($show, $kwd)) $redundant='';
//print ("|$show| |$kwd| |$redundant|
");
//SOME FINAL CHEATS FOR CASES WHERE LISTING BY CITY BUT WANT SHOW TO BE SOMETHING ELSE
if (substr_count($mypath, "/golfcity.htm")) {$show_space=str_replace("City", "Golf", $show_space);}
if (substr_count($mypath, "/horse.htm")) {$show_space=str_replace("City", "Horse Property", $show_space);}
include("lastrecip.php");
//include("top_content.php");
?>
//
?>
$show_this="Wickenburg Properties by Rubash And Sons Builders"; $whereclause="where builder = 'Rubash And Sons' and city = 'Wickenburg' order by price, internal_listing_id"; include("/sites/default/data/armls/saved/banner.htm");?> | |||||||||||
270 N Stirrup Dr Wickenburg, Arizona 85390 $subdivision="Saddle Ridge West"; $city="Wickenburg"; include("/sites/default/data/armls/page_subdivision.php");?> Near W Saddle Ridge Dr And N Stirrup Dr 3 Bedrooms 3 Baths | Property Details Request Information $985,000 Single Family (New) 2,438 Sqft | ||||||||||
| |||||||||||
4950 Black Mountain Rd Wickenburg, Arizona 85390 $subdivision="Black Mountain Ranches"; $city="Wickenburg"; include("/sites/default/data/armls/page_subdivision.php");?> Near Black Mountain Rd And Hwy 60 3 Bedrooms 3 Baths | Property Details Request Information $1,250,000 Single Family (New) 2,403 Sqft | ||||||||||
| |||||||||||
| |||||||||||
$whereclause="where builder = 'Rubash And Sons' and city = 'Wickenburg' order by price, internal_listing_id"; include("/sites/default/data/armls/saved/banner.htm");?>
|
include "/sites/relocationusa_tp/header_footer_links.htm"; $armls_in_path=strpos($mypath, "/armls"); $arr = array("homes", "property", "area", "listingtype", "builder", "subdivision", "community", "zip", "armls", "elementary", "junior", "high", "district", "city", "horse"); foreach ($arr as $arg) { $found_script=strpos($mypath, "/$arg/"); if ($found_script === false) {} else $found='true'; } //end for //print "
"; //print " "; include "/sites/relocationusa_tp/footer_phone_number_display.htm"; ?> } //end if not js or thispath ?>