|
|
Generated by
SiSU 6.3.1 2014-10-19 (2014w41/7)
|
SiSU using:
| |
SiSU is released under GPL v3 or later, https://www.gnu.org/licenses/gpl.html |
SiSU, developed using Ruby on Debian/Gnu/Linux software infrastructure, with the usual GPL (or OSS) suspects. |
ocn #{c['ocn']}:
#{matched_para}} elsif c['suffix'] =~/1/ #doc %{#{title}ocn #{c['ocn']}:#{c['body']}}
end
@counter_txt_ocn+=1
output=title+text
else #elsif cgi['view']=~/index/ #% idx body
if c['suffix'] !~/1/ #seg
index=%{#{c['ocn']}, } if @text_search_flag
elsif c['suffix'] =~/1/ #doc #FIX
index=%{#{c['ocn']}, }
end
if c['seg_name'] =~/\S+/
if @text_search_flag
@counter_txt_ocn+=1
output=title+index
end
else
@counter_txt_ocn+=1
output=c['suffix'] !~/1/ \
? title+index
: %{#{title}#{c['ocn'].sort}, }
end
end
else output=title
end
@counters_txt=if @counter_txt_doc > 0
if checked_stats =~/\S/
@@lt_t=(@counter_txt_ocn==dbi_statement.sql_match_limit.to_i) ? true : false
start=(@@offset.to_i+1).to_s
range=(@@offset.to_i+@counter_txt_ocn.to_i).to_s
%{
Found #{@counter_txt_ocn} times in the main body of #{@counter_txt_doc} documents [ matches #{start} to #{range} ]
}
else ''
end
else ''
end
@body_main << output #+ details
end
olduid = ""
offset=dbi_statement.sql_offset.to_s
limit=dbi_statement.sql_match_limit.to_s
@@lt_t ||=false; @@lt_e ||=false
canned=(@@lt_t or @@lt_e) \
? dbi_statement.pre_next(true,@image_src).to_s
: dbi_statement.pre_next(false,@image_src).to_s
limit=dbi_statement.sql_match_limit.to_s
cgi.out{
@header.force_encoding("UTF-8") \
+ @counters_txt.force_encoding("UTF-8") \
+ @counters_endn.force_encoding("UTF-8") \
+ canned.force_encoding("UTF-8") \
+ @body_main.force_encoding("UTF-8") \
+ canned.force_encoding("UTF-8") \
+ @tail.force_encoding("UTF-8")
} #% print cgi_output_header+counters+body
end
rescue Exception => e
s='' + CGI::escapeHTML(e.backtrace.reverse.join("\n"))
s << CGI::escapeHTML(e.message) + '
'
cgi.out{s}
next
ensure # eg. disconnect from server
@conn.disconnect if @conn
end
end