/** * Title: ganzi.IT * Description: Dettaglio Annuncio Immobiliare * Copyright: Copyright (c) 2005 * Company: * @author Gabriele Ganzi * @version 1.0 */ require_once("std/config.inc.php"); require_once("std/std.inc.php"); require_once("std/dummy.inc.php"); if (!isset($_SERVER['HTTP_REFERER'])) $_SERVER['HTTP_REFERER'] = 'index.php'; //se non sono sicuro che arrivo da me stesso, allora, mi forzo la home come pagina di ritorno if (strpos($_SERVER['HTTP_REFERER'],'www.ganzi.it')==-1) $_SERVER['HTTP_REFERER'] = 'index.php'; $referer = $_SERVER['HTTP_REFERER']; if ($_REQUEST['adsid']!=''){ //Carico i dati $SQL = "SELECT * FROM site.immobiliare WHERE id=".$_REQUEST['adsid']." AND stato='1'"; $res = mysql_query($SQL) or die($SQL); if (mysql_num_rows($res)==1){ $row = mysql_fetch_array($res); } else { header("Location: ".$referer); } } $__title = ucfirst($row['tipo'])." ".$row['topologia']." ".ucfirst($row['town']) ; $__key = ""; // HITS COUNT if ($_SESSION['uid']!= $row['user_id']) mysql_query("UPDATE site.immobiliare SET hits=hits+1 WHERE id=".$_REQUEST['adsid']); $____googleClass = "googleAdsGreen"; ?>