From: Gabriele B. <g.b...@co...> - 2002-02-13 16:31:06
|
>opened up any security holes right in htsearch. What did you have >to change directly in htsearch, or did you manage everything by using >template files to spit out the PHP code? I think the more you do with Sorry Gilles, I didn't explain it very well! Yes, everything is made by using template files. No change to the internal code. For instance this is the header template file content: \$_Head['matches'] = $(MATCHES); \$_Head['firstdisplayed'] = $(FIRSTDISPLAYED); \$_Head['lastdisplayed'] = $(LASTDISPLAYED); \$_Head['logical_words'] = '$%(LOGICAL_WORDS)'; \$i = 0; whereas here is the code for the results template: \$_Results[\$i]['title'] = '$%(TITLE)'; \$_Results[\$i]['url'] = '$%(URL)'; \$_Results[\$i]['percent'] = $(PERCENT); \$_Results[\$i]['excerpt'] = '$%(EXCERPT)'; \$i += 1; As you can see I am not using all of the variables. Just a few. Anyway, I just need to evaluate the code resulting from htsearch and ... that's it. I have 2 associative arrays, one called $_Head and one called $_Result. Let me know what you think about it! Ciao and thanks again -Gabriele -- Gabriele Bartolini - Computer Programmer U.O. Rete Civica - Comune di Prato - Prato - Italia - Europa g.b...@co... | http://www.po-net.prato.it/ The nice thing about Windows is - It does not just crash, it displays a dialog box and lets you press 'OK' first. |