zi
This commit is contained in:
31
includes/_config.php
Normal file
31
includes/_config.php
Normal 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);
|
||||
?>
|
||||
Reference in New Issue
Block a user