public static function Server::getHomeURL in Anti Spam by CleanTalk 9.1.x
Same name and namespace in other branches
- 8.4 src/lib/Cleantalk/Common/Variables/Server.php \Cleantalk\Common\Variables\Server::getHomeURL()
1 call to Server::getHomeURL()
- Server::getURL in src/
lib/ Cleantalk/ Common/ Variables/ Server.php
File
- src/
lib/ Cleantalk/ Common/ Variables/ Server.php, line 74
Class
- Server
- Class Server Wrapper to safely get $_SERVER variables
Namespace
Cleantalk\Common\VariablesCode
public static function getHomeURL($scheme = null) {
return (self::isSSL() ? 'https' : self::get('REQUEST_SCHEME')) . '://' . self::get('HTTP_HOST') . '/';
}