Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
70d88fbd
Commit
70d88fbd
authored
Apr 15, 2003
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change default path group images to be /groups/$pid/$gid/images/, as
per Eric's request. I had left out the trailing /images/.
parent
fa287abd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
www/newimageid.php3
www/newimageid.php3
+3
-3
www/newimageid_ez.php3
www/newimageid_ez.php3
+3
-3
No files found.
www/newimageid.php3
View file @
70d88fbd
...
@@ -157,7 +157,7 @@ function SPITFORM($formfields, $errors)
...
@@ -157,7 +157,7 @@ function SPITFORM($formfields, $errors)
}
}
else {
else {
theform['formfields[path]'].value =
theform['formfields[path]'].value =
'/groups/' + pid + '/' + gid + '/';
'/groups/' + pid + '/' + gid + '/
images/
';
}
}
}
}
else if (theform['formfields[imagename]'].value != '') {
else if (theform['formfields[imagename]'].value != '') {
...
@@ -174,7 +174,7 @@ function SPITFORM($formfields, $errors)
...
@@ -174,7 +174,7 @@ function SPITFORM($formfields, $errors)
}
}
else {
else {
theform['formfields[path]'].value =
theform['formfields[path]'].value =
'/groups/' + pid + '/' + gid + '/' +
'/groups/' + pid + '/' + gid + '/
images/
' +
filename;
filename;
}
}
}
}
...
@@ -501,7 +501,7 @@ if (! $submit) {
...
@@ -501,7 +501,7 @@ if (! $submit) {
if
(
!
strcmp
(
$project
,
$group
))
if
(
!
strcmp
(
$project
,
$group
))
$defaults
[
path
]
=
"/proj/
$project
/images/"
;
$defaults
[
path
]
=
"/proj/
$project
/images/"
;
else
else
$defaults
[
path
]
=
"/groups/
$project
/
$group
/"
;
$defaults
[
path
]
=
"/groups/
$project
/
$group
/
images/
"
;
}
}
reset
(
$projlist
);
reset
(
$projlist
);
}
}
...
...
www/newimageid_ez.php3
View file @
70d88fbd
...
@@ -140,7 +140,7 @@ function SPITFORM($formfields, $errors)
...
@@ -140,7 +140,7 @@ function SPITFORM($formfields, $errors)
}
}
else {
else {
theform['formfields[path]'].value =
theform['formfields[path]'].value =
'/groups/' + pid + '/' + gid + '/';
'/groups/' + pid + '/' + gid + '/
images/
';
}
}
}
}
else if (theform['formfields[imagename]'].value != '') {
else if (theform['formfields[imagename]'].value != '') {
...
@@ -157,7 +157,7 @@ function SPITFORM($formfields, $errors)
...
@@ -157,7 +157,7 @@ function SPITFORM($formfields, $errors)
}
}
else {
else {
theform['formfields[path]'].value =
theform['formfields[path]'].value =
'/groups/' + pid + '/' + gid + '/' +
'/groups/' + pid + '/' + gid + '/
images/
' +
filename;
filename;
}
}
}
}
...
@@ -594,7 +594,7 @@ if (! $submit) {
...
@@ -594,7 +594,7 @@ if (! $submit) {
if
(
!
strcmp
(
$project
,
$group
))
if
(
!
strcmp
(
$project
,
$group
))
$defaults
[
path
]
=
"/proj/
$project
/images/"
;
$defaults
[
path
]
=
"/proj/
$project
/images/"
;
else
else
$defaults
[
path
]
=
"/groups/
$project
/
$group
/"
;
$defaults
[
path
]
=
"/groups/
$project
/
$group
/
images/
"
;
}
}
reset
(
$projlist
);
reset
(
$projlist
);
}
}
...
...
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