diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-03-16 04:33:45 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-03-16 04:33:45 +0000 |
commit | 736d74d05f70be5b72e44eafe2cc8efae52b0af7 (patch) | |
tree | 31cda57354967ecb717026f3f631daaa54801aec /core/views | |
parent | cbc7c870fa8b54c2c320fedaf02b5b6010c55277 (diff) |
Clean up the login, maintenance login and required-top-level-login code.
We now have two clear and separate login approaches:
login/ajax
login/html
Choose the one that's appropriate. Totally simplified the maintenance
page to be separate from the theme and dead simple, and use login/html
approach there. Totally simplified the top level login
(login_page.html.php) to just be a login page, not the rest of the
chrome on the page and use the login/ajax approach there.
Don't use access::required in albums and then catch the exception,
instead use access::can and check the return code.
Improve the text for maintenance mode.
Diffstat (limited to 'core/views')
-rw-r--r-- | core/views/maintenance.html.php | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/core/views/maintenance.html.php b/core/views/maintenance.html.php new file mode 100644 index 00000000..d970233d --- /dev/null +++ b/core/views/maintenance.html.php @@ -0,0 +1,49 @@ +<html> + <head> + <title> + <?= t("Gallery - Maintenance Mode") ?> + </title> + <style> + body { + background: #ccc; + } + form { + border: 1px solid #555; + background: #999; + width: 300px; + } + fieldset { + border: none; + } + fieldset legend { + font-size: 24px; + display: none !important; + padding-left: 0px; + } + ul { + list-style-type: none; + margin-top: 0px; + padding-left: 0px; + bullet-style: none; + } + ul li { + margin-left: 0px; + } + label { + width: 60px; + display: block; + } + </style> + </head> + <body> + <h1> + <?= t("Gallery - Maintenance Mode") ?> + </h1> + <p> + <?= t("This site is currently only accessible by site administrators.") ?> + </p> + <?= user::get_login_form("login/auth_html") ?> + </body> +</html> + + |