Loading examples/httpsysinfo.cpp +9 −9 Changes for examples/httpsysinfo.cpp: 9 added lines, 9 removed lines. Original line number Diff line number Diff line Loading @@ -135,10 +135,10 @@ class HtmlContent{ class IndexPage{ public: IndexPage(){ _Index << "<!DOCTYPE html><body style=\"color:rgb(239, 240, 241); background:rgb(79, 83, 88);\">" _Index << "<!DOCTYPE html><html lang=\"en\" ><head><title>sysinfo</title> </head><body style=\"color:rgb(239, 240, 241); background:rgb(79, 83, 88);\">" << "<div id=\"mainbar\" style=\"border-radius: 38px; background:rgb(35, 38, 41); width:1280px; margin:0px auto;\">" << "<div id=\"headerimage\"><img src=\"images/header.png\"/></div>" << "<div id=\"sysinfo\" style=\"padding:40px 20px;\"><span>System Info:</span><br/>"; << "<div id=\"headerimage\"><img alt=\"headerimage\" src=\"images/header.png\"></div>" << "<div id=\"sysinfo\" style=\"padding:40px 20px;\"><span>System Info:</span><br>"; TimeInfo(); KernelInfo(); _Index << "</div></div></body></html>"; Loading @@ -147,13 +147,13 @@ public: void TimeInfo() { std::time_t t = std::time(0); std::tm* mytime = std::localtime(&t); _Index << "<h2>CPUInfo:</h2>"; _Index << "<span>Time:" << (unsigned long)mytime->tm_hour << ":" << (unsigned long)mytime->tm_min << ":" << (unsigned long)mytime->tm_sec << "</span>" << "<span>Date:" << (unsigned long)mytime->tm_mday << "." _Index << "<h2>Date & Time:</h2>"; _Index << "<span>Date:" << (unsigned long)mytime->tm_mday << "." << (unsigned long)mytime->tm_mon << "." << (unsigned long)mytime->tm_year << "</span>"; << (unsigned long)mytime->tm_year << " </span>" << "<span>Time:" << (unsigned long)mytime->tm_hour << ":" << (unsigned long)mytime->tm_min << ":" << (unsigned long)mytime->tm_sec << "</span>"; } void KernelInfo(){ Loading src/http.cpp +2 −0 Changes for src/http.cpp: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -976,11 +976,13 @@ void libhttppp::HttpForm::_parseUrlDecode(libhttppp::HttpRequest* request){ char *urldecdValue=nullptr; char *urldecdKey=nullptr; memcpy(key,formdat+fdatstpos,keyendpos); if(formdat+vlstpos){ value=new char[(fdatpos-vlstpos)+1]; memcpy(value,formdat+vlstpos,(fdatpos-vlstpos)); key[(keyendpos-fdatstpos)]='\0'; value[(fdatpos-vlstpos)]='\0'; urlDecode(value,strlen(value),&urldecdValue); } urlDecode(key,strlen(key),&urldecdKey); UrlcodedFormData *newenrty; newenrty=addUrlcodedFormData(); Loading Loading
examples/httpsysinfo.cpp +9 −9 Changes for examples/httpsysinfo.cpp: 9 added lines, 9 removed lines. Original line number Diff line number Diff line Loading @@ -135,10 +135,10 @@ class HtmlContent{ class IndexPage{ public: IndexPage(){ _Index << "<!DOCTYPE html><body style=\"color:rgb(239, 240, 241); background:rgb(79, 83, 88);\">" _Index << "<!DOCTYPE html><html lang=\"en\" ><head><title>sysinfo</title> </head><body style=\"color:rgb(239, 240, 241); background:rgb(79, 83, 88);\">" << "<div id=\"mainbar\" style=\"border-radius: 38px; background:rgb(35, 38, 41); width:1280px; margin:0px auto;\">" << "<div id=\"headerimage\"><img src=\"images/header.png\"/></div>" << "<div id=\"sysinfo\" style=\"padding:40px 20px;\"><span>System Info:</span><br/>"; << "<div id=\"headerimage\"><img alt=\"headerimage\" src=\"images/header.png\"></div>" << "<div id=\"sysinfo\" style=\"padding:40px 20px;\"><span>System Info:</span><br>"; TimeInfo(); KernelInfo(); _Index << "</div></div></body></html>"; Loading @@ -147,13 +147,13 @@ public: void TimeInfo() { std::time_t t = std::time(0); std::tm* mytime = std::localtime(&t); _Index << "<h2>CPUInfo:</h2>"; _Index << "<span>Time:" << (unsigned long)mytime->tm_hour << ":" << (unsigned long)mytime->tm_min << ":" << (unsigned long)mytime->tm_sec << "</span>" << "<span>Date:" << (unsigned long)mytime->tm_mday << "." _Index << "<h2>Date & Time:</h2>"; _Index << "<span>Date:" << (unsigned long)mytime->tm_mday << "." << (unsigned long)mytime->tm_mon << "." << (unsigned long)mytime->tm_year << "</span>"; << (unsigned long)mytime->tm_year << " </span>" << "<span>Time:" << (unsigned long)mytime->tm_hour << ":" << (unsigned long)mytime->tm_min << ":" << (unsigned long)mytime->tm_sec << "</span>"; } void KernelInfo(){ Loading
src/http.cpp +2 −0 Changes for src/http.cpp: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -976,11 +976,13 @@ void libhttppp::HttpForm::_parseUrlDecode(libhttppp::HttpRequest* request){ char *urldecdValue=nullptr; char *urldecdKey=nullptr; memcpy(key,formdat+fdatstpos,keyendpos); if(formdat+vlstpos){ value=new char[(fdatpos-vlstpos)+1]; memcpy(value,formdat+vlstpos,(fdatpos-vlstpos)); key[(keyendpos-fdatstpos)]='\0'; value[(fdatpos-vlstpos)]='\0'; urlDecode(value,strlen(value),&urldecdValue); } urlDecode(key,strlen(key),&urldecdKey); UrlcodedFormData *newenrty; newenrty=addUrlcodedFormData(); Loading