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
a3d8f12a
Commit
a3d8f12a
authored
Nov 13, 2000
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure project name is valid much earlier.
parent
f988a58e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
www/usradded.php3
www/usradded.php3
+15
-0
No files found.
www/usradded.php3
View file @
a3d8f12a
...
...
@@ -109,6 +109,21 @@ else {
}
}
#
# Lets verify the project name and quit early if the project is bogus.
# We could let things continue, resulting in a valid account but no
# project membership, but I don't like that.
#
$query_result
=
mysql_db_query
(
$TBDBNAME
,
"SELECT * FROM projects WHERE pid=
\"
$pid
\"
"
);
if
(
!
$query_result
)
{
$err
=
mysql_error
();
TBERROR
(
"Database Error retrieving info for
$pid
:
$err
\n
"
,
1
);
}
if
(
mysql_num_rows
(
$query_result
)
==
0
)
{
USERERROR
(
"No such project
$pid
. Please go back and try again."
,
1
);
}
#
# For a new user:
# * Create a new account in the database.
...
...
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