Skip to content

Commit

Permalink
Merge pull request #57 from dynamiccookies/test
Browse files Browse the repository at this point in the history
Release v1.2.3
  • Loading branch information
dynamiccookies authored Aug 1, 2024
2 parents c10001a + 46acffb commit 00a3464
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Define constant for the current version
*/

define('CURRENT_VERSION', 'v1.2.2');
define('CURRENT_VERSION', 'v1.2.3');

/******************************************************************************/

Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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(
Expand All @@ -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
*/

?>
<!DOCTYPE html>
<!--
Name : Simple Backup Utility
Repo : https://github.com/dynamiccookies/Simple-Backup-Utility
License : MIT
Version : <?= CURRENT_VERSION ?>
-->
<html lang='en'>
<head>
<meta charset='UTF-8'>
Expand Down Expand Up @@ -717,7 +728,7 @@ function convertToLocalTime(isoDate) {

<!-- Backup form for creating new backups -->
<form method='POST'>
<input type='text' id='folder_name' name='folder_name' placeholder='Backup Name' required>
<input type='text' id='folder_name' name='folder_name' placeholder='Backup Description' required>
<div class='checkbox-columns'>
<?= print_columns($sibling_folders); ?>
</div>
Expand Down Expand Up @@ -745,7 +756,7 @@ function convertToLocalTime(isoDate) {
<i class='fa fa-trash'></i>
</button>
</th>
<th>Name</th>
<th>Folder</th>
<th>Description</th>
<th>Created Date</th>
<th>Delete</th>
Expand Down Expand Up @@ -779,11 +790,5 @@ function convertToLocalTime(isoDate) {

<!-- Display version information -->
<div class='version-info'><?= $version_message; ?></div>

<!--
Simple Backup Utility
Repository: https://github.com/dynamiccookies/Simple-Backup-Utility
License: MIT
-->
</body>
</html>

0 comments on commit 00a3464

Please sign in to comment.