query($SQL); $num_rows = mysqli_num_rows($RSQL); if ($num_rows>0) { $linha = mysqli_fetch_array($RSQL); $to=$linha['email']; } //echo('---->'); exit; $subject = system_denyInjections($subject); $body = system_denyInjections($body); $error = ""; if (!validate_email($to)) $error .= system_showText(LANG_MSG_CONTACT1)."
"; if (!validate_email($from)) $error .= system_showText(LANG_MSG_CONTACT1)."
"; if (!$body) $error .= system_showText(LANG_MSG_CONTACT2)."
"; if (md5($_POST["captchatext"]) != $_SESSION["captchakey"]) { $error .= system_showText(LANG_MSG_CONTACT3)."
"; } if (empty($error)) { if (empty($subject)) $subject = LANG_LISTING_CONTACTSUBJECT_ISNULL_1." ".$listing->getString("title")." ".LANG_LISTING_CONTACTSUBJECT_ISNULL_2." ".EDIRECTORY_TITLE; $subject = stripslashes($subject); $body = stripslashes($body); $subject = "[".system_showText(LANG_CONTACTPRESUBJECT)." ".EDIRECTORY_TITLE."] ".$subject; $return = system_mail($to, $subject, $body, $from); if ($return) { $error = system_showText(LANG_CONTACTMSGSUCCESS); $message_style = "successMessage"; } else { $error = system_showText(LANG_CONTACTMSGFAILED)."
"; } if ($return) { report_newRecord("listing", $_POST["id"], LISTING_REPORT_EMAIL_SENT); unset($from, $subject, $body); } } else { $error .= system_showText(LANG_MSG_CONTACT4); } } if (($_REQUEST["id"]) || ($_POST["id"])) { $id = $_REQUEST["id"] ? $_REQUEST["id"] : $_POST["id"]; $listing = new Listing($id); $level = new ListingLevel(); unset($listingMsg); if ((!$listing->getNumber("id")) || ($listing->getNumber("id") <= 0)) { $listingMsg = ucwords(LISTING_FEATURE_NAME)." not found!"; } elseif ($listing->getString("status") != "A") { $listingMsg = ucwords(LISTING_FEATURE_NAME)." not available!"; } elseif ($level->getDetail($listing->getNumber("level")) != "y") { $listingMsg = ucwords(LISTING_FEATURE_NAME)." not available!"; } else { report_newRecord("listing", $id, LISTING_REPORT_DETAIL_VIEW); } } else { header("Location: ".LISTING_DEFAULT_URL."/"); exit; } if ($id) $sql_where[] = " listing_id = ".db_formatNumber($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, 3, "added DESC", "", "", $where); $ratingsArr = $pageObj->retrievePage("object"); if (($listing->getNumber("id")) && ($listing->getNumber("id") > 0)) { $listCategs = $listing->getCategories(); if ($listCategs) { foreach ($listCategs as $listCateg) { $category_id[] = $listCateg->getNumber("id"); } } } $_POST["category_id"] = $category_id; $extrastyle = array(DEFAULT_URL."/layout/listing_detail.css", DEFAULT_URL."/layout/listing_color.css"); $banner_section = "listing"; $CAT_ID=$category_id[0]; $TEXTO_TITULO=""; $NUMERO_LINHAS=1; while ($NUMERO_LINHAS>0) { $dbObj = db_getDBObject(); $SQL="select * from ListingCategory where id='$CAT_ID'"; $LINHA = $dbObj->query($SQL); //$SQL="select * from ListingCategory where id='$CAT_ID'"; //$LINHA=mysqli_query($db_link, $SQL) or die(mysqli_error()); $NUMERO_LINHAS = mysqli_num_rows($LINHA); if ($NUMERO_LINHAS>0) { $ROW = mysqli_fetch_array($LINHA); if ($TEXTO_TITULO=="") $TEXTO_TITULO=$ROW['title']; else $TEXTO_TITULO = $ROW['title'] .' - '.$TEXTO_TITULO; $CAT_ID=$ROW['category_id']; } } if (strpos($_SERVER['HTTP_HOST'],'www.')!==false) $NN=substr($_SERVER['HTTP_HOST'],strpos($_SERVER['HTTP_HOST'],'www.')+4); else $NN=$_SERVER['HTTP_HOST']; $headertag_title = $listing->getString("title").' - '.$NN; $headertag_description =$NN.' - '. $listing->getString("title").';' .$listing->getString("description"); $headertag_keywords = str_replace(" || ", " ", $listing->getString("keywords")); $TEXTO_KEYWORDS=""; //echo("==".$headertag_keywords); $FFRR=explode(' ',$listing->getString("title").' '.$TEXTO_TITULO); foreach($FFRR as $FR) { if (strlen($FR)>=5) $TEXTO_KEYWORDS .=', '.$FR; } $headertag_keywords .= $TEXTO_KEYWORDS; include(EDIRECTORY_ROOT."/layout/header.php"); //------------------ ***-------------- $mostra_google=true; if ($listing) $xxdd=$listing->getString("title").','.$listing->getString("description").','.$listing->getString("long_description").','. $listing->getString("fulltext_search"); $arr_w=array(); $arr_w=preg_split("/\s|,|;|\.|\?|:|\'|\"/",$xxdd); //print_r($arr_w); //exit; //echo(BADWORDS); $badwords=explode(',',BADWORDS); if ($badwords) foreach($badwords as $bword) { $oopp=false; $maiswords=explode('+',$bword); if ($maiswords) foreach($maiswords as $mword) { //echo('
:::>'.$mword); if (stripos($xxdd,$mword)===false) //if (!in_array($mword, $arr_w, true)) { $oopp=true; } } //echo('::'.$oopp); if (!$oopp) { $mostra_google=false; break; } } //------------------***-------------- ?>
".$listingMsg."

"; } ?>