up
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
* Log de Actividad — Trazabilidad del Módulo Administrativo de Laboratorio
|
||||
*/
|
||||
require_once 'config/config.php';
|
||||
if (!defined('APP_ROOT')) { define('APP_ROOT', __DIR__); }
|
||||
|
||||
if (!isUserLoggedIn()) { header('Location: login.php'); exit; }
|
||||
if (isEnfermero()) { header('Location: enfermero_portal.php'); exit; }
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
* Solo admin.
|
||||
*/
|
||||
require_once 'config/config.php';
|
||||
if (!defined('APP_ROOT')) { define('APP_ROOT', __DIR__); }
|
||||
if (!isUserLoggedIn()) { header('Location: login.php'); exit; }
|
||||
if (isEnfermero()) { header('Location: lab_dashboard.php'); exit; }
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
* Punto de entrada principal del módulo
|
||||
*/
|
||||
require_once 'config/config.php';
|
||||
if (!defined('APP_ROOT')) { define('APP_ROOT', __DIR__); }
|
||||
|
||||
if (!isUserLoggedIn()) {
|
||||
header('Location: login.php');
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
* Gestión de Domicilios — Módulo Administrativo de Laboratorio
|
||||
*/
|
||||
require_once 'config/config.php';
|
||||
if (!defined('APP_ROOT')) { define('APP_ROOT', __DIR__); }
|
||||
|
||||
if (!isUserLoggedIn()) {
|
||||
header('Location: login.php');
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
* Gestión de Enfermeras — Módulo Administrativo de Laboratorio
|
||||
*/
|
||||
require_once 'config/config.php';
|
||||
if (!defined('APP_ROOT')) { define('APP_ROOT', __DIR__); }
|
||||
|
||||
if (!isUserLoggedIn()) {
|
||||
header('Location: login.php');
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
* (sin id) → nuevo formulario
|
||||
*/
|
||||
require_once 'config/config.php';
|
||||
if (!defined('APP_ROOT')) { define('APP_ROOT', __DIR__); }
|
||||
if (!isUserLoggedIn()) { echo '<script>window.close();</script>'; exit; }
|
||||
if (isEnfermero()) { echo '<script>window.close();</script>'; exit; }
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
* Enfermero: solo puede ver la lista y enviar formularios pre-llenados
|
||||
*/
|
||||
require_once 'config/config.php';
|
||||
if (!defined('APP_ROOT')) { define('APP_ROOT', __DIR__); }
|
||||
if (!isUserLoggedIn()) { header('Location: login.php'); exit; }
|
||||
if (isEnfermero() && !enfermeraId()) { header('Location: enfermero_portal.php'); exit; }
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
* Gestión de Órdenes Médicas — Módulo Administrativo de Laboratorio
|
||||
*/
|
||||
require_once 'config/config.php';
|
||||
if (!defined('APP_ROOT')) { define('APP_ROOT', __DIR__); }
|
||||
|
||||
if (!isUserLoggedIn()) {
|
||||
header('Location: login.php');
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
* Gestión de Pacientes — Módulo Administrativo de Laboratorio
|
||||
*/
|
||||
require_once 'config/config.php';
|
||||
if (!defined('APP_ROOT')) { define('APP_ROOT', __DIR__); }
|
||||
|
||||
if (!isUserLoggedIn()) {
|
||||
header('Location: login.php');
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
* Reportes y Trazabilidad — Módulo Administrativo de Laboratorio
|
||||
*/
|
||||
require_once 'config/config.php';
|
||||
if (!defined('APP_ROOT')) { define('APP_ROOT', __DIR__); }
|
||||
|
||||
if (!isUserLoggedIn()) {
|
||||
header('Location: login.php');
|
||||
|
||||
@@ -7,6 +7,7 @@ $isCli = php_sapi_name() === 'cli';
|
||||
|
||||
if (!$isCli) {
|
||||
require_once 'config/config.php';
|
||||
if (!defined('APP_ROOT')) { define('APP_ROOT', __DIR__); }
|
||||
if (!isUserLoggedIn()) {
|
||||
header('Location: login.php'); exit;
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
* Términos y Condiciones — Historial de Aceptaciones
|
||||
*/
|
||||
require_once 'config/config.php';
|
||||
if (!defined('APP_ROOT')) { define('APP_ROOT', __DIR__); }
|
||||
|
||||
if (!isUserLoggedIn()) {
|
||||
header('Location: login.php');
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
* Exportar aceptaciones de T&C a CSV
|
||||
*/
|
||||
require_once 'config/config.php';
|
||||
if (!defined('APP_ROOT')) { define('APP_ROOT', __DIR__); }
|
||||
|
||||
if (!isUserLoggedIn()) {
|
||||
header('Location: login.php');
|
||||
|
||||
@@ -4,6 +4,9 @@
|
||||
* Solo accesible para administradores.
|
||||
*/
|
||||
require_once 'config/config.php';
|
||||
if (!defined('APP_ROOT')) {
|
||||
define('APP_ROOT', __DIR__);
|
||||
}
|
||||
if (file_exists(__DIR__ . '/core/ModuleRegistry.php')) {
|
||||
require_once __DIR__ . '/core/ModuleRegistry.php';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user