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
/
siscapslaurel
/
config
/
Viewing: config.php
<?php // Configuración general del sistema // BASE_URL dinámico: apunta a la carpeta /public/ independientemente del front-controller utilizado // Detecta esquema, host y el path del script actual y normaliza para ubicar la raíz del proyecto. $https = ( (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') || (isset($_SERVER['SERVER_PORT']) && (int)$_SERVER['SERVER_PORT'] === 443) ); $scheme = $https ? 'https' : 'http'; $host = $_SERVER['HTTP_HOST'] ?? 'localhost'; // Ruta del directorio del script (p.ej. /SISCAPS/sistema-agua o /SISCAPS/sistema-agua/public) $scriptDir = rtrim(str_replace('\\','/', dirname($_SERVER['SCRIPT_NAME'] ?? '')), '/'); $rootPath = $scriptDir; // Si el script corre dentro de /public, subir un nivel para ubicar la raíz del proyecto if (substr($rootPath, -7) === '/public') { $rootPath = substr($rootPath, 0, -7); } $publicPath = $rootPath . '/public/'; define('BASE_URL', $scheme . '://' . $host . $publicPath); // Zona horaria por defecto (puede sobrescribirse con APP_TIMEZONE en entorno) $appTimezone = getenv('APP_TIMEZONE'); if (!$appTimezone || !in_array($appTimezone, timezone_identifiers_list(), true)) { $appTimezone = 'America/Managua'; } date_default_timezone_set($appTimezone); // Aviso de suspensión: configuración // Estados considerados como facturas abiertas if (!defined('SUSPENSION_OPEN_STATUSES')) { define('SUSPENSION_OPEN_STATUSES', ['Pendiente','Parcial','Vencida','Mora']); } // Umbral de cantidad de facturas abiertas para mostrar aviso ("más de" este número) if (!defined('SUSPENSION_THRESHOLD')) { define('SUSPENSION_THRESHOLD', 2); // >2 por defecto } // Modo de ejecución y logging (producción por defecto) if (!defined('APP_ENV')) { $env = getenv('APP_ENV'); define('APP_ENV', $env ?: 'production'); } // Configurar PHP para producción: no mostrar errores en pantalla, registrar en archivo if (APP_ENV === 'production') { // Crear carpeta de logs si no existe $logDir = dirname(__DIR__) . '/storage/logs'; if (!is_dir($logDir)) {@mkdir($logDir, 0775, true);} $logFile = $logDir . '/php-error.log'; @ini_set('display_errors', '0'); @ini_set('log_errors', '1'); @ini_set('error_log', $logFile); // Reporta todo pero evita avisos menores en producción @error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING & ~E_DEPRECATED & ~E_STRICT); } else { // Desarrollo: mostrar errores @ini_set('display_errors', '1'); @ini_set('log_errors', '1'); @error_reporting(E_ALL); }
Coded With 💗 by
0x6ick