/*==================================================================*\ ###################################################################### # # # Copyright 2005 Arca Solutions, Inc. All Rights Reserved. # # # # This file may not be redistributed in whole or part. # # eDirectory is licensed on a per-domain basis. # # # # ---------------- eDirectory IS NOT FREE SOFTWARE ----------------- # # # # http://www.edirectory.com | http://www.edirectory.com/license.html # ###################################################################### \*==================================================================*/ # ---------------------------------------------------------------------------------------------------- # * FILE: /classified/index.php # ---------------------------------------------------------------------------------------------------- # ---------------------------------------------------------------------------------------------------- # LOAD CONFIG # ---------------------------------------------------------------------------------------------------- include("../conf/loadconfig.inc.php"); # ---------------------------------------------------------------------------------------------------- # VALIDATE FEATURE # ---------------------------------------------------------------------------------------------------- if (CLASSIFIED_FEATURE != "on") { exit; } # ---------------------------------------------------------------------------------------------------- # VALIDATION # ---------------------------------------------------------------------------------------------------- include(EDIRECTORY_ROOT."/includes/code/validate_querystring.php"); # ---------------------------------------------------------------------------------------------------- # USER ZIP LOCATION # ---------------------------------------------------------------------------------------------------- $expire = 60*60*24*30*12; unset($userZipLocation); $_COOKIE = format_magicQuotes($_COOKIE); if ($_COOKIE["UserZipLocation"]) { setcookie("UserZipLocation", $_COOKIE["UserZipLocation"], time() + $expire, "".EDIRECTORY_FOLDER.""); $userZipLocation = $_COOKIE["UserZipLocation"]; } if (isset($_GET["zip"]) || isset($_POST["zip"])) { $userziplocation = $_GET["zip"] ? $_GET["zip"] : $_POST["zip"]; if ($userziplocation) { setcookie("UserZipLocation", $userziplocation, time() + $expire, "".EDIRECTORY_FOLDER.""); $userZipLocation = $userziplocation; } else { setcookie("UserZipLocation", "", time() - $expire, "".EDIRECTORY_FOLDER.""); unset($userZipLocation); } } if ($userZipLocation) { $userZipLocation = system_denyInjections($userZipLocation); $_POST["zip"] = $userZipLocation; $_GET["zip"] = $userZipLocation; $zip = $userZipLocation; } # ---------------------------------------------------------------------------------------------------- # SITE CONTENT # ---------------------------------------------------------------------------------------------------- $contentObj = new Content("", EDIR_LANGUAGE); $sitecontentinfo = $contentObj->retrieveContentInfoByType("Classified Home"); if ($sitecontentinfo) { $headertagtitle = $sitecontentinfo["title"]; $headertagdescription = $sitecontentinfo["description"]; $headertagkeywords = $sitecontentinfo["keywords"]; $sitecontent = $sitecontentinfo["content"]; } else { $headertagtitle = ""; $headertagdescription = ""; $headertagkeywords = ""; $sitecontent = ""; } # ---------------------------------------------------------------------------------------------------- # HEADER # ---------------------------------------------------------------------------------------------------- $extrastyle = array(DEFAULT_URL."/layout/classified_front.css", DEFAULT_URL."/layout/classified_color.css"); $banner_section = "classified"; $headertag_title = $headertagtitle; $headertag_description = $headertagdescription; $headertag_keywords = $headertagkeywords; include(EDIRECTORY_ROOT."/layout/header.php"); ?>
include(CLASSIFIED_EDIRECTORY_ROOT."/search.php"); ?>