You are here

function _httpbl_url in http:BL 6

Same name and namespace in other branches
  1. 6.2 httpbl.module \_httpbl_url()
  2. 7 httpbl.module \_httpbl_url()

Lightweight url function, since url() isn't available yet.

1 call to _httpbl_url()
httpbl_boot in ./httpbl.module
Implementation of hook_boot().

File

./httpbl.module, line 700
Implementation of http:BL for Drupal. It provides IP-based blacklisting through http:BL and allows linking to a honeypot.

Code

function _httpbl_url($path = NULL) {
  global $base_url;
  $script = strpos($_SERVER['SERVER_SOFTWARE'], 'Apache') === FALSE ? 'index.php' : '';
  if (variable_get('clean_url', '0')) {
    return $base_url . $path;
  }
  else {
    return $base_url . $script . '?q=' . $path;
  }
}