XPressME Integration Kit

Trac


Ignore:
Timestamp:
Apr 26, 2011, 3:38:22 PM (14 years ago)
Author:
toemon
Message:

Windows フィルシステムでディレクトリのis_writable()が正常に取得できないので代替え処理を行う

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xpressme_integration_kit/include/xpress_cache.php

    r657 r719  
    11<?php 
    22         
     3// is_writable() doesn't operate normally on the windows filesystem 
     4if(!function_exists("cache_is_writable")): 
     5        function cache_is_writable(){ 
     6                global $xoops_config; 
     7                $cache_dir = $xoops_config->xoops_cache_path . '/'; 
     8                $filename = $cache_dir .'xpress_cache_test.txt'; 
     9                $fp = @fopen($filename, "w"); 
     10                if ($fp == false) return false; 
     11                fclose($fp); 
     12                return true; 
     13        } 
     14endif; 
     15 
    316if(!function_exists("xpress_cache_found")): 
    417    function xpress_cache_found($filename) 
Note: See TracChangeset for help on using the changeset viewer.