Home
Server Info
Spawn Toolkit
Naxtarrr
Path:
~
/
home
/
u415470203
/
domains
/
orioncorporate.com
/
public_html
/
Filename: captcha.php
<?php session_start(); $rand_num = rand(1111,9999); $_SESSION['CODE'] = $rand_num; $width = 200; $height = 50; $font = 'font/ALGER.TTF'; $size = 40; $image = imagecreate($width, $height); $r=rand(1,200); $g=rand(1,200); $b=rand(1,200); $captch_bg = imagecolorallocate($image,247, 174, 71); imagefill($image, 20, 20, $captch_bg); $captcha_text_color = imagecolorallocate($image, 0, 0, 0); for($i=1;$i<=50; $i++){ $x1=rand(1,200); $y1=rand(1,200); $x2=rand(1,200); $y2=rand(1,200); // imagearc($image, $x1, $y1, $x2, $y2, $x1, $y1, $captcha_text_color); // imagesetthickness($image, $x1); // imageline($image, $x1, $y1, $x2, $y2, $captcha_text_color); } // imagettftext($image, $size, 0, 15, 55, $captcha_text_color, $font, $rand_num); imagestring($image, 14, 70, 25, $rand_num,$captcha_text_color); header('Content-Type:image/jpeg'); imagejpeg($image); ?>
Edit
|
Rename
|
Chmod
|
Delete
|
Create File
Create Folder
Upload File