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();
     }
 }