Changeset 22859 for branches/version-2_12-multilang/data/class
- Timestamp:
- 2013/06/13 19:35:56 (13 years ago)
- Location:
- branches/version-2_12-multilang
- Files:
-
- 5 edited
-
. (modified) (1 prop)
-
data (modified) (1 prop)
-
data/class/helper/SC_Helper_Session.php (modified) (1 diff)
-
data/class/pages/cart/LC_Page_Cart.php (modified) (3 diffs)
-
data/class/pages/forgot/LC_Page_Forgot.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-multilang
- Property svn:mergeinfo changed
/branches/version-2_12-dev merged: 22580,22604,22797-22798,22802,22826 /branches/version-2_12_4en (added) merged: 22800-22801,22812-22816,22828-22829
- Property svn:mergeinfo changed
-
branches/version-2_12-multilang/data
- Property svn:mergeinfo changed
/branches/version-2_12-dev/data merged: 22580,22604,22797-22798,22826 /branches/version-2_12_4en/data (added) merged: 22800-22801,22812-22816,22828-22829
- Property svn:mergeinfo changed
-
branches/version-2_12-multilang/data/class/helper/SC_Helper_Session.php
r21867 r22859 216 216 */ 217 217 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 } 227 233 } 228 234 } 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()); 233 237 } 234 238 } -
branches/version-2_12-multilang/data/class/pages/cart/LC_Page_Cart.php
r22504 r22859 83 83 $objCustomer = new SC_Customer_Ex(); 84 84 85 $objFormParam = $this->lfInitParam($_ REQUEST);85 $objFormParam = $this->lfInitParam($_POST); 86 86 $this->mode = $this->getMode(); 87 87 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(); 89 99 foreach ($this->cartKeys as $key) { 90 100 // 商品購入中にカート内容が変更された。 … … 96 106 $cart_no = $objFormParam->getValue('cart_no'); 97 107 $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 } 98 115 99 116 switch ($this->mode) { … … 207 224 $objFormParam->addParam(t('c_Category ID_01'), 'category_id', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK')); 208 225 // スマートフォン版での数量変更用 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')); 210 227 // 値の取得 211 228 $objFormParam->setParam($arrRequest); -
branches/version-2_12-multilang/data/class/pages/forgot/LC_Page_Forgot.php
r22509 r22859 150 150 $errmsg = NULL; 151 151 $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'; 153 153 $arrVal = array($arrForm['email'], $arrForm['email'], $arrForm['name01'], $arrForm['name02']); 154 154 $result = $objQuery->select('reminder, status', 'dtb_customer', $where, $arrVal); … … 198 198 $cols = 'customer_id, reminder, reminder_answer, salt'; 199 199 $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 = ?' 202 202 . ' AND status = 2 AND del_flg = 0'; 203 203 $arrVal = array($arrForm['email'], $arrForm['email'],
Note: See TracChangeset
for help on using the changeset viewer.
