Compare commits
2 Commits
9ad0f7dc38
...
402d9d8928
Author | SHA1 | Date | |
---|---|---|---|
402d9d8928 | |||
59e5ac419b |
@ -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();
|
||||
|
@ -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 = [];
|
||||
|
Loading…
Reference in New Issue
Block a user