Set unlock time in config
This commit is contained in:
parent
8c8e4ae53d
commit
949bca618e
|
@ -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
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue