Skip to content
GitLab
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
4c5ef92a
Commit
4c5ef92a
authored
Mar 27, 2014
by
Leigh B Stoller
Browse files
Minor fixes.
parent
16905e40
Changes
3
Hide whitespace changes
Inline
Side-by-side
www/aptui/instantiate.php
View file @
4c5ef92a
...
...
@@ -94,7 +94,7 @@ $am_array = array('Utah DDC' =>
if
(
isset
(
$profile
))
{
#
# Guest users must use the uuid, but logged in users may use the
# internal index.
# internal index.
#
if
(
!
(
$this_user
||
IsValidUUID
(
$profile
)))
{
SPITUSERERROR
(
"Illegal profile for guest user:
$profile
"
);
...
...
www/aptui/manage_profile.php
View file @
4c5ef92a
...
...
@@ -55,6 +55,7 @@ function SPITFORM($formfields, $errors)
$button_label
=
"Modify"
;
$title
=
"Modify Profile"
;
$editing
=
1
;
$uuid
=
$formfields
[
"profile_uuid"
];
}
else
{
$button_label
=
"Create"
;
...
...
@@ -360,7 +361,7 @@ function SPITFORM($formfields, $errors)
if
(
$editing
)
{
echo
" <a class='btn btn-primary btn-sm pull-right'
style='margin-right: 10px;'
href='instantiate.php?profile=
$id
x
'
href='instantiate.php?profile=
$
uu
id
'
type='submit' name='create'>Instantiate</a>
\n
"
;
echo
" <a class='btn btn-danger btn-sm pull-left'
style='margin-right: 10px;'
...
...
@@ -499,6 +500,7 @@ if (! isset($create)) {
return
;
}
else
{
$defaults
[
"profile_uuid"
]
=
$profile
->
uuid
();
$defaults
[
"profile_pid"
]
=
$profile
->
pid
();
$defaults
[
"profile_description"
]
=
$profile
->
description
();
$defaults
[
"profile_name"
]
=
$profile
->
name
();
...
...
www/aptui/myprofiles.php
View file @
4c5ef92a
...
...
@@ -74,8 +74,7 @@ if (isset($ajax_request)) {
$profile_idx
=
addslashes
(
$ajax_argument
);
$query_result
=
DBQueryWarn
(
"select * from apt_profiles "
.
"where idx='
$profile_idx
' and "
.
" creator_idx='
$target_idx
'"
);
"where idx='
$profile_idx
'"
);
if
(
!
$query_result
||
!
mysql_num_rows
(
$query_result
))
{
SPITAJAX_ERROR
(
1
,
"No such profile
$profile_idx
!"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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