mirror of
http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/darknet-lantern.git
synced 2025-05-16 12:16:57 +00:00
28 lines
679 B
PHP
28 lines
679 B
PHP
<?php
|
|
|
|
session_start();
|
|
$_SESSION['secure'] = rand(1000,999999);
|
|
header('Content-type: image/jpeg');
|
|
$text = $_SESSION['secure'];
|
|
|
|
$font_size = 30;
|
|
$image_width = 125;
|
|
$image_height = 40;
|
|
|
|
$image = imagecreate($image_width,$image_height);
|
|
imagecolorallocate($image, 255,255,255);
|
|
$text_color = imagecolorallocate($image, 0,0,0);
|
|
|
|
for ($x=1;$x<=45;$x++){
|
|
$x1 = rand(1,100);
|
|
$y1 = rand(1,100);
|
|
$x2 = rand(1,100);
|
|
$y2 = rand(1,100);
|
|
// Diplays the lines on the image. Now 45 lines.
|
|
imageline($image, $x1, $y1, $x2, $y2, $text_color);
|
|
}
|
|
// Adds font
|
|
imagettftext($image, $font_size, 0, 15, 30, $text_color, './font.ttf', $text);
|
|
// Returns an image
|
|
imagejpeg($image);
|
|
?>
|