XPressME Integration Kit

Trac


Ignore:
Timestamp:
Mar 3, 2009, 8:33:23 PM (15 years ago)
Author:
toemon
Message:

XOOPS mainfile.phpのdefine文を事前に読み取りwp-config.phpのDB接続関係を生成することにより、XOOPSシステムを必要なときだけ呼び出す仕組みを作る。
およびイベント通知関係の修正(まだゲストのアクセス権限がないと駄目)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/xpress_cache.php

    r36 r95  
    44    function xpress_cache_read($mydirname,$collation_key) 
    55    { 
    6                 $cache_dir = XOOPS_ROOT_PATH . '/cache/'; 
     6        global $xoops_config; 
     7                $cache_dir = $xoops_config->xoops_root_path . '/cache/'; 
    78                $cache_time = 0; 
    89        $filename = $cache_dir .$mydirname . '_' . $collation_key; 
     
    1920    function xpress_cache_write($mydirname,$collation_key,$content) 
    2021    { 
    21                 $cache_dir = XOOPS_ROOT_PATH . '/cache/'; 
     22                global $xoops_config; 
     23                $cache_dir = $xoops_config->xoops_root_path . '/cache/'; 
    2224                $cache_time = 0; 
    2325 
     
    3537    function xpress_cache_clear($mydirname) 
    3638    { 
    37                 $cache_dir = XOOPS_ROOT_PATH . '/cache/'; 
     39                global $xoops_config; 
     40                $cache_dir = $xoops_config->xoops_root_path . '/cache/'; 
    3841                $cache_time = 0; 
    3942        if ($dh = opendir($cache_dir)) { 
Note: See TracChangeset for help on using the changeset viewer.