Changeset 20495
- Timestamp:
- 2011/03/04 21:54:51 (13 years ago)
- Location:
- branches/version-2_5-dev/data
- Files:
-
- 1 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/SC_Customer.php
r20448 r20495 111 111 function checkMobilePhoneId() { 112 112 //docomo用にデータを取り出す。 113 if(SC_MobileUserAgent ::getCarrier() == 'docomo'){113 if(SC_MobileUserAgent_Ex::getCarrier() == 'docomo'){ 114 114 if($_SESSION['mobile']['phone_id'] == "" && strlen($_SESSION['mobile']['phone_id']) == 0) 115 $_SESSION['mobile']['phone_id'] = SC_MobileUserAgent ::getId();115 $_SESSION['mobile']['phone_id'] = SC_MobileUserAgent_Ex::getId(); 116 116 } 117 117 if (!isset($_SESSION['mobile']['phone_id']) || $_SESSION['mobile']['phone_id'] === false) { … … 136 136 function getCustomerDataFromMobilePhoneIdPass($pass) { 137 137 //docomo用にデータを取り出す。 138 if(SC_MobileUserAgent ::getCarrier() == 'docomo'){138 if(SC_MobileUserAgent_Ex::getCarrier() == 'docomo'){ 139 139 if($_SESSION['mobile']['phone_id'] == "" && strlen($_SESSION['mobile']['phone_id']) == 0) 140 $_SESSION['mobile']['phone_id'] = SC_MobileUserAgent ::getId();140 $_SESSION['mobile']['phone_id'] = SC_MobileUserAgent_Ex::getId(); 141 141 } 142 142 if (!isset($_SESSION['mobile']['phone_id']) || $_SESSION['mobile']['phone_id'] === false) { -
branches/version-2_5-dev/data/class/SC_MobileEmoji.php
r20493 r20495 51 51 */ 52 52 function indexToCode($index) { 53 $carrier = SC_MobileUserAgent ::getCarrier();53 $carrier = SC_MobileUserAgent_Ex::getCarrier(); 54 54 if ($carrier === false) { 55 55 return MOBILE_EMOJI_SUBSTITUTE; -
branches/version-2_5-dev/data/class/SC_MobileImage.php
r20116 r20495 41 41 42 42 // 端末情報を取得する 43 $carrier = SC_MobileUserAgent ::getCarrier();44 $model = SC_MobileUserAgent ::getModel();43 $carrier = SC_MobileUserAgent_Ex::getCarrier(); 44 $model = SC_MobileUserAgent_Ex::getModel(); 45 45 46 46 // 携帯電話の場合のみ処理を行う -
branches/version-2_5-dev/data/class/SC_MobileUserAgent.php
r20116 r20495 117 117 */ 118 118 function isNonMobile() { 119 return !SC_MobileUserAgent ::isMobile();119 return !SC_MobileUserAgent_Ex::isMobile(); 120 120 } 121 121 -
branches/version-2_5-dev/data/class/SC_Response.php
r20116 r20495 150 150 151 151 $session = SC_SessionFactory::getInstance(); 152 if (SC_MobileUserAgent ::isMobile() || $session->useCookie() == false) {152 if (SC_MobileUserAgent_Ex::isMobile() || $session->useCookie() == false) { 153 153 $netUrl->addQueryString(session_name(), session_id()); 154 154 } -
branches/version-2_5-dev/data/class/helper/SC_Helper_Mobile.php
r20493 r20495 42 42 */ 43 43 function lfMobileCheckCompatibility() { 44 if (!SC_MobileUserAgent ::isSupported()) {44 if (!SC_MobileUserAgent_Ex::isSupported()) { 45 45 header('Location: ' . ROOT_URLPATH . 'unsupported/' . DIR_INDEX_PATH); 46 46 exit; … … 157 157 158 158 // 携帯端末の機種が一致するかどうかをチェックする。 159 $model = SC_MobileUserAgent ::getModel();159 $model = SC_MobileUserAgent_Ex::getModel(); 160 160 if (@$_SESSION['mobile']['model'] != $model) { 161 161 GC_Utils_Ex::gfPrintLog("User agent model mismatch : " . … … 187 187 if ($sessionId === false || !$this->lfMobileValidateSession()) { 188 188 session_regenerate_id(); 189 $_SESSION = array('mobile' => array('model' => SC_MobileUserAgent ::getModel(),190 'phone_id' => SC_MobileUserAgent ::getId(),189 $_SESSION = array('mobile' => array('model' => SC_MobileUserAgent_Ex::getModel(), 190 'phone_id' => SC_MobileUserAgent_Ex::getId(), 191 191 'expires' => time() + MOBILE_SESSION_LIFETIME)); 192 192 … … 203 203 204 204 // 携帯端末IDを取得できた場合はセッションデータに保存する。 205 $phoneId = SC_MobileUserAgent ::getId();205 $phoneId = SC_MobileUserAgent_Ex::getId(); 206 206 if ($phoneId !== false) { 207 207 $_SESSION['mobile']['phone_id'] = $phoneId; -
branches/version-2_5-dev/data/class/helper/SC_Helper_Purchase.php
r20490 r20495 894 894 $mailHelper = new SC_Helper_Mail_Ex(); 895 895 $mailHelper->sfSendOrderMail($orderId, 896 SC_MobileUserAgent ::isMobile() ? 2 : 1);896 SC_MobileUserAgent_Ex::isMobile() ? 2 : 1); 897 897 } 898 898 -
branches/version-2_5-dev/data/class/pages/entry/LC_Page_Entry.php
r20490 r20495 188 188 $arrResults['email_mobile'] = $arrResults['email']; 189 189 // PHONE_IDを取り出す 190 $arrResults['mobile_phone_id'] = SC_MobileUserAgent ::getId();190 $arrResults['mobile_phone_id'] = SC_MobileUserAgent_Ex::getId(); 191 191 } 192 192 return $arrResults; -
branches/version-2_5-dev/data/class/session/sessionfactory/SC_SessionFactory_UseRequest.php
r20018 r20495 475 475 */ 476 476 function updateModel() { 477 $this->setValue('model', SC_MobileUserAgent ::getModel());477 $this->setValue('model', SC_MobileUserAgent_Ex::getModel()); 478 478 } 479 479 … … 485 485 function validateModel() { 486 486 $modelInSession = $this->getModel(); 487 $model = SC_MobileUserAgent ::getModel();487 $model = SC_MobileUserAgent_Ex::getModel(); 488 488 if (!empty($model) 489 489 && $model === $modelInSession) { … … 508 508 */ 509 509 function updatePhoneId() { 510 $this->setValue('phone_id', SC_MobileUserAgent ::getId());510 $this->setValue('phone_id', SC_MobileUserAgent_Ex::getId()); 511 511 } 512 512 -
branches/version-2_5-dev/data/require_classes.php
r20494 r20495 48 48 require_once(CLASS_EX_REALDIR . "SC_CustomerList_Ex.php"); 49 49 require_once(CLASS_REALDIR . "SC_Cookie.php"); 50 require_once(CLASS_ REALDIR . "SC_MobileUserAgent.php");50 require_once(CLASS_EX_REALDIR . "SC_MobileUserAgent_Ex.php"); 51 51 require_once(CLASS_EX_REALDIR . "SC_SmartphoneUserAgent_Ex.php"); 52 52 require_once(CLASS_EX_REALDIR . "SC_MobileEmoji_Ex.php");
Note: See TracChangeset
for help on using the changeset viewer.