Commit ee826124 authored by jan.koester's avatar jan.koester
Browse files

change

parent fee05e28
Loading
Loading
Loading
Loading
+6 −30
Changes for src/conf.cpp: 6 added lines, 30 removed lines.
Original line number Diff line number Diff line
@@ -36,56 +36,32 @@ blogi::Config::Config(const std::string &path) : confplus::Config(path){
        }
    }

    if(getKey("/BLOGI/DATABASE/DRIVER"))
    _DBDriver=getValue(getKey("/BLOGI/DATABASE/DRIVER"),0);

    if(getKey("/BLOGI/DATABASE/CONNECTION"))
    _DBConnection=getValue(getKey("/BLOGI/DATABASE/CONNECTION"),0);

    if(getKey("/BLOGI/AUTHDB/URL"))
    _AuthUrl=getValue(getKey("/BLOGI/AUTHDB/URL"),0);

    if(getKey("/BLOGI/AUTHDB/CLIENTNAME"))
    _ClientName=getValue(getKey("/BLOGI/AUTHDB/CLIENTNAME"),0);

    if(getKey("/BLOGI/AUTHDB/CLIENTSECRET"))
    _ClientSecret=getValue(getKey("/BLOGI/AUTHDB/CLIENTSECRET"),0);

    if(getKey("/BLOGI/HTTP/BIND"))
    _HttpBind=getValue(getKey("/BLOGI/HTTP/BIND"),0);

    if(getKey("/BLOGI/HTTP/PORT"))
    try {
        _HttpPort = getIntValue(getKey("/BLOGI/HTTP/PORT"), 0);
    else
    } catch (...) {
        _HttpPort = -1;

    if(getKey("/BLOGI/HTTP/MAXCON"))
    }
    try {
        _MaxCon = getIntValue(getKey("/BLOGI/HTTP/MAXCON"), 0);
    else
    } catch (...) {
        _MaxCon = -1;

    if(getKey("/BLOGI/HTTP/URL"))
    }
    _HttpUrl=getValue(getKey("/BLOGI/HTTP/URL"),0);

    if(getKey("/BLOGI/HTTP/PREFIX"))
    _HttpPrefix=getValue(getKey("/BLOGI/HTTP/PREFIX"),0);

    if(getKey("/BLOGI/TEMPLATE"))
    _Template=getValue(getKey("/BLOGI/TEMPLATE"),0);

    if(getKey("/BLOGI/STARTPAGE"))
    _StartPage=getValue(getKey("/BLOGI/STARTPAGE"),0);

    try{
        if(getKey("/BLOGI/HTTP/SSLCERTPATH"))
        _SSLCertpath=getValue(getKey("/BLOGI/HTTP/SSLCERTPATH"),0);

        if(getKey("/BLOGI/HTTP/SSLKEYPATH"))
        _SSLKeypath=getValue(getKey("/BLOGI/HTTP/SSLKEYPATH"),0);
    }catch(...){
    }

    if(getKey("/BLOGI/DOMAIN/NAME"))
    _Domain=getValue(getKey("/BLOGI/DOMAIN/NAME"),0);

    try{
+54 −54

File changed.

Contains only whitespace changes.