From cfe3b64f3529480f86214743fd4b2327e815d232 Mon Sep 17 00:00:00 2001 From: William Moore Date: Tue, 26 Dec 2023 14:09:38 -0600 Subject: [PATCH] Update to include license comment --- unlock.as | 18 ++++++++++++++++++ unlock.php | 18 ++++++++++++++++++ unlock_action.php | 18 ++++++++++++++++++ unlock_finished.php | 17 +++++++++++++++++ 4 files changed, 71 insertions(+) diff --git a/unlock.as b/unlock.as index 16041d2..3b40bb3 100644 --- a/unlock.as +++ b/unlock.as @@ -1,3 +1,21 @@ +(* + unlock.as does the actual screen unlocking. + Copyright (C) 2023 William R. Moore + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*) + do shell script "caffeinate -u -t 3" set theFile to POSIX file "./password.txt" set theFile to theFile as alias diff --git a/unlock.php b/unlock.php index d8c9b78..89f36b0 100644 --- a/unlock.php +++ b/unlock.php @@ -1,3 +1,21 @@ . +*/ + header("Location: unlock_action.php"); ?> diff --git a/unlock_action.php b/unlock_action.php index c85d9dd..2906eb5 100644 --- a/unlock_action.php +++ b/unlock_action.php @@ -1,4 +1,22 @@ . +*/ + echo shell_exec("osascript './unlock.as'"); header("Location: unlock_finished.php"); ?> diff --git a/unlock_finished.php b/unlock_finished.php index 2b19040..2abe9e8 100644 --- a/unlock_finished.php +++ b/unlock_finished.php @@ -1 +1,18 @@ + Thank you!