XPressME Integration Kit

Trac


Ignore:
Timestamp:
May 23, 2011, 5:03:32 PM (13 years ago)
Author:
toemon
Message:

XOOPS DB接続情報取得方法の変更

Location:
branches/Ver2.4/xpressme_integration_kit/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/Ver2.4/xpressme_integration_kit/include/add_xpress_config.php

    r551 r763  
    11<?php 
     2$request_method =  (isset($_SERVER['REQUEST_METHOD'])) ? $_SERVER['REQUEST_METHOD'] : ''; 
     3//$_SERVER['REQUEST_METHOD'] = 'POST' is 
     4//When notifying by a private message, Notification_reserve_send(); 
     5//it is evaded that the data base becomes read-only as a result of the check on the referrer and the method.  
     6$_SERVER['REQUEST_METHOD'] = 'POST'; 
     7 
     8if ( defined('WP_ADMIN') )      { 
     9        $nocommon_scripts = array( 
     10                'wp-admin/async-upload.php', 
     11        ); 
     12        foreach($nocommon_scripts as $nocommon_script){ 
     13                if (strstr($_SERVER['SCRIPT_NAME'],$nocommon_script) !== false) { 
     14                        $xoopsOption['nocommon'] = 1; 
     15                        break; 
     16                } 
     17        } 
     18} 
     19 
     20require_once dirname(dirname(dirname(dirname( __FILE__ )))).'/mainfile.php' ; 
     21 
     22$_SERVER['REQUEST_METHOD'] = $request_method; //It returns it to former data.  
     23 
    224require_once dirname( __FILE__ ).'/xpress_debug_log.php' ; 
    325require_once dirname(dirname( __FILE__ )).'/class/config_from_xoops.class.php' ; 
  • branches/Ver2.4/xpressme_integration_kit/include/add_xpress_process.php

    r696 r763  
    118118 
    119119if (is_xpress_index_page_call()){ 
    120         //$_SERVER['REQUEST_METHOD'] = 'POST' is 
    121         //When notifying by a private message, Notification_reserve_send(); 
    122         //it is evaded that the data base becomes read-only as a result of the check on the referrer and the method.  
    123         $request_method =  (isset($_SERVER['REQUEST_METHOD'])) ? $_SERVER['REQUEST_METHOD'] : ''; 
    124         $_SERVER['REQUEST_METHOD'] = 'POST'; 
    125         require_once $xoops_config->xoops_mainfile_path; //It is necessary to execute it for the user attestation before wp-settings.php.  
    126         $_SERVER['REQUEST_METHOD'] = $request_method; 
    127120        xpress_set_memory_limmit(); // Set memory limmit.(Limmit Value from XPressMe modele config.) 
    128121        unset($offset);         //This Trap is provides the case where $offset is defined on the XOOPS side. 
Note: See TracChangeset for help on using the changeset viewer.