✏️ Edit: imagen.php
Path:
/home/thiqat5/cargo.thiqatech.com/imagen.php
Size: 424 B · Modified: 2015-06-25 19:12:42 · Perm: 0644 · Writable
← Back to directory
👁 View
⬇ Download
<?php header("Content-type: image/png"); $im=@imagecreatetruecolor(120, 42); $color_fondo=imagecolorallocate($im,102,102,153);#color negro $color_texto=imagecolorallocate($im,255,255,255);#color blanco session_start(); $key=''; for($x=15; $x<=95; $x+=20){ $key.=($num=rand(0,9)); imagechar($im,rand(3,5),$x,rand(2,14),$num,$color_texto); } imagepng($im); imagedestroy($im); $_SESSION['img_number']=$key; ?>
💾 Save
Cancel
Save as UTF-8, newlines normalized to LF