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('usemoodleroot', 'block_search') ?>:
</b>
62 <td valign=
"top" align=
"left">
64 $usemoodleroot = (isset($CFG->block_search_usemoodleroot
)) ?
'checked="checked"' : '' ;
65 $notusemoodleroot = (!isset($CFG->block_search_usemoodleroot
)) ?
'checked="checked"' : '' ;
67 <input id=
"block_search_usemoodleroot" type=
"radio" name=
"block_search_usemoodleroot" <?php echo $usemoodleroot ?> value=
"1"/> <?php print_string('yes')
?> -
68 <input id=
"block_search_usemoodleroot" type=
"radio" name=
"block_search_usemoodleroot" <?php echo $notusemoodleroot ?> value=
"0"/> <?php print_string('no')
?>
73 <td valign=
"top" align=
"right">
74 <b><?php print_string('configpdftotextcmd', 'block_search') ?>:
</b>
76 <td valign=
"top" align=
"left">
77 <input id=
"block_search_pdf_to_text_cmd" type=
"text" size=
"60" name=
"block_search_pdf_to_text_cmd" value=
"<?php
78 if(isset($CFG->block_search_pdf_to_text_cmd)) {
79 p($CFG->block_search_pdf_to_text_cmd);
81 $encoding = ($CFG->unicodedb) ? "-enc UTF
-8" : "-enc ISO
-8859-1" ;
82 if ($CFG->ostype == 'WINDOWS'){
83 p("lib
/xpdf
/win32
/pdftotext
.exe
-eol dos
$encoding -q
");
86 p("lib
/xpdf
/linux
/pdftotext
$encoding -eol unix
-q
");
92 <td valign
="top" align
="right">
93 <b
><?php
print_string('configwordtotextcmd', 'block_search') ?>:
</b>
95 <td valign=
"top" align=
"left">
96 <input id=
"block_search_word_to_text_cmd" type=
"text" size=
"60" name=
"block_search_word_to_text_cmd" value=
"<?php
97 if(isset($CFG->block_search_word_to_text_cmd)) {
98 p($CFG->block_search_word_to_text_cmd);
100 if ($CFG->ostype == 'WINDOWS'){
101 p("lib
/antiword
/win32
/antiword
/antiword
.exe
");
104 p("lib
/antiword
/linux
/usr
/bin
/antiword
");
110 <td valign
="top" align
="right">
111 <b
><?php
print_string('configwordtotextenv', 'block_search') ?>:
</b>
113 <td valign=
"top" align=
"left">
114 <input id=
"block_search_word_to_text_env" type=
"text" size=
"60" name=
"block_search_word_to_text_env" value=
"<?php
115 if(isset($CFG->block_search_word_to_text_env)) {
116 echo stripslashes($CFG->block_search_word_to_text_env);
118 if ($CFG->ostype == 'WINDOWS'){
119 p("HOME
={$CFG->dirroot
}\\lib\\antiword\\win32
");
122 p("ANTIWORDHOME
={$CFG->dirroot
}/lib
/antiword
/linux
/usr
/share
/antiword
");
128 <td valign
="top" align
="right">
129 <b
><?php
print_string('configlimitindexbody', 'block_search') ?>:
</b>
131 <td valign=
"top" align=
"left">
132 <input id=
"block_search_limit_index_body" type=
"text" size=
"8" name=
"block_search_limit_index_body" value=
"<?php
133 if(isset($CFG->block_search_limit_index_body)) {
134 p($CFG->block_search_limit_index_body);
137 } ?>"/> <?php
print_string('bytes', 'block_search') ?><br/><br/>
141 <td valign=
"top" align=
"right" colspan=
"2">
142 <input type=
"submit" value=
"<?php print_string('savechanges'); ?>" />