Changeset 19159
- Timestamp:
- 2010/11/06 23:17:33 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/camp/camp-2_5-E/data/class/SC_SmartphoneUserAgent.php
r19029 r19159 39 39 return false; 40 40 } else { 41 return SC_SmartphoneUserAgent::isSmartPhone(); 41 // SPでかつPC表示OFF 42 return $objAgent->isSmartphone() && !SC_SmartphoneUserAgent::getSmartphonePcFlag(); 42 43 } 43 44 } … … 58 59 */ 59 60 function getSmartphonePcFlag() { 60 return SC_Session::GetSession('pc_disp'); 61 $_SESSION['pc_disp'] = empty($_SESSION['pc_disp']) ? false : $_SESSION['pc_disp']; 62 return $_SESSION['pc_disp']; 61 63 } 62 64 … … 65 67 */ 66 68 function setPcDsiplayOn() { 67 SC_Session::SetSession('pc_disp', true);69 $_SESSION['pc_disp'] = true; 68 70 } 69 71 … … 72 74 */ 73 75 function setPcDsiplayOff() { 74 SC_Session::SetSession('pc_disp', false);76 $_SESSION['pc_disp'] = false; 75 77 } 76 78 … … 83 85 // SPでない場合は、処理しない 84 86 if (SC_SmartphoneUserAgent::isNonSmartphone()) return; 85 // SPで、PC表示がtrueの場合は、処理しない 86 if (SC_SmartphoneUserAgent::isSmartphone() && SC_SmartphoneUserAgent::getSphonePcFlag()) return; 87 87 88 88 89 $url = SC_Utils_Ex::sfIsHTTPS()
Note: See TracChangeset
for help on using the changeset viewer.