aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_board.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2006-03-15 23:20:04 +0000
committerNils Adermann <naderman@naderman.de>2006-03-15 23:20:04 +0000
commit7fd17b8251879e6f4592d7c4b5ebdc9faa405429 (patch)
treea59e660e49183d63f2d1816c38952ad662bf2c88 /phpBB/includes/acp/acp_board.php
parente221b03b957e49cb2248b91af303c453c4d1e975 (diff)
downloadforums-7fd17b8251879e6f4592d7c4b5ebdc9faa405429.tar
forums-7fd17b8251879e6f4592d7c4b5ebdc9faa405429.tar.gz
forums-7fd17b8251879e6f4592d7c4b5ebdc9faa405429.tar.bz2
forums-7fd17b8251879e6f4592d7c4b5ebdc9faa405429.tar.xz
forums-7fd17b8251879e6f4592d7c4b5ebdc9faa405429.zip
- removed search settings from load page
- no need to retrieve mysql information on every page => removed (fulltext_mysql) - added init() method to search plugins which is called when the search backend is changed - optional create/delete index functions for methods which don't need to loop through all posts (like fulltext_mysql) - index statistic functions for search plugins, displayed on acp search index page - only remove words above 60% (fulltext_phpbb) - added acp method to search plugins so they can display config options specific to a certain search backend - renamed fulltext_phpbb specific options to make clear that they are a part of the plugin - reordered lang entries for the load settings section added acp_search.php: - settings: general options / search backend / backend specific options - index: statistics / delete index / create index (progress popup while processing) git-svn-id: file:///svn/phpbb/trunk@5636 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/acp/acp_board.php')
-rw-r--r--phpBB/includes/acp/acp_board.php37
1 files changed, 1 insertions, 36 deletions
diff --git a/phpBB/includes/acp/acp_board.php b/phpBB/includes/acp/acp_board.php
index d386103df7..d39316226b 100644
--- a/phpBB/includes/acp/acp_board.php
+++ b/phpBB/includes/acp/acp_board.php
@@ -165,15 +165,7 @@ class acp_board
'load_moderators' => array('lang' => 'YES_MODERATORS', 'type' => 'radio:yes_no', 'explain' => false),
'load_jumpbox' => array('lang' => 'YES_JUMPBOX', 'type' => 'radio:yes_no', 'explain' => false),
'load_user_activity' => array('lang' => 'LOAD_USER_ACTIVITY','type' => 'radio:yes_no', 'explain' => true),
- 'load_tplcompile' => array('lang' => 'RECOMPILE_TEMPLATES', 'type' => 'radio:yes_no', 'explain' => true),
-
- 'legend3' => 'SEARCH_SETTINGS',
- 'load_search' => array('lang' => 'YES_SEARCH', 'type' => 'radio:yes_no', 'explain' => true),
- 'search_interval' => array('lang' => 'SEARCH_INTERVAL', 'type' => 'text:3:4', 'explain' => true),
- 'search_type' => array('lang' => 'SEARCH_TYPE', 'type' => 'select', 'method' => 'select_search_type', 'explain' => true),
- 'load_search_upd' => array('lang' => 'YES_SEARCH_UPDATE', 'type' => 'radio:yes_no', 'explain' => true),
- 'min_search_chars' => array('lang' => 'MIN_SEARCH_CHARS', 'type' => 'text:3:3', 'explain' => true),
- 'max_search_chars' => array('lang' => 'MAX_SEARCH_CHARS', 'type' => 'text:3:3', 'explain' => true)
+ 'load_tplcompile' => array('lang' => 'RECOMPILE_TEMPLATES', 'type' => 'radio:yes_no', 'explain' => true)
)
);
break;
@@ -571,33 +563,6 @@ class acp_board
return h_radio('config[board_disable]', $radio_ary, $value) . '<br /><input id="' . $key . '" type="text" name="config[board_disable_msg]" maxlength="255" size="40" value="' . $this->new_config['board_disable_msg'] . '" />';
}
-
- function select_search_type($selected_type, $key = '')
- {
- global $phpbb_root_path, $phpEx;
-
- $search_plugins = array();
-
- $dp = opendir($phpbb_root_path . 'includes/search');
- while (($file = readdir($dp)) !== false)
- {
- if ((preg_match('#\.' . $phpEx . '$#', $file)) && ($file != "search.$phpEx"))
- {
- $search_plugins[] = preg_replace('#^(.*?)\.' . $phpEx . '$#', '\1', $file);
- }
- }
-
- sort($search_plugins);
-
- $search_select = '';
- foreach ($search_plugins as $type)
- {
- $selected = ($selected_type == $type) ? ' selected="selected"' : '';
- $search_select .= '<option value="' . $type . '"' . $selected . '>' . ucfirst(strtolower(str_replace('_', ' ', $type))) . '</option>';
- }
-
- return $search_select;
- }
}
/**