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==')
{
$occassion = '0';
$_GET['occassion'] = 0;
}
$sess_id=session_id();
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);
$multistate_city = city_in_multistate($country, $cityname);
$viewresults_alttag = Alttag(1030);
$useremail = $_SESSION["mail"];
$fname=$_SESSION["membername"];
$page_id = 1030;
$viewresults_alttag = Alttag(1030);
$Cid=25;
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='Canada';
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 if(!isset($occassion))
{
$sql_occname = "select occid from pms_fl_occasion_mst where occname = 'Landing' and cid = 25";
$f_occ_name->query($table,$where,$extra="",$sql_occname,'');
$f_occ_name->next_record();
$occassion = $f_occ_name->get_value('occid');
$occ_name = 'Landing';
}
$state_initial = state_initial($state);
$state_title = '';
// If city name is in multiple states then show the state isocode
if($multistate_city) $state_title .= ', '.$state_initial;
$page_title = "Flower Delivery $cityname, Same Day Florist Delivery";
?>