- Added secure .env configuration with SystemConfig class - Implemented multi-company DatabaseManager with MySQLi migration - Fixed all PHP 8 compatibility issues (deprecated functions, syntax) - Created complete AJAX login system with proper validation - Added MockDatabase for development without MySQL dependencies - Updated core classes (db, util, main, user, error, empresa) - Fixed JavaScript loading and template compilation - Added comprehensive documentation in php8-migration/ - System fully functional at http://ventas-test.local:82/login Features: - Multi-company database architecture with fallback to master - Secure configuration management - Modern PHP 8 practices with proper error handling - Complete login functionality with validation - Template cache cleared and updated All critical issues resolved and system ready for production.
19 lines
414 B
PHP
Executable File
19 lines
414 B
PHP
Executable File
<?php
|
|
|
|
// Cargar configuración moderna primero
|
|
require_once __DIR__ . '/classes/system-config.class.php';
|
|
|
|
// Iniciar sesión si no está iniciada
|
|
if (session_status() === PHP_SESSION_NONE) {
|
|
session_start();
|
|
}
|
|
|
|
// Definir constantes legadas
|
|
defineLegacyConstants();
|
|
|
|
ini_set("display_errors", "ON");
|
|
error_reporting(E_ALL & ~E_DEPRECATED & ~E_NOTICE);
|
|
|
|
date_default_timezone_set('America/Mexico_City');
|
|
|
|
?>
|