function purl_domain::detect in Persistent URL 7
Same name and namespace in other branches
- 6 includes/purl_domain.inc \purl_domain::detect()
Detect the the processor value for the current page request
Return value
value that can be pased to the parse step.
Overrides purl_processor::detect
File
- includes/
purl_domain.inc, line 23
Class
- purl_domain
- Full domain handling.
Code
function detect($q) {
return str_replace('http://', '', $_SERVER['HTTP_HOST']);
}