function _drd_server_iv in Drupal Remote Dashboard Server 7.2
Same name and namespace in other branches
- 6.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 - Callback to validate a request that's coming from DRD.
File
- ./
drd_server.module, line 1095 - Provides XMLRPC implementation to respond to requests from DRD.
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;
}