Skip to content

Commit

Permalink
2.11.20 Adding view account profile
Browse files Browse the repository at this point in the history
  • Loading branch information
webpwnized committed Sep 30, 2024
1 parent 2239e55 commit 752c783
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/set-up-database.php
Original file line number Diff line number Diff line change
Expand Up @@ -1276,16 +1276,16 @@ function format($pMessage, $pLevel ) {
try {
// Ensure the directories exist and are writable
if (!is_dir(pathinfo($lAccountXMLFilePath, PATHINFO_DIRNAME))) {
throw new Exception("Oh no. Trying to create an XML version of the accounts file did not work out. The directory " . $lAccountXMLFilePath . " does not exist.");
echo format("Oh no. Trying to create an XML version of the accounts file did not work out. The directory " . $lAccountXMLFilePath . " does not exist.","E");
}
if (!is_dir(pathinfo($lPasswordFilePath, PATHINFO_DIRNAME))) {
throw new Exception("Oh no. Trying to create a text version of the accounts file did not work out. The directory " . $lPasswordFilePath . " does not exist.");
echo format("Oh no. Trying to create a text version of the accounts file did not work out. The directory " . $lPasswordFilePath . " does not exist.","E");
}
if (!is_writable(pathinfo($lAccountXMLFilePath, PATHINFO_DIRNAME))) {
throw new Exception("Oh no. Trying to create a text version of the accounts file did not work out. The directory " . $lPasswordFilePath . " is not writable.");
echo format("Oh no. Trying to create an XML version of the accounts file did not work out. The directory " . $lAccountXMLFilePath . " is not writable.","E");
}
if (!is_writable(pathinfo($lPasswordFilePath, PATHINFO_DIRNAME))) {
throw new Exception("Oh no. Trying to create a text version of the accounts file did not work out. The directory " . $lPasswordFilePath . " is not writable.");
echo format("Oh no. Trying to create a text version of the accounts file did not work out. The directory " . $lPasswordFilePath . " is not writable.","E");
}

// XML File Writing
Expand Down

0 comments on commit 752c783

Please sign in to comment.