Commit 3542a704 authored by Leigh Stoller's avatar Leigh Stoller

Make it easier for admins to login when the web interface is disabled.

Just go to www.emulab.net/adminlogin.php

Lbs
parent ab4f69d1
<?php
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2010 University of Utah and the Flux Group.
# All rights reserved.
#
# This is just a convenience; redirect to the real login page.
#
require("defs.php3");
header("Location: https://$WWWHOST/login.php3?adminmode=1");
?>
<?php
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2008 University of Utah and the Flux Group.
# Copyright (c) 2000-2010 University of Utah and the Flux Group.
# All rights reserved.
#
require("defs.php3");
......@@ -60,6 +60,16 @@ if ($simple) {
$view = array();
}
if (NOLOGINS() && !$adminmode) {
PAGEHEADER("Login", $view);
USERERROR("Sorry. The Web Interface is ".
"<a href=nologins.php3>Temporarily Unavailable!</a>", 1);
PAGEFOOTER($view);
die("");
}
#
# Must not be logged in already.
#
......
<?php
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2002 University of Utah and the Flux Group.
# Copyright (c) 2000-2010 University of Utah and the Flux Group.
# All rights reserved.
#
require("defs.php3");
......@@ -13,14 +13,14 @@ PAGEHEADER("Web Interface Temporarily Unavailable");
?>
<h3>
<font size=+1>
The Emulab Web Interface is currently offline so that we may conduct
internal maintenance.
<br>
internal hardware and/or software maintenance.
Please check back again in a little while.
<p>
<br>
<br>
We apologize for any inconvenience this may cause.
</font>
<?php
#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment