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
66a5d9c5
Commit
66a5d9c5
authored
Nov 01, 2000
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor changes for EID length and project prefix.
parent
9d815da4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
7 deletions
+14
-7
www/beginexp_form.php3
www/beginexp_form.php3
+2
-1
www/beginexp_process.php3
www/beginexp_process.php3
+9
-2
www/endexp.php3
www/endexp.php3
+3
-4
No files found.
www/beginexp_form.php3
View file @
66a5d9c5
...
...
@@ -104,7 +104,8 @@ echo " </td>
#
echo
"<tr>
<td>*Name<br>(will be prefixed by project name):</td>
<td><input type=
\"
text
\"
name=
\"
exp_id
\"
>
<td><input type=
\"
text
\"
name=
\"
exp_id
\"
size=
\"
22
\"
MAXLENGTH=
\"
22
\"
>
</td>
</tr>
\n
"
;
...
...
www/beginexp_process.php3
View file @
66a5d9c5
...
...
@@ -90,9 +90,16 @@ if ($row = mysql_fetch_row($pswd_result)) {
}
#
# Current policy is to prefix the EID with the PID.
# Current policy is to prefix the EID with the PID. Make sure it is not
# too long for the database.
#
$exp_eid
=
$exp_pid
.
"-"
.
$exp_id
;
# XXX Note CONSTANT in expression!
#
$exp_eid
=
$exp_pid
.
$exp_id
;
if
(
strlen
(
$exp_id
)
>
22
)
{
USERERROR
(
"The experiment name
\"
$exp_id
\"
is too long! "
.
"Please select another."
,
1
);
}
#
# Make sure the experiment ID does not already exist.
...
...
www/endexp.php3
View file @
66a5d9c5
...
...
@@ -71,12 +71,11 @@ if (mysql_num_rows($query_result) == 0) {
#
# No need to tell me how bogus this is.
#
$exp_pid
=
$pid
;
$dirname
=
"
$TBWWW_DIR
"
.
"
$TBNSSUBDIR
"
.
"/"
.
"
$exp_id
"
;
$nsname
=
"
$dirname
"
.
"/"
.
"
$exp_id
"
.
".ns"
;
$irname
=
"
$dirname
"
.
"/"
.
"
$exp_
pid
"
.
"
$exp_id
"
.
".ir"
;
$irname
=
"
$dirname
"
.
"/"
.
"
$exp_
id
"
.
".ir"
;
$repname
=
"
$dirname
"
.
"/"
.
"
$exp_id
"
.
".report"
;
$logname
=
"
$dirname
"
.
"/"
.
"
$exp_
pid
"
.
"
$exp_id
"
.
".log"
;
$logname
=
"
$dirname
"
.
"/"
.
"
$exp_
id
"
.
".log"
;
$assname
=
"
$dirname
"
.
"/"
.
"assign"
.
".log"
;
#
...
...
@@ -97,7 +96,7 @@ echo "</center>";
#
$output
=
array
();
$retval
=
0
;
$result
=
exec
(
"
$TBBIN_DIR
/tbstopit
$dirname
$exp_
pid$exp_
id
.ir"
,
$result
=
exec
(
"
$TBBIN_DIR
/tbstopit
$dirname
$exp_id
.ir"
,
$output
,
$retval
);
if
(
$retval
)
{
echo
"<br><br><h2>
...
...
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