<? session_start();
if( !isset( $acesso_liberado_x ) ) {
$acesso_liberado_x = 0;
session_register("acesso_liberado_x");
}
if( $acesso_liberado_x == 0 ) { // acesso negado
$redir = "motociclistas.php"; // se o login for válido, redireciona para esta página
include("login.php"); // incluir a tela de login
exit; // para de executar aqui
}
?>
Login Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively in Unknown on line 0