Commit 643561db authored by David Johnson's avatar David Johnson

Rewrite of the plabmetrics page to provide better access to both comon and

emulab data.  Many of the search knobs are already in place, but need to
couple them with a UI.
parent 13c6cc7e
This diff is collapsed.
......@@ -47,6 +47,7 @@ define("PAGEARG_INTEGER", "integer");
define("PAGEARG_NUMERIC", "numeric");
define("PAGEARG_ARRAY", "array");
define("PAGEARG_ANYTHING", "anything");
define("PAGEARG_ALPHALIST", "alphalist");
define("URL_USER", "user");
define("URL_PROJECT", "project");
......@@ -554,6 +555,18 @@ function VerifyPageArguments($argspec, $required)
# Anything allowed, caller BETTER check it.
}
break;
case PAGEARG_ALPHALIST:
if (isset($_REQUEST[$name])) {
$object = $_REQUEST[$name];
if (!preg_match("/^[\d\w\-\ \,]+$/",$object)) {
unset($object);
}
else {
$object = preg_split("/[\,\;]+\s*/",$_REQUEST[$name]);
}
}
break;
case PAGEARG_STRING:
default:
......
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