C
This commit is contained in:
parent
6fee23659a
commit
df3413c69d
@ -32,9 +32,11 @@ footerText = "© Jan BELLON - E59 v1.3"
|
|||||||
3 = '<path fill="#d39367" d="M21.75,9.92l-1.31-2.67c-.04-.09-.08-.19-.12-.28l-.96-2.81c-.25-.72-.81-1.28-1.52-1.52l-2.81-.96c-.1-.03-.19-.07-.28-.12L12.08.25c-.68-.33-1.48-.33-2.16,0l-2.67,1.31c-.09.04-.19.08-.28.12l-2.81.96c-.72.25-1.28.81-1.52,1.52l-.96,2.81c-.03.1-.07.19-.12.28L.25,9.92c-.33.68-.33,1.48,0,2.16l1.31,2.67c.04.09.08.19.12.28l.96,2.81c.25.72.81,1.28,1.52,1.52l2.81.96c.1.03.19.07.28.12l2.67,1.31c.68.33,1.48.33,2.16,0l2.67-1.31c.09-.04.19-.08.28-.12l2.81-.96c.72-.25,1.28-.81,1.52-1.52l.96-2.81c.03-.1.07-.19.12-.28l1.31-2.67c.33-.68.33-1.48,0-2.16ZM16.91,8.78l-6.84,6.83c-.37.37-.98.37-1.35,0l-3.64-3.64c-.48-.48-.48-1.27,0-1.76.48-.48,1.27-.48,1.76,0l2.56,2.56,5.76-5.76c.48-.48,1.27-.48,1.76,0,.48.48.48,1.27,0,1.76Z"/>'
|
3 = '<path fill="#d39367" d="M21.75,9.92l-1.31-2.67c-.04-.09-.08-.19-.12-.28l-.96-2.81c-.25-.72-.81-1.28-1.52-1.52l-2.81-.96c-.1-.03-.19-.07-.28-.12L12.08.25c-.68-.33-1.48-.33-2.16,0l-2.67,1.31c-.09.04-.19.08-.28.12l-2.81.96c-.72.25-1.28.81-1.52,1.52l-.96,2.81c-.03.1-.07.19-.12.28L.25,9.92c-.33.68-.33,1.48,0,2.16l1.31,2.67c.04.09.08.19.12.28l.96,2.81c.25.72.81,1.28,1.52,1.52l2.81.96c.1.03.19.07.28.12l2.67,1.31c.68.33,1.48.33,2.16,0l2.67-1.31c.09-.04.19-.08.28-.12l2.81-.96c.72-.25,1.28-.81,1.52-1.52l.96-2.81c.03-.1.07-.19.12-.28l1.31-2.67c.33-.68.33-1.48,0-2.16ZM16.91,8.78l-6.84,6.83c-.37.37-.98.37-1.35,0l-3.64-3.64c-.48-.48-.48-1.27,0-1.76.48-.48,1.27-.48,1.76,0l2.56,2.56,5.76-5.76c.48-.48,1.27-.48,1.76,0,.48.48.48,1.27,0,1.76Z"/>'
|
||||||
|
|
||||||
[darkThemes]
|
[darkThemes]
|
||||||
0 = '--text: hsl(0, 0%, 80%);--background: hsl(0, 0%, 15%);--panel-background: hsl(0, 0%, 10%);--buttons: hsl(0, 0%, 5%)'
|
0 = '.body {--text: hsl(0, 0%, 80%); --background: hsl(0, 0%, 15%); --panel-background: hsl(0, 0%, 10%); --buttons: hsl(0, 0%, 5%)}'
|
||||||
1 = '--text: hsl(208, 100%, 96%); --background: hsl(215, 21%, 11%); --panel-background: hsl(216, 28%, 7%); --buttons: hsl(216, 28%, 7%)'
|
1 = '.body {--text: hsl(208, 100%, 96%); --background: hsl(215, 21%, 11%); --panel-background: hsl(216, 28%, 7%); --buttons: hsl(216, 28%, 7%)}'
|
||||||
|
2 = '.body {--text: hsl(160, 65%, 95%); --background: hsl(160, 65%, 3%); --panel-background: hsl(160, 65%, 3%); --buttons: hsl(160, 65%, 3%)} .text-input, .file-input input, .select-input, .select-input select, textarea, .button, button, .form {border:1px solid var(--text)}'
|
||||||
|
|
||||||
[lightThemes]
|
[lightThemes]
|
||||||
0 = '--text: hsl(0, 0%, 20%);--background: hsl(0, 0%, 100%);--panel-background: hsl(0, 0%, 100%);--buttons: hsl(0, 0%, 100%)'
|
0 = '.body {--text: hsl(0, 0%, 20%); --background: hsl(0, 0%, 100%); --panel-background: hsl(0, 0%, 100%); --buttons: hsl(0, 0%, 100%)}'
|
||||||
1 = '--text: hsl(208, 100%, 0%); --background: hsl(215, 21%, 100%); --panel-background: hsl(216, 28%, 95%); --buttons: hsl(216, 28%, 95%)'
|
1 = '.body {--text: hsl(208, 100%, 0%); --background: hsl(215, 21%, 100%); --panel-background: hsl(216, 28%, 95%); --buttons: hsl(216, 28%, 95%)}'
|
||||||
|
2 = '.body {--text: hsl(160, 65%, 20%); --background: hsl(160, 30%, 98%); --panel-background: hsl(160, 30%, 98%); --buttons: hsl(160, 30%, 98%)} .text-input, .file-input input, .select-input, .select-input select, textarea, .button, button, .form {border:1px solid var(--text)}'
|
@ -1,8 +1,13 @@
|
|||||||
#Changelog Update 1.2
|
#Changelog Update 1.2<br />
|
||||||
|
<br />
|
||||||
- Interface utilisateur améliorée
|
- Interface utilisateur améliorée<br />
|
||||||
- Liens des pages modifiés
|
- Liens des pages modifiés<br />
|
||||||
- Code source mieux compréhensible
|
- Code source mieux compréhensible<br />
|
||||||
- Failles de sécurité corrigées
|
- Failles de sécurité corrigées<br />
|
||||||
- Transmission de la propriété des articles à Deleted_User lors de la suppression du compte
|
- Transmission de la propriété des articles à Deleted_User lors de la suppression du compte<br />
|
||||||
- Insersion d'émojis possible
|
- Insersion d'émojis possible<br />
|
||||||
|
- Ajout de la recherche utilisateurs dans la barre de recherche news.<br />
|
||||||
|
- Certification modifiée avec une forme unique pour chaque role.<br />
|
||||||
|
- Membre du club : Bleu Clair<br />
|
||||||
|
- Responsable : Violet<br />
|
||||||
|
- Directeur/Admin : Orange<br />
|
||||||
|
@ -8,19 +8,20 @@ if (!isset($_SESSION['userAccreditation']) || !isset($_SESSION['userLevel'])) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!isset($_COOKIE['theme'])) {
|
if (!isset($_COOKIE['theme'])) {
|
||||||
setcookie('theme', 0, time()+10*60*60, "/", ".e59.fr");
|
$theme = random_int(0, 2);
|
||||||
$darkTheme = $darkThemes[0];
|
setcookie('theme', $theme, time()+10*60*60, "/", ".e59.fr");
|
||||||
$lightTheme = $lightThemes[0];
|
$darkTheme = $darkThemes[$theme];
|
||||||
|
$lightTheme = $lightThemes[$theme];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($_GET['theme'])) {
|
if (isset($_GET['theme'])) {
|
||||||
$newTheme = (int)$_GET['theme'] % 2;
|
$newTheme = (int)$_GET['theme'] % 3;
|
||||||
setcookie('theme', $newTheme, time()+10*60*60, "/", ".e59.fr"); // % 2 => Number of different themes
|
setcookie('theme', $newTheme, time()+10*60*60, "/", ".e59.fr"); // % 2 => Number of different themes
|
||||||
$darkTheme = $darkThemes[$newTheme];
|
$darkTheme = $darkThemes[$newTheme];
|
||||||
$lightTHeme = $lightThemes[$newTheme];
|
$lightTHeme = $lightThemes[$newTheme];
|
||||||
|
|
||||||
} else if (isset($_COOKIE['theme'])) {
|
} else if (isset($_COOKIE['theme'])) {
|
||||||
$theme = (int)$_COOKIE['theme'] % 2;
|
$theme = (int)$_COOKIE['theme'] % 3;
|
||||||
$darkTheme = $darkThemes[$theme];
|
$darkTheme = $darkThemes[$theme];
|
||||||
$lightTheme = $lightThemes[$theme];
|
$lightTheme = $lightThemes[$theme];
|
||||||
}
|
}
|
||||||
|
@ -10,16 +10,12 @@ function fillHead($rootPageURL, $pageTitle, $darkTheme, $lightTheme) {
|
|||||||
echo ('<style>');
|
echo ('<style>');
|
||||||
|
|
||||||
echo ('@media (prefers-color-scheme: dark) {');
|
echo ('@media (prefers-color-scheme: dark) {');
|
||||||
echo ('.body {');
|
|
||||||
echo ($darkTheme);
|
echo ($darkTheme);
|
||||||
echo ('}');
|
echo ('}');
|
||||||
echo ('}');
|
|
||||||
|
|
||||||
echo ('@media (prefers-color-scheme: light) {');
|
echo ('@media (prefers-color-scheme: light) {');
|
||||||
echo ('.body {');
|
|
||||||
echo ($lightTheme);
|
echo ($lightTheme);
|
||||||
echo ('}');
|
echo ('}');
|
||||||
echo ('}');
|
|
||||||
|
|
||||||
echo ('</style>');
|
echo ('</style>');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user