Commit eabb41ae authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Allow initial uid/email in the URL.

parent 59ed8b41
<?php <?php
# #
# Copyright (c) 2000-2012 University of Utah and the Flux Group. # Copyright (c) 2000-2013 University of Utah and the Flux Group.
# #
# {{{EMULAB-LICENSE # {{{EMULAB-LICENSE
# #
...@@ -36,6 +36,8 @@ $this_user = CheckLogin($check_status); ...@@ -36,6 +36,8 @@ $this_user = CheckLogin($check_status);
# Verify page arguments. # Verify page arguments.
# #
$optargs = OptionalPageArguments("submit", PAGEARG_STRING, $optargs = OptionalPageArguments("submit", PAGEARG_STRING,
"uid", PAGEARG_STRING,
"email", PAGEARG_STRING,
"finished", PAGEARG_BOOLEAN, "finished", PAGEARG_BOOLEAN,
"formfields", PAGEARG_ARRAY); "formfields", PAGEARG_ARRAY);
...@@ -674,14 +676,14 @@ if (isset($finished)) { ...@@ -674,14 +676,14 @@ if (isset($finished)) {
# #
if (! isset($submit)) { if (! isset($submit)) {
$defaults = array(); $defaults = array();
$defaults["proj_head_uid"] = ""; $defaults["proj_head_uid"] = (isset($uid) ? $uid : "");
$defaults["usr_name"] = ""; $defaults["usr_name"] = "";
$defaults["wikiname"] = ""; $defaults["wikiname"] = "";
$defaults["usr_title"] = ""; $defaults["usr_title"] = "";
$defaults["usr_affil"] = ""; $defaults["usr_affil"] = "";
$defaults["usr_affil_abbrev"] = ""; $defaults["usr_affil_abbrev"] = "";
$defaults["usr_URL"] = "$HTTPTAG"; $defaults["usr_URL"] = "$HTTPTAG";
$defaults["usr_email"] = ""; $defaults["usr_email"] = (isset($email) ? $email : "");
$defaults["usr_addr"] = ""; $defaults["usr_addr"] = "";
$defaults["usr_addr2"] = ""; $defaults["usr_addr2"] = "";
$defaults["usr_city"] = ""; $defaults["usr_city"] = "";
......
Supports Markdown
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