Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
696e243b
Commit
696e243b
authored
Jun 07, 2004
by
Leigh B. Stoller
Browse files
Add minor utility function.
parent
98430857
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/dbcheck.php3
View file @
696e243b
...
...
@@ -162,6 +162,12 @@ function TBcheck_dbslot($token, $table, $column, $flag = 0)
return
0
;
}
# Handy default wrapper.
function
TBvalid_slot
(
$token
,
$table
,
$slot
)
{
return
TBcheck_dbslot
(
$token
,
$table
,
$slot
,
TBDB_CHECKDBSLOT_WARN
|
TBDB_CHECKDBSLOT_ERROR
);
}
# Handy wrappers for checking various fields.
function
TBvalid_uid
(
$token
)
{
return
TBcheck_dbslot
(
$token
,
"users"
,
"uid"
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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