librecat/index.php

17 lines
255 B
PHP
Raw Normal View History

2020-05-17 00:02:20 +00:00
<?php
2020-05-17 20:06:22 +00:00
session_start();
if($_SESSION["login"] === true){
echo($_SESSION["uid"] . " - ");
echo("<a href='/logout'>logout</a>");
}
else{
echo("<a href='/login'>Login</a>");
//header("Location: /login.php"); die();
}
2020-05-17 00:02:20 +00:00
?>
2020-05-17 20:06:22 +00:00
<html>
<h1>LibreCat</h1>
</html>