mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-02-20 21:54:20 +01:00
Don't use die.
This commit is contained in:
parent
c8a4c7d53f
commit
4050b68af8
@ -8,10 +8,15 @@ debug("Request: " . $_SERVER['QUERY_STRING']);
|
||||
|
||||
$conn = mysql_connect($baseParams['__DB_HOST__'],
|
||||
$baseParams['__DB_USER__'],
|
||||
$baseParams['__DB_PW__'])
|
||||
or die('Could not connect to database: ' . mysql_error());
|
||||
mysql_select_db($baseParams['__DB_NAME__'], $conn)
|
||||
or die('Could not select database');
|
||||
$baseParams['__DB_PW__']);
|
||||
if (!$conn) {
|
||||
sendResp(S_BACKEND_ERROR);
|
||||
exit;
|
||||
}
|
||||
if (!mysql_select_db($baseParams['__DB_NAME__'], $conn)) {
|
||||
sendResp(S_BACKEND_ERROR);
|
||||
exit;
|
||||
}
|
||||
|
||||
//// Extract values from HTTP request
|
||||
//
|
||||
|
Loading…
x
Reference in New Issue
Block a user