1
0
Fork 0
chickadee/logcheck.php

20 lines
283 B
PHP
Raw Normal View History

<?php
if ( __FILE__ == $_SERVER['SCRIPT_FILENAME'] ) {
2024-01-18 22:09:17 +00:00
header("Location: /404.php");
die();
}
2024-01-18 22:09:17 +00:00
session_start();
if ( isset( $_GET["logout"] ) ) {
session_destroy();
unset( $_SESSION );
}
if ( !isset($_SESSION["user"] ) ) {
header("Location: /blog_log.php");
die();
}
2024-01-18 22:09:17 +00:00