From 5281254e8218195bf64fa107d00aea10c9841a1a Mon Sep 17 00:00:00 2001 From: Jan BELLON Date: Mon, 11 Mar 2024 21:44:29 +0000 Subject: [PATCH] Update 3 files - /html/user.php - /config/global.ini - /include/variables.php --- config/global.ini | 7 ++++++- html/user.php | 13 ++++++++++++- include/variables.php | 1 + 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/config/global.ini b/config/global.ini index 14d3e6d0..a14e19c9 100644 --- a/config/global.ini +++ b/config/global.ini @@ -34,4 +34,9 @@ A propos = "about.php" [themes_light] 0 = '--text: hsl(0, 0%, 20%);--background: hsl(0, 0%, 100%);--banner-background: hsl(0, 0%, 100%);--buttons: hsl(0, 0%, 100%)' -1 = '--text: hsl(208, 100%, 0%); --background: hsl(215, 21%, 100%); --banner-background: hsl(216, 28%, 95%); --buttons: hsl(216, 28%, 95%)' \ No newline at end of file +1 = '--text: hsl(208, 100%, 0%); --background: hsl(215, 21%, 100%); --banner-background: hsl(216, 28%, 95%); --buttons: hsl(216, 28%, 95%)' + +[certifcolors] +1 = "#ff0000" +2 = "#00ff00" +3 = "#0000ff" \ No newline at end of file diff --git a/html/user.php b/html/user.php index 876a0c94..fe2db4f6 100644 --- a/html/user.php +++ b/html/user.php @@ -78,6 +78,9 @@ if($resultat) { ?> } + .certification { + color: 0 ? $certif_colors[$user_role] : "#000000"?>; + } <?=$title?> @@ -116,11 +119,19 @@ if($resultat) {
+
+ + ' + } + ?> + +
@
-
Compte créé le
diff --git a/include/variables.php b/include/variables.php index e1352ef4..f3d87015 100644 --- a/include/variables.php +++ b/include/variables.php @@ -20,4 +20,5 @@ $classifications = $config['classifications']; $roles = $config['roles']; $themes_dark = $config['themes_dark']; $themes_light = $config['themes_light']; +$certif_colors = $config['certifcolors'] ?> \ No newline at end of file