From 70139841d20d6bfbac58374c31d58bd0ca55b9f3 Mon Sep 17 00:00:00 2001 From: Chad Davis Date: Fri, 19 Jul 2024 15:39:41 -0500 Subject: [PATCH 1/5] Update commenting - Add PHP comment block to state beginning of HTML section - Move HTML comment block with name, repo and license to top of HTML - Added current version number to HTML comment block since it wasn't shown anywhere when update was available --- index.php | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/index.php b/index.php index c9f6614..b1b6696 100644 --- a/index.php +++ b/index.php @@ -384,10 +384,21 @@ function show_message($message_text) { // Set $backup_folders after folder backup or delete $backup_folders = get_backup_folders(__DIR__); + /******************************************************************************/ -?> +/** + * Begin HTML section + */ + +?> + @@ -779,11 +790,5 @@ function convertToLocalTime(isoDate) {
- - From 40649cbb4568eae6b0e5949cdbd189e11c8c97e6 Mon Sep 17 00:00:00 2001 From: Chad Davis Date: Fri, 19 Jul 2024 16:23:19 -0500 Subject: [PATCH 2/5] Update Backup Name - Change Backup Name placeholder to Backup Description - Change Name column header to Folder --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index b1b6696..fc51c25 100644 --- a/index.php +++ b/index.php @@ -728,7 +728,7 @@ function convertToLocalTime(isoDate) {
- +
@@ -756,7 +756,7 @@ function convertToLocalTime(isoDate) { - Name + Folder Description Created Date Delete From 18d75a2db6d740e62b763a6637e3c200e5afabdb Mon Sep 17 00:00:00 2001 From: Chad Davis Date: Wed, 31 Jul 2024 20:35:23 -0500 Subject: [PATCH 3/5] Update comment --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index fc51c25..0166b10 100644 --- a/index.php +++ b/index.php @@ -362,7 +362,7 @@ function show_message($message_text) { ) ); - // Download the release and save the zip file to disk + // Download the new file from the release and overwrite this file file_put_contents( basename(__FILE__), file_get_contents( From 1ea373d60fa992489b6504edf07d895a794a33fe Mon Sep 17 00:00:00 2001 From: Chad Davis Date: Wed, 31 Jul 2024 20:38:18 -0500 Subject: [PATCH 4/5] Fix bug where `$message_color` variable missing $ Fixed bug in two locations where the `$message_color` variable was missing the dollar sign --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 0166b10..ae156a3 100644 --- a/index.php +++ b/index.php @@ -300,7 +300,7 @@ function show_message($message_text) { if ($file_count > 0) { // If $message_color is not already $red, set to $green - if (message_color != $red) { + if ($message_color != $red) { $message_color = $green; } @@ -334,7 +334,7 @@ function show_message($message_text) { if (delete_backup_folder(__DIR__ . '/' . $dir)) { // If $message_color is not already $red, set to $green - if (message_color != $red) { + if ($message_color != $red) { $message_color = $green; } From 4981cde47ff287b2a42e630ad62d7be1535ed815 Mon Sep 17 00:00:00 2001 From: Chad Davis Date: Wed, 31 Jul 2024 20:43:09 -0500 Subject: [PATCH 5/5] Increment version to v1.2.3 --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index ae156a3..8ec7986 100644 --- a/index.php +++ b/index.php @@ -4,7 +4,7 @@ * Define constant for the current version */ -define('CURRENT_VERSION', 'v1.2.2'); +define('CURRENT_VERSION', 'v1.2.3'); /******************************************************************************/