diff --git a/assets/css/custom.css b/assets/css/custom.css index cd61c51..dd7cfc0 100644 --- a/assets/css/custom.css +++ b/assets/css/custom.css @@ -449,4 +449,43 @@ .member-table a:hover { color: #88c0d0 !important; -} \ No newline at end of file +} + +/* Admin Footer Styles */ +.admin-footer { + z-index: 9999; + position: fixed; + bottom: 0; + left: 0; + width: 100%; + background: rgba(0,0,0,0.85); + padding: 8px 25px; + display: flex; + justify-content: flex-end; + gap: 15px; + border-top: 1px solid #2d3545; + box-sizing: border-box; + backdrop-filter: blur(5px); +} +.admin-footer a { + color: #fff !important; + text-decoration: none !important; + font-size: 11px; + font-weight: 800; + padding: 6px 15px; + border-radius: 4px; + display: flex; + align-items: center; + gap: 8px; + text-transform: uppercase; + letter-spacing: 1px; + transition: all 0.2s; +} +.admin-footer a:hover { + transform: translateY(-2px); + box-shadow: 0 4px 12px rgba(0,0,0,0.3); +} +.btn-mj { background: #ebcb8b; color: #000 !important; } +.btn-mj:hover { background: #f2d5a0; } +.btn-adm { background: #bf616a; color: #fff !important; } +.btn-adm:hover { background: #d08770; } diff --git a/auth.php b/auth.php index 33cc2e1..17e5635 100644 --- a/auth.php +++ b/auth.php @@ -69,7 +69,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { if ($user && password_verify($password, $user['password'])) { $_SESSION['user_id'] = $user['id']; $_SESSION["username"] = $user["username"]; $_SESSION["display_name"] = $user["display_name"]; - $_SESSION['role'] = $user['role']; + $_SESSION['role'] = $user['role']; $_SESSION['user_role'] = $user['role']; $db->prepare("UPDATE users SET last_login = CURRENT_TIMESTAMP WHERE id = ?")->execute([$user['id']]); diff --git a/includes/header.php b/includes/header.php index 63e5d0e..8e7b19f 100644 --- a/includes/header.php +++ b/includes/header.php @@ -132,3 +132,12 @@ if (isset($_SESSION['user_id'])) { + + + + \ No newline at end of file diff --git a/index.php b/index.php index d21ff5d..bd04a48 100644 --- a/index.php +++ b/index.php @@ -240,10 +240,6 @@ function getStatusColor($status, $statuses_map) { .breadcrumb { margin-bottom: 20px; font-size: 14px; color: #88c0d0; } .breadcrumb a { color: #fff; text-decoration: none; } .breadcrumb a:hover { text-decoration: underline; } - .admin-footer { position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(0,0,0,0.8); padding: 5px 20px; display: flex; justify-content: flex-end; gap: 15px; border-top: 1px solid #2d3545; } - .admin-footer a { color: #fff; text-decoration: none; font-size: 11px; font-weight: bold; padding: 5px 10px; border-radius: 3px; } - .btn-mj { background: #ebcb8b; color: #000 !important; } - .btn-adm { background: #bf616a; } @@ -253,7 +249,6 @@ function getStatusColor($status, $statuses_map) {
@@ -261,10 +256,8 @@ function getStatusColor($status, $statuses_map) {

Univers

-
-
@@ -285,7 +278,6 @@ function getStatusColor($status, $statuses_map) {
Faction:
-
@@ -303,7 +295,6 @@ function getStatusColor($status, $statuses_map) { -
Établissements:
@@ -322,10 +313,8 @@ function getStatusColor($status, $statuses_map) {
- -
@@ -333,7 +322,6 @@ function getStatusColor($status, $statuses_map) {
:
-
@@ -341,10 +329,7 @@ function getStatusColor($status, $statuses_map) {
-
- -
- @@ -378,11 +361,9 @@ function getStatusColor($status, $statuses_map) {
SECTEUR
Actif
-
Inexploré
-
@@ -432,12 +413,7 @@ function getStatusColor($status, $statuses_map) {
- - -