Commit 1e993e1e authored by jan.koester's avatar jan.koester
Browse files

test

parent 7ec584db
Loading
Loading
Loading
Loading
+6 −6
Changes for plugins/content/content.cpp: 6 added lines, 6 removed lines.
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@ namespace blogi {
        ~Content(){
        };

        void contentIdxPage(const int tid,libhttppp::HttpRequest &curreq,libhtmlpp::HtmlElement *page,const char *tag,int start,int end,const char *sessionid){
        void contentIdxPage(const int tid,libhttppp::HttpRequest &curreq,libhtmlpp::HtmlElement *page,const char *tag,int start,int end,const std::string &sessionid){
            libhttppp::HTTPException excep;
            libhtmlpp::HtmlString condat;

@@ -167,7 +167,7 @@ namespace blogi {
            resp.send(curreq,out.c_str(),out.size());
        };

        void contentPage(const int tid,libhttppp::HttpRequest& curreq,libhtmlpp::HtmlElement &page,const char *sessionid) {
        void contentPage(const int tid,libhttppp::HttpRequest& curreq,libhtmlpp::HtmlElement &page,const std::string &sessionid) {
            libhttppp::HTTPException excep;
            libhtmlpp::HtmlString condat;

@@ -221,7 +221,7 @@ namespace blogi {
            resp.send(curreq,out.c_str(),out.size());
        };

        void addPostPage(const int tid,libhttppp::HttpRequest &curreq,libhtmlpp::HtmlElement &page,const char *sessionid){
        void addPostPage(const int tid,libhttppp::HttpRequest &curreq,libhtmlpp::HtmlElement &page,const std::string &sessionid){
            char url[512];
            std::vector<char> sbuf;

@@ -369,7 +369,7 @@ namespace blogi {
            resp.send(curreq,out.c_str(),out.size());
        }

        void delPostPage(const int tid,libhttppp::HttpRequest& curreq,libhtmlpp::HtmlElement &page,const char *sessionid) {
        void delPostPage(const int tid,libhttppp::HttpRequest& curreq,libhtmlpp::HtmlElement &page,const std::string &sessionid) {
            std::string sid;
            char url[512];

@@ -460,7 +460,7 @@ namespace blogi {
            }
        }

        void editPostPage(const int tid,libhttppp::HttpRequest& curreq,libhtmlpp::HtmlElement &page,const char* sessionid) {
        void editPostPage(const int tid,libhttppp::HttpRequest& curreq,libhtmlpp::HtmlElement &page,const std::string &sessionid) {

            char url[512];
            if (!Args->auth->isLoggedIn(tid,curreq,sessionid)) {
@@ -665,7 +665,7 @@ namespace blogi {
            return;
        }

        bool Controller(const int tid,libhttppp::HttpRequest &req,libhtmlpp::HtmlElement *page,const char *sessionid){
        bool Controller(const int tid,libhttppp::HttpRequest &req,libhtmlpp::HtmlElement *page,const std::string &sessionid){
            char url[512];

            if(req.getRequestURL().compare(0,strlen(Args->config->buildurl("content",url,512)),Args->config->buildurl("content",url,512))!=0){