/*==================================================================*\ ###################################################################### # # # 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/reviewcomments.php # ---------------------------------------------------------------------------------------------------- # ---------------------------------------------------------------------------------------------------- # LOAD CONFIG # ---------------------------------------------------------------------------------------------------- include("../conf/loadconfig.inc.php"); # ---------------------------------------------------------------------------------------------------- # MOD-REWRITE # ---------------------------------------------------------------------------------------------------- include(LISTING_EDIRECTORY_ROOT."/mod_rewrite.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); } # ---------------------------------------------------------------------------------------------------- # CODE # ---------------------------------------------------------------------------------------------------- include(INCLUDES_DIR."/code/rating.php"); # ---------------------------------------------------------------------------------------------------- # AUX # ---------------------------------------------------------------------------------------------------- // Page Browsing ///////////////////////////////////////// if ($listing_id) $sql_where[] = " listing_id = $listing_id "; if (true) $sql_where[] = " review IS NOT NULL AND review != '' "; if (true) $sql_where[] = " approved = '1' "; if ($sql_where) $where .= " ".implode(" AND ", $sql_where)." "; $pageObj = new pageBrowsing("Rating", $screen, 5, "added DESC", "", "", $where); $ratingsArr = $pageObj->retrievePage("object"); $paging_url = LISTING_DEFAULT_URL."/reviewcomments.php"; # PAGES DROP DOWN ---------------------------------------------------------------------------------------------- $pagesDropDown = $pageObj->getPagesDropDown($_GET, $paging_url, $screen, system_showText(LANG_PAGING_GOTOPAGE)." ", "this.form.submit();"); # -------------------------------------------------------------------------------------------------------------- # ---------------------------------------------------------------------------------------------------- # HEADER # ---------------------------------------------------------------------------------------------------- $extrastyle = array(DEFAULT_URL."/layout/listing_result.css", DEFAULT_URL."/layout/listing_color.css"); $banner_section = "listing"; $headertag_title = "Reviews of ".$listingObj->getString("title"); $headertag_description = "Reviews of ".$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"); ?>