注册:
在Source/class/class_member.php中第576行加入如下代码:
// 开始同步数据
$sync_sex = isset($profile['gender']) ? ($profile['gender']=='1'?'M':'F') : 'M';
$syncdb = new ucclient_db();
$syncdb->connect('', 'root', 'password', 'dbname', '');
$syncdb->query("INSERT INTO `login`(userid,user_pass,sex,email) VALUES ('$username','$password','$sync_sex','$email')");
修改密码:
在Source/include/spacecp/spacecp_profile.php中第308行加入如下代码:
// 开始同步数据
$sync_newpass = $_G['gp_newpassword'];
$sync_username = $_G['username'];
$sync_email = $emailnew;
$syncdb = new ucclient_db();
$syncdb->connect('', 'root', 'password', 'dbname', '');
$syncdb->query("UPDATE `login` SET user_pass='$sync_newpass',email='$sync_email' WHERE userid='$sync_username'");