set_base_dir($basedir); $config = $conf_obj->get(); $theme = ( !array_key_exists( 'theme', $config ) || empty($config['theme']) ? 'default' : $config['theme'] ); $themedir = "$basedir/templates/$theme"; if(empty($config)) { # XXX Need to have manual be hosted in repo under sys/admin/manual include( "$themedir/notconfigured.tmpl" ); die(); } $docroot = realpath( __DIR__ ); $nav = ( !empty($_GET['nav'] ) ) ? $_GET['nav'] : ''; $post = ( !empty($_GET['post'] ) ) ? $_GET['post'] : ''; // Not sure if I'll ever really even need to localize (see html tag attrs). ?>