Changeset 22021
- Timestamp:
- 2012/09/06 15:10:42 (12 years ago)
- Location:
- branches/version-2_12-dev/data/class
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/SC_UploadFile.php
r21926 r22021 156 156 $uniqname = date('mdHi') . '_' . uniqid('').'.'; 157 157 $this->temp_file[$cnt] = preg_replace("/^.*\./", $uniqname, $_FILES[$keyname]['name']); 158 set_time_limit(0);159 158 $result = copy($_FILES[$keyname]['tmp_name'], $this->temp_dir . $this->temp_file[$cnt]); 160 159 GC_Utils_Ex::gfPrintLog($result.' -> '. $this->temp_dir . $this->temp_file[$cnt]); 160 SC_Utils_Ex::extendTimeOut(); 161 161 } 162 162 } -
branches/version-2_12-dev/data/class/helper/SC_Helper_CSV.php
r21935 r22021 71 71 */ 72 72 function sfDownloadCsv($csv_id, $where = '', $arrVal = array(), $order = '', $is_download = false) { 73 // 実行時間を制限しない74 @set_time_limit(0);75 76 73 // CSV出力タイトル行の作成 77 74 $arrOutput = SC_Utils_Ex::sfSwapArray($this->sfGetCsvOutput($csv_id, 'status = ' . CSV_COLUMN_STATUS_FLG_ENABLE)); … … 207 204 $line .= "\r\n"; 208 205 fwrite($this->fpOutput, $line); 206 SC_Utils_Ex::extendTimeOut(); 209 207 return true; 210 208 } … … 223 221 $objQuery =& SC_Query_Ex::getSingletonInstance(); 224 222 225 // 実行時間を制限しない226 @set_time_limit(0);227 223 // ヘッダ構築 228 224 if (is_array($arrHeader)) { -
branches/version-2_12-dev/data/class/pages/admin/system/LC_Page_Admin_System_Bkup.php
r22011 r22021 285 285 */ 286 286 function lfCreateBkupData($bkup_name, $work_dir) { 287 // 実行時間を制限しない288 set_time_limit(0);289 290 287 $objQuery =& SC_Query_Ex::getSingletonInstance(); 291 288 $csv_autoinc = ''; … … 378 375 $line .= SC_Helper_CSV_Ex::sfArrayToCsv($data); 379 376 $line .= "\n"; 377 SC_Utils_Ex::extendTimeOut(); 380 378 return fwrite($this->fpOutput, $line); 381 379 } … … 479 477 $objQuery =& SC_Query_Ex::getSingletonInstance(); 480 478 481 // 実行時間を制限しない482 // FIXME ファイル展開時に限定すべき483 set_time_limit(0);484 485 479 $bkup_filepath = $bkup_dir . $bkup_name . $bkup_ext; 486 480 $work_dir = $bkup_dir . $bkup_name . '/'; … … 519 513 // FIXME この辺りで、バックアップ時と同等の一時ファイルの削除を実行すべきでは? 520 514 515 SC_Utils_Ex::extendTimeOut(); 516 521 517 return $success; 522 518 } -
branches/version-2_12-dev/data/class/pages/mypage/LC_Page_Mypage_DownLoad.php
r22020 r22021 343 343 $zv_filesize = filesize($realpath); 344 344 header('Content-Length: ' . $zv_filesize); 345 set_time_limit(0);346 ob_end_flush();347 flush();348 345 //ファイル読み込み 349 346 $handle = fopen($realpath, 'rb'); … … 354 351 while (!feof($handle)) { 355 352 echo fread($handle, DOWNLOAD_BLOCK*1024); 356 ob_flush();357 flush();353 SC_Utils_Ex::sfFlush(); 354 SC_Utils_Ex::extendTimeOut(); 358 355 } 359 356 fclose($handle);
Note: See TracChangeset
for help on using the changeset viewer.