function cdn_basic_farfuture_reverseproxy_test in CDN 6.2
Same name and namespace in other branches
- 7.2 cdn.basic.farfuture.inc \cdn_basic_farfuture_reverseproxy_test()
1 string reference to 'cdn_basic_farfuture_reverseproxy_test'
- cdn_menu in ./
cdn.module - Implementation of hook_menu().
File
- ./
cdn.basic.farfuture.inc, line 160 - Far Future expiration setting for basic mode.
Code
function cdn_basic_farfuture_reverseproxy_test($token) {
$reference_token = variable_get('cdn_reverse_proxy_test');
if ($reference_token === FALSE || $token != $reference_token) {
header('HTTP/1.1 403 Forbidden');
exit;
}
print REQUEST_TIME . '-' . md5(rand());
exit;
}