Commit 43fcc83d authored by jan.koester's avatar jan.koester
Browse files

fixed cookie

parent 394bd9d1
Loading
Loading
Loading
Loading
+1 −1
Changes for data/themes/default/cookie.html: 1 added line, 1 removed line.
Original line number Diff line number Diff line
<!DOCTYPE html>
   <html lang="de">
     <head>
       <title>Blogi</title>
       <title>${SITE_TITLE}</title>
       <meta name="author" content="Jan Koester">
       <meta name="robots" content="all" >
       <meta charset="utf-8">
+8 −0
Changes for src/cookie.cpp: 8 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -82,6 +82,10 @@ void blogi::CookieBanner::addRule(uuid::uuid id,const char* cookname, const char
}

void blogi::printSettings(dbpp::ReplicatedDatabase &db,const std::string &sessionid,const std::string &lang,const std::string &curl,libhtmlpp::HtmlElement &page,libhtmlpp::HtmlElement cookietpl){
    if(page.getElementbyID("cookiebanner")){
        return;
    }

    dbpp::DBResult res;
    dbpp::SQL sql;

@@ -125,6 +129,10 @@ void blogi::printSettings(dbpp::ReplicatedDatabase &db,const std::string &sessio
}

void blogi::print(dbpp::ReplicatedDatabase &db,const std::string &lang,const std::string &curl,libhtmlpp::HtmlElement& page,libhtmlpp::HtmlElement cookietpl){
    if(page.getElementbyID("cookiebanner")){
        return;
    }

    dbpp::DBResult res;
    dbpp::SQL sql;