Changeset 114 for trunk/wp-content/plugins/xpressme/include
- Timestamp:
- Mar 18, 2009, 5:52:40 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/plugins/xpressme/include/pluggable-override.php
r96 r114 22 22 23 23 if ($xoopsModule){ 24 if (!is_object($xoopsUser)){ 25 wp_set_current_user(0); 26 wp_logout(); 27 return false; 28 } 24 29 if ( defined('XMLRPC_REQUEST') && XMLRPC_REQUEST ) 25 30 return false; 26 31 27 if ( ! empty($current_user) ) 28 return; 32 if ( ! empty($current_user) ){ 33 $xoops_user = $xoopsUser->getVar("uname"); 34 if ($current_user->user_login == $xoops_user) 35 return; 36 } 29 37 30 38 if (check_xpress_auth_cookie()){ //The cookie is login user's or it checks it … … 156 164 if ( !function_exists('wp_redirect') ) : 157 165 function wp_redirect($location, $status = 302) { 158 global $is_IIS ;166 global $is_IIS,$xoops_config; 159 167 160 if ($location == 'wp-login.php?loggedout=true') $location = XOOPS_URL.'/user.php?op=logout'; //xoops logout at wp logout161 if ($location == 'wp-login.php?action=register') $location = XOOPS_URL."/register.php"; //wp-register to xoops register168 if ($location == 'wp-login.php?loggedout=true') $location = $xoops_config->xoops_url.'/user.php?op=logout'; //xoops logout at wp logout 169 if ($location == 'wp-login.php?action=register') $location = $xoops_config->xoops_url."/register.php"; //wp-register to xoops register 162 170 163 171 $location = apply_filters('wp_redirect', $location, $status);
Note: See TracChangeset
for help on using the changeset viewer.