Scripts » Criminals Scripts » Script
Werkende img.php voor vendetta
23-08-2010 13:36
Offline Stuur privëbericht
Maffiabullet
Berichten: 11

Log in om dit te kunnen downloaden
Het is jammer genoeg wel hoofdletter gevoelig.

<?php
session_start();
error_reporting( 0 );
$width = 50; // breedte
$height = 50; // hoogte
$len = 2; // lengte tekst
$fontsize = 50; // lettertype

unset($random_text);

$lchar = 0;
$char = 0;
/**************************************************
$random_text is de code
**************************************************/
// tekst maken
for($i = 0; $i < $len; $i++) {
while($char == $lchar) {
$char = rand(48, 109);
if($char > 57) $char += 7;
if($char > 90) $char += 6;
}
$random_text .= chr($char);
$lchar = $char;
}

$fontwidth = ImageFontWidth($fontsize) * strlen($random_text);
$fontheight = ImageFontHeight($fontsize);

// afbeelding grootte
$im = @imagecreate($width,$height);

// achtergrond maken
$background_colour = imagecolorallocate($im, 204, 0, 0);

// tekst kleur
$text_colour = imagecolorallocate($im, rand(150,255), rand(150,255), rand(150,255));

// border
imagerectangle($im, 0, 0, $width-1, $height-1, $text_colour);

// string tekenen
imagestring($im, $fontsize, rand(3, $width-$fontwidth-3), rand(2, $height-$fontheight-3), $random_text, $text_colour);

//output
header("Content-type: image/jpeg"
imagejpeg($im,'',80);

imagedestroy($im);

$_SESSION["verify"] = $random_text;
?>
Berichten: 552
Offline Stuur privébericht
Kan je tussen code tags zetten ?
2010-08-24 00:11:55
Maffiabullet
Berichten: 11
Offline Stuur privébericht
hoe
2010-08-24 20:02:22
Berichten: 470
Offline Stuur privébericht
Code | Selecteer Alles
minimaliseren
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
session_start
();
$width      100;
$height     =  40;
$len        =  3;
$fontsize   =  15;
$keys "abcdefghijklmnopqrstuvwxyz0123456789";
unset(
$random_text);
$lchar 0;
$char  0;
$max=strlen($keys)-1;
for (
$i=0;$i $len;$i++) {
$random_text .= substr($keysrand(0$max), 1);
}
$fontwidth  ImageFontWidth($fontsize) * strlen($random_text);
$fontheight ImageFontHeight($fontsize);
$im = @imagecreate($width,$height);
$background_colour imagecolorallocate($imrand(0,255), rand(0,100), rand(0,100));
$text_colour imagecolorallocate($imrand(150,255), rand(150,255), rand(150,255)); 
imagerectangle($im00$width-1$height-1$text_colour);
imagestring($im$fontsizerand(3$width-$fontwidth-3), rand(2$height-$fontheight-3), $random_text$text_colour);
header("Content-type: image/png");
imagepng($im,'',80);
imagedestroy($im);
$_SESSION["verify"] = $random_text;
?>
2010-08-30 15:40:03