1
0
orblog-legacy/captcha.php
2025-08-23 18:33:45 +03:00

25 lines
751 B
PHP

<?php
/*-----------------------------------------------------------------------------
orblog - Simple blog for hidden networks.
Version: 0.1
Git: https://git.runx.zip/chicory/orblog-legacy
Copyright: chicory@runx.zip 2020
License: http://www.apache.org/licenses/LICENSE-2.0
-----------------------------------------------------------------------------*/
session_name('SESSID');
session_start();
$captcha = imagecreate(80, 30);
imagecolorallocate($captcha, 255, 255, 255);
$color = imagecolorallocate($captcha, 60, 60, 60);
imagettftext($captcha, 16, 0, 6, 22, $color,
'public/style/roboto.ttf', $_SESSION['captcha']);
header('Content-type: image/png');
imagepng($captcha);