From 6a50e64b42cccf4a58f2815b83a88417c177a2c8 Mon Sep 17 00:00:00 2001 From: nickpons666 Date: Fri, 20 Feb 2026 14:54:56 -0600 Subject: [PATCH] =?UTF-8?q?Feature:=20P=C3=A1gina=20de=20sistema=20(DB=20i?= =?UTF-8?q?nfo)=20+=20Fix=20tema=20claro?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/system.php | 107 +++++++++++++++++++++++++++++++++++++++++++ login.php | 36 +++++++++++++++ templates/header.php | 73 +++++++++++++++++++++++++++++ 3 files changed, 216 insertions(+) create mode 100644 admin/system.php diff --git a/admin/system.php b/admin/system.php new file mode 100644 index 0000000..6002410 --- /dev/null +++ b/admin/system.php @@ -0,0 +1,107 @@ +query('SELECT VERSION()')->fetchColumn(); + $dbSize = $pdo->query("SELECT ROUND(SUM(data_length + index_length) / 1024 / 1024, 2) AS size_mb FROM information_schema.tables WHERE table_schema = '$dbName'")->fetchColumn(); + $tableCount = $pdo->query("SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = '$dbName'")->fetchColumn(); +} catch (Exception $e) { + $dbError = $e->getMessage(); +} + +require_once __DIR__ . '/../templates/header.php'; +?> + +
+

Sistema

+
+ +
+
+
+
+
Base de Datos
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Host / IP
Puerto
Base de Datos
Versión MySQL
Tamaño MB
Tablas
+ +
+
+
+ +
+
+
+
Servidor
+
+
+ + + + + + + + + + + + + + + + + + + + + +
PHP Version
Server Software
Server Name
Document Root
Timezone
+
+
+
+
+ + diff --git a/login.php b/login.php index 02a238e..c3636be 100755 --- a/login.php +++ b/login.php @@ -105,6 +105,42 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { background: linear-gradient(135deg, #3d4a32 0%, #2a3024 100%); } + [data-bs-theme="light"] .login-card { + background: rgba(245, 243, 237, 0.95); + } + + [data-bs-theme="light"] .login-body { + background: rgba(245, 243, 237, 0.5); + } + + [data-bs-theme="light"] .form-label { + color: #1a1f16; + } + + [data-bs-theme="light"] .form-control { + background: rgba(255, 255, 255, 0.9); + color: #1a1f16; + } + + [data-bs-theme="light"] .form-control:focus { + background: #fff; + color: #1a1f16; + } + + [data-bs-theme="light"] .form-control::placeholder { + color: rgba(26, 31, 22, 0.5); + } + + [data-bs-theme="light"] .login-subtitle { + color: #1a1f16; + } + + [data-bs-theme="light"] .alert-danger { + background: rgba(139, 58, 58, 0.15); + color: #8b3a3a; + border-color: #8b3a3a; + } + .login-card { background: rgba(26, 31, 22, 0.95); border: 2px solid var(--military-green); diff --git a/templates/header.php b/templates/header.php index 1cbe1e6..0038c6b 100755 --- a/templates/header.php +++ b/templates/header.php @@ -49,6 +49,77 @@ $theme = $_COOKIE['theme'] ?? 'light'; --bs-card-bg: #f5f3ed; --bs-border-color: #8b7355; --navbar-bg: linear-gradient(180deg, #3d4a32 0%, #2a3024 100%); + --military-dark: #2a3024; + --military-sand: #e8e4d9; + } + + [data-bs-theme="light"] .nav-link-main, + [data-bs-theme="light"] .dropdown-toggle-military { + color: var(--military-sand) !important; + } + + [data-bs-theme="light"] .nav-link-main:hover, + [data-bs-theme="light"] .nav-link-main.active, + [data-bs-theme="light"] .dropdown-toggle-military:hover, + [data-bs-theme="light"] .dropdown-toggle-military.show { + color: #fff !important; + } + + [data-bs-theme="light"] .navbar-brand small { + color: var(--military-sand); + } + + [data-bs-theme="light"] .dropdown-menu-military { + background: var(--bs-card-bg); + } + + [data-bs-theme="light"] .dropdown-menu-military .dropdown-item { + color: var(--bs-body-color); + } + + [data-bs-theme="light"] .dropdown-menu-military .dropdown-item:hover { + background: rgba(61, 74, 50, 0.3); + } + + [data-bs-theme="light"] #theme-toggle { + color: var(--military-sand); + border-color: rgba(255,255,255,0.3); + } + + [data-bs-theme="light"] .text-muted { + color: #5a6b4a !important; + } + + [data-bs-theme="light"] .table thead th { + background-color: rgba(61, 74, 50, 0.2); + color: var(--bs-body-color); + } + + [data-bs-theme="light"] .card-header { + background-color: rgba(61, 74, 50, 0.15); + color: var(--bs-body-color); + } + + [data-bs-theme="light"] .alert-danger { + background-color: rgba(139, 58, 58, 0.15); + color: #8b3a3a; + } + + [data-bs-theme="light"] .alert-success { + background-color: rgba(74, 156, 140, 0.15); + color: #2d6b61; + } + + [data-bs-theme="light"] ::-webkit-scrollbar-track { + background: #d4d0c5; + } + + [data-bs-theme="light"] ::-webkit-scrollbar-thumb { + background: #8b7355; + } + + [data-bs-theme="light"] ::-webkit-scrollbar-thumb:hover { + background: var(--accent-orange); } body { @@ -587,6 +658,8 @@ $theme = $_COOKIE['theme'] ?? 'light';
  • Traductor
  • Enviar Directo
  • +
  • +
  • Sistema