Changeset 131
- Timestamp:
- Mar 21, 2009, 8:11:42 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/plugins/xpressme/include/pluggable-override.php
r130 r131 130 130 function wp_check_password($password, $hash, $user_id = '') { 131 131 global $wp_hasher; 132 133 if ($hash == $password){ // The password taken out of XOOPS is hash value. 132 global $xoops_config,$xoops_db; 133 134 // For attestation when password has been sent as hash value. (When having logged it in from Xoops and ImpressCMS) 135 if ($hash == $password){ 134 136 return apply_filters('check_password', true, $password, $hash, $user_id); 135 137 } 138 139 // Password authentication for Xoops 140 if ( strlen($hash) <= 32 ) { 141 $check = ( $hash == md5($password) ); 142 return apply_filters('check_password', $check, $password, $hash, $user_id); 143 } 144 145 // Password authentication for ImpressCMS 146 if($xoops_config->is_impress && function_exists('hash')){ 147 $mainSalt = $xoops_config->xoops_db_salt; 148 // get user salt 149 $xpress_user_db = $xoops_config->module_db_prefix . 'users'; 150 $xoops_user_db = $xoops_config->xoops_db_prefix . '_users'; 151 $login_name = $xoops_db->get_var("SELECT user_login FROM $xpress_user_db WHERE ID = $user_id"); 152 $user_salt = $xoops_db->get_var("SELECT salt FROM $xoops_user_db WHERE uname = '$login_name'"); 153 // Make Impress hash 154 $impress_hash = hash('sha256', $user_salt.md5($password).$mainSalt); 155 if ($hash == $impress_hash){ 156 return apply_filters('check_password', true, $password, $hash, $user_id); 157 } 158 } 159 136 160 // If the hash is still md5... 137 161 if ( strlen($hash) <= 32 ) { -
trunk/xoops_version.php
r128 r131 31 31 $modversion['name'] = ucfirst($mydirname) . ' ' . constant('_MI_XPRESS_NAME') ; 32 32 $modversion['description'] = constant( '_MI_XPRESS_DESC'); 33 $modversion['version'] = "0.1 2";33 $modversion['version'] = "0.13"; 34 34 $modversion['credits'] = "Wordpress DEV (http://wordpress.org/) XPressME DEV Toemon) (http://www.toemon.com) ;"; 35 35 $modversion['author'] = "toemon (http://www.toemon.com)"; … … 40 40 41 41 // status 42 $modversion['codename'] = "r1 28";42 $modversion['codename'] = "r131"; 43 43 44 44 // onInstall, onUpdate, onUninstall
Note: See TracChangeset
for help on using the changeset viewer.