Commit 13f50b00 authored by Leigh Stoller's avatar Leigh Stoller

Admins get the Portal version of the user and project listing pages.

parent 85c46d37
<?php
#
# Copyright (c) 2000-2012 University of Utah and the Flux Group.
# Copyright (c) 2000-2012, 2019 University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
......@@ -33,7 +33,14 @@ $isadmin = ISADMIN();
#
# Verify page arguments
#
$optargs = OptionalPageArguments("showtype", PAGEARG_STRING);
$optargs = OptionalPageArguments("showtype", PAGEARG_STRING,
"classic", PAGEARG_BOOLEAN);
if ($isadmin && !$classic) {
$url = "portal/lists.php#projects";
header("Location: $url");
return;
}
#
# Standard Testbed Header
......
<?php
#
# Copyright (c) 2000-2015 University of Utah and the Flux Group.
# Copyright (c) 2000-2016 University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
......@@ -42,7 +42,14 @@ if (! $isadmin) {
# Verify Page Arguments.
#
$optargs = OptionalPageArguments("showtype", PAGEARG_STRING,
"searchfor", PAGEARG_STRING);
"searchfor", PAGEARG_STRING,
"classic", PAGEARG_BOOLEAN);
if ($isadmin && !$classic) {
$url = "portal/lists.php";
header("Location: $url");
return;
}
if (!isset($showtype)) {
$showtype='loggedin';
......
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