说明
注册phpsso用户,注册成功返回phpssouid
resource ps_member_register (string $username, string $password , string $email [, string $regip[, string $random]])
参数
string $username 用户名
string $password 密码
string $email 邮箱
string $regip 注册ip
string $random 密码随机数
返回值
int {-1:用户名已经存在 ;-2:email已存在;-3:email格式错误;-4:用户名禁止注册;-5:邮箱禁止注册;int(uid):成功}
Example
<?php
pc_base::load_app_class('client', '', 0);
define('APPID', pc_base::load_config('system', 'phpsso_appid'));
$phpsso_api_url = pc_base::load_config('system', 'phpsso_api_url');
$phpsso_auth_key = pc_base::load_config('system', 'phpsso_auth_key');
$this->client = new client($phpsso_api_url, $phpsso_auth_key);$status = $this->client->ps_member_register($userinfo['username'], $userinfo['password'], $userinfo['email'], $userinfo['regip'], $userinfo['encrypt']);
?>