OXIESEC PANEL
- Current Dir:
/
/
home
/
cubot
/
docroot
/
assets
/
plugins
/
sky-forms-pro
/
skyforms
/
captcha
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/14/2022 11:10:45 AM
rwxr-xr-x
📄
button.png
1.51 KB
08/14/2022 11:10:44 AM
rw-r--r--
📁
font
-
08/14/2022 11:10:44 AM
rwxr-xr-x
📄
image.php
852 bytes
08/14/2022 11:10:44 AM
rw-r--r--
📄
process.php
302 bytes
08/14/2022 11:10:44 AM
rw-r--r--
Editing: image.php
Close
<?php // Begin the session session_start(); // If the session is not present, set the variable to an error message if(!isset($_SESSION['captcha_id'])) $str = 'ERROR!'; // Else if it is present, set the variable to the session contents else $str = $_SESSION['captcha_id']; // Set the content type //header('Content-type: image/png'); header('Cache-control: no-cache'); // Create an image from button.png $image = imagecreatefrompng('button.png'); // Set the font colour $colour = imagecolorallocate($image, 183, 178, 152); // Set the font $font = 'font/anorexia.ttf'; // Set a random integer for the rotation between -15 and 15 degrees $rotate = rand(-10, 10); // Create an image using our original image and adding the detail imagettftext($image, 20, $rotate, 18, 30, $colour, $font, $str); // Output the image as a png imagepng($image); ?>