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
eabb41ae
Commit
eabb41ae
authored
Oct 08, 2013
by
Leigh B Stoller
Browse files
Allow initial uid/email in the URL.
parent
59ed8b41
Changes
1
Show whitespace changes
Inline
Side-by-side
www/newproject.php3
View file @
eabb41ae
<?php
#
# Copyright (c) 2000-201
2
University of Utah and the Flux Group.
# Copyright (c) 2000-201
3
University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
...
...
@@ -36,6 +36,8 @@ $this_user = CheckLogin($check_status);
# Verify page arguments.
#
$optargs
=
OptionalPageArguments
(
"submit"
,
PAGEARG_STRING
,
"uid"
,
PAGEARG_STRING
,
"email"
,
PAGEARG_STRING
,
"finished"
,
PAGEARG_BOOLEAN
,
"formfields"
,
PAGEARG_ARRAY
);
...
...
@@ -674,14 +676,14 @@ if (isset($finished)) {
#
if
(
!
isset
(
$submit
))
{
$defaults
=
array
();
$defaults
[
"proj_head_uid"
]
=
""
;
$defaults
[
"proj_head_uid"
]
=
(
isset
(
$uid
)
?
$uid
:
""
)
;
$defaults
[
"usr_name"
]
=
""
;
$defaults
[
"wikiname"
]
=
""
;
$defaults
[
"usr_title"
]
=
""
;
$defaults
[
"usr_affil"
]
=
""
;
$defaults
[
"usr_affil_abbrev"
]
=
""
;
$defaults
[
"usr_URL"
]
=
"
$HTTPTAG
"
;
$defaults
[
"usr_email"
]
=
""
;
$defaults
[
"usr_email"
]
=
(
isset
(
$email
)
?
$email
:
""
)
;
$defaults
[
"usr_addr"
]
=
""
;
$defaults
[
"usr_addr2"
]
=
""
;
$defaults
[
"usr_city"
]
=
""
;
...
...
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