Código PHP:
//TOMO VARIABLES DE SESION SOBRE LA AUTENTIFICACION
$_SESSION['autentificado'];
En esta línea no estás haciando prácticamente nada.
Luego utilizas una variable $autentificado, que no está definida. Bueno, si tienes el register globals en ON, se tomará el valor de $_SESSION['autentificado'], pero si está en OFF, no funcionará.
Trata de poner al comienzo de todo esta línea:
Código PHP:
error_reporting(E_ALL);
Así te mostrará cualquiere error. Recuerda quitarla cuando tu script ya esté on line.
En todo caso, tu script debería quedar así:
Código PHP:
//TOMO VARIABLES DE SESION SOBRE LA AUTENTIFICACION
$autentificado = $_SESSION['autentificado'];// ahora sí estás asignando
//COMPRUEBA QUE EL USUARIO ESTA AUTENTIFICADO
if ($autentificado != "SI") {
Saludos