Loading CMakeLists.txt +1 −1 Changes for CMakeLists.txt: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ find_package(json-c REQUIRED) find_package(smtpclient REQUIRED) find_package(libuuidp REQUIRED) add_definitions(-D${CMAKE_HOST_SYSTEM_NAME}) add_definitions(-D${CMAKE_HOST_SYSTEM_NAME} -DWIN32_LEAN_AND_MEAN) include_directories( ${NETPLUS_INCLUDE_DIRS} Loading plugins/gtm/gtm.cpp +2 −3 Changes for plugins/gtm/gtm.cpp: 2 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -70,10 +70,9 @@ namespace blogi { getConfig(*Args->database[0],"GOOGLE4A",G4A); }catch(...){} CookieBanner cookie(Args->database[0]); uuid_t id; uuid_parse(gtmid,id); uuid::uuid id(gtmid); cookie.addRule(id,"Goolge TagManger","This Cookie is Required for Tagmanager to improve Website",false); uuid_parse(g4aid,id); id=g4aid; cookie.addRule(id,"Goolge Analytics","This Cookie is Required for Analytics to improve Website",false); return; } Loading plugins/media/media.cpp +10 −7 Changes for plugins/media/media.cpp: 10 added lines, 7 removed lines. Original line number Diff line number Diff line Loading @@ -24,7 +24,10 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *******************************************************************************/ #include <iostream> #include <vector> #include <iterator> #include <map> #include <uuidp.h> Loading Loading @@ -251,19 +254,19 @@ namespace blogi { int mid=atoi(res[0][0]); uuid_t fuuid; char cfuuid[512]; uuid::uuid fuuid; std::string cfuuid; uuid_generate(fuuid); uuid_unparse(fuuid,cfuuid); uuid_clear(fuuid); fuuid.generate(); cfuuid=fuuid.c_str(); fuuid.clear(); sql << "INSERT INTO media_items_files (media_items_id,redis_uuid,media_type_id,public) VALUES('" << mid << "','" << cfuuid << "','" << tmid << "',True)"; << mid << "','" << cfuuid.c_str() << "','" << tmid << "',True)"; Args->database[tid]->exec(sql,res); sql.clear(); _store->save(tid,cfuuid,mediafile.data(),mediafile.size()); _store->save(tid,cfuuid.c_str(), mediafile.data(), mediafile.size()); } Loading src/blogi.cpp +4 −1 Changes for src/blogi.cpp: 4 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -46,7 +46,10 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include <dbpp/database.h> #ifndef Windows #ifdef Windows #define WIN32_LEAN_AND_MEAN #include <Windows.h> #else #include <unistd.h> #include <fcntl.h> #include <pwd.h> Loading src/theme.cpp +4 −1 Changes for src/theme.cpp: 4 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -31,10 +31,13 @@ #include <fstream> #include <compare> #ifdef Windows #include <Windows.h> #else #include <dirent.h> #include <dlfcn.h> #include <unistd.h> #include <sys/stat.h> #endif #include <httppp/exception.h> Loading Loading
CMakeLists.txt +1 −1 Changes for CMakeLists.txt: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ find_package(json-c REQUIRED) find_package(smtpclient REQUIRED) find_package(libuuidp REQUIRED) add_definitions(-D${CMAKE_HOST_SYSTEM_NAME}) add_definitions(-D${CMAKE_HOST_SYSTEM_NAME} -DWIN32_LEAN_AND_MEAN) include_directories( ${NETPLUS_INCLUDE_DIRS} Loading
plugins/gtm/gtm.cpp +2 −3 Changes for plugins/gtm/gtm.cpp: 2 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -70,10 +70,9 @@ namespace blogi { getConfig(*Args->database[0],"GOOGLE4A",G4A); }catch(...){} CookieBanner cookie(Args->database[0]); uuid_t id; uuid_parse(gtmid,id); uuid::uuid id(gtmid); cookie.addRule(id,"Goolge TagManger","This Cookie is Required for Tagmanager to improve Website",false); uuid_parse(g4aid,id); id=g4aid; cookie.addRule(id,"Goolge Analytics","This Cookie is Required for Analytics to improve Website",false); return; } Loading
plugins/media/media.cpp +10 −7 Changes for plugins/media/media.cpp: 10 added lines, 7 removed lines. Original line number Diff line number Diff line Loading @@ -24,7 +24,10 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *******************************************************************************/ #include <iostream> #include <vector> #include <iterator> #include <map> #include <uuidp.h> Loading Loading @@ -251,19 +254,19 @@ namespace blogi { int mid=atoi(res[0][0]); uuid_t fuuid; char cfuuid[512]; uuid::uuid fuuid; std::string cfuuid; uuid_generate(fuuid); uuid_unparse(fuuid,cfuuid); uuid_clear(fuuid); fuuid.generate(); cfuuid=fuuid.c_str(); fuuid.clear(); sql << "INSERT INTO media_items_files (media_items_id,redis_uuid,media_type_id,public) VALUES('" << mid << "','" << cfuuid << "','" << tmid << "',True)"; << mid << "','" << cfuuid.c_str() << "','" << tmid << "',True)"; Args->database[tid]->exec(sql,res); sql.clear(); _store->save(tid,cfuuid,mediafile.data(),mediafile.size()); _store->save(tid,cfuuid.c_str(), mediafile.data(), mediafile.size()); } Loading
src/blogi.cpp +4 −1 Changes for src/blogi.cpp: 4 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -46,7 +46,10 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include <dbpp/database.h> #ifndef Windows #ifdef Windows #define WIN32_LEAN_AND_MEAN #include <Windows.h> #else #include <unistd.h> #include <fcntl.h> #include <pwd.h> Loading
src/theme.cpp +4 −1 Changes for src/theme.cpp: 4 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -31,10 +31,13 @@ #include <fstream> #include <compare> #ifdef Windows #include <Windows.h> #else #include <dirent.h> #include <dlfcn.h> #include <unistd.h> #include <sys/stat.h> #endif #include <httppp/exception.h> Loading