'en_UK')); $template->set_filename('TAT_js_css', PHPWG_PLUGINS_PATH.'TakeATour/tpl/js_css.tpl'); $template->assign( array( 'ADMIN_THEME' => $conf['admin_theme'], ) ); $template->parse('TAT_js_css'); if (isset($TAT_restart) and $TAT_restart) { $TAT_restart=false; $template->assign('TAT_restart',true); } $tat_path=str_replace(basename($_SERVER['SCRIPT_NAME']),'', $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME']); $template->assign('TAT_path', $tat_path); @include('tours/'.$tour_to_launch.'/config_preparse.inc.php'); $template->set_filename('TAT_tour_tpl', PHPWG_PLUGINS_PATH.'TakeATour/tours/'.$tour_to_launch.'/tour.tpl'); $template->parse('TAT_tour_tpl'); } /** Add link in Help pages **/ add_event_handler('loc_end_help','TAT_help'); function TAT_help() { global $template; load_language('plugin.lang', PHPWG_PLUGINS_PATH .'TakeATour/'); $template->set_prefilter('help', 'TAT_help_prefilter'); } function TAT_help_prefilter($content, &$smarty) { $search = '