Ignore:
Timestamp:
2009/04/04 06:47:28 (15 years ago)
Author:
Seasoft
Message:

・ループ内で実行する必要が無い処理をループ外に移動
・システム設定の取得を行う関数を修正 (get_cfg_var → ini_get)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/data/class/pages/admin/basis/LC_Page_Admin_Basis_ZipInstall.php

    r17934 r17954  
    102102            $cnt = 1; 
    103103            $img_cnt = 0; 
     104            $safe_mode = (boolean)ini_get('safe_mode'); 
     105            $max_execution_time 
     106                = is_numeric(ini_get('max_execution_time')) 
     107                ? intval(ini_get('max_execution_time')) 
     108                : intval(get_cfg_var('max_execution_time')) 
     109            ; 
    104110            while (!feof($fp)) { 
    105111                $arrCSV = fgetcsv($fp, ZIP_CSV_LINE_MAX); 
     
    129135                // 暴走スレッドが残留する確率を軽減したタイムアウト防止のロジック 
    130136                // TODO 動作が安定していれば、SC_Utils 辺りに移動したい。 
    131                 if (!get_cfg_var('safe_mode')) { 
     137                if (!$safe_mode) { 
    132138                    // タイムアウトをリセット 
    133                     set_time_limit((int)get_cfg_var('max_execution_time')); 
     139                    set_time_limit($max_execution_time); 
    134140                } 
    135141            } 
Note: See TracChangeset for help on using the changeset viewer.