function _drd_server_iv in Drupal Remote Dashboard Server 6.2
Same name and namespace in other branches
- 7.2 drd_server.module \_drd_server_iv()
Callback to get and decode the IV from the request header and store it for the response.
Return value
string
2 calls to _drd_server_iv()
- drd_server_output in ./
drd_server.module - Prepare the output to be sent back to the DRD dashboard. This preparation json encodes the output and then encrypts the resulting string if encryption is available.
- _drd_server_validate_request in ./
drd_server.module
File
- ./
drd_server.module, line 868
Code
function _drd_server_iv() {
static $iv;
if (!isset($iv)) {
if (empty($_SERVER['HTTP_X_DRD_IV'])) {
$iv = empty($_SERVER['HTTP_X_DRD_IV']);
}
else {
$iv = base64_decode($_SERVER['HTTP_X_DRD_IV']);
}
}
return $iv;
}