return (TRUE);
}
-function brisk_cds_execute($brisk, $real_idx, $sess, $ip, $authenticate)
+function brisk_cds_execute($brisk, $ghost, $real_idx, $sess, $ip, $authenticate, $header)
{
- if ($brisk->cds->execute("tor_chk", $brisk, $ghost, $sess, $ip, $authenticate != FALSE) == FALSE) {
+ if ($brisk->cds->execute("tor_chk", $brisk, $ghost, $sess, $ip, $authenticate != FALSE, $header) == FALSE) {
log_main("cds_execute failed");
}
- if ($brisk->cds->execute("proxy_chk", $brisk, $ghost, $sess, $ip, $authenticate != FALSE) == FALSE) {
+ if ($brisk->cds->execute("proxy_chk", $brisk, $ghost, $sess, $ip, $authenticate != FALSE, $header) == FALSE) {
log_main("cds_execute failed");
}
}
foreach($this->scan_headers as $key){
//proxy detected? lets log...
- if($headers[$key]) {
+ if(array_key_exists($key, $headers)) {
// we already are behind a PROXY, this are our headers
if ($key == 'X-Proxy-ID') {
if ($headers[$key] == '860705422')