mirror of
http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/darknet-lantern.git
synced 2025-05-16 20:26:58 +00:00
Added captcha: Created new page with captcha auth and fields saving mechanism.
This commit is contained in:
parent
243e3d24bb
commit
412a36e66d
10 changed files with 592 additions and 8 deletions
28
www/generate.php
Normal file
28
www/generate.php
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?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);
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue