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/config_from_xoops.class.php

    r92 r95  
    2626        var $module_path; 
    2727        var $module_url; 
     28        var $module_db_prefix; 
     29        var $xoops_upload_path; 
     30        var $xoops_upload_url; 
     31         
    2832         
    2933        function __constructor()        //for PHP5 
    3034    { 
    3135        $this->ConfigFromXoops(); 
     36        
    3237    } 
    3338 
     
    8994                        } 
    9095                } 
     96                 
     97                //  define from /settings/definition.inc.php (XCL)  or /include/common.php(2016a-JP) 
     98                $this->xoops_upload_path = $this->xoops_root_path .'/uploads'; 
     99                $this->xoops_upload_url = $this->xoops_url . '/uploads'; 
     100                 
     101                if ($this->module_name == 'wordpress') 
     102                        $this->module_db_prefix =  $this->xoops_db_prefix  . '_wp_'; 
     103                else 
     104                        $this->module_db_prefix =  $this->xoops_db_prefix  . '_' . $this->module_name . '_'; 
     105                 
    91106    } 
    92107     
Note: See TracChangeset for help on using the changeset viewer.