Compare commits

...

2 Commits

Author SHA1 Message Date
402d9d8928 fix warning 2025-02-12 11:10:21 +01:00
59e5ac419b fix logout 2025-02-12 11:10:14 +01:00
2 changed files with 8 additions and 6 deletions

View File

@ -10,16 +10,13 @@ function login()
}
}
session_start();
if (isset($_POST['logout']))
{
if (session_id() != "")
{
session_destroy();
}
unset($_SESSION['token']);
}
session_start();
if (isset($_POST['user']) && isset($_POST['password']))
{
login();

View File

@ -72,6 +72,11 @@ function get_struct($dir, $line)
function read_tsv($dir, $path)
{
if (!is_file($path))
{
return [];
}
$lines = explode("\n", file_get_contents($path));
$shares = [];