install.php 898 B

123456789101112131415161718192021222324252627282930313233343536373839
  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: install.php 33387 2013-06-05 03:21:26Z jeffjzhang $
  7. */
  8. if(!defined('IN_DISCUZ')) {
  9. exit('Access Denied');
  10. }
  11. $my_search_data = array(
  12. 'status' => 0,
  13. 'allow_hot_topic' => 1,
  14. 'allow_thread_related' => 1,
  15. 'allow_recommend_related' => 1,
  16. 'allow_thread_related_bottom' => 0,
  17. 'allow_forum_recommend' => 1,
  18. 'allow_forum_related' => 0,
  19. 'allow_collection_related' => 1,
  20. 'allow_search_suggest' => 0,
  21. 'cp_version' => 1,
  22. 'recwords_lifetime' => 21600,
  23. );
  24. if (is_array($_G['setting']['my_search_data'])) {
  25. $my_search_data = array_merge($my_search_data, $_G['setting']['my_search_data']);
  26. }
  27. $insertData = serialize($my_search_data);
  28. $sql = <<<EOF
  29. REPLACE INTO pre_common_setting VALUES ('my_search_data', '{$insertData}');
  30. EOF;
  31. runquery($sql);
  32. $finish = true;