Compare commits
2 Commits
9ad0f7dc38
...
402d9d8928
Author | SHA1 | Date | |
---|---|---|---|
402d9d8928 | |||
59e5ac419b |
@ -10,15 +10,12 @@ function login()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
session_start();
|
||||||
|
|
||||||
if (isset($_POST['logout']))
|
if (isset($_POST['logout']))
|
||||||
{
|
{
|
||||||
if (session_id() != "")
|
unset($_SESSION['token']);
|
||||||
{
|
|
||||||
session_destroy();
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
session_start();
|
|
||||||
|
|
||||||
if (isset($_POST['user']) && isset($_POST['password']))
|
if (isset($_POST['user']) && isset($_POST['password']))
|
||||||
{
|
{
|
||||||
|
@ -72,6 +72,11 @@ function get_struct($dir, $line)
|
|||||||
function read_tsv($dir, $path)
|
function read_tsv($dir, $path)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if (!is_file($path))
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
$lines = explode("\n", file_get_contents($path));
|
$lines = explode("\n", file_get_contents($path));
|
||||||
|
|
||||||
$shares = [];
|
$shares = [];
|
||||||
|
Loading…
Reference in New Issue
Block a user