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
\n"; + $html .= "\t\t\t\t\t\n"; + $html .= "\t\t\t\t\t

\n"; + $html .= "\t\t\t\t\t\n"; + $html .= "\t\t\t\t\t

\n"; $html .= "\t\t\t\t\t\n"; $html .= "\t\t\t\t\t\n"; - $html .= "\t\t\t\t\t\n"; - $html .= "\t\t\t\t\t\n"; - $html .= "\t\t\t\t\t\n"; - $html .= "\t\t\t\t\t\n"; - $html .= "\t\t\t\t\t

\n"; + $html .= "\t\t\t\t\t

\n"; $html .= "\t\t\t\t\t\n"; $html .= "\t\t\t\t
\n"; diff --git a/core.php b/core.php index dad753d..a5e7705 100755 --- a/core.php +++ b/core.php @@ -676,11 +676,11 @@ function printHeader($html, $printpage) { $html .= "\t\t\t\t$ret->data\n"; if ($ret->displaySource == "true") { - $html .= "\t\t\t\tSource\n"; + $html .= "\t\t\t\t\n"; } if (isset($_SESSION['type'])) { - $html .= "\t\t\t\tRequest changes\n"; + $html .= "\t\t\t\t\n"; } if ($ret->displayLicense == "true" && $License != '') { diff --git a/edit.php b/edit.php index 899027d..40dd746 100755 --- a/edit.php +++ b/edit.php @@ -153,6 +153,21 @@ if ($Action == "write") { } $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\t

You must specify a valid endpoint (e.g. /blog/article1)

\n"; + } else if ($Error == "file") { + $html .= "\t\t\t\t

Failed to upload file.

\n"; + } else if ($Error == "ofile") { + $html .= "\t\t\t\t

Failed to back up file, aborting.

\n"; + } else if ($Error == "exists") { + $html .= "\t\t\t\t

A 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\t
\n"; } $html .= "\t\t\t\t\t
\n"; - $html .= "\t\t\t\t\n"; // add history button if we're editing an existing page if ($defaultEndpoint != "") { - $html .= "\t\t\t\t\t\tHistory\n"; - } - - // handle errors - if ($Error == "endpoint") { - $html .= "\t\t\t\t

You must specify a valid endpoint (e.g. /blog/article1)

\n"; - } else if ($Error == "file") { - $html .= "\t\t\t\t

Failed to upload file.

\n"; - } else if ($Error == "ofile") { - $html .= "\t\t\t\t

Failed to back up file, aborting.

\n"; - } else if ($Error == "exists") { - $html .= "\t\t\t\t

A 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

\n"; } } else if ($Action == "attachments") { $html .= "\t\t\t\t
\n"; diff --git a/index.css b/index.css index 55b544e..d268982 100755 --- a/index.css +++ b/index.css @@ -21,7 +21,7 @@ background-color: #363636; } -input, select, textarea { +input, select, textarea, button { font-size: 12pt; font-family: Noto Sans; font-weight: normal; @@ -178,7 +178,7 @@ footer { background-color: #ececec; } - input, select, textarea { + input, select, textarea, button { font-size: 12pt; font-family: Noto Sans; font-weight: normal; diff --git a/properties.css b/properties.css index f7f721a..6934501 100755 --- a/properties.css +++ b/properties.css @@ -41,7 +41,7 @@ padding-right: 10px; } -input, select, textarea { +input, select, textarea, button { font-size: 12pt; font-family: Noto Sans; font-weight: normal;