XPressME Integration Kit

Trac


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

ConfigFromXoopsクラスを廃止し、modInfoクラスを使用するように変更
WP2.2以下で使用するテンプレートold_templateの廃止

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Ver3.0/xpressme_integration_kit/wp-content/plugins/xpressme/include/pluggable-override.php

    r348 r757  
    160160function wp_check_password($password, $hash, $user_id = '') { 
    161161        global $wp_hasher; 
    162         global $xoops_config,$xoops_db; 
     162        global $modInfo,$wpConfigInfo,$xoops_db; 
    163163 
    164164        // For attestation when password has been sent as hash value. (When having logged it in from Xoops and ImpressCMS) 
     
    174174         
    175175        // Password authentication for ImpressCMS  
    176         if($xoops_config->is_impress && function_exists('hash')){ 
    177                 $mainSalt = $xoops_config->xoops_db_salt; 
     176        if($modInfo->is_impress_cms() && function_exists('hash')){ 
     177                $mainSalt = $wpConfigInfo->get_db_salt(); 
    178178                // get user salt 
    179                 $xpress_user_db = $xoops_config->module_db_prefix . 'users'; 
    180                 $xoops_user_db = $xoops_config->xoops_db_prefix . '_users'; 
     179                $xpress_user_db = $wpConfigInfo->get_db_prefix() . 'users'; 
     180                $xoops_user_db = $wpConfigInfo->get_xoops_db_prefix() . 'users'; 
    181181                $login_name = $xoops_db->get_var("SELECT user_login FROM $xpress_user_db WHERE ID = $user_id"); 
    182182                $user_salt = $xoops_db->get_var("SELECT salt FROM $xoops_user_db WHERE uname = '$login_name'"); 
     
    236236if ( !function_exists('wp_redirect') ) : 
    237237function wp_redirect($location, $status = 302) { 
    238         global $is_IIS,$xoops_config,$action; 
     238        global $is_IIS,$modInfo,$action; 
    239239         
    240         if ($location == 'wp-login.php?loggedout=true') $location = $xoops_config->xoops_url.'/user.php?op=logout'; //xoops logout at wp logout 
    241         if ($location == 'wp-login.php?action=register') $location = $xoops_config->xoops_url."/register.php";  //wp-register to xoops register 
    242         if ($action == 'logout') $location = $xoops_config->xoops_url.'/user.php?op=logout'; //xoops logout at comment logout 
     240        if ($location == 'wp-login.php?loggedout=true') $location = $modInfo->get_xoops_url().'/user.php?op=logout'; //xoops logout at wp logout 
     241        if ($location == 'wp-login.php?action=register') $location = $modInfo->get_xoops_url()."/register.php";  //wp-register to xoops register 
     242        if ($action == 'logout') $location = $modInfo->get_xoops_url().'/user.php?op=logout'; //xoops logout at comment logout 
    243243 
    244244        $location = apply_filters('wp_redirect', $location, $status); 
Note: See TracChangeset for help on using the changeset viewer.