Commit 320f4ae6 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Convert to Emulab based authentication. For now, its presented as its

own page instead of inside the Emulab framework since the style sheets
conflict. That needs to be addressed.
parent 459b3687
<?php header("Pragma: no-cache");?>
<?php
chdir("..");
require("defs.php3");
<html>
<head>
#
# Only known and logged in users can do this.
#
$uid = GETLOGIN();
LOGGEDINORDIE($uid);
<?php
if (getenv("HTTPS") != "on") {
$title_header = "Redirecting to HTTPS";
$body_header = $title_header;
$to_where = "https://$SERVER_NAME$PHP_SELF";
echo "<META HTTP-EQUIV=Refresh CONTENT='0; URL=$to_where'>";
} else {
include "webdb_backend.php3";
}
?>
if (! TBWebdbAllowed($uid)) {
USERERROR("You do not have permission to use WEBDB!", 1);
}
header("Pragma: no-cache");
echo "<html>
<head>\n";
chdir("webdb");
include "webdb_backend.php3";
?>
<title>WebDb - <?php echo $title_header ?></title>
<style type="text/css"><!--
......@@ -61,21 +67,3 @@
<hr><p>based on mysql.php3 by SooMin Kim.</p>
</body>
</html>
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