Changeset 16759
- Timestamp:
- 2007/11/08 19:10:53 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update/data/class/pages/upgrade/LC_Page_Upgrade_Download.php
r16642 r16759 145 145 // ダウンロードデータの保存 146 146 if ($objRet->status === OWNERSSTORE_STATUS_SUCCESS) { 147 $this->objLog->log('* save file start');147 $this->objLog->log('* save file start'); 148 148 $time = time(); 149 149 $dir = DATA_PATH . 'downloads/tmp/'; … … 152 152 $data = base64_decode($objRet->body); 153 153 154 $this->objLog->log("* open ${filename} start"); 154 155 if ($fp = fopen($dir . $filename, "w")) { 155 156 fwrite($fp, $data); … … 168 169 // ダウンロードアーカイブを展開する 169 170 $exract_dir = $dir . $time; 171 $this->objLog->log("* mkdir ${exract_dir} start"); 170 172 if (!@mkdir($exract_dir)) { 171 173 $arrErr = array( … … 179 181 } 180 182 183 $this->objLog->log("* extract ${dir}${filename} start"); 181 184 $tar = new Archive_Tar($dir . $filename); 182 185 $tar->extract($exract_dir); 183 186 187 $this->objLog->log("* copy batch start"); 184 188 include_once CLASS_PATH . 'batch/SC_Batch_Update.php'; 185 189 $objBatch = new SC_Batch_Update(); … … 187 191 188 192 // テーブルの更新 193 $this->objLog->log("* insert/update dtb_module start"); 189 194 $this->updateMdlTable($objRet->product_data); 190 195 191 196 // 配信サーバへ通知 197 $this->objLog->log("* notify to lockon server start"); 192 198 $this->notifyDownload($objReq->getResponseCookies()); 193 199
Note: See TracChangeset
for help on using the changeset viewer.