Hide deprecated warnings in CAPTCHA script

master
Trevor Slocum 2023-09-24 23:38:31 -07:00
parent e0bddde850
commit 2f357d6418
1 changed files with 3 additions and 0 deletions

View File

@ -11,6 +11,9 @@
session_start();
putenv('GDFONTPATH=' . realpath(dirname(__FILE__)) . '/fonts/');
error_reporting(E_ALL ^ (E_NOTICE | E_WARNING | E_DEPRECATED));
$captcha = new SimpleCaptcha();
$captcha->CreateImage();