首页 > Web开发 > 详细

thinkphp openfire 添加用户 骨架

时间:2014-12-10 19:26:51      阅读:462      评论:0      收藏:0      [点我收藏+]
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);   
}

 bubuko.com,布布扣

bubuko.com,布布扣

bubuko.com,布布扣

thinkphp openfire 添加用户 骨架

原文:http://www.cnblogs.com/hellowzd/p/4155991.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!