1
Templates & Styles (Requests & Discussions) / Feste Suchbergiffe mit Templates verbinden ???
« on: March 08, 2003, 06:19:12 PM »
Das war's ! Jetzt funktioniert es einwandfrei. Super und tausend Dank!!!
![Very Happy :D](https://www.4homepages.de/forum/Smileys/default/icon_biggrin.gif)
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
define('GET_CACHES', 1);
define('ROOT_PATH', './');
include(ROOT_PATH.'global.php');
require(ROOT_PATH.'includes/sessions.php');
if (isset($HTTP_POST_VARS['search_keywords']) || isset($HTTP_GET_VARS['search_keywords'])) {
$site_sess->drop_session_var("search_template");
}
$custom_template = 'search_'.strtolower($search_keywords);
if (file_exists(TEMPLATE_PATH."/".$custom_template.".html")) {
$main_template = $custom_template;
$site_sess->set_session_var("search_template", $main_template);
}
elseif ($search_template = $site_sess->get_session_var("search_template")) {
$main_template = $search_template;
}
else {
$main_template = 'search';
}