<?php 

function desencriptar($texto) {
$texto=@base64_decode($texto);
$texto=@base64_decode($texto);
return $texto;
}

$b=desencriptar($_GET["id"]);

Header("Content-type: image/jpg"); 
$texto="www.acayucan.com";
$im = imagecreatefromjpeg('https://www.acayucan.com/imagenes/c652c1d3e10e3697159e0b15/a'.$b.".jpg"); 
$gris   = imagecolorallocate($im, 128, 128, 128);
$negro  = imagecolorallocate($im, 0, 0, 0);
$blanco  = imagecolorallocate($im, 255, 255, 255);
$color  = imagecolorallocate($im, 255, 255, 0);
$tamano  = 17;
$fuente = "postales/1.ttf";

imagettftext($im, 30, 0, 10, 30, $negro, $fuente, $texto);
imagettftext($im, 30, 0, 11, 31, $color, $fuente, $texto);

ImageJpeg($im); 
ImageDestroy($im); 
?> 
