setServer('localhost'); $mysql->setUsername('root'); $mysql->setPassword(''); $mysql->setDatabase('levelde_core'); $mysql->connect(); $config = $mysql->query('SELECT * FROM configuration', TRUE); $news = $mysql->query('SELECT * FROM news', TRUE); include('includes/smarty/Smarty.class.php'); $smarty = new Smarty(); $smarty->template_dir = 'templates'; $smarty->compile_dir = 'templates_c'; $smarty->config_dir = 'configs'; $smarty->cache_dir = 'cache'; $smarty->assign('config', $config); $smarty->assign('news', $news); $smarty->display('header.tpl'); $smarty->display('index.tpl'); $smarty->display('footer.tpl'); ?>