From 949bca618e4b3e9e42eca57ede61f584c3220619 Mon Sep 17 00:00:00 2001 From: Maxim Stewart Date: Sun, 19 Aug 2018 15:58:36 -0500 Subject: [PATCH] Set unlock time in config --- resources/php/config.php | 2 ++ resources/php/lockedFolders.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/php/config.php b/resources/php/config.php index f2f5d0c..326c5f5 100644 --- a/resources/php/config.php +++ b/resources/php/config.php @@ -10,4 +10,6 @@ // NOTE: Split folders with :::: $LOCKEDFOLDERS = "./dirLockCheck/"; $LOCKPASSWORD = "1234"; + $UNLOCKTIME = 60; // Every ~3 sec this ticks down + // Ex: 3*60 == 180 sec or 3 minutes ?> diff --git a/resources/php/lockedFolders.php b/resources/php/lockedFolders.php index e76ec25..16818ff 100644 --- a/resources/php/lockedFolders.php +++ b/resources/php/lockedFolders.php @@ -13,7 +13,7 @@ for ($i = 0; $i < $size; $i++) { if (strpos($NEWPATH, $LOCKS[$i]) !== false) { if ($PASSWD == $LOCKPASSWORD) { - $_SESSION["unlockTime"] = 60; + $_SESSION["unlockTime"] = $UNLOCKTIME; return false; } else { return true;