Exemplo n.º 1
0
            usort($users, array('\\svnadmin\\core\\entities\\User', "compare"));
            SetValue("UserList", $users);
            SetValue("ShowUserSelection", true);
        }
    } else {
        $appEngine->addException(new Exception(tr("You have to define a user view provider.")));
    }
    ProcessTemplate("settings/setadmin.html.php");
    exit(0);
}
////////////////////////////////////////////////////////////////////////////////
// Form values.
////////////////////////////////////////////////////////////////////////////////
// Load template configuration. (Read only!)
$cfgTpl = new \IF_IniFile();
$cfgTpl->loadFromFile("data/config.tpl.ini");
// SVNAuthFile
$svnAuthFile = $cfgEngine->getValue("Subversion", "SVNAuthFile");
$svnAuthFileEx = $cfgTpl->getValue("Subversion", "SVNAuthFile");
SetValue("SVNAuthFile", $svnAuthFile);
SetValue("SVNAuthFileEx", $svnAuthFileEx);
// UserViewProviderType
$userViewProviderTypes = array("passwd", "digest", "ldap");
array_unshift($userViewProviderTypes, $cfgEngine->getValue("Engine:Providers", "UserViewProviderType"));
SetValue("userViewProviderTypes", $userViewProviderTypes);
// UserEditProviderType
$userEditProviderTypes = array("off", "passwd", "digest");
array_unshift($userEditProviderTypes, $cfgEngine->getValue("Engine:Providers", "UserEditProviderType"));
SetValue("userEditProviderTypes", $userEditProviderTypes);
// GroupViewProviderType
$groupViewProviderTypes = array("off", "svnauthfile", "ldap");
Exemplo n.º 2
0
 /**
  * Private constructor, because the class is a singelton instance.
  * @return \svnadmin\core\Engine
  */
 private function __construct()
 {
     // Load the global configuration.
     $this->m_config = new \IF_IniFile();
     $this->m_config->loadFromFile("./data/config.ini");
 }