connect(array('server' => 'localhost', 'username' => $config['database']['username'], 'password' => $config['database']['password'], 'database' => $config['database']['dbname'], 'character_set' => $config['database']['character_set'])); $common['tmp'] =& new Template(); $common['tmp']->path = 'templates'; $common['tmp']->displayErrors = false; $common['tmp']->htmlSafe = true; $common['auth'] =& new Authentication($common); $common['auth']->init(); $ps =& new UserPageSelector($common); $ps->execute(); $ps->assignToTemplate($common['tmp']); $common['tmp']->assign('selected_menu', $_SESSION['status']['selected_menu']); $common['tmp']->assign('user', array('data' => $common['auth']->getUserData(), 'rights' => $common['auth']->getUserRights())); $common['tmp']->assign('base_url', $config['base_url']); $endTime = explode(' ', microtime()); $common['tmp']->assign('page_generation_time', ($endTime[0] + $endTime[1]) - ($startTime[0] + $startTime[1])); $common['tmp']->display('index.tpl.php'); ob_flush(); ?>