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-stable
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
emulab
emulab-stable
Commits
a563f099
Commit
a563f099
authored
Jun 25, 2008
by
Grant Ayers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correctly handle installations without WIKI support
parent
92606ad8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
2 deletions
+13
-2
www/editnodetype.php3
www/editnodetype.php3
+6
-0
www/joinproject.php3
www/joinproject.php3
+3
-1
www/newproject.php3
www/newproject.php3
+4
-1
No files found.
www/editnodetype.php3
View file @
a563f099
...
...
@@ -49,6 +49,12 @@ $rhl_std = OSinfo::LookupByName($emulab_ops, "RHL-STD");
$fbsd_std
=
OSinfo
::
LookupByName
(
$emulab_ops
,
"FBSD-STD"
);
$frisbee_mfs
=
OSinfo
::
LookupByName
(
$emulab_ops
,
"FRISBEE-MFS"
);
if
(
$freebsd_mfs
==
null
||
$fbsd410_rhl90_std
==
null
||
$rhl_std
==
null
||
$fbsd_std
==
null
||
$frisbee_mfs
==
null
)
{
PAGEERROR
(
"You must add images from Utah into your database"
.
" before adding a nodetype. See installation documentation for details!"
,
1
);
}
# This belongs elsewhere!
$initial_attributes
=
array
(
array
(
"attrkey"
=>
"adminmfs_osid"
,
"attrvalue"
=>
$freebsd_mfs
->
osid
(),
...
...
www/joinproject.php3
View file @
a563f099
...
...
@@ -759,7 +759,9 @@ if (! $returning) {
$args
[
"affiliation"
]
=
$formfields
[
"usr_affil"
];
$args
[
"affiliation_abbreviation"
]
=
$formfields
[
"usr_affil_abbrev"
];
$args
[
"password"
]
=
$formfields
[
"password1"
];
$args
[
"wikiname"
]
=
(
$WIKISUPPORT
?
$formfields
[
"wikiname"
]
:
""
);
if
(
$WIKISUPPORT
)
{
$args
[
"wikiname"
]
=
$formfields
[
"wikiname"
];
}
if
(
isset
(
$formfields
[
"usr_URL"
])
&&
$formfields
[
"usr_URL"
]
!=
$HTTPTAG
&&
$formfields
[
"usr_URL"
]
!=
""
)
{
...
...
www/newproject.php3
View file @
a563f099
...
...
@@ -925,7 +925,10 @@ if (!$returning) {
$args
[
"affiliation"
]
=
$formfields
[
"usr_affil"
];
$args
[
"affiliation_abbreviation"
]
=
$formfields
[
"usr_affil_abbrev"
];
$args
[
"password"
]
=
$formfields
[
"password1"
];
$args
[
"wikiname"
]
=
(
$WIKISUPPORT
?
$formfields
[
"wikiname"
]
:
""
);
if
(
$WIKISUPPORT
)
{
$args
[
"wikiname"
]
=
$formfields
[
"wikiname"
];
}
if
(
isset
(
$formfields
[
"usr_URL"
])
&&
$formfields
[
"usr_URL"
]
!=
$HTTPTAG
&&
$formfields
[
"usr_URL"
]
!=
""
)
{
...
...
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