query($table,$where,$extra="",$sql_occname,''); $f_occ_name->next_record(); $occ_name = $f_occ_name->get_value('occname'); if($occ_name != '') { $occ_url = str_replace(" ","-",strtolower(($occ_name))); $cityurl = generateCityURL($cname, $cityname)."?occassion=".$occ_url; } else { $cityurl = generateCityURL($cname, $cityname); } } else { $cityurl = generateCityURL($cname, $cityname); } if (!isset($_SESSION['forceDesktop']) && $_SESSION['forceDesktop'] != '1') { list($mobile,$device) = detectDevice(); $url_mob = generateMobileCityURL($cname , $cityname); if($occ_url != '') { $redirectUrl = 'https://'.$_SERVER['HTTP_HOST'].'/'.$url_mob.'?occassion='.$occ_url.'&viewMode=2'; } else { $redirectUrl = 'https://'.$_SERVER['HTTP_HOST'].'/'.$url_mob; } if ($mobile && $redirectUrl != '') { $_SESSION['mobile'] = '1'; header ('Location: '. $redirectUrl); exit; } } header('Location:/'.$cityurl,true,301); exit; if($occassion == 'all' || $occassion == 'PT1nWQ==') { $page_title = $cityname.' flowers for All Occasions'; $occassion = '0'; $_GET['occassion'] = 0; } header("Cache-Control: store, cache, public"); $offset = 60 * 60 * 24 * 365; $ExpireString = "Expires: " . gmdate("D, d M Y H:i:s", time() + $offset) . " GMT"; Header($ExpireString); $useremail = $_SESSION["mail"]; $fname=$_SESSION["membername"]; $page_id = 1028; $viewresults_alttag = Alttag(1028); if(isset($country_reassigned)) { $Cid = $country_reassigned; } elseif($country != '') { if(is_numeric($country)) { $Cid=$country; }elseif($_GET['country'] !='' && !is_numeric($country)) { $Cid = decrypt_data($country); }elseif($_GET['country'] !='') { $Cid = decrypt_data($country); } else { $Cid = $country; } } else { $Cid = $country_reassigned; } if($_POST['login_now']=='yes') { if(isset($user_uid)) {$useremail=$user_uid;} if(!isset($useremail) || $useremail==""){ $erre="Enter Emailid"; $do="login";$revok="all";} if(!isset($pswd) || $pswd==""){ $errp="Enter Password"; if($_SESSION["mail"]==""){$do="login";$revok="all";}} if($pswd!="" && $useremail!="") { if(isset($useremail)) { include $c_hard_path.'Shopping/post_mail.php'; $errmsgp = do_login($useremail, $pswd, 42); } } } $password = $_SESSION["pswd"]; $fname = substr($_SESSION["membername"],0,15); $country_name=getCountryName($Cid); if($_SERVER['REQUEST_METHOD'] == 'POST') { if(isset($_POST['occassion']) && $_POST['occassion']!='') { $_GET['occassion'] = $_POST['occassion']; } } $f_occ_name = new FC_SQL; if(isset($_GET['occassion']) && $_GET['occassion']!='') { $occassion = decryptValue($_GET['occassion']); $sql_occname = "select occname from pms_fl_occasion_mst where occid = '$occassion'"; $f_occ_name->query($table,$where,$extra="",$sql_occname,''); $f_occ_name->next_record(); $occ_name = $f_occ_name->get_value('occname'); } else { $sql_occname = "select occid from pms_fl_occasion_mst where occname = 'Landing1' and cid = $Cid"; $f_occ_name->query($table,$where,$extra="",$sql_occname,''); $f_occ_name->next_record(); $occassion = $f_occ_name->get_value('occid'); $occ_name = 'Landing1'; } $page_title = "Flowers Delivery ".$cityname." - Flora2000 - Flower Shop ".$cityname; ?>