Ignore:
Timestamp:
2013/06/13 19:35:56 (13 years ago)
Author:
michael_nelson
Message:

#2263 - Merged 2.12.4en into 2.12multi_lang

Location:
branches/version-2_12-multilang
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-multilang

  • branches/version-2_12-multilang/data

  • branches/version-2_12-multilang/data/class/helper/SC_Helper_Session.php

    r21867 r22859  
    216216     */ 
    217217    function adminAuthorization() { 
    218         $masterData = new SC_DB_MasterData_Ex(); 
    219         $arrExcludes = $masterData->getMasterData('mtb_auth_excludes'); 
    220         if (preg_match('|^' . ROOT_URLPATH . ADMIN_DIR . '|', $_SERVER['SCRIPT_NAME'])) { 
    221             $is_auth = true; 
    222  
    223             foreach ($arrExcludes as $exclude) { 
    224                 if (preg_match('|^' . ROOT_URLPATH . ADMIN_DIR . $exclude . '|', $_SERVER['SCRIPT_NAME'])) { 
    225                     $is_auth = false; 
    226                     break; 
     218        if (($script_path = realpath($_SERVER['SCRIPT_FILENAME'])) !== FALSE) { 
     219            $arrScriptPath = explode('/', str_replace('\\', '/', $script_path)); 
     220            $arrAdminPath = explode('/', str_replace('\\', '/', substr(HTML_REALDIR . ADMIN_DIR, 0, -1))); 
     221            $arrDiff = array_diff_assoc($arrAdminPath, $arrScriptPath); 
     222            if (in_array(substr(ADMIN_DIR, 0, -1), $arrDiff)) { 
     223                return; 
     224            } else { 
     225                $masterData = new SC_DB_MasterData_Ex(); 
     226                $arrExcludes = $masterData->getMasterData('mtb_auth_excludes'); 
     227                foreach ($arrExcludes as $exclude) { 
     228                    $arrExcludesPath = explode('/', str_replace('\\', '/', HTML_REALDIR . ADMIN_DIR . $exclude)); 
     229                    $arrDiff = array_diff_assoc($arrExcludesPath, $arrScriptPath); 
     230                    if (count($arrDiff) === 0) { 
     231                        return; 
     232                    } 
    227233                } 
    228234            } 
    229             if ($is_auth) { 
    230                 SC_Utils_Ex::sfIsSuccess(new SC_Session_Ex()); 
    231             } 
    232         } 
     235        } 
     236        SC_Utils_Ex::sfIsSuccess(new SC_Session_Ex()); 
    233237    } 
    234238} 
  • branches/version-2_12-multilang/data/class/pages/cart/LC_Page_Cart.php

    r22504 r22859  
    8383        $objCustomer = new SC_Customer_Ex(); 
    8484 
    85         $objFormParam = $this->lfInitParam($_REQUEST); 
     85        $objFormParam = $this->lfInitParam($_POST); 
    8686        $this->mode = $this->getMode(); 
    8787 
    88         $this->cartKeys = $objCartSess->getKeys(); 
     88        // モバイル対応 
     89        if (SC_Display_Ex::detectDevice() == DEVICE_TYPE_MOBILE) { 
     90            if (isset($_GET['cart_no'])) { 
     91                $objFormParam->setValue('cart_no', $_GET['cart_no']); 
     92            } 
     93            if (isset($_GET['cartKey'])) { 
     94                    $objFormParam->setValue('cartKey', $_GET['cartKey']); 
     95            } 
     96        } 
     97         
     98        $this->cartKeys = $objCartSess->getKeys(); 
    8999        foreach ($this->cartKeys as $key) { 
    90100            // 商品購入中にカート内容が変更された。 
     
    96106        $cart_no = $objFormParam->getValue('cart_no'); 
    97107        $cartKey = $objFormParam->getValue('cartKey'); 
     108         
     109        // エラーチェック 
     110        $arrError = $objFormParam->checkError(); 
     111        if(isset($arrError) && !empty($arrError)) { 
     112            SC_Utils_Ex::sfDispSiteError(CART_NOT_FOUND); 
     113            SC_Response_Ex::actionExit(); 
     114        } 
    98115 
    99116        switch ($this->mode) { 
     
    207224        $objFormParam->addParam(t('c_Category ID_01'), 'category_id', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK')); 
    208225        // スマートフォン版での数量変更用 
    209         $objFormParam->addParam(t('c_Quantity_01'), 'quantity', INT_LEN, 'n', array('EXIST_CHECK', 'ZERO_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK')); 
     226        $objFormParam->addParam(t('c_Quantity_01'), 'quantity', INT_LEN, 'n', array('ZERO_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK')); 
    210227        // 値の取得 
    211228        $objFormParam->setParam($arrRequest); 
  • branches/version-2_12-multilang/data/class/pages/forgot/LC_Page_Forgot.php

    r22509 r22859  
    150150        $errmsg = NULL; 
    151151        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    152         $where = '(email Like ? OR email_mobile Like ?) AND name01 Like ? AND name02 Like ? AND del_flg = 0'; 
     152        $where = '(email = ? OR email_mobile = ?) AND name01 = ? AND name02 = ? AND del_flg = 0'; 
    153153        $arrVal = array($arrForm['email'], $arrForm['email'], $arrForm['name01'], $arrForm['name02']); 
    154154        $result = $objQuery->select('reminder, status', 'dtb_customer', $where, $arrVal); 
     
    198198        $cols = 'customer_id, reminder, reminder_answer, salt'; 
    199199        $table = 'dtb_customer'; 
    200         $where = '(email Like ? OR email_mobile Like ?)' 
    201                     . ' AND name01 Like ? AND name02 Like ?' 
     200        $where = '(email = ? OR email_mobile = ?)' 
     201                    . ' AND name01 = ? AND name02 = ?' 
    202202                    . ' AND status = 2 AND del_flg = 0'; 
    203203        $arrVal = array($arrForm['email'], $arrForm['email'], 
Note: See TracChangeset for help on using the changeset viewer.