Changeset 757 for branches/Ver3.0/xpressme_integration_kit/wp-content/plugins/xpressme/include/pluggable-override.php
- Timestamp:
- May 23, 2011, 3:03:57 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Ver3.0/xpressme_integration_kit/wp-content/plugins/xpressme/include/pluggable-override.php
r348 r757 160 160 function wp_check_password($password, $hash, $user_id = '') { 161 161 global $wp_hasher; 162 global $ xoops_config,$xoops_db;162 global $modInfo,$wpConfigInfo,$xoops_db; 163 163 164 164 // For attestation when password has been sent as hash value. (When having logged it in from Xoops and ImpressCMS) … … 174 174 175 175 // 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(); 178 178 // 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'; 181 181 $login_name = $xoops_db->get_var("SELECT user_login FROM $xpress_user_db WHERE ID = $user_id"); 182 182 $user_salt = $xoops_db->get_var("SELECT salt FROM $xoops_user_db WHERE uname = '$login_name'"); … … 236 236 if ( !function_exists('wp_redirect') ) : 237 237 function wp_redirect($location, $status = 302) { 238 global $is_IIS,$ xoops_config,$action;238 global $is_IIS,$modInfo,$action; 239 239 240 if ($location == 'wp-login.php?loggedout=true') $location = $ xoops_config->xoops_url.'/user.php?op=logout'; //xoops logout at wp logout241 if ($location == 'wp-login.php?action=register') $location = $ xoops_config->xoops_url."/register.php"; //wp-register to xoops register242 if ($action == 'logout') $location = $ xoops_config->xoops_url.'/user.php?op=logout'; //xoops logout at comment logout240 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 243 243 244 244 $location = apply_filters('wp_redirect', $location, $status);
Note: See TracChangeset
for help on using the changeset viewer.