while waiting for the "better" version
there is 2 bug for the search.php which you modify
that is when include the mainfile.php and the searchform.php
i think you put it as include(mainfile.php) instead of include (../../mainfile.php)..same to searchform.php too
Regards