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
/
movimientos
/
Viewing: edit.php
<?php declare(strict_types=1); ?> <section class="page"> <header class="page__header page__header--with-actions"> <div> <h1 class="page__title">Editar movimiento</h1> <p class="page__subtitle">Actualiza una entrada o salida y ajusta el stock</p> </div> <div class="page__actions"> <a class="btn btn--secondary" href="<?= htmlspecialchars((string)BASE_URL, ENT_QUOTES, 'UTF-8') ?>/movimientos">Volver</a> </div> </header> <?php if (!empty($errors)) : ?> <div class="alert alert--error"> <strong>Revisa los siguientes campos:</strong> <ul class="alert__list"> <?php foreach ((array)$errors as $e) : ?> <li><?= htmlspecialchars((string)$e, ENT_QUOTES, 'UTF-8') ?></li> <?php endforeach; ?> </ul> </div> <?php endif; ?> <?php $id = (int)($movimiento['id'] ?? 0); $modulo = (string)($movimiento['modulo'] ?? 'uniformes'); $tipo = (string)($movimiento['tipo'] ?? 'entrada'); $itemId = (string)($movimiento['item_id'] ?? ''); $cantidad = (string)($movimiento['cantidad'] ?? ''); $descripcion = (string)($movimiento['descripcion'] ?? ''); ?> <section class="panel"> <form method="post" action="<?= htmlspecialchars((string)BASE_URL, ENT_QUOTES, 'UTF-8') ?>/movimientos/update/<?= $id ?>" class="form"> <div class="form-grid"> <label class="field"> <span class="field__label">Módulo</span> <select class="field__input" name="modulo" required data-mov-modulo> <option value="uniformes" <?= $modulo === 'uniformes' ? 'selected' : '' ?>>Uniformes</option> <option value="herramientas" <?= $modulo === 'herramientas' ? 'selected' : '' ?>>Herramientas</option> <option value="epp" <?= $modulo === 'epp' ? 'selected' : '' ?>>EPP</option> </select> </label> <label class="field"> <span class="field__label">Tipo</span> <select class="field__input" name="tipo" required> <option value="entrada" <?= $tipo === 'entrada' ? 'selected' : '' ?>>Entrada</option> <option value="salida" <?= $tipo === 'salida' ? 'selected' : '' ?>>Salida</option> </select> </label> <label class="field" style="grid-column: 1 / -1;"> <span class="field__label">Item</span> <select class="field__input" name="item_id" required data-mov-item> <option value="">Selecciona...</option> <?php foreach ((array)($uniformes ?? []) as $u) : ?> <?php $uid = (int)($u['id'] ?? 0); $codigo = (string)($u['codigo'] ?? ''); $nombre = (string)($u['nombre'] ?? ''); $label = trim(($codigo !== '' ? $codigo . ' - ' : '') . $nombre); ?> <option value="<?= $uid ?>" data-modulo="uniformes" <?= $modulo === 'uniformes' && (string)$uid === $itemId ? 'selected' : '' ?>> <?= htmlspecialchars($label !== '' ? $label : ('#' . $uid), ENT_QUOTES, 'UTF-8') ?> </option> <?php endforeach; ?> <?php foreach ((array)($herramientas ?? []) as $h) : ?> <?php $hid = (int)($h['id'] ?? 0); $codigo = (string)($h['codigo'] ?? ''); $nombre = (string)($h['nombre'] ?? ''); $label = trim(($codigo !== '' ? $codigo . ' - ' : '') . $nombre); ?> <option value="<?= $hid ?>" data-modulo="herramientas" <?= $modulo === 'herramientas' && (string)$hid === $itemId ? 'selected' : '' ?>> <?= htmlspecialchars($label !== '' ? $label : ('#' . $hid), ENT_QUOTES, 'UTF-8') ?> </option> <?php endforeach; ?> <?php foreach ((array)($epp ?? []) as $it) : ?> <?php $eid = (int)($it['id'] ?? 0); $codigo = (string)($it['codigo'] ?? ''); $nombre = (string)($it['nombre'] ?? ''); $label = trim(($codigo !== '' ? $codigo . ' - ' : '') . $nombre); ?> <option value="<?= $eid ?>" data-modulo="epp" <?= $modulo === 'epp' && (string)$eid === $itemId ? 'selected' : '' ?>> <?= htmlspecialchars($label !== '' ? $label : ('#' . $eid), ENT_QUOTES, 'UTF-8') ?> </option> <?php endforeach; ?> </select> </label> <label class="field"> <span class="field__label">Cantidad</span> <input class="field__input" type="number" min="1" name="cantidad" value="<?= htmlspecialchars($cantidad, ENT_QUOTES, 'UTF-8') ?>" required> </label> <label class="field" style="grid-column: 1 / -1;"> <span class="field__label">Descripción</span> <input class="field__input" type="text" name="descripcion" value="<?= htmlspecialchars($descripcion, ENT_QUOTES, 'UTF-8') ?>" required> </label> </div> <div class="form-actions"> <a class="btn btn--secondary" href="<?= htmlspecialchars((string)BASE_URL, ENT_QUOTES, 'UTF-8') ?>/movimientos">Cancelar</a> <button class="btn btn--primary" type="submit">Guardar cambios</button> </div> </form> </section> </section>
Coded With 💗 by
0x6ick