librecat/index.php

17 lines
255 B
PHP

<?php
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();
}
?>
<html>
<h1>LibreCat</h1>
</html>