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

work on

parent b995391b
Loading
Loading
Loading
Loading
Loading
+24 −4
Changes for src/admin.cpp: 24 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -2107,17 +2107,35 @@ namespace authdb {
            throw AuthBackendError("login: Wrong Password or Username!");
        }

        void createClient(libhttppp::HttpRequest *curreq, const int tid, ULONG_PTR args){

        }

        void listClients(libhttppp::HttpRequest *curreq, const int tid, ULONG_PTR args){
            libhtmlpp::HtmlElement index=_IndexElement;

            libhtmlpp::HtmlElement headline("span");
            libhtmlpp::HtmlElement headline("span"),table("table"),toolbar("ul");

            headline.insertChild(libhtmlpp::TextElement("List CLients"));

            toolbar.setAttribute("id","clienttoolbar");

            libhtmlpp::HtmlElement create("a"),list("li");

            create.setAttribute("href","/settings/admin/createclient");
            create.setAttribute("class","button");
            create.insertChild(libhtmlpp::TextElement("Create client"));

            list.appendChild(create);

            toolbar.insertChild(list);

            libhtmlpp::HtmlElement *content=index.getElementbyID("content");

            if(content)
                content->appendChild(&headline);
            if(content){
                content->appendChild(headline);
                content->appendChild(toolbar);
            }

            libhtmlpp::HtmlString sendat;

@@ -2263,7 +2281,9 @@ namespace authdb {
                removeGPO(curreq,tid,args);
            }else if(strncmp("editgpo",url,7)==0){
                editGpo(curreq,tid,args);
            }else if(strncmp("listclients",url,7)==0){
            }else if(strncmp("listclients",url,10)==0){
                listClients(curreq,tid,args);
            }else if(strncmp("createclient",url,11)==0){
                listClients(curreq,tid,args);
            }else{
URLNOTFOUND: