getDomain() публичный статический Метод

public static getDomain ( $url )
Пример #1
0
 public static function getMainFullDomain()
 {
     return BcUtil::getDomain(Configure::read('BcEnv.siteUrl'));
 }
Пример #2
0
 /**
  * リファラチェックを行う
  *
  * @return bool
  */
 protected function _checkReferer()
 {
     $siteDomain = BcUtil::getFullDomain();
     if (empty($_SERVER['HTTP_REFERER'])) {
         return;
     }
     $refererDomain = BcUtil::getDomain($_SERVER['HTTP_REFERER']);
     if (!preg_match('/^' . preg_quote($siteDomain, '/') . '/', $refererDomain)) {
         throw new NotFoundException();
     }
 }