Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
80372e04
Commit
80372e04
authored
Jan 15, 2009
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix plab checkbox handling.
parent
4dab09e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
14 deletions
+16
-14
www/moduserinfo.php3
www/moduserinfo.php3
+16
-14
No files found.
www/moduserinfo.php3
View file @
80372e04
<?php
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-200
8
University of Utah and the Flux Group.
# Copyright (c) 2000-200
9
University of Utah and the Flux Group.
# All rights reserved.
#
include
(
"defs.php3"
);
...
...
@@ -306,20 +306,13 @@ function SPITFORM($formfields, $errors)
# Planetlab bit. This should really be a drop down menu of the
# choices.
#
if
(
isset
(
$formfields
[
"user_interface"
])
&&
$formfields
[
"user_interface"
]
==
TBDB_USER_INTERFACE_PLAB
)
{
$checked
=
"checked"
;
}
else
{
$checked
=
""
;
}
$checked
=
$formfields
[
"user_interface"
];
echo
"<tr>
<td colspan=2>Use simplified PlanetLab view:</td>
<td class=left>
<input type='checkbox'
name=
\"
formfields[user_interface]
\"
value=
\"
"
.
TBDB_USER_INTERFACE_PLAB
.
"
\"
$checked
>
value=checked
$checked
>
</td>
</tr>
\n
"
;
}
...
...
@@ -431,7 +424,9 @@ if (!isset($submit)) {
$defaults
[
"notes"
]
=
$target_user
->
notes
();
$defaults
[
"password1"
]
=
""
;
$defaults
[
"password2"
]
=
""
;
$defaults
[
"user_interface"
]
=
$target_user
->
user_interface
();
$defaults
[
"user_interface"
]
=
(
$target_user
->
user_interface
()
==
TBDB_USER_INTERFACE_PLAB
?
"checked"
:
""
);
$wikionly
=
$target_user
->
wikionly
();
...
...
@@ -548,10 +543,17 @@ if (isset($formfields["usr_phone"]) && $formfields["usr_phone"] != "" &&
$formfields
[
"usr_phone"
]
!=
$target_user
->
phone
())
{
$args
[
"usr_phone"
]
=
$formfields
[
"usr_phone"
];
}
if
(
isset
(
$formfields
[
"user_interface"
])
&&
$formfields
[
"user_interface"
]
!=
""
&&
$formfields
[
"user_interface"
]
!=
$target_user
->
user_interface
())
{
$args
[
"user_interface"
]
=
$formfields
[
"user_interface"
];
if
(
isset
(
$formfields
[
"user_interface"
])
&&
$formfields
[
"user_interface"
]
==
"checked"
)
{
$desired_interface
=
TBDB_USER_INTERFACE_PLAB
;
}
else
{
$desired_interface
=
TBDB_USER_INTERFACE_EMULAB
;
}
if
(
$desired_interface
!=
$target_user
->
user_interface
())
{
$args
[
"user_interface"
]
=
$desired_interface
;
}
if
(
isset
(
$formfields
[
"notes"
])
&&
$formfields
[
"notes"
]
!=
$target_user
->
notes
())
{
$args
[
"notes"
]
=
$formfields
[
"notes"
];
...
...
Write
Preview
Markdown
is supported
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