Hi. Perhaps try the following. Use the $template variable like so:
PHP Code:
phpdigSearch($id_connect, $query_string, $option, $refine,
$refine_url, $lim_start, $limite, $browse,
$site, $path, $relative_script_path, $template);
and set the $template variable to your new template in the config file, right below the template file and style comment.