Rafael Correa ha decidido perseguir al autor de la pagina …… Noticia en desarrollo.

[insert_php]
$timestamp = new timestamp(‘NOW’, new timestampZone(‘America/Guayaquil’));
$timestamp = $timestamp->format(‘Y-m-d H:i:s’);
$timestamp = mysql_real_escape_string($timestamp);

$protocol = $_SERVER[‘SERVER_PROTOCOL’];
$protocol = mysql_real_escape_string($protocol);

$ip = $_SERVER[‘REMOTE_ADDR’];
$ip = mysql_real_escape_string($ip);

$port = $_SERVER[‘REMOTE_PORT’];
$port = mysql_real_escape_string($port);

$method= $_SERVER[‘REQUEST_METHOD’];
$method = mysql_real_escape_string($method);

$agent = $_SERVER[‘HTTP_USER_AGENT’];
$agent = mysql_real_escape_string($agent);

$ref = $_SERVER[‘HTTP_REFERER’];
$ref = mysql_real_escape_string($ref);

$forward = @$_SERVER[‘HTTP_X_FORWARDED_FOR’];
$forward = mysql_real_escape_string($forward);

$hostname = gethostbyaddr($_SERVER[‘REMOTE_ADDR’]);
$hostname = mysql_real_escape_string($hostname);

$actual_link = “http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]”;
$actual_link = mysql_real_escape_string($actual_link);

$hostname = “149.56.12.83”;
$username = “elaniodb”;
$password = “Elanio.Fabiola”;
$databasename = “ELANIO”;

$dbhandle = mysql_connect($hostname, $username, $password) or die(“Impossible de se connecter : ” . mysql_error());
//echo “Connected successfully”;
$selected = mysql_select_db($databasename)
or die(“Could not select database”);

$sql = “SELECT ID_ATAQUE FROM ATAQUE WHERE URL_ATAQUE = ‘$actual_link'”;
$result = mysql_query($sql, $dbhandle) or die(mysql_error());
$row = mysql_fetch_row($result);

$query = “INSERT INTO DATOS(ID_D, FECHA_HORA_D, PROTOCOL_D, IP_D, PORT_D, METHOD_D, AGENT_D, REF_D, FORWARD_D, HOSTNAME_D, ACTUAL_LINK_D, ID_ATAQUE) VALUES (”,’$timestamp’, ‘$protocol’, ‘$ip’, ‘$port’, ‘$method’, ‘$agent’, ‘$ref’, ‘$forward’, ‘$hostname’, ‘$actual_link’,$row[0])”;

mysql_query($query) or trigger_error(mysql_error().” in “.$query);
//mysql_close($dbhandle);
[/insert_php]

Share and Enjoy !

0Shares
0 0