connect.php 882 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /*
  3. [Discuz!] (C)2001-2009 Comsenz Inc.
  4. This is NOT a freeware, use is subject to license terms
  5. $Id: connect.php 26424 2011-12-13 03:02:20Z zhouxiaobo $
  6. */
  7. if($_GET['mod'] == 'register') {
  8. $_GET['mod'] = 'connect';
  9. $_GET['action'] = 'register';
  10. require_once 'member.php';
  11. exit;
  12. }
  13. define('APPTYPEID', 126);
  14. define('CURSCRIPT', 'connect');
  15. require_once './source/class/class_core.php';
  16. require_once './source/function/function_home.php';
  17. $discuz = C::app();
  18. $mod = $discuz->var['mod'];
  19. $discuz->init();
  20. if(!in_array($mod, array('config', 'login', 'feed', 'check', 'user'))) {
  21. showmessage('undefined_action');
  22. }
  23. if(!$_G['setting']['connect']['allow']) {
  24. showmessage('qqconnect:qqconnect_closed');
  25. }
  26. define('CURMODULE', $mod);
  27. runhooks();
  28. $connectService = Cloud::loadClass('Service_Connect');
  29. require_once libfile('connect/'.$mod, 'plugin/qqconnect');
  30. ?>