/*==================================================================*\ ###################################################################### # # # 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: /listing/review.php # ---------------------------------------------------------------------------------------------------- # ---------------------------------------------------------------------------------------------------- # LOAD CONFIG # ---------------------------------------------------------------------------------------------------- include("../conf/loadconfig.inc.php"); # ---------------------------------------------------------------------------------------------------- # VALIDATION # ---------------------------------------------------------------------------------------------------- include(EDIRECTORY_ROOT."/includes/code/validate_querystring.php"); include(EDIRECTORY_ROOT."/includes/code/validate_frontrequest.php"); # ---------------------------------------------------------------------------------------------------- # AUX # ---------------------------------------------------------------------------------------------------- // checking if ratings are enabled - security feature setting_get("rating_enabled", $rating_enabled); if ($rating_enabled != "on") { $error_message = system_showText(LANG_LISTING_RATINGDISABLE); } $rating = $_POST["rating"]; # ---------------------------------------------------------------------------------------------------- # CODE # ---------------------------------------------------------------------------------------------------- if ($_SERVER["REQUEST_METHOD"] == "POST") { $_POST["reviewer_name"] = system_denyInjections($_POST["reviewer_name"]); $_POST["reviewer_email"] = system_denyInjections($_POST["reviewer_email"]); $_POST["reviewer_location"] = system_denyInjections($_POST["reviewer_location"]); $_POST["review_title"] = system_denyInjections($_POST["review_title"]); $_POST["review"] = system_denyInjections($_POST["review"]); } include(INCLUDES_DIR."/code/rating.php"); # ---------------------------------------------------------------------------------------------------- # HEADER # ---------------------------------------------------------------------------------------------------- $extrastyle = array(DEFAULT_URL."/layout/listing_result.css", DEFAULT_URL."/layout/listing_color.css"); $banner_section = "listing"; $headertag_title = system_showText(LANG_LISTING_REVIEWSOF)." ".$listingObj->getString("title"); $headertag_description = system_showText(LANG_LISTING_REVIEWSOF)." ".$listingObj->getString("title").", ".$listingObj->getString("description"); $headertag_keywords = str_replace(" || ", ", ", $listingObj->getString("keywords")); include(EDIRECTORY_ROOT."/layout/header.php"); ?>
include(LISTING_EDIRECTORY_ROOT."/search.php"); ?>