"home", "resource"=>"p_resource")); if($p_mobile != "") $_SESSION["s_mobile"] = ($p_mobile); if(($_SESSION["s_mobile"] == "no") && ($p_resource == "mobile")) $p_resource = ("home"); $p_resource_destination = parameter("p_resource_destination"); $p_resource_popup = parameter("p_resource_popup"); $p_resource_redirect = parameter("p_resource_redirect"); //$p_splash = parameter("p_splash"); if($p_splash == "r6agmo9p") $_SESSION["s_splash"] = ("no"); if($_SESSION["s_splash"] != "no") $p_resource = ("splash"); $p_theme = parameter(array("default"=>"holiday", "parameter"=>"p_theme")); if($p_theme != "") $_SESSION["s_theme"] = ("_".$p_theme); if($_REQUEST["p_theme"] == "~") $_SESSION["s_theme"] = (""); //echo("

theme: ".$_SESSION["s_theme"]); //$_SESSION["s_theme"] = ("_holiday"); //_holiday, _xmas // initialize locations $rs_lct = database_query("SELECT lct.*,lcp.title AS lcp_title FROM ".$GLOBALS["g_database"]["table"]."locations lct LEFT JOIN ".$GLOBALS["g_database"]["table"]."locations lcp ON (lcp.pk = lct.location) WHERE ((lct.status = 'active') AND (lct.location > '0')) ORDER BY lcp.title ASC,lct.title ASC"); unset($GLOBALS["g_locations"]); while($r_lct = database_results($rs_lct)) $GLOBALS["g_locations"]["states"][$r_lct["lcp_title"]][$r_lct["title"]] = ($r_lct["title"]); foreach($GLOBALS["g_locations"]["states"] as $l_state=>$l_locations) { $GLOBALS["g_locations"]["options"] .= (""); foreach($l_locations as $l_key=>$l_location) $GLOBALS["g_locations"]["options"] .= (""); } foreach($GLOBALS["g_locations"]["states"] as $l_state=>$l_locations) { $GLOBALS["g_locations"]["select"][] = (""); $GLOBALS["g_locations"]["select"][] = ("-- ".$l_state." Locations --"); foreach($l_locations as $l_key=>$l_location) $GLOBALS["g_locations"]["select"][$l_key] = ($l_location); } // initialize resource $rs_rsg = database_query("SELECT rsr.* FROM ".$GLOBALS["g_database"]["table"]."resources rsr WHERE (rsr.resource = 'global')"); $r_rsg = database_results(array("replace"=>"yes", "results"=>$rs_rsg)); $rs_rsr = database_query("SELECT rsr.* FROM ".$GLOBALS["g_database"]["table"]."resources rsr WHERE ((rsr.resource = '".$p_resource."') AND (rsr.status = 'active'))"); $r_rsr = database_results(array("replace"=>"yes", "results"=>$rs_rsr)); database_query("UPDATE ".$GLOBALS["g_database"]["table"]."resources SET views = (views + 1) WHERE (pk = '".$r_rsr["pk"]."')"); $l_meta = array("description"=>$r_rsr["meta_description"], "keywords"=>$r_rsr["meta_keywords"], "title"=>$r_rsr["meta_title"]); if($p_resource == "items_item") { $rs_itm = database_query("SELECT itm.title FROM ".$GLOBALS["g_database"]["table"]."items itm WHERE (itm.redirect = '".$GLOBALS["g_server"]["redirect"][0]."')"); $r_itm = database_results(array("replace"=>"yes", "results"=>$rs_itm)); $rs_iim = database_query("SELECT iim.* FROM ".$GLOBALS["g_database"]["table"]."item_images iim WHERE ((iim.item = '".$r_itm["pk"]."') AND (iim.status = 'active')) ORDER BY iim.rank ASC,iim.title ASC LIMIT 0,1"); $r_iim = database_results($rs_iim); $rs_ims = database_query("SELECT ims.* FROM ".$GLOBALS["g_database"]["table"]."item_messages ims WHERE (ims.item = '".$r_itm["pk"]."')"); $r_ims = database_results(array("replace"=>"yes", "results"=>$rs_ims)); if($r_ims["meta_description"] != "") $l_meta["description"] = ($r_ims["meta_description"]); if($r_ims["meta_keywords"] != "") $l_meta["keywords"] = ($r_ims["meta_keywords"]); $l_meta["title"] = ($GLOBALS["g_server"]["title"]." - ".$r_itm["title"]); $l_meta["image"] = ($GLOBALS["g_url"]["http"].$GLOBALS["g_url"]["uploads"]["items"].$r_iim["image_large"]); } else if($p_resource == "items") $l_meta["title"] = ($GLOBALS["g_server"]["title"]." - ".ucwords(str_replace("-", " ", $GLOBALS["g_server"]["redirect"][0]))); if($l_meta["description"] == "") $l_meta["description"] = ($r_rsg["meta_description"]); if($l_meta["keywords"] == "") $l_meta["keywords"] = ($r_rsg["meta_keywords"]); if($l_meta["title"] == "") $l_meta["title"] = ($GLOBALS["g_server"]["title"]." - ".$r_rsr["title"]); // initialize mouseover $l_mouseover = (""); if((substr($p_resource, 0, 3) != "cc_") && ($r_rsr["splash"] != "yes")) $l_mouseover = ("menu('', '');"); ?> <? echo($l_meta["title"]) ?> "> "> "> "> "> " rel="canonical"> .css" rel="stylesheet" type="text/css">

0) database_query("UPDATE ".$GLOBALS["g_database"]["table"]."user_sessions SET user = '".$_SESSION["s_usr"]["pk"]."', session = '".serialize($_SESSION)."', modified = '".date("Y-m-d H:i:s")."' WHERE (user = '".$_SESSION["s_usr"]["pk"]."')"); ?>