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:
parent
de5c0296e4
commit
e51e26cd0c
@ -25,3 +25,7 @@ A propos = "about.php"
|
||||
1 = "Membre"
|
||||
2 = "Responsable"
|
||||
3 = "Directeur"
|
||||
|
||||
[themes]
|
||||
0 = 'dark'
|
||||
1 = 'light'
|
@ -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">
|
||||
|
@ -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">
|
||||
|
@ -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">
|
||||
|
@ -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">
|
||||
|
@ -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">
|
||||
|
@ -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">
|
||||
|
@ -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">
|
||||
|
@ -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">
|
||||
|
@ -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">
|
||||
|
@ -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">
|
||||
|
@ -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) {
|
||||
|
@ -15,4 +15,5 @@ $navadmin = $nav;
|
||||
$status = "";
|
||||
$classifications = $config['classifications'];
|
||||
$roles = $config['roles'];
|
||||
$themes = $config['themes'];
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user