mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-20 19:39:16 -04:00
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.
50 lines
921 B
PHP
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>
|
|
|
|
|