. * */ // ensure that only admin user access this page OCP\User::checkAdminUser(); OCP\Util::addScript('roundcube', 'adminSettings'); // fill template $params = array('maildir', 'removeHeaderNav', 'removeControlNav', 'autoLogin', 'enableDebug', 'rcHost', 'rcPort', 'rcRefreshInterval', 'rcNoCronRefresh'); $tmpl = new OCP\Template('roundcube', 'adminSettings'); foreach ($params as $param) { $value = OCP\Config::getAppValue('roundcube', $param, ''); $tmpl -> assign($param, $value); } // workaround to detect OC version $ocVersion = @reset(OCP\Util::getVersion()); $tmpl->assign('ocVersion', $ocVersion); return $tmpl -> fetchPage(); ?>