You are here

function _duplicate_arg in Spam 5.3

The arg() function may not be availble early in the bootstrap process, so we reimplement it here.

1 call to _duplicate_arg()
duplicate_init in filters/duplicate/duplicate.module
If IP blacklisting and IP blocking are both enabled, perform a database query on each page load to see if the current visitor has been blacklisted.

File

filters/duplicate/duplicate.module, line 65

Code

function _duplicate_arg() {
  static $arguments, $q;
  if (empty($arguments) || $q != $_GET['q']) {
    $arguments = explode('/', $_GET['q']);
    $q = $_GET['q'];
  }
  if (isset($arguments[$index])) {
    return $arguments[$index];
  }
}