Changeset 16143


Ignore:
Timestamp:
2007/09/28 12:01:07 (17 years ago)
Author:
nanasess
Message:

Smarty コンパイルディレクトリを自動生成するように修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/conf/conf.php

    r15903 r16143  
    99 
    1010$CONF_PHP_PATH = realpath( dirname( __FILE__) ); 
    11 require_once($CONF_PHP_PATH ."/../install.php"); 
     11//require_once($CONF_PHP_PATH ."/../install.php"); 
     12require_once($CONF_PHP_PATH ."/../install_pgsql.php"); 
    1213require_once($CONF_PHP_PATH ."/core.php" ); 
    1314 
     
    2425// 定数を設定する 
    2526defineConstants(); 
     27 
     28// Smarty コンパイルディレクトリを生成する. 
     29createCacheDir(); 
    2630 
    2731/** 
     
    7983    } 
    8084} 
     85 
     86/** 
     87 * 各種キャッシュディレクトリを生成する. 
     88 * 
     89 * 注意: この関数を外部で使用することは推奨しません. 
     90 * 
     91 * Smarty キャッシュディレクトリを生成する. 
     92 * 
     93 * @access private 
     94 * @return void 
     95 */ 
     96function createCacheDir() { 
     97 
     98    if (!file_exists(COMPILE_DIR)) { 
     99        mkdir(COMPILE_DIR); 
     100    } 
     101 
     102    if (!file_exists(COMPILE_ADMIN_DIR)) { 
     103        mkdir(COMPILE_ADMIN_DIR); 
     104    } 
     105 
     106    if (!file_exists(COMPILE_FTP_DIR)) { 
     107        mkdir(COMPILE_FTP_DIR); 
     108    } 
     109} 
    81110?> 
Note: See TracChangeset for help on using the changeset viewer.