From 588c4ceb78fae443ca8f9446d256f5474a3bf66a Mon Sep 17 00:00:00 2001 From: Debulois Date: Sat, 7 May 2022 12:23:11 +0200 Subject: Ré-écriture du JS pour le rendre CSP compliant MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Template/Include/incl_form_admin.php | 6 +++--- Template/Include/incl_form_register.php | 4 ++-- Template/Include/incl_form_userInfo.php | 7 +++---- Template/Include/incl_global_message.php | 13 +++++-------- Template/Include/incl_global_navbar.php | 2 +- Template/Include/incl_global_notification.php | 4 ++-- Template/Include/incl_table_myMission.php | 6 +++--- 7 files changed, 19 insertions(+), 23 deletions(-) (limited to 'Template/Include') diff --git a/Template/Include/incl_form_admin.php b/Template/Include/incl_form_admin.php index a366384..16385c0 100644 --- a/Template/Include/incl_form_admin.php +++ b/Template/Include/incl_form_admin.php @@ -32,9 +32,9 @@ echo(' // **************************************************************************** echo('
- - - + + +
'.PHP_EOL); // **************************************************************************** diff --git a/Template/Include/incl_form_register.php b/Template/Include/incl_form_register.php index 8462e02..0d8af79 100644 --- a/Template/Include/incl_form_register.php +++ b/Template/Include/incl_form_register.php @@ -20,14 +20,14 @@ echo('

'.$text[basename(__FILE__, ".php")]["mailNotice"].'

'.$text[basename(__FILE__, ".php")]["passNotice"].' diff --git a/Template/Include/incl_form_userInfo.php b/Template/Include/incl_form_userInfo.php index 1fd78d5..c5091c5 100644 --- a/Template/Include/incl_form_userInfo.php +++ b/Template/Include/incl_form_userInfo.php @@ -86,7 +86,7 @@ if ($_SESSION["userStatus"] == 1) { echo(' '.PHP_EOL); } echo(' - +

'.PHP_EOL); @@ -121,10 +121,9 @@ if ($_SESSION["userStatus"] == 1) { '.PHP_EOL); // **************************************************************************** - // CHARGEMENT ET DECLENCHEMENT DU JAVASCRIPT DEDIE A CETTE PAGE + // CHARGEMENT DU JAVASCRIPT DEDIE A CETTE PAGE UNIQUEMENT SI PRO // **************************************************************************** - echo(' - '); + echo(' '); } // **************************************************************************** diff --git a/Template/Include/incl_global_message.php b/Template/Include/incl_global_message.php index 1f8591f..bb9926c 100644 --- a/Template/Include/incl_global_message.php +++ b/Template/Include/incl_global_message.php @@ -34,10 +34,7 @@ if ($messageText[$name][$status]["success"]) { // **************************************************************************** echo('

'.$messageText[$name][$status]["info"].'

-

'.$redirect.'

- - -'); +

'.$redirect.'

'); // **************************************************************************** // RECUPERATION DE LA PAGE VERS LAQUELLE REDIRIGER SI CE N'EST PAS L'INDEX @@ -56,11 +53,11 @@ if ($messageText[$name][$status]["toSrc"]) { // DECLENCHEMENT DU JAVASCRIPT AVEC LA PAGE DE DESTINATION DONNEE EN ARGUMENT // **************************************************************************** if ($messageText[$name][$status]["timer"]) { - echo(' - '); + echo(' +
'); } else { - echo(' - '); + echo(' +
'); } ?> \ No newline at end of file diff --git a/Template/Include/incl_global_navbar.php b/Template/Include/incl_global_navbar.php index 26f5872..efcff81 100644 --- a/Template/Include/incl_global_navbar.php +++ b/Template/Include/incl_global_navbar.php @@ -16,7 +16,7 @@ require_once(dirname( __FILE__ )."/".$_SESSION["lang"]."/text.php"); echo('
- +

'.$text[basename(__FILE__, ".php")]["h2"].'

diff --git a/Template/Include/incl_global_notification.php b/Template/Include/incl_global_notification.php index 5edc9bd..55be411 100644 --- a/Template/Include/incl_global_notification.php +++ b/Template/Include/incl_global_notification.php @@ -12,8 +12,8 @@ require_once(dirname( __FILE__ )."/".$_SESSION["lang"]."/text.php"); // Partie html de la notification echo('