From: <ji...@us...> - 2008-12-20 05:05:28
|
Update of /cvsroot/phpicalendar/phpicalendar In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv17150 Modified Files: search.php Log Message: add default_path to search.php Index: search.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/search.php,v retrieving revision 1.41 retrieving revision 1.42 diff -C2 -d -r1.41 -r1.42 *** search.php 28 Jun 2006 23:43:32 -0000 1.41 --- search.php 20 Dec 2008 05:05:25 -0000 1.42 *************** *** 3,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"); if (isset($_SERVER['HTTP_REFERER']) && $_SERVER['HTTP_REFERER'] != '') { --- 3,11 ---- define('BASE','./'); $current_view = 'search'; 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=$phpiCal_config->charset"); ! $display_date = $lang['l_results']; if (isset($_SERVER['HTTP_REFERER']) && $_SERVER['HTTP_REFERER'] != '') { *************** *** 28,32 **** '<input type="hidden" name="getdate" value="'.$getdate.'">'."\n". '<input type="text" size="15" name="query" value="'.$query.'">'."\n". ! '<INPUT type="image" src="templates/'.$template.'/images/search.gif" border=0 height="19" width="18" name="submit" value="Search">'."\n". '</form>'; --- 28,32 ---- '<input type="hidden" name="getdate" value="'.$getdate.'">'."\n". '<input type="text" size="15" name="query" value="'.$query.'">'."\n". ! '<INPUT type="image" src="templates/'.$phpiCal_config->template.'/images/search.gif" border=0 height="19" width="18" name="submit" value="Search">'."\n". '</form>'; *************** *** 278,282 **** ! $page = new Page(BASE.'templates/'.$template.'/search.tpl'); $page->draw_search($page); --- 278,282 ---- ! $page = new Page(BASE.'templates/'.$phpiCal_config->template.'/search.tpl'); $page->draw_search($page); *************** *** 284,290 **** $page->replace_files(array( ! 'header' => BASE.'templates/'.$template.'/header.tpl', ! 'footer' => BASE.'templates/'.$template.'/footer.tpl', ! 'sidebar' => BASE.'templates/'.$template.'/sidebar.tpl', 'event_js' => BASE.'functions/event.js', )); --- 284,290 ---- $page->replace_files(array( ! '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', )); *************** *** 292,296 **** $page->replace_tags(array( ! 'version' => $phpicalendar_version, 'formatted_search' => $formatted_search, 'l_results' => $lang['l_results'], --- 292,297 ---- $page->replace_tags(array( ! 'version' => $phpiCal_config->phpicalendar_version, ! 'default_path' => $phpiCal_config->default_path, 'formatted_search' => $formatted_search, 'l_results' => $lang['l_results'], *************** *** 304,309 **** 'l_no_results' => $lang['l_no_results'], 'search_box' => $search_box, ! 'charset' => $charset, ! 'template' => $template, 'cal' => $cal, 'getdate' => $getdate, --- 305,310 ---- 'l_no_results' => $lang['l_no_results'], 'search_box' => $search_box, ! 'charset' => $phpiCal_config->charset, ! 'template' => $phpiCal_config->template, 'cal' => $cal, 'getdate' => $getdate, *************** *** 312,316 **** 'display_date' => $display_date, 'rss_powered' => $rss_powered, - 'default_path' => '', 'rss_available' => '', 'rss_valid' => '', --- 313,316 ---- *************** *** 353,355 **** #print_r($the_arr); #echo "</pre>"; ! ?> --- 353,355 ---- #print_r($the_arr); #echo "</pre>"; ! ?> \ No newline at end of file |