This commit is contained in:
Daniel Cortés
2019-12-13 13:53:12 -03:00
parent f480b2942f
commit fdada2adcc
14 changed files with 220 additions and 132 deletions

31
includes/_config.php Normal file
View File

@@ -0,0 +1,31 @@
<?php
session_start();
error_log("script_name: " . $_SERVER["SCRIPT_NAME"]);
switch ($_SERVER["SCRIPT_NAME"]) {
case "/index.php":
$CURRENT_PAGE = "index";
$SECTION = "index";
$PAGE_TITLE = "Index";
break;
case "/alumnos/index.php":
$CURRENT_PAGE = "alumno_index";
$SECTION = "alumno";
$PAGE_TITLE = "Alumos";
break;
case "/alumnos/registrar.php":
$CURRENT_PAGE = "alumnos_registrar";
$SECTION = "alumno";
$PAGE_TITLE = "Registrar Alumno";
break;
case "/alumnos/modificar.php":
$CURRENT_PAGE = "alumnos_modificar";
$SECTION = "alumno";
$PAGE_TITLE = "Modificar Alumno";
}
error_log("PAGE_TITLE: ".$PAGE_TITLE);
error_log("CURRENT_PAGE: ".$CURRENT_PAGE);
error_log("SECTION: ".$SECTION);
?>