X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fhttp%2Ffmshttprequesthandlerfactory.cpp;h=6adb09f2cff84608fe10ee6c859900f4ddd95ea3;hb=822f84f5dac64183c556bd86fea8cd7b0527f528;hp=8d89baac0abb5aeda2da2a5d6b711c3bc19dd032;hpb=4855de56590e2f27d39036922339992c96bce9d1;p=fms.git diff --git a/src/http/fmshttprequesthandlerfactory.cpp b/src/http/fmshttprequesthandlerfactory.cpp index 8d89baa..6adb09f 100644 --- a/src/http/fmshttprequesthandlerfactory.cpp +++ b/src/http/fmshttprequesthandlerfactory.cpp @@ -17,12 +17,13 @@ #include "../../include/http/pages/peermaintenancepage.h" #include "../../include/http/pages/peertrustpage.h" #include "../../include/http/pages/versioninfopage.h" +#include "../../include/http/pages/recentlyaddedpage.h" FMSHTTPRequestHandlerFactory::FMSHTTPRequestHandlerFactory() { // set template std::string templatestr="Home

Could not open template.htm! Place in program directory and restart!


[CONTENT]"; - FILE *infile=fopen("template.htm","r+b"); + FILE *infile=fopen("template.htm","rb"); if(infile) { fseek(infile,0,SEEK_END); @@ -54,6 +55,7 @@ FMSHTTPRequestHandlerFactory::FMSHTTPRequestHandlerFactory() m_pagehandlers.push_back(new PeerMaintenancePage(templatestr)); m_pagehandlers.push_back(new PeerTrustPage(templatestr)); m_pagehandlers.push_back(new VersionInfoPage(templatestr)); + m_pagehandlers.push_back(new RecentlyAddedPage(templatestr)); // homepage must be last - catch all page handler m_pagehandlers.push_back(new HomePage(templatestr));