KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.62
System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
User : www ( 80)
PHP Version : 8.3.8
Disable Function : NONE
Directory :  /domains/irtiweb/testform/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /domains/irtiweb/testform/show-captcha.php
<?PHP
/*
    Contact Form from HTML Form Guide.
    show-captcha.php is used to display and validate image captcha.

    This program is free software published under the
    terms of the GNU Lesser General Public License.
*/
require_once("./include/fgcontactform.php");
require_once("./include/captcha-creator.php");
session_start();

if(isset($_POST['fg_validate_captcha']))
{
    $captchaobj = new FGCaptchaCreator('scaptcha');
    header("pragma: no-cache");
    header("cache-control: no-cache");

    if(!$captchaobj->ValidateCaptcha($_POST['scaptcha']))
    {
        echo "The code does not match. Please try again!";
    }
    else
    {
        echo "success";
    }
}
else
{
    $captcha = new FGCaptchaCreator('scaptcha');
    header("pragma: no-cache");
    header("cache-control: no-cache");
    $captcha->DisplayCaptcha();
}
?>

Anon7 - 2021