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: create.php
<?php declare(strict_types=1); ?> <section class="page"> <header class="page__header page__header--with-actions"> <div> <h1 class="page__title">Registrar movimiento</h1> <p class="page__subtitle">Registra una entrada o salida y actualiza 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 $modulo = (string)($form['modulo'] ?? 'uniformes'); $tipo = (string)($form['tipo'] ?? 'entrada'); $itemIdsRaw = $form['item_ids'] ?? ($form['item_id'] ?? []); $itemIds = is_array($itemIdsRaw) ? $itemIdsRaw : [$itemIdsRaw]; $itemIds = array_values(array_filter(array_map('strval', $itemIds), static fn ($v) => trim($v) !== '')); $cantidad = (string)($form['cantidad'] ?? ''); $cantidadesRaw = $form['cantidades'] ?? []; $cantidades = is_array($cantidadesRaw) ? $cantidadesRaw : []; $descripcion = (string)($form['descripcion'] ?? ''); ?> <section class="panel"> <form method="post" action="<?= htmlspecialchars((string)BASE_URL, ENT_QUOTES, 'UTF-8') ?>/movimientos/store" 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 data-mov-tipo> <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> <div style="display:flex; align-items:center; justify-content:space-between; gap:10px; margin:6px 0 8px; flex-wrap:wrap;"> <div style="display:flex; gap:10px; flex-wrap:wrap;"> <button class="btn btn--secondary btn--sm" type="button" data-mov-clear>Limpiar</button> </div> <span class="badge badge--muted" data-mov-count>0 seleccionados</span> </div> <input type="checkbox" name="_mov_required" value="1" required data-mov-required style="position:absolute; opacity:0; width:1px; height:1px; pointer-events:none;" tabindex="-1"> <div class="field__input" data-mov-item style="max-height:320px; overflow:auto;"> <?php foreach ((array)($uniformes ?? []) as $u) : ?> <?php $id = (int)($u['id'] ?? 0); $codigo = (string)($u['codigo'] ?? ''); $nombre = (string)($u['nombre'] ?? ''); $stock = (int)($u['cantidad'] ?? 0); $label = trim(($codigo !== '' ? $codigo . ' - ' : '') . $nombre); $checked = $modulo === 'uniformes' && in_array((string)$id, $itemIds, true); $qtyVal = (string)($cantidades[(string)$id] ?? ''); ?> <label data-mov-item-row data-modulo="uniformes" style="display:flex; align-items:center; gap:10px; padding:6px 8px; border-radius:10px; cursor:pointer;"> <input type="checkbox" name="item_ids[]" value="<?= $id ?>" data-modulo="uniformes" <?= $checked ? 'checked' : '' ?>> <span style="flex:1;"><?= htmlspecialchars($label !== '' ? $label : ('#' . $id), ENT_QUOTES, 'UTF-8') ?></span> <span class="badge badge--muted" data-mov-stock data-stock="<?= $stock ?>" style="margin-left:auto;">Cantidad: <?= $stock ?></span> <input class="field__input" type="number" min="1" inputmode="numeric" name="cantidades[<?= $id ?>]" value="<?= htmlspecialchars($qtyVal, ENT_QUOTES, 'UTF-8') ?>" data-mov-item-qty style="width:110px; padding:8px 10px;" <?= $checked ? 'required' : '' ?> <?= $checked ? '' : 'disabled' ?> <?= $checked ? '' : 'hidden' ?>> </label> <?php endforeach; ?> <?php foreach ((array)($herramientas ?? []) as $h) : ?> <?php $id = (int)($h['id'] ?? 0); $codigo = (string)($h['codigo'] ?? ''); $nombre = (string)($h['nombre'] ?? ''); $stock = (int)($h['cantidad'] ?? 0); $label = trim(($codigo !== '' ? $codigo . ' - ' : '') . $nombre); $checked = $modulo === 'herramientas' && in_array((string)$id, $itemIds, true); $qtyVal = (string)($cantidades[(string)$id] ?? ''); ?> <label data-mov-item-row data-modulo="herramientas" style="display:flex; align-items:center; gap:10px; padding:6px 8px; border-radius:10px; cursor:pointer;"> <input type="checkbox" name="item_ids[]" value="<?= $id ?>" data-modulo="herramientas" <?= $checked ? 'checked' : '' ?>> <span style="flex:1;"><?= htmlspecialchars($label !== '' ? $label : ('#' . $id), ENT_QUOTES, 'UTF-8') ?></span> <span class="badge badge--muted" data-mov-stock data-stock="<?= $stock ?>" style="margin-left:auto;">Cantidad: <?= $stock ?></span> <input class="field__input" type="number" min="1" inputmode="numeric" name="cantidades[<?= $id ?>]" value="<?= htmlspecialchars($qtyVal, ENT_QUOTES, 'UTF-8') ?>" data-mov-item-qty style="width:110px; padding:8px 10px;" <?= $checked ? 'required' : '' ?> <?= $checked ? '' : 'disabled' ?> <?= $checked ? '' : 'hidden' ?>> </label> <?php endforeach; ?> <?php foreach ((array)($epp ?? []) as $it) : ?> <?php $id = (int)($it['id'] ?? 0); $codigo = (string)($it['codigo'] ?? ''); $nombre = (string)($it['nombre'] ?? ''); $stock = (int)($it['cantidad'] ?? 0); $label = trim(($codigo !== '' ? $codigo . ' - ' : '') . $nombre); $checked = $modulo === 'epp' && in_array((string)$id, $itemIds, true); $qtyVal = (string)($cantidades[(string)$id] ?? ''); ?> <label data-mov-item-row data-modulo="epp" style="display:flex; align-items:center; gap:10px; padding:6px 8px; border-radius:10px; cursor:pointer;"> <input type="checkbox" name="item_ids[]" value="<?= $id ?>" data-modulo="epp" <?= $checked ? 'checked' : '' ?>> <span style="flex:1;"><?= htmlspecialchars($label !== '' ? $label : ('#' . $id), ENT_QUOTES, 'UTF-8') ?></span> <span class="badge badge--muted" data-mov-stock data-stock="<?= $stock ?>" style="margin-left:auto;">Cantidad: <?= $stock ?></span> <input class="field__input" type="number" min="1" inputmode="numeric" name="cantidades[<?= $id ?>]" value="<?= htmlspecialchars($qtyVal, ENT_QUOTES, 'UTF-8') ?>" data-mov-item-qty style="width:110px; padding:8px 10px;" <?= $checked ? 'required' : '' ?> <?= $checked ? '' : 'disabled' ?> <?= $checked ? '' : 'hidden' ?>> </label> <?php endforeach; ?> </div> </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">Registrar</button> </div> </form> </section> </section>
Coded With 💗 by
0x6ick