Changeset 18118


Ignore:
Timestamp:
2009/06/16 14:29:32 (12 years ago)
Author:
kajiwara
Message:

#459 アップロードしたcsvファイルにアクセスできる不具合を修正

Location:
branches/version-2_4
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_4/data/mtb_constants_init.php

    r17974 r18118  
    275275define('IMAGE_SAVE_URL_RSS', SITE_URL . "upload/save_image/"); 
    276276/** エンコードCSVの一時保存先 */ 
    277 define('CSV_TEMP_DIR', HTML_PATH . "upload/csv/"); 
     277define('CSV_TEMP_DIR', DATA_PATH . "upload/csv/"); 
    278278/** 画像がない場合に表示 */ 
    279279define('NO_IMAGE_URL', URL_DIR . "misc/blank.gif"); 
  • branches/version-2_4/html/install/index.php

    r18115 r18118  
    390390        ".." . HTML2DATA_DIR . "Smarty/", 
    391391        ".." . HTML2DATA_DIR . "logs/", 
    392         ".." . HTML2DATA_DIR . "downloads/" 
     392        ".." . HTML2DATA_DIR . "downloads/", 
     393        ".." . HTML2DATA_DIR . "upload/" 
    393394    ); 
    394395 
     
    464465        } 
    465466        $path = ".." . HTML2DATA_DIR . "downloads/update"; 
     467        if(!file_exists($path)) { 
     468            mkdir($path); 
     469        } 
     470        $path = ".." . HTML2DATA_DIR . "upload/csv"; 
    466471        if(!file_exists($path)) { 
    467472            mkdir($path); 
  • branches/version-2_4/html/install/sql/insert_data.sql

    r18115 r18118  
    912912INSERT INTO mtb_constants VALUES ('IMAGE_TEMP_URL_RSS','SITE_URL . "upload/temp_image/"',154,'RSS用画像一時保存URL'); 
    913913INSERT INTO mtb_constants VALUES ('IMAGE_SAVE_URL_RSS','SITE_URL . "upload/save_image/"',155,'RSS用画像保存先URL'); 
    914 INSERT INTO mtb_constants VALUES ('CSV_TEMP_DIR','HTML_PATH . "upload/csv/"',156,'エンコードCSVの一時保存先'); 
     914INSERT INTO mtb_constants VALUES ('CSV_TEMP_DIR','DATA_PATH . "upload/csv/"',156,'エンコードCSVの一時保存先'); 
    915915INSERT INTO mtb_constants VALUES ('NO_IMAGE_URL','URL_DIR . "misc/blank.gif"',157,'画像がない場合に表示'); 
    916916INSERT INTO mtb_constants VALUES ('NO_IMAGE_DIR','HTML_PATH . "misc/blank.gif"',158,'画像がない場合に表示'); 
Note: See TracChangeset for help on using the changeset viewer.