- Timestamp:
- 2012/02/06 11:05:15 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/pages/mypage/LC_Page_Mypage_DownLoad.php
r21420 r21441 81 81 // ログインチェック 82 82 $objCustomer = new SC_Customer_Ex(); 83 if (!$objCustomer->isLoginSuccess(true)) {83 if (!$objCustomer->isLoginSuccess(true)) { 84 84 SC_Utils_Ex::sfDispSiteError(DOWNFILE_NOT_FOUND,"",true); 85 85 } … … 92 92 $objFormParam->setParam($_GET); 93 93 $this->arrErr = $this->lfCheckError($objFormParam); 94 if (count($this->arrErr)!=0) {94 if (count($this->arrErr)!=0) { 95 95 SC_Utils_Ex::sfDispSiteError(DOWNFILE_NOT_FOUND,"",true); 96 96 } … … 116 116 117 117 //ファイル情報が無い場合はNG 118 if ($arrForm["down_realfilename"] == "" ) {118 if ($arrForm["down_realfilename"] == "" ) { 119 119 SC_Utils_Ex::sfDispSiteError(DOWNFILE_NOT_FOUND,"",true); 120 120 } 121 121 //ファイルそのものが無い場合もとりあえずNG 122 122 $realpath = DOWN_SAVE_REALDIR . $arrForm["down_realfilename"]; 123 if (!file_exists($realpath)) {123 if (!file_exists($realpath)) { 124 124 SC_Utils_Ex::sfDispSiteError(DOWNFILE_NOT_FOUND,"",true); 125 125 } 126 126 //ファイル名をエンコードする Safariの対策はUTF-8で様子を見る 127 127 $encoding = "Shift_JIS"; 128 if (isset($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'],'Safari')) {128 if (isset($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'],'Safari')) { 129 129 $encoding = "UTF-8"; 130 130 } … … 135 135 136 136 // ダウンロード実行 モバイル端末はダウンロード方法が異なる 137 if (SC_Display_Ex::detectDevice() == DEVICE_TYPE_MOBILE) {137 if (SC_Display_Ex::detectDevice() == DEVICE_TYPE_MOBILE) { 138 138 // キャリアがAUのモバイル端末はさらにダウンロード方法が異なる 139 if (SC_MobileUserAgent::getCarrier() == 'ezweb') {139 if (SC_MobileUserAgent::getCarrier() == 'ezweb') { 140 140 // AUモバイル 141 141 $this->lfMobileAuDownload($realpath,$sdown_filename); 142 } else{142 } else { 143 143 // AU以外のモバイル 144 144 $this->lfMobileDownload($realpath,$sdown_filename); 145 145 } 146 } else{146 } else { 147 147 // PC、スマフォ 148 148 $this->lfDownload($realpath,$sdown_filename); … … 320 320 $contentType = $this->defaultContentType; 321 321 // 拡張ContentType判定(拡張子をキーに拡張ContentType対象か判断) 322 if (isset($this->arrContentType[$extension])){322 if (isset($this->arrContentType[$extension])) { 323 323 // 拡張ContentType対象の場合は、ContentTypeを変更 324 324 $contentType = $this->arrContentType[$extension];
Note: See TracChangeset
for help on using the changeset viewer.