Loading plugins/content/content.cpp +12 −12 Original line number Diff line number Diff line Loading @@ -91,7 +91,7 @@ namespace blogi { if (ncount<1) { *condat << " </div>"; std::string out; libhtmlpp::HtmlString out; page->getElementbyID("main")->insertChild(condat->parse());; Args->theme->printSite(out,page,curreq->getRequestURL(),Args->auth->isLoggedIn(curreq,sid),meta.c_str()); Loading @@ -99,7 +99,7 @@ namespace blogi { resp.setVersion(HTTPVERSION(1.1)); resp.setState(HTTP200); resp.setContentType("text/html"); resp.send(curcon,out.c_str(),out.length()); resp.send(curcon,out.c_str(),out.size()); delete condat; return; Loading Loading @@ -148,7 +148,7 @@ namespace blogi { *condat << "</ul></div>"; } std::string out; libhtmlpp::HtmlString out; page->getElementbyID("main")->insertChild(condat->parse()); Loading @@ -161,7 +161,7 @@ namespace blogi { resp.setVersion(HTTPVERSION(1.1)); resp.setState(HTTP200); resp.setContentType("text/html"); resp.send(curcon,out.c_str(),out.length()); resp.send(curcon,out.c_str(),out.size()); out; }; Loading Loading @@ -203,7 +203,7 @@ namespace blogi { << "<span class=\"author\">verfasst von " << res[0][3] << " am "<< res[0][4] <<" </span>" << "</div></div>"; std::string out; libhtmlpp::HtmlString out; try{ page.getElementbyID("main")->insertChild(condat->parse()); Loading @@ -221,7 +221,7 @@ namespace blogi { resp.setVersion(HTTPVERSION(1.1)); resp.setState(HTTP200); resp.setContentType("text/html"); resp.send(curcon,out.c_str(),out.length()); resp.send(curcon,out.c_str(),out.size()); }; void addPostPage(netplus::con *curcon,libhttppp::HttpRequest *curreq,libhtmlpp::HtmlElement &page){ Loading Loading @@ -358,7 +358,7 @@ namespace blogi { << "</form>" << "</div>"; std::string out; libhtmlpp::HtmlString out; page.getElementbyID("main")->insertChild(condat.parse()); Loading @@ -368,7 +368,7 @@ namespace blogi { resp.setVersion(HTTPVERSION(1.1)); resp.setState(HTTP200); resp.setContentType("text/html"); resp.send(curcon,out.c_str(),out.length()); resp.send(curcon,out.c_str(),out.size()); } void delPostPage(netplus::con* curcon, libhttppp::HttpRequest* curreq,libhtmlpp::HtmlElement &page) { Loading Loading @@ -405,7 +405,7 @@ namespace blogi { condat << "<span>Beitrag geloescht</span>"; std::string out; libhtmlpp::HtmlString out; try{ page.getElementbyID("main")->insertChild(condat.parse()); Loading @@ -420,7 +420,7 @@ namespace blogi { resp.setVersion(HTTPVERSION(1.1)); resp.setState(HTTP200); resp.setContentType("text/html"); resp.send(curcon,out.c_str(),out.length()); resp.send(curcon,out.c_str(),out.size()); } Loading Loading @@ -606,7 +606,7 @@ namespace blogi { << "</form>" << "</div>"; }; std::string out; libhtmlpp::HtmlString out; try{ page.getElementbyID("main")->insertChild(condat.parse()); Loading @@ -620,7 +620,7 @@ namespace blogi { resp.setVersion(HTTPVERSION(1.1)); resp.setState(HTTP200); resp.setContentType("text/html"); resp.send(curcon,out.c_str(),out.length()); resp.send(curcon,out.c_str(),out.size()); } const char *getName(){ Loading plugins/gameinfo/gameinfo.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -131,7 +131,8 @@ namespace blogi { condat << "</div>"; std::string out,sid; libhtmlpp::HtmlString out; std::string sid; page->getElementbyID("main")->insertChild(condat.parse()); Args->theme->printSite(out,page,req->getRequestURL(), Loading @@ -141,7 +142,7 @@ namespace blogi { resp.setVersion(HTTPVERSION(1.1)); resp.setState(HTTP200); resp.setContentType("text/html"); resp.send(curcon,out.c_str(),out.length()); resp.send(curcon,out.c_str(),out.size()); return true; } Loading plugins/nginxfiler/filer.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -321,8 +321,8 @@ namespace blogi { throw e; } libhtmlpp::HtmlString fileHtml; std::string out,sid; libhtmlpp::HtmlString fileHtml,out; std::string sid; try{ RenderUI(path,ndir,fileHtml); Loading @@ -344,7 +344,7 @@ namespace blogi { curres.setVersion(HTTPVERSION(1.1)); curres.setContentType("text/html"); curres.setState(HTTP200); curres.send(curcon, out.c_str(),out.length()); curres.send(curcon, out.c_str(),out.size()); }catch(libhttppp::HTTPException &e){ libhttppp::HttpResponse curres; curres.setVersion(HTTPVERSION(1.1)); Loading plugins/nodeinfo/nodeinfo.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -114,7 +114,8 @@ namespace blogi { html.setAttribute("id","content"); html.insertChild(&table); std::string out,sid,systable; libhtmlpp::HtmlString out,systable; std::string sid; libhtmlpp::print(&html,systable); libhtmlpp::HtmlString condat; Loading @@ -132,7 +133,7 @@ namespace blogi { resp.setVersion(HTTPVERSION(1.1)); resp.setState(HTTP200); resp.setContentType("text/html"); resp.send(curcon,out.c_str(),out.length()); resp.send(curcon,out.c_str(),out.size()); return true; } Loading plugins/staticpage/static.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -351,7 +351,7 @@ bool blogi::StaticPage::Controller(netplus::con *curcon,libhttppp::HttpRequest * throw excep; } std::string out; libhtmlpp::HtmlString out; condat << "<div id=\"content\" class=\"staticpage\" >" << res[0][1] << "</div>"; Loading @@ -363,7 +363,7 @@ bool blogi::StaticPage::Controller(netplus::con *curcon,libhttppp::HttpRequest * resp.setVersion(HTTPVERSION(1.1)); resp.setState(HTTP200); resp.setContentType("text/html"); resp.send(curcon,out.c_str(),out.length()); resp.send(curcon,out.c_str(),out.size()); return true; } return false; Loading Loading
plugins/content/content.cpp +12 −12 Original line number Diff line number Diff line Loading @@ -91,7 +91,7 @@ namespace blogi { if (ncount<1) { *condat << " </div>"; std::string out; libhtmlpp::HtmlString out; page->getElementbyID("main")->insertChild(condat->parse());; Args->theme->printSite(out,page,curreq->getRequestURL(),Args->auth->isLoggedIn(curreq,sid),meta.c_str()); Loading @@ -99,7 +99,7 @@ namespace blogi { resp.setVersion(HTTPVERSION(1.1)); resp.setState(HTTP200); resp.setContentType("text/html"); resp.send(curcon,out.c_str(),out.length()); resp.send(curcon,out.c_str(),out.size()); delete condat; return; Loading Loading @@ -148,7 +148,7 @@ namespace blogi { *condat << "</ul></div>"; } std::string out; libhtmlpp::HtmlString out; page->getElementbyID("main")->insertChild(condat->parse()); Loading @@ -161,7 +161,7 @@ namespace blogi { resp.setVersion(HTTPVERSION(1.1)); resp.setState(HTTP200); resp.setContentType("text/html"); resp.send(curcon,out.c_str(),out.length()); resp.send(curcon,out.c_str(),out.size()); out; }; Loading Loading @@ -203,7 +203,7 @@ namespace blogi { << "<span class=\"author\">verfasst von " << res[0][3] << " am "<< res[0][4] <<" </span>" << "</div></div>"; std::string out; libhtmlpp::HtmlString out; try{ page.getElementbyID("main")->insertChild(condat->parse()); Loading @@ -221,7 +221,7 @@ namespace blogi { resp.setVersion(HTTPVERSION(1.1)); resp.setState(HTTP200); resp.setContentType("text/html"); resp.send(curcon,out.c_str(),out.length()); resp.send(curcon,out.c_str(),out.size()); }; void addPostPage(netplus::con *curcon,libhttppp::HttpRequest *curreq,libhtmlpp::HtmlElement &page){ Loading Loading @@ -358,7 +358,7 @@ namespace blogi { << "</form>" << "</div>"; std::string out; libhtmlpp::HtmlString out; page.getElementbyID("main")->insertChild(condat.parse()); Loading @@ -368,7 +368,7 @@ namespace blogi { resp.setVersion(HTTPVERSION(1.1)); resp.setState(HTTP200); resp.setContentType("text/html"); resp.send(curcon,out.c_str(),out.length()); resp.send(curcon,out.c_str(),out.size()); } void delPostPage(netplus::con* curcon, libhttppp::HttpRequest* curreq,libhtmlpp::HtmlElement &page) { Loading Loading @@ -405,7 +405,7 @@ namespace blogi { condat << "<span>Beitrag geloescht</span>"; std::string out; libhtmlpp::HtmlString out; try{ page.getElementbyID("main")->insertChild(condat.parse()); Loading @@ -420,7 +420,7 @@ namespace blogi { resp.setVersion(HTTPVERSION(1.1)); resp.setState(HTTP200); resp.setContentType("text/html"); resp.send(curcon,out.c_str(),out.length()); resp.send(curcon,out.c_str(),out.size()); } Loading Loading @@ -606,7 +606,7 @@ namespace blogi { << "</form>" << "</div>"; }; std::string out; libhtmlpp::HtmlString out; try{ page.getElementbyID("main")->insertChild(condat.parse()); Loading @@ -620,7 +620,7 @@ namespace blogi { resp.setVersion(HTTPVERSION(1.1)); resp.setState(HTTP200); resp.setContentType("text/html"); resp.send(curcon,out.c_str(),out.length()); resp.send(curcon,out.c_str(),out.size()); } const char *getName(){ Loading
plugins/gameinfo/gameinfo.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -131,7 +131,8 @@ namespace blogi { condat << "</div>"; std::string out,sid; libhtmlpp::HtmlString out; std::string sid; page->getElementbyID("main")->insertChild(condat.parse()); Args->theme->printSite(out,page,req->getRequestURL(), Loading @@ -141,7 +142,7 @@ namespace blogi { resp.setVersion(HTTPVERSION(1.1)); resp.setState(HTTP200); resp.setContentType("text/html"); resp.send(curcon,out.c_str(),out.length()); resp.send(curcon,out.c_str(),out.size()); return true; } Loading
plugins/nginxfiler/filer.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -321,8 +321,8 @@ namespace blogi { throw e; } libhtmlpp::HtmlString fileHtml; std::string out,sid; libhtmlpp::HtmlString fileHtml,out; std::string sid; try{ RenderUI(path,ndir,fileHtml); Loading @@ -344,7 +344,7 @@ namespace blogi { curres.setVersion(HTTPVERSION(1.1)); curres.setContentType("text/html"); curres.setState(HTTP200); curres.send(curcon, out.c_str(),out.length()); curres.send(curcon, out.c_str(),out.size()); }catch(libhttppp::HTTPException &e){ libhttppp::HttpResponse curres; curres.setVersion(HTTPVERSION(1.1)); Loading
plugins/nodeinfo/nodeinfo.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -114,7 +114,8 @@ namespace blogi { html.setAttribute("id","content"); html.insertChild(&table); std::string out,sid,systable; libhtmlpp::HtmlString out,systable; std::string sid; libhtmlpp::print(&html,systable); libhtmlpp::HtmlString condat; Loading @@ -132,7 +133,7 @@ namespace blogi { resp.setVersion(HTTPVERSION(1.1)); resp.setState(HTTP200); resp.setContentType("text/html"); resp.send(curcon,out.c_str(),out.length()); resp.send(curcon,out.c_str(),out.size()); return true; } Loading
plugins/staticpage/static.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -351,7 +351,7 @@ bool blogi::StaticPage::Controller(netplus::con *curcon,libhttppp::HttpRequest * throw excep; } std::string out; libhtmlpp::HtmlString out; condat << "<div id=\"content\" class=\"staticpage\" >" << res[0][1] << "</div>"; Loading @@ -363,7 +363,7 @@ bool blogi::StaticPage::Controller(netplus::con *curcon,libhttppp::HttpRequest * resp.setVersion(HTTPVERSION(1.1)); resp.setState(HTTP200); resp.setContentType("text/html"); resp.send(curcon,out.c_str(),out.length()); resp.send(curcon,out.c_str(),out.size()); return true; } return false; Loading