Upload
This commit is contained in:
42 files changed
+4036
No files matched your search
+24
@@ -0,0 +1,24 @@
|
||||
<?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);
|
||||
Reference in new issue
Block a user