Files
gallery3/core/views/maintenance.html.php
Bharat Mediratta 736d74d05f 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.
2009-03-16 04:33:45 +00:00

50 lines
921 B
PHP

<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>