Loading plugins/nginxfiler/filer.cpp +6 −1 Changes for plugins/nginxfiler/filer.cpp: 6 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -109,6 +109,11 @@ namespace blogi { setConfig(*Args->database[tid],"NGINXFILERPORT",cur.value); saved = true; }else if(cur.key=="nginxfilerprefix"){ if(cur.value[0]!='/'){ libhttppp::HTTPException e; e[libhttppp::HTTPException::Error] << "nginxfiler: Prefix must start with '/' !"; throw e; } setConfig(*Args->database[tid],"NGINXFILERPREFIX",cur.value); saved = true; }else if(cur.key=="nginxfilerssl"){ Loading Loading @@ -201,7 +206,7 @@ namespace blogi { } if(ntype==0) out << "<li class=\"file\" >" << "<a href=\"" << (_NSSL ? "https://" : "http://") << _NHost << ":" << _NPort << "/" << "<a href=\"" << (_NSSL ? "https://" : "http://") << _NHost << ":" << _NPort << _NPrefix << path << name <<"\" >" << "<img alt=\"file\" src=\""<< Args->config->buildurl("theme/public/file.webp") << "\" ><p>" << name << "</p></a></li>"; else if(ntype==1) Loading Loading
plugins/nginxfiler/filer.cpp +6 −1 Changes for plugins/nginxfiler/filer.cpp: 6 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -109,6 +109,11 @@ namespace blogi { setConfig(*Args->database[tid],"NGINXFILERPORT",cur.value); saved = true; }else if(cur.key=="nginxfilerprefix"){ if(cur.value[0]!='/'){ libhttppp::HTTPException e; e[libhttppp::HTTPException::Error] << "nginxfiler: Prefix must start with '/' !"; throw e; } setConfig(*Args->database[tid],"NGINXFILERPREFIX",cur.value); saved = true; }else if(cur.key=="nginxfilerssl"){ Loading Loading @@ -201,7 +206,7 @@ namespace blogi { } if(ntype==0) out << "<li class=\"file\" >" << "<a href=\"" << (_NSSL ? "https://" : "http://") << _NHost << ":" << _NPort << "/" << "<a href=\"" << (_NSSL ? "https://" : "http://") << _NHost << ":" << _NPort << _NPrefix << path << name <<"\" >" << "<img alt=\"file\" src=\""<< Args->config->buildurl("theme/public/file.webp") << "\" ><p>" << name << "</p></a></li>"; else if(ntype==1) Loading