Changeset 82 for trunk/wp-content
- Timestamp:
- Feb 1, 2009, 12:01:54 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/plugins/xpressme/include/user_sync_xoops.php
r72 r82 392 392 $wu_sql .= "user_regdate = $user_regdate "; 393 393 $wu_sql .= "WHERE (uid = $xoops_uid )"; 394 $xoops_db->query($wu_sql); 394 395 }else{ 395 396 $wu_sql = "INSERT INTO $db_xoops_users "; … … 398 399 $wu_sql .= "('$user_info->user_login', '$user_info->user_pass', '$user_info->user_email', '$user_info->user_url', '$user_info->display_name' "; 399 400 $wu_sql .= " , '$aim' , '$yim' , $user_regdate )"; 400 } 401 $xoops_db->query($wu_sql); 401 $xoops_db->query($wu_sql); 402 // get xoops users default groupe ID 403 $db_xoops_group = get_xoops_prefix() . 'groups'; 404 $default_xoops_group_id = $xoops_db->get_var("SELECT groupid FROM $db_xoops_group WHERE group_type = 'User'"); 405 // get insert users ID 406 $db_xoops_group = get_xoops_prefix() . 'users'; 407 $user_id = $xoops_db->get_var("SELECT uid FROM $db_xoops_group WHERE uname = '$user_info->user_login'"); 408 // insert groups_users_link 409 $db_xoops_group_users_link = get_xoops_prefix() . 'groups_users_link'; 410 $default_xoops_group_id = $xoops_db->get_var("INSERT INTO $db_xoops_group_users_link (groupid , uid ) VALUES ($default_xoops_group_id , $user_id)"); 411 } 402 412 } 403 404 413 ?>
Note: See TracChangeset
for help on using the changeset viewer.