array('url' => 'belairflooring.com', 'name' => 'Bel Air', 'rss' => '/home/losagcom/public_html/rss/bel_air.xml'), 1 => array ('url' => 'beverlyhillsflooring.com', 'name' => 'Beverly Hills', 'rss' => '/home/losagcom/public_html/rss/beverly_hills.xml'), 2 => array ('url' => 'brentwoodflooring.com', 'name' => 'Brentwood', 'rss' => '/home/losagcom/public_html/rss/brentwood.xml'), 3 => array ('url' => 'culvercityflooring.com', 'name' => 'Culver City', 'rss' => '/home/losagcom/public_html/rss/culver_city.xml'), 4 => array ('url' => 'encinoflooring.com', 'name' => 'Encino', 'rss' => '/home/losagcom/public_html/rss/encino.xml'), 5 => array ('url' => 'hancockparkflooring.com', 'name' => 'Hancock Park', 'rss' => '/home/losagcom/public_html/rss/hacock_park.xml'), 6 => array ('url' => 'hollywood-flooring.com', 'name' => 'Hollywood', 'rss' => '/home/losagcom/public_html/rss/hollywood.xml'), 7 => array ('url' => 'malibu-flooring.com', 'name' => 'Malibu', 'rss' => '/home/losagcom/public_html/rss/malibu-.xml'), 8 => array ('url' => 'losangeles-flooring.com', 'name' => 'Los Angeles', 'rss' => '/home/losagcom/public_html/rss/los_angeles.xml'), 9 => array ('url' => 'marinadelrayflooring.com', 'name' => 'Marina Del Ray', 'rss' => '/home/losagcom/public_html/rss/marina_del_ray.xml'), 10 => array ('url' => 'marvistaflooring.com', 'name' => 'Mar Vista', 'rss' => '/home/losagcom/public_html/rss/mar_vista.xml'), 11 => array ('url' => 'orangecounty-flooring.com', 'name' => 'Orange County', 'rss' => '/home/losagcom/public_html/rss/orange-county.xml'), 12 => array ('url' => 'pacificpalisadesflooring.com', 'name' => 'Pacific Palisades', 'rss' => '/home/losagcom/public_html/rss/pacific_palisades.xml'), 13 => array ('url' => 'sanfernandoflooring.com', 'name' => 'San Fernando', 'rss' => '/home/losagcom/public_html/rss/san_fernando.xml'), 14 => array ('url' => 'santamonicaflooring.com', 'name' => 'Santa Monica', 'rss' => '/home/losagcom/public_html/rss/santa_monica.xml'), 15 => array ('url' => 'shermanoaksflooring.com', 'name' => 'Sherman Oaks', 'rss' => '/home/losagcom/public_html/rss/sherman_oaks.xml'), 16 => array ('url' => 'studiocityflooring.com', 'name' => 'Studio City', 'rss' => '/home/losagcom/public_html/rss/studio_city.xml'), 17 => array ('url' => 'tarzanaflooring.com', 'name' => 'Tarzana', 'rss' => '/home/losagcom/public_html/rss/tarzana.xml'), 18 => array ('url' => 'veniceflooring.com', 'name' => 'Venice', 'rss' => '/home/losagcom/public_html/rss/venice.xml'), 19 => array ('url' => 'westcoast-flooring.com', 'name' => 'West Coast', 'rss' => '/home/losagcom/public_html/rss/west-coast.xml'), 20 => array ('url' => 'westwood-flooring.com', 'name' => 'Westwood', 'rss' => '/home/losagcom/public_html/rss/westwood-.xml')); $relurl = 'http://www.247flooring.com'; //landing domen zbog linkova (*mozda se menja u buducnosti) if (!$_SESSION['referer']) { $_SESSION['referer'] = ltrim($_SERVER['HTTP_REFERER'],"http://"); if ($_SESSION['referer'] == ''){ $_SESSION['referer'] = $_SERVER['REMOTE_HOST']; } foreach ($city as $city_name) { $temp = strpos($_SESSION['referer'],$city_name['url']); if ($temp) { $page_request = strstr($_SESSION['referer'],'page'); //izdvaja je se za sad sve od page/.... $_SESSION['meta_city'] = $city_name['name']; $_SESSION['rss'] = $city_name['rss']; $_SESSION['found'] = 1; break; } } if (!$_SESSION['found']) { $_SESSION['meta_city']= '247 Flooring'; $_SESSION['rss'] = '/home/losagcom/public_html/rss/themes/247flooring.xml'; $page_request = $_SERVER['REQUEST_URI']; } } else { $page_request = substr($_SERVER['REQUEST_URI'],1); } $display = ''; if($page_request != ''){ $url = explode('/', $page_request); $url_param = count($url); switch($url_param) { case 2 : $display = 'include/'.$url[1].'.php'; break; case 3 && ($url[2] == '') : $display = 'include/'.$url[1].'.php'; //u slucaju da je zadata putanja sa / na kraju break; case 3 && ($url[1] == 'types') : $display = 'include/'.$url[1].'.php';//samo types ima 3 dubine break; // default : // header("Location:".$relurl); // break; } if (!file_exists($display)) $display = 'include/homepage.php'; } else { $display = 'include/homepage.php'; } if (isset($url[1])) { switch ($url[1]){ case 'flooring-services' : $title = 'Flooring Services done by Professionals | Installation | Remodeling | Renovation | Discount prices'; $description = 'If you want to install, remodel or renovate flooring in your rooms, basement, kitchen, bathroom, garage or in any other space in your home. Hardwood, Laminate, Bamboo or any other type, we do them all.'; $keywords = 'flooring installation, renovation, remodeling, discount flooring, '.$_SESSION['meta_city'].' flooring, '.$_SESSION['meta_city'].', professional services, professionals, flooring contractor, hardwood, laminate, bamboo, kitchen, room, bathroom, garage, supplying, supply'; break; case 'flooring-types' : $title ='Our services cover all flooring types from - Hardwood, Laminate, Bamboo'; $description ='Looking for someone to install, remodel or renovate your hardwood, laminate, bamboo or any other type of flooring in your home? Look no further.' ; $keywords ='flooring contractor, contractor flooring, hard wood flooring, laminate wood flooring, flooring hardwood, flooring laminate, installing hardwood flooring, installing laminate flooring, hardwood flooring installation, flooring installation'; break; case 'discount' : $title ='Unbeatable discount when you buy flooring over us.' ; $description ='Discount of 20% when you buy flooring over us together with our flooring installation service. Click here and find out more about this fantastic offer.' ; $keywords ='flooring installation, renovation, remodeling, discount flooring, '.$_SESSION['meta_city'].' flooring,'.$_SESSION['meta_city'].', professional services, clean work, flooring contractor, hardwood, laminate, bamboo, all types, anderson, pergo, br-111, wilsonart, mohawk, shaw, bruce, mannington'; break; case 'about-us' : $title =$_SESSION['meta_city'].' - Flooring work that is widely recognizable.'; $description ='If you are looking for someone with knowledge and experience to do your flooring, click here to discover why people trust us.'; $keywords ='about us, flooring installation, '.$_SESSION['meta_city'].' flooring,'.$_SESSION['meta_city'].', knowdledge, experience, hardwood, laminate, discount flooring, renovation, remodeling'; break; case 'contact' : $title ='Get in touch with Us' ; $description ='By contacting us you are one step closer to your new flooring.' ; $keywords ='contact, flooring installation, renovation, remodeling, discount flooring, '.$_SESSION['meta_city'].' flooring,'.$_SESSION['meta_city'].', flooring contractor, hardwood, laminate, bamboo, all types'; break; default : $title = 'Flooring professionals | Clean work | Discount Prices'; $description = 'Looking for top quality, low cost, installation, remodelling or renovation of your flooring? Read about our fantastic offer we are giving you.'; $keywords = 'flooring installation, renovation, remodeling, discount flooring, '.$_SESSION['meta_city'].' flooring, '.$_SESSION['meta_city'].', professional services, professionals, flooring contractor, hardwood, laminate, bamboo, all types of flooring'; } } else { $title = 'Flooring professionals | Clean work | Discount Prices'; $description = 'Looking for top quality, low cost, installation, remodelling or renovation of your flooring? Read about our fantastic offer we are giving you.'; $keywords = 'flooring installation, renovation, remodeling, discount flooring, '.$_SESSION['meta_city'].' flooring,'.$_SESSION['meta_city'].', professional services, professionals, flooring contractor, hardwood, laminate, bamboo, all types'; } $parole[0]="Right place for yor flooring needs."; $parole[1]="Flooring services at it's best."; $parole[2]="One place for all your flooring needs."; $parole[3]="Doing flooring jobs the right way."; $parole[4]="Home of flooring proffessionals."; ?> <? echo $title ?>
<? echo $relurl ?> Logo