improve captcha, replace the global variable by a "DEFINE" constant

This commit is contained in:
sparkyx 2021-04-24 10:49:28 +02:00
parent f11ae20509
commit 5b30467fad
6 changed files with 16 additions and 8 deletions

View file

@ -27,7 +27,7 @@ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once NOALYSS_INCLUDE.'/class/user.class.php';
require_once NOALYSS_INCLUDE.'/class/acc_bilan.class.php';
global $g_captcha,$g_failed,$g_succeed;
global $g_failed,$g_succeed;
$cn=Dossier::connect();
$exercice=$g_user->get_exercice();
echo '<div class="content">';