Update 13 files

- /include/variables.php
- /include/functions.php
- /config/global.ini
- /html/about.php
- /html/admin.php
- /html/compte.php
- /html/editpage.php
- /html/index.php
- /html/login.php
- /html/news.php
- /html/register.php
- /html/upload.php
- /html/users.php
This commit is contained in:
Jan BELLON 2024-03-08 17:51:31 +00:00
parent de5c0296e4
commit e51e26cd0c
13 changed files with 22 additions and 13 deletions

View File

@ -25,3 +25,7 @@ A propos = "about.php"
1 = "Membre"
2 = "Responsable"
3 = "Directeur"
[themes]
0 = 'dark'
1 = 'light'

View File

@ -12,7 +12,7 @@ require "../include/functions.php";
<link rel="icon" href="src/img/favicon.ico">
<title><?=$title?></title>
</head>
<body class='<?=$_SESSION['colormode']?>'>
<body class='<?=$_SESSION['theme']?>'>
<header>
<div class="pancontent">
<div class="athena-container">

View File

@ -18,7 +18,7 @@ if($_SESSION['role'] < 3) {
<link rel="icon" href="src/img/favicon.ico">
<title><?=$title?></title>
</head>
<body class='<?=$_SESSION['colormode']?>'>
<body class='<?=$_SESSION['theme']?>'>
<header>
<div class="pancontent">
<div class="athena-container">

View File

@ -31,7 +31,7 @@ if(isset($_POST['delete_account'])) {
<link rel="icon" href="src/img/favicon.ico">
<title><?=$title?></title>
</head>
<body class='<?=$_SESSION['colormode']?>'>
<body class='<?=$_SESSION['theme']?>'>
<header>
<div class="pancontent">
<div class="athena-container">

View File

@ -70,7 +70,7 @@ if(isset($fichier)) {
}
</style>
</head>
<body class='<?=$_SESSION['colormode']?>'>
<body class='<?=$_SESSION['theme']?>'>
<header>
<div class="pancontent">
<div class="athena-container">

View File

@ -12,7 +12,7 @@ require "../include/functions.php";
<link rel="icon" href="src/img/favicon.ico">
<title><?=$title?></title>
</head>
<body class='<?=$_SESSION['colormode']?>'>
<body class='<?=$_SESSION['theme']?>'>
<header>
<div class="pancontent">
<div class="athena-container">

View File

@ -43,7 +43,7 @@ if(isset($_POST['username']) && isset($_POST['password'])) {
<link rel="icon" href="src/img/favicon.ico">
<title><?=$title?></title>
</head>
<body class='<?=$_SESSION['colormode']?>'>
<body class='<?=$_SESSION['theme']?>'>
<header>
<div class="pancontent">
<div class="athena-container">

View File

@ -17,7 +17,7 @@ if (filter_var($_GET['article'], FILTER_VALIDATE_INT)) {
<link rel="icon" href="src/img/favicon.ico">
<title><?=$title?></title>
</head>
<body class='<?=$_SESSION['colormode']?>'>
<body class='<?=$_SESSION['theme']?>'>
<header>
<div class="pancontent">
<div class="athena-container">

View File

@ -43,7 +43,7 @@ if(isset($_POST['username']) && isset($_POST['password']) && isset($_POST['passw
<link rel="icon" href="src/img/favicon.ico">
<title><?=$title?></title>
</head>
<body class='<?=$_SESSION['colormode']?>'>
<body class='<?=$_SESSION['theme']?>'>
<header>
<div class="pancontent">
<div class="athena-container">

View File

@ -47,7 +47,7 @@ if(isset($_POST['page-content'])) {
}
</style>
</head>
<body class='<?=$_SESSION['colormode']?>'>
<body class='<?=$_SESSION['theme']?>'>
<header>
<div class="pancontent">
<div class="athena-container">

View File

@ -32,7 +32,7 @@ if(isset($_POST['userid']) && isset($_POST['role']) && isset($_POST['accreditati
<link rel="icon" href="src/img/favicon.ico">
<title><?=$title?></title>
</head>
<body class='<?=$_SESSION['colormode']?>'>
<body class='<?=$_SESSION['theme']?>'>
<header>
<div class="pancontent">
<div class="athena-container">

View File

@ -9,8 +9,12 @@ if(!isset($_SESSION['role'])) {
$_SESSION['role'] = 0;
}
if(!isset($_SESSION['colormode'])) {
$_SESSION['colormode'] = "dark";
if(!isset($_SESSION['theme'])) {
$_SESSION['theme'] = $themes[0];
}
if(isset($_GET['theme'])) {
$_SESSION['theme'] = $themes[$_SESSION['theme'] % 2];
}
function nav($nav) {

View File

@ -15,4 +15,5 @@ $navadmin = $nav;
$status = "";
$classifications = $config['classifications'];
$roles = $config['roles'];
$themes = $config['themes'];
?>