zfs subpool $subpools = ['special','logs','dedup','cache','spares']; // Read network settings extract(parse_ini_file('state/network.ini',true)); // Language translations $_SESSION['locale'] = _var($display,'locale'); $_SESSION['buildDate'] = date('Ymd',_var($var,'regBuildTime')); require_once "$docroot/webGui/include/Translations.php"; // Build webGui pages first, then plugins pages require_once "$docroot/webGui/include/PageBuilder.php"; $site = []; build_pages('webGui/*.page'); foreach (glob('plugins/*', GLOB_ONLYDIR) as $plugin) { if ($plugin != 'plugins/dynamix') build_pages("$plugin/*.page"); } // Get general variables $name = untangle(_var($_GET,'name')); $dir = rawurldecode(_var($_GET,'dir')); $path = substr(strtok(_var($_SERVER,'REQUEST_URI'),'?'),1); // The current "task" is the first element of the path $task = strtok($path,'/'); // Here's the page we're rendering $myPage = $site[basename($path)]; $pageroot = $docroot.'/'._var($myPage,'root'); // Nchan script start/stop tracking $nchan_pid = "/var/run/nchan.pid"; $nchan_run = ""; // Giddyup require_once "$docroot/webGui/include/DefaultPageLayout.php"; ?>