summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--htdocs/css/main.css5
-rw-r--r--htdocs/moderate/src/header.inc.php6
-rw-r--r--htdocs/new-post.php2
3 files changed, 7 insertions, 6 deletions
diff --git a/htdocs/css/main.css b/htdocs/css/main.css
index d9f4f0a..756d312 100644
--- a/htdocs/css/main.css
+++ b/htdocs/css/main.css
@@ -6,9 +6,9 @@ body {
font-family: Helvetica;
}
-#nav, #content, #footer {
- width: 50%;
+#nav, #content, #footer, #buttonblock {
margin: 0 auto 0 auto;
+ width: 660px;
}
#nav ul {
@@ -64,7 +64,6 @@ body {
border-bottom: solid 1px black;
text-align: center;
padding-bottom: 1em;
- width: 660px;
margin: 0 auto 0 auto;
}
diff --git a/htdocs/moderate/src/header.inc.php b/htdocs/moderate/src/header.inc.php
index ef675e5..901344a 100644
--- a/htdocs/moderate/src/header.inc.php
+++ b/htdocs/moderate/src/header.inc.php
@@ -21,7 +21,9 @@ if (!isset($_SESSION['currentUser'])) {
elements : "contentarea",
theme : "advanced",
theme_advanced_toolbar_location : "top",
- theme_advanced_toolbar_align : "left"
+ theme_advanced_toolbar_align : "left",
+ document_base_url : "<?= buildUrl() ?>",
+ relative_urls : false
});
</script>
</head>
@@ -48,7 +50,7 @@ if (!isset($_SESSION['currentUser'])) {
<?php
// Admin Navigation
- if ($_SESSION['currentUser']->isAdmin()) {
+ if (isset($_SESSION['currentUser']) and $_SESSION['currentUser']->isAdmin()) {
echo "<li><a href=\"". buildUrl('moderate/pages/') ."\">Pages</a></li>";
echo "<li><a href=\"". buildUrl('moderate/users/') ."\">Users</a></li>";
}
diff --git a/htdocs/new-post.php b/htdocs/new-post.php
index e421d3c..439d7f2 100644
--- a/htdocs/new-post.php
+++ b/htdocs/new-post.php
@@ -120,7 +120,7 @@ function handle_tos() {
}
function finish_tos() {
- if (isset($_POST['tos']) and $_POST['tos'] == 1) {
+ if (isset($_REQUEST['tos']) and $_REQUEST['tos'] == 1) {
return true;
} else {