From e107dff1ce417df779733667ad81d60755582779 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20H=C3=A4usler?= Date: Tue, 13 May 2014 14:44:04 +0200 Subject: [PATCH] button style and redirect fixes --- includes/pages/guest_login.php | 2 +- includes/pages/user_news.php | 2 +- public/css/base.css | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/includes/pages/guest_login.php b/includes/pages/guest_login.php index 153c6450..e733aa65 100644 --- a/includes/pages/guest_login.php +++ b/includes/pages/guest_login.php @@ -131,7 +131,7 @@ function guest_register() { engelsystem_log("User " . $nick . " signed up as: " . join(", ", $user_angel_types_info)); success(_("Angel registration successful!")); - redirect(page_link_to('login')); + redirect('?'); } } diff --git a/includes/pages/user_news.php b/includes/pages/user_news.php index c4447e2c..c85a6243 100644 --- a/includes/pages/user_news.php +++ b/includes/pages/user_news.php @@ -138,7 +138,7 @@ function user_news() { "', '" . sql_escape($_POST["treffen"]) . "');"); engelsystem_log("Created news: " . $_POST["betreff"] . ", treffen: " . $_POST["treffen"]); success(_("Entry saved.")); - redirect(page_link_to('user_news')); + redirect(page_link_to('news')); } if (isset ($_REQUEST['page']) && preg_match("/^[0-9]{1,}$/", $_REQUEST['page'])) diff --git a/public/css/base.css b/public/css/base.css index 4aa772fe..692c5538 100644 --- a/public/css/base.css +++ b/public/css/base.css @@ -362,7 +362,7 @@ tr:hover .hidden { padding-right: 5px; } -a.button { +a.button, input.button, input[type=submit] { background: #f0f0f0 2px 2px no-repeat; border: 1px solid #888; border-radius: 4px; @@ -372,6 +372,10 @@ a.button { white-space: nowrap; } +input.button { + background-position: 2px 4px; +} + .button.on { color: #fff; background: #444;