diff --git a/account.php b/account.php
index a894f40..6e0d46a 100755
--- a/account.php
+++ b/account.php
@@ -90,9 +90,9 @@ if ($allowPasswordChange || $IsCurrentUser) {
$html .= "\t\t\t\t\t\t
\n";
$html .= "\t\t\t\t\t\t\n";
- $html .= "\t\t\t\t\t\t\n";
+ $html .= "\t\t\t\t\t\t
\n";
$html .= "\t\t\t\t\t\t\n";
- $html .= "\t\t\t\t\t\t\n";
+ $html .= "\t\t\t\t\t\t
\n";
$html .= "\t\t\t\t\t\t\n";
$html .= "\t\t\t\t\t\t\n";
$html .= "\t\t\t\t\t\t\n";
@@ -116,11 +116,11 @@ if ($allowUsernameChange || !$IsCurrentUser) {
if ($IsCurrentUser) {
$html .= "\t\t\t\t\t\t\n";
- $html .= "\t\t\t\t\t\t\n";
+ $html .= "\t\t\t\t\t\t
\n";
}
$html .= "\t\t\t\t\t\t\n";
- $html .= "\t\t\t\t\t\t\n";
+ $html .= "\t\t\t\t\t\t
\n";
$html .= "\t\t\t\t\t\t\n";
$html .= "\t\t\t\t\t\t\n";
$html .= "\t\t\t\t\t\t\n";
@@ -148,7 +148,7 @@ if (!$IsCurrentUser) {
$html .= "\t\t\t\t\t\t\n";
+ $html .= "\t\t\t\t\t\t
\n";
$html .= "\t\t\t\t\t\t\n";
$html .= "\t\t\t\t\t\t\n";
$html .= "\t\t\t\t\t\t\n";
diff --git a/admin.php b/admin.php
index 532f906..9c841a5 100755
--- a/admin.php
+++ b/admin.php
@@ -120,6 +120,10 @@ if ($Action == "comments") {
$html .= "\t\t\t\t\n";
} else if ($Action == "create") {
$html .= "\t\t\t\t
Switching tab will delete changes made to the Markdown document. Press 'Save' to avoid this.
\n"; + + // handle errors + if ($Error == "endpoint") { + $html .= "\t\t\t\tYou must specify a valid endpoint (e.g. /blog/article1)
\n"; + } else if ($Error == "file") { + $html .= "\t\t\t\tFailed to upload file.
\n"; + } else if ($Error == "ofile") { + $html .= "\t\t\t\tFailed to back up file, aborting.
\n"; + } else if ($Error == "exists") { + $html .= "\t\t\t\tA file with this endpoint already exists.
\n"; + } else if ($Error == "saved") { // not actually an error but i don't want to make this too complicated + $Date = date($dateFormat) . " at " . date($timeFormat); + $html .= "\t\t\t\t$Date: Your changes have been saved.
\n"; + } + $html .= "\t\t\t\t\n"; if ($postID == -1) { @@ -175,25 +190,10 @@ if ($Action == "write") { $html .= "\t\t\t\t\tYou must specify a valid endpoint (e.g. /blog/article1)
\n"; - } else if ($Error == "file") { - $html .= "\t\t\t\tFailed to upload file.
\n"; - } else if ($Error == "ofile") { - $html .= "\t\t\t\tFailed to back up file, aborting.
\n"; - } else if ($Error == "exists") { - $html .= "\t\t\t\tA file with this endpoint already exists.
\n"; - } else if ($Error == "saved") { // not actually an error but i don't want to make this too complicated - $Date = date($dateFormat) . " at " . date($timeFormat); - $html .= "\t\t\t\t$Date: Your changes have been saved.
\n"; + $html .= "\t\t\t\t\t\t