diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2011-06-14 16:52:45 -0700 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net ; true> | 2011-06-14 16:52:45 -0700 |
commit | 6045bb8ea25b77d99bdff8d741c99034f86b19c0 (patch) | |
tree | f509866b5e9c71fba79f0780fd242f88354bd894 | |
parent | 7565745f2cd5508f0ff408bb9dbfca1c54a0afa5 (diff) |
A few tweaks
-rw-r--r-- | htdocs/css/main.css | 5 | ||||
-rw-r--r-- | htdocs/moderate/src/header.inc.php | 6 | ||||
-rw-r--r-- | htdocs/new-post.php | 2 |
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 { |