search_user.php 779 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * [Discuz!] (C)2001-2099 Comsenz Inc.
  4. * This is NOT a freeware, use is subject to license terms
  5. *
  6. * $Id: search_user.php 36349 2017-01-16 03:05:23Z nemohou $
  7. */
  8. if(!defined('IN_DISCUZ')) {
  9. exit('Access Denied');
  10. }
  11. define('NOROBOT', TRUE);
  12. $url = '';
  13. if($_G['setting']['domain']['app']['home'] || $_G['setting']['domain']['app']['default']) {
  14. $domain = '';
  15. if($_G['setting']['domain']['app']['home']) {
  16. $domain = $_G['setting']['domain']['app']['home'];
  17. } else {
  18. $domain = $_G['setting']['domain']['app']['default'];
  19. }
  20. $url = $_G['scheme'].'://'.$domain.$_G['siteport'].'/';
  21. }
  22. $url .= 'home.php?mod=spacecp&ac=search';
  23. if($_GET['srchtxt']) {
  24. $url .= '&username='.$_GET['srchtxt'].'&searchsubmit=yes';
  25. }
  26. dheader('Location: '.$url);
  27. ?>