Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
cabd612d
Commit
cabd612d
authored
Jul 09, 2013
by
Leigh B Stoller
Browse files
Add named PAGEARG_IMAGE.
parent
0cc19592
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/url_defs.php
View file @
cabd612d
<?php
#
# Copyright (c) 2006-201
2
University of Utah and the Flux Group.
# Copyright (c) 2006-201
3
University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
...
...
@@ -565,6 +565,14 @@ function VerifyPageArguments($argspec, $required)
$object
=
Image
::
Lookup
(
$imageid
);
}
}
elseif
(
isset
(
$_REQUEST
[
$name
])
&&
$_REQUEST
[
$name
]
!=
""
)
{
$imageid
=
$_REQUEST
[
$name
];
$yep
=
1
;
if
(
ValidateArgument
(
PAGEARG_IMAGE
,
$imageid
))
{
$object
=
Image
::
Lookup
(
$imageid
);
}
}
break
;
case
PAGEARG_OSINFO
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment