mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-16 11:58:41 +00:00
get referer
This commit is contained in:
parent
fe2c5676e1
commit
4b33cb660f
|
|
@ -623,6 +623,18 @@ final class HttpRequest extends RequestAbstract
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get referer.
|
||||
*
|
||||
* @return int
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getReferer() : string
|
||||
{
|
||||
return $_SERVER['HTTP_REFERER'] ?? '';
|
||||
}
|
||||
|
||||
/**
|
||||
* Get request method.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user