From 633d252a7c7cb1366b4d8ef432cea96fad00679d Mon Sep 17 00:00:00 2001 From: Lewis Milburn <63267144+lewmilburn@users.noreply.github.com> Date: Wed, 13 Nov 2024 15:38:50 +0000 Subject: [PATCH] Fix some bugs --- Plugins/ControlPanel/Assets/ChkValues.php | 5 +-- Plugins/ControlPanel/Checksums.php | 55 +++++++++++++++++++++-- Plugins/ControlPanel/Views/User.php | 2 +- 3 files changed, 54 insertions(+), 8 deletions(-) diff --git a/Plugins/ControlPanel/Assets/ChkValues.php b/Plugins/ControlPanel/Assets/ChkValues.php index 7f0248f..d74c69e 100644 --- a/Plugins/ControlPanel/Assets/ChkValues.php +++ b/Plugins/ControlPanel/Assets/ChkValues.php @@ -1,4 +1 @@ -SaturnError( + '500', + 'SAT-6', + 'Error Resetting Checksums', + 'There was a problem whilst resetting the checksums.', + SATSYS_DOCS_URL . '/troubleshooting/errors/saturn#sat-6' + ); + } + fclose($fp); + } catch (Exception $e) { + $Error = new ErrorHandler(); + $Error->SaturnError( + '500', + 'SAT-6', + 'Error Resetting Checksums', + 'There was a problem whilst resetting the checksums. ' . $e->getMessage(), + SATSYS_DOCS_URL . '/troubleshooting/errors/saturn#sat-6' + ); + } + } else { + if (!file_exists(__DIR__.'/Assets/ChkValues.php')) { + $Error = new ErrorHandler(); + $Error->SaturnError( + '500', + 'SAT-7', + 'File is not writeable', + 'DOES NOT EXIST: /Plugins/ControlPanel/Assets/ChkValues.php', + SATSYS_DOCS_URL . '/troubleshooting/errors/saturn#sat-7' + ); + } else { + $Error = new ErrorHandler(); + $Error->SaturnError( + '500', + 'SAT-7', + 'File is not writeable', + 'NO PERMISSION: /Plugins/ControlPanel/Assets/ChkValues.php', + SATSYS_DOCS_URL . '/troubleshooting/errors/saturn#sat-7' + ); + } + } } } diff --git a/Plugins/ControlPanel/Views/User.php b/Plugins/ControlPanel/Views/User.php index 1a7a56a..44fae15 100644 --- a/Plugins/ControlPanel/Views/User.php +++ b/Plugins/ControlPanel/Views/User.php @@ -20,7 +20,7 @@
-Up No details for username; ?>. + No details for username; ?>.