Changeset 18851 for branches/version-2_5-dev/data/class/pages
- Timestamp:
- 2010/10/12 11:55:47 (16 years ago)
- Location:
- branches/version-2_5-dev/data/class/pages
- Files:
-
- 3 edited
-
mypage/LC_Page_Mypage_DownLoad.php (modified) (4 diffs)
-
shopping/LC_Page_Shopping_Complete.php (modified) (1 diff)
-
shopping/LC_Page_Shopping_Payment.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/pages/mypage/LC_Page_Mypage_DownLoad.php
r18824 r18851 21 21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 22 22 */ 23 ini_set("memory_limit","100M");24 23 // {{{ requires 25 24 require_once(CLASS_PATH . "pages/LC_Page.php"); … … 76 75 //ログインしている場合 77 76 //DBから商品情報の読込 78 79 77 $arrForm = $this->lfGetRealFileName($customer_id, $order_id, $product_id, $product_class_id); 80 81 78 //ステータスが支払済み以上である事 82 79 if ($arrForm["status"] < ORDER_DELIV){ … … 92 89 SC_Utils_Ex::sfDispSiteError(DOWNFILE_NOT_FOUND,"",true); 93 90 } 94 //ファイル名をエンコードする 95 $sdown_filename = mb_convert_encoding($arrForm["down_filename"], "Shift_JIS", "auto"); 91 //ファイル名をエンコードする Safariの対策はUTF-8で様子を見る 92 $encoding = "Shift_JIS"; 93 if(isset($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'],'Safari')) { 94 $encoding = "UTF-8"; 95 } 96 $sdown_filename = mb_convert_encoding($arrForm["down_filename"], $encoding, "auto"); 96 97 //タイプ指定 97 98 header("Content-Type: Application/octet-stream"); … … 111 112 ob_end_flush(); 112 113 flush(); 113 114 114 //ファイル読み込み 115 readfile($realpath); 115 $handle = fopen($realpath, "rb"); 116 while (!feof($handle)) { 117 echo(fread($handle, DOWNLOAD_BLOCK*1024)); 118 ob_flush(); 119 flush(); 120 } 121 fclose($handle); 116 122 } 117 123 } -
branches/version-2_5-dev/data/class/pages/shopping/LC_Page_Shopping_Complete.php
r18829 r18851 476 476 477 477 // 合計金額が0円の場合、もしくはオンライン決済の場合は、注文ステータスをORDER_PRE_END[入金済み]にする 478 if ( ( $sqlval['total'] == 0 ) or ( in_array($sqlval['payment_id'], split(",", CREDIT_PAYMENT)) == true ) ){478 if ( ( $sqlval['total'] == 0 ) or ( in_array($sqlval['payment_id'], split(",", ONLINE_PAYMENT)) == true ) ){ 479 479 $sqlval = $this->lfchgPreEndStatus($sqlval); 480 480 } -
branches/version-2_5-dev/data/class/pages/shopping/LC_Page_Shopping_Payment.php
r18782 r18851 370 370 if($this->cartdown != 0){ 371 371 //ダウンロード商品を含む場合は、オンライン決済以外は選択できない。 372 $arrval = explode(",", CREDIT_PAYMENT);372 $arrval = explode(",", ONLINE_PAYMENT); 373 373 $tmp_where = ""; 374 374 foreach ($arrval as $val) {
Note: See TracChangeset
for help on using the changeset viewer.
