XPressME Integration Kit

Trac

Changeset 477


Ignore:
Timestamp:
Dec 3, 2009, 5:11:25 PM (14 years ago)
Author:
toemon
Message:

WP Super Cacheプラグインへの対応 #263

Location:
trunk/xpressme_integration_kit
Files:
4 edited

Legend:

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

    r475 r477  
    3636        //When notifying by a private message, Notification_reserve_send(); 
    3737        //it is evaded that the data base becomes read-only as a result of the check on the referrer and the method.  
     38        $request_method =  (isset($_SERVER['REQUEST_METHOD'])) ? $_SERVER['REQUEST_METHOD'] : ''; 
    3839        $_SERVER['REQUEST_METHOD'] = 'POST'; 
    39  
    4040        require_once $xoops_config->xoops_mainfile_path; //It is necessary to execute it for the user attestation before wp-settings.php.  
     41        $_SERVER['REQUEST_METHOD'] = $request_method; 
    4142        unset($offset); 
    4243        require_once(ABSPATH.'wp-settings.php'); 
  • trunk/xpressme_integration_kit/include/set_cash_cookie_path.php

    r232 r477  
    88 */ 
    99if ( !defined('USER_COOKIE') ) 
    10         define('USER_COOKIE', $modname . 'user_' . $hash); 
     10        define('USER_COOKIE', 'wordpress_' . $modname . 'user_' . $hash); 
    1111 
    1212/** 
     
    1515 */ 
    1616if ( !defined('PASS_COOKIE') ) 
    17         define('PASS_COOKIE', $modname . 'pass_' . $hash); 
     17        define('PASS_COOKIE', 'wordpress_' . $modname . 'pass_' . $hash); 
    1818 
    1919/** 
     
    2222 */ 
    2323if ( !defined('AUTH_COOKIE') ) 
    24         define('AUTH_COOKIE', $modname . '_auth_' . $hash); 
     24        define('AUTH_COOKIE', 'wordpress_' . $modname . '_auth_' . $hash); 
    2525 
    2626/** 
     
    2929 */ 
    3030if ( !defined('SECURE_AUTH_COOKIE') ) 
    31         define('SECURE_AUTH_COOKIE', $modname . '_sec_' . $hash); 
     31        define('SECURE_AUTH_COOKIE', 'wordpress_' . $modname . '_sec_' . $hash); 
    3232 
    3333/** 
     
    3636 */ 
    3737if ( !defined('LOGGED_IN_COOKIE') ) 
    38         define('LOGGED_IN_COOKIE', $modname . '_logged_in_' . $hash); 
     38        define('LOGGED_IN_COOKIE', 'wordpress_' . $modname . '_logged_in_' . $hash); 
    3939 
    4040/** 
     
    4343 */ 
    4444if ( !defined('TEST_COOKIE') ) 
    45         define('TEST_COOKIE', $modname . '_test_cookie'); 
     45        define('TEST_COOKIE', 'wordpress_' . $modname . '_test_cookie'); 
    4646 
    4747/** 
  • trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/custom_functions.php

    r469 r477  
    9595 
    9696        $output = ''; 
    97         $author_cookie = get_xpress_dir_name() . "_select_author" ; 
     97        $author_cookie = 'select_' . get_xpress_dir_name() . "_author" ; 
    9898        if (!empty($_COOKIE[$author_cookie])){ 
    9999                $uid = intval($_COOKIE[$author_cookie]); 
     
    115115        extract( $r ); 
    116116        $output = ''; 
    117         $author_cookie = get_xpress_dir_name() . "_select_author" ; 
     117        $author_cookie = 'select_' . get_xpress_dir_name() . "_author" ; 
    118118        if (!empty($_COOKIE[$author_cookie])){ 
    119119                $output = intval($_COOKIE[$author_cookie]); 
  • trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/xpress_common_functions.php

    r469 r477  
    242242        if (is_admin()) return $query_vars; 
    243243         
    244         $author_cookie = get_xpress_dir_name() . "_select_author" ; 
     244        $author_cookie = 'select_' . get_xpress_dir_name() . "_author" ; 
    245245        if(xpress_is_multi_user()){ 
    246246                if (!empty($_GET)){ 
     
    294294        if (is_admin()) return $query; 
    295295 
    296         $author_cookie = get_xpress_dir_name() . "_select_author" ; 
     296        $author_cookie = 'select_' . get_xpress_dir_name() . "_author" ; 
    297297         
    298298        if (strpos($query,'SELECT') === false)  return $query; 
Note: See TracChangeset for help on using the changeset viewer.