File manager - Edit - /home/asiatechinc/public_html/asiatechinc-websites/hotellotusladakh.in/captcha.php
Back
<?Php session_start(); // Staring Session $size_x = "100"; $size_y = "30"; $image = imagecreate($size_x,$size_y); $captchanumber = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijklmnopqrstuvwxyz'; // Initializing PHP variable with string $captchanumber = substr(str_shuffle($captchanumber), 0, 6); // Getting first 6 word after shuffle. $_SESSION["captchacode"] = $captchanumber; $foreground = imagecolorallocate($image, 225, 225, 225); // Font Color $text_number1 = mt_rand("0","150"); $text_number2 = mt_rand("0","150"); $text_number3 = mt_rand("0","150"); $text = imagecolorallocate($image,$text_number1,$text_number2,$text_number3); imagestring($image, 5, 20, 5, $captchanumber, $text); header('Content-type: image/png'); imagepng($image); ?>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.04 |
proxy
|
phpinfo
|
Settings