Set unlock time in config

This commit is contained in:
Maxim Stewart 2018-08-19 15:58:36 -05:00
parent 8c8e4ae53d
commit 949bca618e
2 changed files with 3 additions and 1 deletions

View File

@ -10,4 +10,6 @@
// NOTE: Split folders with :::: // NOTE: Split folders with ::::
$LOCKEDFOLDERS = "./dirLockCheck/"; $LOCKEDFOLDERS = "./dirLockCheck/";
$LOCKPASSWORD = "1234"; $LOCKPASSWORD = "1234";
$UNLOCKTIME = 60; // Every ~3 sec this ticks down
// Ex: 3*60 == 180 sec or 3 minutes
?> ?>

View File

@ -13,7 +13,7 @@
for ($i = 0; $i < $size; $i++) { for ($i = 0; $i < $size; $i++) {
if (strpos($NEWPATH, $LOCKS[$i]) !== false) { if (strpos($NEWPATH, $LOCKS[$i]) !== false) {
if ($PASSWD == $LOCKPASSWORD) { if ($PASSWD == $LOCKPASSWORD) {
$_SESSION["unlockTime"] = 60; $_SESSION["unlockTime"] = $UNLOCKTIME;
return false; return false;
} else { } else {
return true; return true;