From d31c02e7d5bc65b9f3a3b747e4bd56ffda38e053 Mon Sep 17 00:00:00 2001 From: Jim Hu Date: Sat, 20 Dec 2008 05:05:25 +0000 Subject: add default_path to search.php --- search.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'search.php') diff --git a/search.php b/search.php index c25ea85..2c02912 100644 --- a/search.php +++ b/search.php @@ -2,11 +2,11 @@ define('BASE','./'); $current_view = 'search'; -$display_date = $lang['l_results']; require_once(BASE.'functions/ical_parser.php'); require_once(BASE.'functions/list_functions.php'); require_once(BASE.'functions/template.php'); -header("Content-Type: text/html; charset=$charset"); +header("Content-Type: text/html; charset=$phpiCal_config->charset"); +$display_date = $lang['l_results']; if (isset($_SERVER['HTTP_REFERER']) && $_SERVER['HTTP_REFERER'] != '') { $back_page = $_SERVER['HTTP_REFERER']; @@ -27,7 +27,7 @@ $search_box .= ''."\n". ''."\n". ''."\n". - ''."\n". + ''."\n". ''; $search_started = getmicrotime(); @@ -277,21 +277,22 @@ function format_recur($arr) { } -$page = new Page(BASE.'templates/'.$template.'/search.tpl'); +$page = new Page(BASE.'templates/'.$phpiCal_config->template.'/search.tpl'); $page->draw_search($page); $page->replace_files(array( - 'header' => BASE.'templates/'.$template.'/header.tpl', - 'footer' => BASE.'templates/'.$template.'/footer.tpl', - 'sidebar' => BASE.'templates/'.$template.'/sidebar.tpl', + 'header' => BASE.'templates/'.$phpiCal_config->template.'/header.tpl', + 'footer' => BASE.'templates/'.$phpiCal_config->template.'/footer.tpl', + 'sidebar' => BASE.'templates/'.$phpiCal_config->template.'/sidebar.tpl', 'event_js' => BASE.'functions/event.js', )); $page->replace_tags(array( - 'version' => $phpicalendar_version, + 'version' => $phpiCal_config->phpicalendar_version, + 'default_path' => $phpiCal_config->default_path, 'formatted_search' => $formatted_search, 'l_results' => $lang['l_results'], 'l_query' => $lang['l_query'], @@ -303,15 +304,14 @@ $page->replace_tags(array( 'l_exception' => $lang['l_exception'], 'l_no_results' => $lang['l_no_results'], 'search_box' => $search_box, - 'charset' => $charset, - 'template' => $template, + 'charset' => $phpiCal_config->charset, + 'template' => $phpiCal_config->template, 'cal' => $cal, 'getdate' => $getdate, 'cpath' => $cpath, 'calendar_name' => $cal_displayname, 'display_date' => $display_date, 'rss_powered' => $rss_powered, - 'default_path' => '', 'rss_available' => '', 'rss_valid' => '', 'show_search' => $show_search, @@ -352,4 +352,4 @@ $page->output(); #echo "
";
 #print_r($the_arr);
 #echo "
"; -?> +?> \ No newline at end of file -- cgit v1.2.3