INDEX_URL, 'root' => ROOT_URL, 'images' => IMAGE_URL, 'headers' => HEADER_URL, 'gallery' => GALLERY_URL, 'logos' => LOGO_URL, 'header_path' => HEADER_DIR, ) ); //$t->debugging = true; $t->assign('navigation', get_navigation()); $path = parse_path_vars($PATH_INFO); $t->assign('path', $path); $t->assign('referrer', join('/', $path)); if(!is_dir(EXEC_DIR . $path[0] . '.inc.php') && file_exists(EXEC_DIR . $path[0] . '.inc.php')) { include_once(EXEC_DIR . $path[0] . '.inc.php'); } if($t->template_exists($path[0] . '.main.tmpl.js')) { $t->display($path[0] . '.main.tmpl.js'); } else if($t->template_exists($path[0] . '.main.tmpl.css')) { $t->display($path[0] . '.main.tmpl.css'); } else { $t->display($path[0] . '.main.tmpl.html'); } ?>