Esempio n. 1
0
 /**
  * 前頁のURLを取得
  *
  * @return void
  */
 public function lfGetCartPrevUrl(&$session, $referer)
 {
     if (!preg_match('/cart/', $referer)) {
         if (!empty($session['cart_referer_url'])) {
             $session['cart_prev_url'] = $session['cart_referer_url'];
             unset($session['cart_referer_url']);
         } else {
             if (preg_match('/entry/', $referer)) {
                 $session['cart_prev_url'] = HTTPS_URL . 'entry/kiyaku.php';
             } else {
                 $session['cart_prev_url'] = $referer;
             }
         }
     }
     // 妥当性チェック
     if (!Utils::sfIsInternalDomain($session['cart_prev_url'])) {
         $session['cart_prev_url'] = '';
     }
 }