[HOME]

Path : /home/hermanostamargo/www/administracion/news/news/
Upload :
Current File : /home/hermanostamargo/www/administracion/news/news/historicoT.php

<?
session_start();
session_register("puedesver");
	$_SESSION['puedesver']='si';
	//	Incluyo el mecanismo de control 
include $_SERVER['DOCUMENT_ROOT'] . "/defines.php";	
include ("../includes/config.php");
include ("../includes/funciones.php");

$ruta=$_GET['ruta'];
$tiempo=$_GET['tim'];
$idcliente = $_GET['t'];

session_register('idSuscriptor');
session_register('vieneDeCorreo');

$_SESSION['idSuscriptor']=$idcliente;
$_SESSION['vieneDeCorreo']='SI';


$cnx=conectar();
$sql = "UPDATE bisionhistoricotester SET cuantosabren = cuantosabren+1 WHERE time=$tiempo";
$res = mysql_query($sql) or die ("Error en el servidor2");

/*
$consulta = "SELECT id FROM bisionhistorico WHERE time=$tiempo";
$resconsulta = mysql_query($consulta) or die ("Error en el servidor3");
$fila = mysql_fetch_array($resconsulta);

//echo "idhistorico: ".$fila['id']." idcliente: ".$idcliente;

$sql2 = "UPDATE bisionhistoricoclientes SET vista = vista+1 WHERE idcliente='".$idcliente."' AND idhistorico='".$fila['id']."'";
$res2 = mysql_query($sql2) or die ("Error en el servidor4");
*/
mysql_close($cnx);
echo "<script>window.location='$ruta';</script>";
?>