include('libraries/dyn/connection.php'); include('libraries/dyn/utilities.php'); if (!isset($_GET['npage']) || $_GET['npage']==0 || !is_numeric($_GET['npage'])) { $npage=1; } else { $npage=$_GET['npage']; } $SQL_PAGE = "SELECT a.title, a.summary, a.image, a.author, a.date, b.content, b.npage FROM ARTICLES a, ARTICLES_PAGES b WHERE a.id_article=b.id_article AND a.status='on' AND a.date<=now() AND a.id_article=".(int)$_GET['id']." AND npage=".(int)$npage; $QUERY_PAGE = mysql_query($SQL_PAGE) or die (); $ARTICLE_PAGE = mysql_fetch_array($QUERY_PAGE) or die(); ?>
=strtoupper($ARTICLE_PAGE['title'])?> | ||||||
=$ARTICLE_PAGE['summary']?> | ||||||
di =$ARTICLE_PAGE['author']?> | ||||||
if (isset($_POST['mittente']) && $_POST['destinatario'] && checkMail($_POST['mittente']) && checkMail($_POST['destinatario'])) {
$report="ok";
} else {
$report="ko";
}
if (spamCheck($_SERVER['REMOTE_ADDR'])) {
if ($_POST['op']=="send" && $report=="ok") {
$SQL_SEC_UPD = "INSERT INTO SECURITY VALUES (null, '".$_SERVER['REMOTE_ADDR']."', now() )";
mysql_query($SQL_SEC_UPD) or die ();
mail($_POST['destinatario'], "Terranauta.it: ".$ARTICLE_PAGE['title'], "Un amico ti segnala quest articolo:\n http://".$_SERVER['HTTP_HOST']."/recensione_det.php?id=".$_GET['id'] ,
"From: ".$_POST['mittente']."\r\n" .
"Reply-To: ".$_POST['mittente']."\r\n" .
"X-Mailer: PHP/" . phpversion());
?>
Chiudi Finestra } else { if ($_POST['op']=="send" && $report="ko") { ?> Errore nella compilazione dei campi } } } else { ?> [Spam alert On] Operazione fallita. } ?> |