integrate.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | Fanwe 方维直播系统
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2011 http://www.fanwe.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Author: 云淡风轻(1956838968@qq.com)
  8. // +----------------------------------------------------------------------
  9. //会员整合的接口
  10. interface integrate{
  11. //用户登录
  12. /**
  13. * 返回 array('status'=>'',data=>'',msg=>'') msg存放整合接口返回的字符串
  14. * @param $user_data
  15. */
  16. function login($user_name,$user_pwd);
  17. //用户登出
  18. /**
  19. * 返回 array('status'=>'',data=>'',msg=>'') msg存放整合接口返回的字符串
  20. */
  21. function logout();
  22. //用户注册
  23. /**
  24. * 返回 array('status'=>'',data=>'',msg=>'') msg存放整合接口的消息
  25. * @param $user_data
  26. */
  27. function add_user($user_name,$user_pwd,$email);
  28. //用户修改密码
  29. /**
  30. * 返回bool
  31. * @param $user_data
  32. */
  33. function edit_user($user_data,$user_new_pwd);
  34. //删除会员
  35. function delete_user($user_data);
  36. //安装时执行的部份操作
  37. //返回 array('status'=>'','msg'=>'')
  38. function install($config_seralized);
  39. //卸载时执行的部份操作
  40. //无返回
  41. function uninstall();
  42. }
  43. ?>