Changeset 7645
- Timestamp:
- Jun 30, 2008, 11:59:04 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
OpenPNE/branches/work/kunitsuji1109/trunk/webapp/lib/OpenPNE/KtaiID.php
r7170 r7645 32 32 33 33 // DoCoMo 34 // emobile 2008-06-30 KUNIHARU Tsujioka update 34 35 if (!strncmp($ua, 'DoCoMo', 6)) { 35 // mova 36 if (substr($ua, 7, 3) === '1.0') { 37 // 『/』区切りで最後のものを取る 38 $pieces = explode('/', $ua); 39 $ser = array_pop($pieces); 36 if (isset($_SERVER['HTTP_X_DCMGUID'])) { 37 $id = $_SERVER['HTTP_X_DCMGUID']; 40 38 41 if (!strncmp($ser, 'ser', 3)) { 42 $id = $ser; 39 } else { 40 // mova 41 if (substr($ua, 7, 3) === '1.0') { 42 // 『/』区切りで最後のものを取る 43 $pieces = explode('/', $ua); 44 $ser = array_pop($pieces); 45 46 if (!strncmp($ser, 'ser', 3)) { 47 $id = $ser; 48 } 43 49 } 44 } 45 // FOMA 46 elseif (substr($ua, 7, 3) === '2.0') { 47 $icc = substr($ua, -24, -1); 50 // FOMA 51 elseif (substr($ua, 7, 3) === '2.0') { 52 $icc = substr($ua, -24, -1); 48 53 49 if (!strncmp($icc, 'icc', 3)) { 50 $id = $icc; 54 if (!strncmp($icc, 'icc', 3)) { 55 $id = $icc; 56 } 51 57 } 52 58 } 53 59 } 54 55 60 // Vodafone(PDC) 56 61 elseif (!strncmp($ua, 'J-PHONE', 7)) {
Note: See TracChangeset
for help on using the changeset viewer.