1 <div style=
"text-align:center;">
2 <table cellspacing=
"5">
4 <td valign=
"top" align=
"right">
5 <b><?php print_string('configsearchtext', 'block_search') ?>:
</b>
7 <td valign=
"top" align=
"left">
8 <input id=
"block_search_text" type=
"text" name=
"block_search_text" value=
"<?php
9 if(isset($CFG->block_search_text)) {
10 p($CFG->block_search_text);
12 p(get_string('searchmoodle', 'block_search'));
17 <td valign
="top" align
="right">
18 <b
><?php
print_string('configbuttonlabel', 'block_search') ?>:
</b>
20 <td valign=
"top" align=
"left">
21 <input id=
"block_search_button" type=
"text" name=
"block_search_button" value=
"<?php
22 if(isset($CFG->block_search_button)) {
23 p($CFG->block_search_button);
25 p(get_string('go', 'block_search'));
30 <td valign
="top" align
="right">
31 <b
><?php
print_string('configenablefileindexing', 'block_search') ?>:
</b>
33 <td valign=
"top" align=
"left">
34 <input id=
"block_enable_file_indexing" type=
"radio" name=
"block_search_enable_file_indexing" value=
"1" <?php
35 if(isset($CFG->block_search_enable_file_indexing
) && $CFG->block_search_enable_file_indexing
) {
36 echo " checked=\"checked\" ";
37 } ?> /> <?php print_string('yes')
?> -
38 <input id=
"block_search_enable_file_indexing" type=
"radio" name=
"block_search_enable_file_indexing" value=
"0" <?php
39 if(!isset($CFG->block_search_enable_file_indexing
) ||
!$CFG->block_search_enable_file_indexing
) {
40 echo " checked=\"checked\" ";
41 } ?> /> <?php print_string('no')
?>
46 <td valign=
"top" align=
"right">
47 <b><?php print_string('configfiletypes', 'block_search') ?>:
</b>
49 <td valign=
"top" align=
"left">
50 <input id=
"block_search_filetypes" type=
"text" name=
"block_search_filetypes" value=
"<?php
51 if(isset($CFG->block_search_filetypes)) {
52 p($CFG->block_search_filetypes);
54 p("PDF
,TXT
,HTML
,PPT
,XML
,DOC
,HTM
");
59 <td valign
="top" align
="right">
60 <b
><?php
print_string('configpdftotextcmd', 'block_search') ?>:
</b>
62 <td valign=
"top" align=
"left">
63 <input id=
"block_search_pdf_to_text_cmd" type=
"text" size=
"60" name=
"block_search_pdf_to_text_cmd" value=
"<?php
64 if(isset($CFG->block_search_pdf_to_text_cmd)) {
65 p($CFG->block_search_pdf_to_text_cmd);
67 $encoding = ($CFG->unicodedb) ? "-enc UTF
-8" : "-enc ISO
-8859-1" ;
68 if ($CFG->ostype == 'WINDOWS'){
69 p("lib
/xpdf
/win32
/pdftotext
.exe
-eol dos
$encoding -q
");
72 p("lib
/xpdf
/linux
/pdftotext
$encoding -eol unix
-q
");
78 <td valign
="top" align
="right">
79 <b
><?php
print_string('configwordtotextcmd', 'block_search') ?>:
</b>
81 <td valign=
"top" align=
"left">
82 <input id=
"block_search_word_to_text_cmd" type=
"text" size=
"60" name=
"block_search_word_to_text_cmd" value=
"<?php
83 if(isset($CFG->block_search_word_to_text_cmd)) {
84 p($CFG->block_search_word_to_text_cmd);
86 if ($CFG->ostype == 'WINDOWS'){
87 p("lib
/antiword
/win32
/antiword
/antiword
.exe
");
90 p("lib
/antiword
/linux
/usr
/bin
/antiword
");
96 <td valign
="top" align
="right">
97 <b
><?php
print_string('configwordtotextenv', 'block_search') ?>:
</b>
99 <td valign=
"top" align=
"left">
100 <input id=
"block_search_word_to_text_env" type=
"text" size=
"60" name=
"block_search_word_to_text_env" value=
"<?php
101 if(isset($CFG->block_search_word_to_text_env)) {
102 echo stripslashes($CFG->block_search_word_to_text_env);
104 if ($CFG->ostype == 'WINDOWS'){
105 p("HOME
={$CFG->dirroot
}\\lib\\antiword\\win32
");
108 p("ANTIWORDHOME
={$CFG->dirroot
}/lib
/antiword
/linux
/usr
/share
/antiword
");
114 <td valign
="top" align
="right">
115 <b
><?php
print_string('configlimitindexbody', 'block_search') ?>:
</b>
117 <td valign=
"top" align=
"left">
118 <input id=
"block_search_limit_index_body" type=
"text" size=
"8" name=
"block_search_limit_index_body" value=
"<?php
119 if(isset($CFG->block_search_limit_index_body)) {
120 p($CFG->block_search_limit_index_body);
123 } ?>"/> <?php
print_string('bytes', 'block_search') ?><br/><br/>
127 <td valign=
"top" align=
"right" colspan=
"2">
128 <input type=
"submit" value=
"<?php print_string('savechanges'); ?>" />