getString("item_type"); $item_id = $reviewObj->getNumber("item_id"); $reviewObj->Delete(); $avg = $reviewObj->getRateAvgByItem($item_type, $item_id); if (!is_numeric($avg)) $avg = 0; if ($item_type == 'listing') { $listing = new Listing(); $listing->setAvgReview($avg, $item_id); } else if ($item_type == 'article') { $articles = new Article(); $articles->setAvgReview($avg, $item_id); } else { $promotions = new Promotion(); $promotions->setAvgReview($avg, $item_id); } $message = system_showText(LANG_MSG_REVIEW_SUCCESS_DELETED); $message_style = "successMessage"; } } # ---------------------------------------------------------------------------------------------------- # SITE CONTENT # ---------------------------------------------------------------------------------------------------- $contentObj = new Content("", EDIR_LANGUAGE); $sitecontentSection = "Profile Page"; $sitecontentinfo = $contentObj->retrieveContentInfoByType($sitecontentSection); if ($sitecontentinfo) { $headertagtitle = $sitecontentinfo["title"]; $headertagdescription = $sitecontentinfo["description"]; $headertagkeywords = $sitecontentinfo["keywords"]; $sitecontent = $sitecontentinfo["content"]; } else { $headertagtitle = ""; $headertagdescription = ""; $headertagkeywords = ""; $sitecontent = ""; } # ---------------------------------------------------------------------------------------------------- # HEADER # ---------------------------------------------------------------------------------------------------- $headertag_title = $headertagtitle; $headertag_description = $headertagdescription; $headertag_keywords = $headertagkeywords; $hide_search = true; include(EDIRECTORY_ROOT."/layout/header.php"); # ---------------------------------------------------------------------------------------------------- # AUX # ---------------------------------------------------------------------------------------------------- require(EDIRECTORY_ROOT."/frontend/checkregbin.php"); $mapObj = new GoogleSettings(GOOGLE_MAPS_STATUS); $levelObj = new ListingLevel(); # ---------------------------------------------------------------------------------------------------- # BODY # ---------------------------------------------------------------------------------------------------- if (sess_validateSessionItens("general", "see_profile", true, $id? "": 0)) { $info = socialnetwork_retrieveInfoProfile($id); if (EDIR_THEME) { include(THEMEFILE_DIR."/".EDIR_THEME."/body/profile_index.php"); } else { include(EDIRECTORY_ROOT."/frontend/body/profile_index.php"); } } ?> retrieveContentInfoByType($sitecontentSection); if ($sitecontentinfo) { $headertagtitle = $sitecontentinfo["title"]; $headertagdescription = $sitecontentinfo["description"]; $headertagkeywords = $sitecontentinfo["keywords"]; $sitecontent = $sitecontentinfo["content"]; } else { $headertagtitle = ""; $headertagdescription = ""; $headertagkeywords = ""; $sitecontent = ""; } # ---------------------------------------------------------------------------------------------------- # FOOTER # ---------------------------------------------------------------------------------------------------- include(EDIRECTORY_ROOT."/layout/footer.php"); ?>