Changeset 16381


Ignore:
Timestamp:
2007/10/11 17:34:36 (17 years ago)
Author:
nanasess
Message:

リファクタリング

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/class/pages/shopping/LC_Page_Shopping_Deliv.php

    r16379 r16381  
    116116        // 削除 
    117117        case 'delete': 
    118             if (sfIsInt($_POST['other_deliv_id'])) { 
     118            if (SC_Utils_Ex::sfIsInt($_POST['other_deliv_id'])) { 
    119119                $objQuery = new SC_Query(); 
    120120                $where = "other_deliv_id = ?"; 
     
    231231 
    232232        // ログインチェック 
    233         if($_POST['mode'] != 'login' && !$objCustomer->isLoginSuccess()) { 
     233        if($_POST['mode'] != 'login' && !$objCustomer->isLoginSuccess(true)) { 
    234234            // 不正アクセスとみなす 
    235235            SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR, "", false, "", true); 
     
    265265            } else { 
    266266                // ログインページに戻る 
    267                 $this->sendRedirect($this->getLocation(SC_Helper_Mobile_Ex::gfAddSessionId(MOBILE_URL_SHOP_TOP))); 
     267                $this->sendRedirect($this->getLocation(MOBILE_URL_SHOP_TOP), true); 
    268268                exit; 
    269269            } 
     
    272272            $objCustomer->updateMobilePhoneId(); 
    273273 
    274             // 携帯のメールアドレスをコピーする。 
    275             $objCustomer->updateEmailMobile(); 
    276  
    277             // 携帯のメールアドレスが登録されていない場合 
    278             if (!$objCustomer->hasValue('email_mobile')) { 
    279                  $this->sendRedirect($this->getLocation(SC_Helper_Mobile_Ex::gfAddSessionId("../entry/email_mobile.php"))); 
    280                 exit; 
     274            /* 
     275             * email がモバイルドメインでは無く, 
     276             * 携帯メールアドレスが登録されていない場合 
     277             */ 
     278            $objMobile = new SC_Helper_Mobile_Ex(); 
     279            if (!$objMobile->gfIsMobileMailAddress($objCustomer->getValue('email'))) { 
     280                if (!$objCustomer->hasValue('email_mobile')) { 
     281                    $this->sendRedirect($this->getLocation("../entry/email_mobile.php"), true); 
     282                } 
    281283            } 
    282284            break; 
     
    299301                $objSiteSess->setRegistFlag(); 
    300302                // お支払い方法選択ページへ移動 
    301                 $this->sendRedirect($this->getLocation(SC_Helper_Mobile_Ex::gfAddSessionId(MOBILE_URL_SHOP_PAYMENT))); 
     303                $this->sendRedirect($this->getLocation(MOBILE_URL_SHOP_PAYMENT), true); 
    302304                exit; 
    303305            }else{ 
     
    317319                    $objSiteSess->setRegistFlag(); 
    318320                    // お支払い方法選択ページへ移動 
    319                     $this->sendRedirect($this->getLocation(SC_Helper_Mobile_Ex::gfAddSessionId(MOBILE_URL_SHOP_PAYMENT))); 
     321                    $this->sendRedirect($this->getLocation(MOBILE_URL_SHOP_PAYMENT), true); 
    320322                    exit; 
    321323                } 
     
    348350        case 'return': 
    349351            // 確認ページへ移動 
    350             $this->sendRedirect($this->getLocation(SC_Helper_Mobile_Ex::gfAddSessionId(MOBILE_URL_CART_TOP))); 
     352            $this->sendRedirect($this->getLocation(MOBILE_URL_CART_TOP), true); 
    351353            exit; 
    352354            break; 
Note: See TracChangeset for help on using the changeset viewer.