mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-02-21 15:54:15 +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__'],
|
$conn = mysql_connect($baseParams['__DB_HOST__'],
|
||||||
$baseParams['__DB_USER__'],
|
$baseParams['__DB_USER__'],
|
||||||
$baseParams['__DB_PW__'])
|
$baseParams['__DB_PW__']);
|
||||||
or die('Could not connect to database: ' . mysql_error());
|
if (!$conn) {
|
||||||
mysql_select_db($baseParams['__DB_NAME__'], $conn)
|
sendResp(S_BACKEND_ERROR);
|
||||||
or die('Could not select database');
|
exit;
|
||||||
|
}
|
||||||
|
if (!mysql_select_db($baseParams['__DB_NAME__'], $conn)) {
|
||||||
|
sendResp(S_BACKEND_ERROR);
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
//// Extract values from HTTP request
|
//// Extract values from HTTP request
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user