Added a timeout for unlocked dir folders. Stays unlocked for aprox 3 minutes.

This commit is contained in:
Maxim Stewart 2018-07-28 23:40:12 -05:00
parent 76ef1b813f
commit 95971d7d26
1 changed files with 1 additions and 3 deletions

View File

@ -11,7 +11,7 @@
} }
if (isset($_SESSION["unlockTime"])) { if (isset($_SESSION["unlockTime"])) {
$_SESSION["unlockTime"] += 1; $_SESSION["unlockTime"] -= 1;
} }
header('Content-Type: text/event-stream'); header('Content-Type: text/event-stream');
@ -19,7 +19,5 @@
echo "data:" . $state . "\n\n"; echo "data:" . $state . "\n\n";
$_SESSION["refreshState"] = "none"; $_SESSION["refreshState"] = "none";
$UNLOCKTIME = 0;
flush(); flush();
?> ?>