tobind.php 767 B

123456789101112131415161718192021222324252627
  1. <?php
  2. require("../class/connect.php");
  3. require("../class/db_sql.php");
  4. require("../class/q_functions.php");
  5. require("../member/class/user.php");
  6. eCheckCloseMods('member');//关闭模块
  7. eCheckCloseMods('mconnect');//关闭模块
  8. $link=db_connect();
  9. $empire=new mysqlquery();
  10. eCheckCloseMemberConnect();//验证开启的接口
  11. session_start();
  12. require('memberconnectfun.php');
  13. $apptype=RepPostVar($_SESSION['apptype']);
  14. $openid=RepPostVar($_SESSION['openid']);
  15. if(!trim($apptype)||!trim($openid))
  16. {
  17. printerror2('来自的链接不存在','../../../');
  18. }
  19. $appr=MemberConnect_CheckApptype($apptype);//验证登录方式
  20. MemberConnect_CheckBindKey($apptype,$openid);
  21. //导入模板
  22. require(ECMS_PATH.'e/template/memberconnect/tobind.php');
  23. db_close();
  24. $empire=null;
  25. ?>