One Hat Cyber Team
Your IP :
104.23.197.103
Server IP :
172.67.218.182
Server :
Linux 128-201-239-36.cprapid.com 3.10.0-1160.41.1.el7.x86_64 #1 SMP Tue Aug 31 14:52:47 UTC 2021 x86_64
Server Software :
Apache
PHP Version :
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
juscatamarca
/
public_html
/
campusjxj
/
config
/
View File Name :
app.php
<?php declare(strict_types=1); if (session_status() === PHP_SESSION_NONE) { session_start(); } if (!function_exists('str_contains')) { function str_contains($haystack, $needle) { return $needle === '' || strpos($haystack, $needle) !== false; } } if (!function_exists('str_starts_with')) { function str_starts_with($haystack, $needle) { if ($needle === '') { return true; } return strpos($haystack, $needle) === 0; } } if (!function_exists('str_ends_with')) { function str_ends_with($haystack, $needle) { if ($needle === '') { return true; } $needleLength = strlen($needle); if ($needleLength > strlen($haystack)) { return false; } return substr($haystack, -$needleLength) === $needle; } } define('APP_NAME', 'Campus de Capacitación de Juicio Por Jurados En Las Escuelas'); define('APP_VERSION', '1.0.0'); define('ROOT_PATH', dirname(__DIR__)); define('PUBLIC_PATH', ROOT_PATH . '/public'); define('UPLOADS_PATH', ROOT_PATH . '/uploads'); define('DEFAULT_TIMEZONE', 'America/Argentina/Catamarca'); date_default_timezone_set(DEFAULT_TIMEZONE); // Detectar ambiente: local si es localhost/XAMPP, producción si es el dominio en cPanel. $httpHost = isset($_SERVER['HTTP_HOST']) ? strtolower($_SERVER['HTTP_HOST']) : ''; $isLocal = ($httpHost === 'localhost' || $httpHost === '127.0.0.1' || strpos($httpHost, '.local') !== false || strpos($httpHost, 'xampp') !== false); define('APP_ENV', $isLocal ? 'development' : 'production'); define('APP_DEBUG', APP_ENV === 'development'); // En local, BASE_URL con /public; en producción, vacío. $baseUrl = APP_ENV === 'development' ? '/cursos-juicioporjurado/public' : ''; define('BASE_URL', $baseUrl);