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
4b9a1d9d
Commit
4b9a1d9d
authored
Nov 01, 2000
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More little changes for the eid/pid/filename problem.
parent
b66aba51
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
12 deletions
+14
-12
www/beginexp_process.php3
www/beginexp_process.php3
+3
-3
www/endexp.php3
www/endexp.php3
+10
-8
www/endexp_form.php3
www/endexp_form.php3
+1
-1
No files found.
www/beginexp_process.php3
View file @
4b9a1d9d
...
...
@@ -146,11 +146,11 @@ if (strcmp($trust, "group_root") && strcmp($trust, "local_root")) {
#
# No need to tell me how bogus this is.
#
$dirname
=
"
$TBWWW_DIR
"
.
"
$TBNSSUBDIR
"
.
"/"
.
"
$exp_id
"
;
$dirname
=
"
$TBWWW_DIR
"
.
"
$TBNSSUBDIR
"
.
"/"
.
"
$exp_
e
id
"
;
$nsname
=
"
$dirname
"
.
"/"
.
"
$exp_id
"
.
".ns"
;
$irname
=
"
$dirname
"
.
"/"
.
"
$exp_
pid
"
.
"
$exp_
id
"
.
".ir"
;
$irname
=
"
$dirname
"
.
"/"
.
"
$exp_
e
id
"
.
".ir"
;
$repname
=
"
$dirname
"
.
"/"
.
"
$exp_id
"
.
".report"
;
$logname
=
"
$dirname
"
.
"/"
.
"
$exp_
pid
"
.
"
$exp_
id
"
.
".log"
;
$logname
=
"
$dirname
"
.
"/"
.
"
$exp_
e
id
"
.
".log"
;
$assname
=
"
$dirname
"
.
"/"
.
"assign"
.
".log"
;
if
(
!
mkdir
(
$dirname
,
0777
))
{
...
...
www/endexp.php3
View file @
4b9a1d9d
...
...
@@ -25,8 +25,8 @@ if (!isset($uid)) {
#
# Must provide the EID!
#
if
(
!
isset
(
$exp_id
)
||
strcmp
(
$exp_id
,
""
)
==
0
)
{
if
(
!
isset
(
$exp_
e
id
)
||
strcmp
(
$exp_
e
id
,
""
)
==
0
)
{
USERERROR
(
"The experiment ID was not provided!"
,
1
);
}
...
...
@@ -50,16 +50,17 @@ if (($row = mysql_fetch_row($query_result)) == 0) {
# Then check to see if the user (UID) is a member of that PID.
#
$query_result
=
mysql_db_query
(
$TBDBNAME
,
"SELECT * FROM experiments WHERE eid=
\"
$exp_id
\"
"
);
"SELECT * FROM experiments WHERE eid=
\"
$exp_
e
id
\"
"
);
if
((
$exprow
=
mysql_fetch_array
(
$query_result
))
==
0
)
{
USERERROR
(
"The experiment
$exp_id
is not a valid experiment."
,
1
);
USERERROR
(
"The experiment
$exp_
e
id
is not a valid experiment."
,
1
);
}
$pid
=
$exprow
[
pid
];
$query_result
=
mysql_db_query
(
$TBDBNAME
,
"SELECT pid FROM proj_memb WHERE uid=
\"
$uid
\"
and pid=
\"
$pid
\"
"
);
if
(
mysql_num_rows
(
$query_result
)
==
0
)
{
USERERROR
(
"You are not a member of the Project for Experiment:
$exp_id
."
,
1
);
USERERROR
(
"You are not a member of the Project for Experiment:
$exp_eid
."
,
1
);
}
#
...
...
@@ -71,11 +72,12 @@ if (mysql_num_rows($query_result) == 0) {
#
# No need to tell me how bogus this is.
#
$dirname
=
"
$TBWWW_DIR
"
.
"
$TBNSSUBDIR
"
.
"/"
.
"
$exp_id
"
;
$exp_id
=
substr
(
$exp_eid
,
strlen
(
$pid
));
$dirname
=
"
$TBWWW_DIR
"
.
"
$TBNSSUBDIR
"
.
"/"
.
"
$exp_eid
"
;
$nsname
=
"
$dirname
"
.
"/"
.
"
$exp_id
"
.
".ns"
;
$irname
=
"
$dirname
"
.
"/"
.
"
$exp_
id
"
.
".ir"
;
$irname
=
"
$dirname
"
.
"/"
.
"
$exp_
eid
"
.
".ir"
;
$repname
=
"
$dirname
"
.
"/"
.
"
$exp_id
"
.
".report"
;
$logname
=
"
$dirname
"
.
"/"
.
"
$exp_
id
"
.
".log"
;
$logname
=
"
$dirname
"
.
"/"
.
"
$exp_
eid
"
.
".log"
;
$assname
=
"
$dirname
"
.
"/"
.
"assign"
.
".log"
;
#
...
...
www/endexp_form.php3
View file @
4b9a1d9d
...
...
@@ -67,7 +67,7 @@ echo "<form action=\"endexp.php3?$uid\" method=\"post\">";
# experiments as an option list.
#
echo
"<tr>"
;
echo
" <td><select name=
\"
exp_id
\"
>"
;
echo
" <td><select name=
\"
exp_
e
id
\"
>"
;
while
(
$grprow
=
mysql_fetch_array
(
$groupmemb_result
))
{
$pid
=
$grprow
[
gid
];
$exp_result
=
mysql_db_query
(
$TBDBNAME
,
...
...
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