首页 > 代码库 > thinkphp openfire 添加用户 骨架

thinkphp openfire 添加用户 骨架

public function addadd(){header("Content-Type:text/html; charset=utf-8");$user=$_POST[‘name‘];//接收用户名$pwd=$_POST[‘password‘];//接收用户名$name="admin";$email="15139177976";$f=fopen("http://127.0.0.1:9090/plugins/userService/userservice?type=add&secret=FTtk1cVk&username=".$user."&password=".$pwd."&name=".$name."&email=".$email,‘r‘);    $response = fread($f, 1024);   $this->redirect(‘Index/add‘, array(‘status‘=>1), 1, ‘添加成功,页面跳转中~‘);fclose($f);   }

 

thinkphp openfire 添加用户 骨架