<?php session_start(); require_once '../CN/clsCNEnc.php'; //require_once '../CN/clsCNUsu.php'; require_once '../general/funcionesGenerales.php'; $clsCNEnc = new clsCNEnc(); $clsCNEnc->setStrBD($_SESSION['mapeo']); //ESTA MEDIO HECHO 16/10/2015 //actualizo los datos de la tabla 'tbencuestascontestadas' $OK = $clsCNEnc->actualizarEmailAbierto($_GET); //ESTA SIN TERMINAR, ESTE FICHERO FUNCIONA CUANDO SE ABRE UN CORREO QUE TIENE UNA IMAGEN //Y ESTA LO DIRIGE AQUI TRAYENDO DATOS DE ESE CORREO //ESTO VALE PARA DETECTAR CUANDO ABREN UN CORREO, LO MALO ES QUE AL LLEVAR IMAGEN LOS SERVIDORES //DE CORREOS LO DETECTAN COMO SPAN Y NO DEJAN ABRIR LAS IMAGENES $url_app = ''; if ($_SERVER['HTTPS'] === 'on') { $url_app = 'https://'; } else { $url_app = 'http://'; } $url_app = $url_app . $_SERVER['HTTP_HOST'] . '/'; //escribo en un fichero $ddf = fopen('../log/' . $_SESSION['base'] . '/encuesta_emailAbierto.txt', 'a'); date_default_timezone_set('Europe/Madrid'); fwrite($ddf, "[" . date("r") . "] Codigo Encuesta: " . $_GET['e'] . " - Email: " . $_GET['email'] . " - IdCliente: " . $_GET['idcliente'] . "\n"); fclose($ddf); //leo la imagen en si header("Location: " . $url_app . "qualidad1/images/fondo.gif");