|
<?php
|
|
|
|
if ( __FILE__ == $_SERVER['SCRIPT_FILENAME'] ) {
|
|
header("Location: /404.php");
|
|
die();
|
|
}
|
|
|
|
session_start();
|
|
|
|
if ( isset( $_GET["logout"] ) ) {
|
|
session_destroy();
|
|
unset( $_SESSION );
|
|
}
|
|
|
|
if ( !isset($_SESSION["user"] ) ) {
|
|
header("Location: /blog_log.php");
|
|
die();
|
|
}
|
|
|