From 057607f9e52ffcb377efdf633ca515a76b7ad710 Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Sun, 31 Jan 2016 19:52:17 +0000 Subject: [PATCH] start working on a new plugin: mailregister git-svn-id: svn://ttmath.org/publicrep/winix/trunk@1020 e52654a7-88a9-db11-a3e9-0013d4bc506e --- Makefile | 22 +-- Makefile.dep | 2 +- functions/functionbase.cpp | 7 +- functions/functionbase.h | 4 +- plugins/mailregister/Makefile | 29 ++++ plugins/mailregister/Makefile.dep | 180 +++++++++++++++++++++++ plugins/mailregister/Makefile.o.dep | 1 + plugins/mailregister/funregistermail.cpp | 78 ++++++++++ plugins/mailregister/funregistermail.h | 75 ++++++++++ plugins/mailregister/init.cpp | 103 +++++++++++++ plugins/mailregister/mdb.cpp | 61 ++++++++ plugins/mailregister/mdb.h | 68 +++++++++ 12 files changed, 618 insertions(+), 12 deletions(-) create mode 100644 plugins/mailregister/Makefile create mode 100644 plugins/mailregister/Makefile.dep create mode 100644 plugins/mailregister/Makefile.o.dep create mode 100644 plugins/mailregister/funregistermail.cpp create mode 100644 plugins/mailregister/funregistermail.h create mode 100644 plugins/mailregister/init.cpp create mode 100644 plugins/mailregister/mdb.cpp create mode 100644 plugins/mailregister/mdb.h diff --git a/Makefile b/Makefile index c345a49..01d90a0 100644 --- a/Makefile +++ b/Makefile @@ -2,14 +2,15 @@ include Makefile.dep - +ifndef CXX ifeq ($(OSTYPE), FreeBSD) CXX = clang++ else CXX = g++-4.8 endif +endif - +# CXX = g++-4.8 ifndef CXXFLAGS CXXFLAGS = -Wall -O0 -g -fPIC -pthread -std=c++11 -I/usr/local/include -I/usr/include/postgresql -DEZC_USE_WINIX_LOGGER -DEZC_HAS_SPECIAL_STREAM @@ -67,13 +68,14 @@ winix: winix.so $(winix.src.files) plugins: FORCE - @cd plugins/stats ; $(MAKE) -e - @cd plugins/thread ; $(MAKE) -e - @cd plugins/ticket ; $(MAKE) -e - @cd plugins/gallery ; $(MAKE) -e - @cd plugins/group ; $(MAKE) -e - @cd plugins/menu ; $(MAKE) -e - @cd plugins/export ; $(MAKE) -e + @cd plugins/stats ; $(MAKE) -e + @cd plugins/thread ; $(MAKE) -e + @cd plugins/ticket ; $(MAKE) -e + @cd plugins/gallery ; $(MAKE) -e + @cd plugins/group ; $(MAKE) -e + @cd plugins/menu ; $(MAKE) -e + @cd plugins/export ; $(MAKE) -e + @cd plugins/mailregister ; $(MAKE) -e FORCE: @@ -92,6 +94,7 @@ clean: @cd plugins/group ; $(MAKE) -e clean @cd plugins/menu ; $(MAKE) -e clean @cd plugins/export ; $(MAKE) -e clean + @cd plugins/mailregister ; $(MAKE) -e clean @cd ../ezc/src ; $(MAKE) -e clean @cd ../tito/src ; $(MAKE) -e clean @cd ../pikotools ; $(MAKE) -e clean @@ -116,6 +119,7 @@ depend: @cd plugins/group ; $(MAKE) -e depend @cd plugins/menu ; $(MAKE) -e depend @cd plugins/export ; $(MAKE) -e depend + @cd plugins/mailregister ; $(MAKE) -e depend @cd ../ezc/src ; $(MAKE) -e depend @cd ../tito/src ; $(MAKE) -e depend @cd ../pikotools ; $(MAKE) -e depend diff --git a/Makefile.dep b/Makefile.dep index 7345dd5..366cd58 100644 --- a/Makefile.dep +++ b/Makefile.dep @@ -1 +1 @@ -winix.src.files = ./main/main.cpp ./db/dbconn.cpp ./db/db.cpp ./db/dbbase.h ./db/dbitemcolumns.cpp ./db/dbtextstream.cpp ./db/dbconn.h ./db/db.h ./db/dbitemcolumns.h ./db/dbitemquery.cpp ./db/dbtextstream.h ./db/dbitemquery.h ./db/dbbase.cpp ./core/synchro.h ./core/sessioncontainer.h ./core/cookieparser.h ./core/misc.cpp ./core/item.cpp ./core/error.h ./core/timezone.h ./core/compress.h ./core/crypt.cpp ./core/dirs.cpp ./core/slog.cpp ./core/config.cpp ./core/lastcontainer.cpp ./core/users.h ./core/httpsimpleparser.cpp ./core/threadmanager.h ./core/postparser.h ./core/pluginmsg.h ./core/acceptbaseparser.h ./core/loadavg.cpp ./core/job.h ./core/mountparser.cpp ./core/timezones.h ./core/sessionmanager.h ./core/groups.h ./core/system.cpp ./core/synchro.cpp ./core/rebus.h ./core/lock.cpp ./core/acceptencodingparser.h ./core/version.h ./core/compress.cpp ./core/ipbancontainer.cpp ./core/request.h ./core/plugindata.h ./core/plugin.cpp ./core/sessionparser.cpp ./core/bbcodeparser.h ./core/users.cpp ./core/mount.cpp ./core/item.h ./core/slog.h ./core/threadmanager.cpp ./core/acceptbaseparser.cpp ./core/lastcontainer.h ./core/httpsimpleparser.h ./core/timezones.cpp ./core/groups.cpp ./core/requesttypes.h ./core/system.h ./core/bbcodeparser.cpp ./core/lock.h ./core/ipbancontainer.h ./core/group.h ./core/plugin.h ./core/run.cpp ./core/textstream.h ./core/sessionparser.h ./core/basethread.h ./core/mount.h ./core/htmlfilter.cpp ./core/user.cpp ./core/app.cpp ./core/image.cpp ./core/ugcontainer.h ./core/postmultiparser.h ./core/logmanipulators.h ./core/sessioncontainer.cpp ./core/dircontainer.h ./core/log.h ./core/session.h ./core/timezone.cpp ./core/mounts.h ./core/ipban.h ./core/cur.h ./core/misc.h ./core/dirs.h ./core/crypt.h ./core/run.h ./core/config.h ./core/job.cpp ./core/postmultiparser.cpp ./core/sessionmanager.cpp ./core/htmlfilter.h ./core/rebus.cpp ./core/dircontainer.cpp ./core/log.cpp ./core/user.h ./core/loadavg.h ./core/session.cpp ./core/mountparser.h ./core/mounts.cpp ./core/image.h ./core/plugindata.cpp ./core/request.cpp ./core/app.h ./core/basethread.cpp ./core/sessionidmanager.h ./core/winix_const.h ./core/sessionidmanager.cpp ./functions/upload.cpp ./functions/priv.h ./functions/env.cpp ./functions/default.h ./functions/node.h ./functions/specialdefault.h ./functions/timezone.cpp ./functions/pw.h ./functions/adduser.h ./functions/chmod.h ./functions/imgcrop.cpp ./functions/vim.h ./functions/account.h ./functions/mount.cpp ./functions/uptime.cpp ./functions/ckeditor.cpp ./functions/mkdir.cpp ./functions/reload.cpp ./functions/functionparser.h ./functions/logout.cpp ./functions/rmuser.cpp ./functions/rm.cpp ./functions/chown.h ./functions/nicedit.h ./functions/mv.h ./functions/node.cpp ./functions/specialdefault.cpp ./functions/adduser.cpp ./functions/upload.h ./functions/vim.cpp ./functions/env.h ./functions/timezone.h ./functions/who.h ./functions/cp.cpp ./functions/run.cpp ./functions/locale.h ./functions/imgcrop.h ./functions/passwd.h ./functions/mount.h ./functions/privchanger.cpp ./functions/functions.cpp ./functions/last.h ./functions/ckeditor.h ./functions/mkdir.h ./functions/reload.h ./functions/cat.h ./functions/download.h ./functions/ln.h ./functions/nicedit.cpp ./functions/functionbase.cpp ./functions/man.h ./functions/rm.h ./functions/meta.cpp ./functions/emacs.cpp ./functions/sort.h ./functions/who.cpp ./functions/ipban.h ./functions/locale.cpp ./functions/passwd.cpp ./functions/last.cpp ./functions/subject.h ./functions/download.cpp ./functions/cp.h ./functions/cat.cpp ./functions/login.cpp ./functions/tinymce.cpp ./functions/ln.cpp ./functions/run.h ./functions/uname.h ./functions/man.cpp ./functions/functions.h ./functions/privchanger.h ./functions/ls.cpp ./functions/template.h ./functions/stat.h ./functions/priv.cpp ./functions/default.cpp ./functions/functionbase.h ./functions/pw.cpp ./functions/sort.cpp ./functions/ipban.cpp ./functions/chmod.cpp ./functions/meta.h ./functions/account.cpp ./functions/emacs.h ./functions/subject.cpp ./functions/functionparser.cpp ./functions/uname.cpp ./functions/uptime.h ./functions/template.cpp ./functions/stat.cpp ./functions/tinymce.h ./functions/login.h ./functions/chown.cpp ./functions/logout.h ./functions/mv.cpp ./functions/rmuser.h ./functions/ls.h ./notify/notifypool.h ./notify/templatesnotify.cpp ./notify/notify.cpp ./notify/templatesnotify.h ./notify/notify.h ./notify/notifythread.cpp ./notify/notifypool.cpp ./notify/notifythread.h ./templates/who.cpp ./templates/item.cpp ./templates/mount.cpp ./templates/templates.h ./templates/locale.h ./templates/slog.cpp ./templates/doc.cpp ./templates/localefilter.cpp ./templates/config.cpp ./templates/patterns.h ./templates/miscspace.cpp ./templates/filters.cpp ./templates/login.cpp ./templates/man.cpp ./templates/changepatterns.h ./templates/stat.cpp ./templates/template.cpp ./templates/dir.cpp ./templates/user.cpp ./templates/rebus.cpp ./templates/patterncacher.cpp ./templates/upload.cpp ./templates/textextstream.h ./templates/adduser.cpp ./templates/ipban.cpp ./templates/htmltextstream.h ./templates/indexpatterns.h ./templates/templates.cpp ./templates/winix.cpp ./templates/locale.cpp ./templates/misc.h ./templates/patterns.cpp ./templates/passwd.cpp ./templates/last.cpp ./templates/uptime.cpp ./templates/insert.cpp ./templates/changepatterns.cpp ./templates/localefilter.h ./templates/miscspace.h ./templates/ls.cpp ./templates/sys.cpp ./templates/priv.cpp ./templates/textextstream.cpp ./templates/htmltextstream.cpp ./templates/env.cpp ./templates/indexpatterns.cpp ./templates/patterncacher.h ./templates/misc.cpp ./templates/generic.cpp ./templates/currentdate.cpp ./templates/server.cpp ./plugins/group/init.cpp ./plugins/group/groups.h ./plugins/group/groupinfo.cpp ./plugins/group/groupinfo.h ./plugins/group/templates.cpp ./plugins/group/groups.cpp ./plugins/stats/statssession.h ./plugins/stats/bot.h ./plugins/stats/stats.cpp ./plugins/stats/templates.cpp ./plugins/stats/init.cpp ./plugins/stats/stats.h ./plugins/stats/templates.h ./plugins/stats/bot.cpp ./plugins/gallery/galleryinfo.cpp ./plugins/gallery/templates.cpp ./plugins/gallery/gallery.cpp ./plugins/gallery/galleryinfo.h ./plugins/gallery/init.cpp ./plugins/gallery/gallery.h ./plugins/export/init.cpp ./plugins/export/export.h ./plugins/export/exportthread.cpp ./plugins/export/message.h ./plugins/export/edb.cpp ./plugins/export/funexport.cpp ./plugins/export/exportinfo.cpp ./plugins/export/exportthread.h ./plugins/export/edb.h ./plugins/export/funexport.h ./plugins/export/exportinfo.h ./plugins/ticket/funticket.h ./plugins/ticket/init.cpp ./plugins/ticket/ticketinfo.h ./plugins/ticket/showtickets.cpp ./plugins/ticket/createticket.cpp ./plugins/ticket/tdb.cpp ./plugins/ticket/pluginmsg.h ./plugins/ticket/createticket.h ./plugins/ticket/showtickets.h ./plugins/ticket/sessiondata.cpp ./plugins/ticket/tdb.h ./plugins/ticket/sessiondata.h ./plugins/ticket/ticket.h ./plugins/ticket/editticket.cpp ./plugins/ticket/funticket.cpp ./plugins/ticket/templates.cpp ./plugins/ticket/editticket.h ./plugins/ticket/ticketinfo.cpp ./plugins/menu/cache.cpp ./plugins/menu/init.cpp ./plugins/menu/cache.h ./plugins/menu/templates.cpp ./plugins/thread/funthread.cpp ./plugins/thread/threadinfo.cpp ./plugins/thread/funthread.h ./plugins/thread/threadinfo.h ./plugins/thread/createthread.cpp ./plugins/thread/reply.cpp ./plugins/thread/showthreads.cpp ./plugins/thread/templates.cpp ./plugins/thread/createthread.h ./plugins/thread/reply.h ./plugins/thread/showthreads.h ./plugins/thread/init.cpp ./plugins/thread/templates.h ./plugins/thread/tdb.cpp ./plugins/thread/pluginmsg.h ./plugins/thread/thread.h ./plugins/thread/tdb.h ../ezc/src/funinfo.h ../ezc/src/patternparser.cpp ../ezc/src/generator.h ../ezc/src/functions.h ../ezc/src/pattern.cpp ../ezc/src/item.cpp ../ezc/src/patternparser.h ../ezc/src/pattern.h ../ezc/src/item.h ../ezc/src/ezc.h ../ezc/src/cache.cpp ../ezc/src/cache.h ../ezc/src/blocks.h ../ezc/src/blocks.cpp ../ezc/src/objects.h ../ezc/src/outstreams.h ../tito/src/crypto.cpp ../tito/src/misc.h ../tito/src/base64.cpp ../tito/src/crypto.h ../tito/src/aes.cpp ../tito/src/base64.h ../tito/src/misc.cpp ../tito/src/aes.h ../pikotools/mainparser/sample/sample.cpp ../pikotools/mainparser/mainparser.cpp ../pikotools/mainparser/mainparser.h ../pikotools/space/space.h ../pikotools/space/spaceparser.cpp ../pikotools/space/space.cpp ../pikotools/space/spaceparser.h ../pikotools/space/jsontospaceparser.cpp ../pikotools/space/spacetojson.cpp ../pikotools/space/jsontospaceparser.h ../pikotools/space/spacetojson.h ../pikotools/date/date.h ../pikotools/date/date.cpp ../pikotools/membuffer/membuffer.h ../pikotools/utf8/utf8.cpp ../pikotools/utf8/utf8.h ../pikotools/textstream/textstream.h ../pikotools/textstream/types.h ../pikotools/convert/convert.h ../pikotools/convert/inttostr.h \ No newline at end of file +winix.src.files = ./main/main.cpp ./db/dbconn.cpp ./db/db.cpp ./db/dbbase.h ./db/dbitemcolumns.cpp ./db/dbtextstream.cpp ./db/dbconn.h ./db/db.h ./db/dbitemcolumns.h ./db/dbitemquery.cpp ./db/dbtextstream.h ./db/dbitemquery.h ./db/dbbase.cpp ./core/synchro.h ./core/sessioncontainer.h ./core/cookieparser.h ./core/misc.cpp ./core/item.cpp ./core/error.h ./core/timezone.h ./core/compress.h ./core/crypt.cpp ./core/dirs.cpp ./core/slog.cpp ./core/config.cpp ./core/lastcontainer.cpp ./core/users.h ./core/httpsimpleparser.cpp ./core/threadmanager.h ./core/postparser.h ./core/pluginmsg.h ./core/acceptbaseparser.h ./core/loadavg.cpp ./core/job.h ./core/mountparser.cpp ./core/timezones.h ./core/sessionmanager.h ./core/groups.h ./core/system.cpp ./core/synchro.cpp ./core/rebus.h ./core/lock.cpp ./core/acceptencodingparser.h ./core/version.h ./core/compress.cpp ./core/ipbancontainer.cpp ./core/request.h ./core/plugindata.h ./core/plugin.cpp ./core/sessionparser.cpp ./core/bbcodeparser.h ./core/users.cpp ./core/mount.cpp ./core/item.h ./core/slog.h ./core/threadmanager.cpp ./core/acceptbaseparser.cpp ./core/lastcontainer.h ./core/httpsimpleparser.h ./core/timezones.cpp ./core/groups.cpp ./core/requesttypes.h ./core/system.h ./core/bbcodeparser.cpp ./core/lock.h ./core/ipbancontainer.h ./core/group.h ./core/plugin.h ./core/run.cpp ./core/textstream.h ./core/sessionparser.h ./core/basethread.h ./core/mount.h ./core/htmlfilter.cpp ./core/user.cpp ./core/app.cpp ./core/image.cpp ./core/ugcontainer.h ./core/postmultiparser.h ./core/logmanipulators.h ./core/sessioncontainer.cpp ./core/dircontainer.h ./core/log.h ./core/session.h ./core/timezone.cpp ./core/mounts.h ./core/ipban.h ./core/cur.h ./core/misc.h ./core/dirs.h ./core/crypt.h ./core/run.h ./core/config.h ./core/job.cpp ./core/postmultiparser.cpp ./core/sessionmanager.cpp ./core/htmlfilter.h ./core/rebus.cpp ./core/dircontainer.cpp ./core/log.cpp ./core/user.h ./core/loadavg.h ./core/session.cpp ./core/mountparser.h ./core/mounts.cpp ./core/image.h ./core/plugindata.cpp ./core/request.cpp ./core/app.h ./core/basethread.cpp ./core/sessionidmanager.h ./core/winix_const.h ./core/sessionidmanager.cpp ./functions/upload.cpp ./functions/priv.h ./functions/env.cpp ./functions/default.h ./functions/node.h ./functions/specialdefault.h ./functions/timezone.cpp ./functions/pw.h ./functions/adduser.h ./functions/chmod.h ./functions/imgcrop.cpp ./functions/vim.h ./functions/account.h ./functions/mount.cpp ./functions/uptime.cpp ./functions/ckeditor.cpp ./functions/mkdir.cpp ./functions/reload.cpp ./functions/functionparser.h ./functions/logout.cpp ./functions/rmuser.cpp ./functions/rm.cpp ./functions/chown.h ./functions/nicedit.h ./functions/mv.h ./functions/node.cpp ./functions/specialdefault.cpp ./functions/adduser.cpp ./functions/upload.h ./functions/vim.cpp ./functions/env.h ./functions/timezone.h ./functions/who.h ./functions/cp.cpp ./functions/run.cpp ./functions/locale.h ./functions/imgcrop.h ./functions/passwd.h ./functions/mount.h ./functions/privchanger.cpp ./functions/functions.cpp ./functions/last.h ./functions/ckeditor.h ./functions/mkdir.h ./functions/reload.h ./functions/cat.h ./functions/download.h ./functions/ln.h ./functions/nicedit.cpp ./functions/functionbase.cpp ./functions/man.h ./functions/rm.h ./functions/meta.cpp ./functions/emacs.cpp ./functions/sort.h ./functions/who.cpp ./functions/ipban.h ./functions/locale.cpp ./functions/passwd.cpp ./functions/last.cpp ./functions/subject.h ./functions/download.cpp ./functions/cp.h ./functions/cat.cpp ./functions/login.cpp ./functions/tinymce.cpp ./functions/ln.cpp ./functions/run.h ./functions/uname.h ./functions/man.cpp ./functions/functions.h ./functions/privchanger.h ./functions/ls.cpp ./functions/template.h ./functions/stat.h ./functions/priv.cpp ./functions/default.cpp ./functions/functionbase.h ./functions/pw.cpp ./functions/sort.cpp ./functions/ipban.cpp ./functions/chmod.cpp ./functions/meta.h ./functions/account.cpp ./functions/emacs.h ./functions/subject.cpp ./functions/functionparser.cpp ./functions/uname.cpp ./functions/uptime.h ./functions/template.cpp ./functions/stat.cpp ./functions/tinymce.h ./functions/login.h ./functions/chown.cpp ./functions/logout.h ./functions/mv.cpp ./functions/rmuser.h ./functions/ls.h ./notify/notifypool.h ./notify/templatesnotify.cpp ./notify/notify.cpp ./notify/templatesnotify.h ./notify/notify.h ./notify/notifythread.cpp ./notify/notifypool.cpp ./notify/notifythread.h ./templates/who.cpp ./templates/item.cpp ./templates/mount.cpp ./templates/templates.h ./templates/locale.h ./templates/slog.cpp ./templates/doc.cpp ./templates/localefilter.cpp ./templates/config.cpp ./templates/patterns.h ./templates/miscspace.cpp ./templates/filters.cpp ./templates/login.cpp ./templates/man.cpp ./templates/changepatterns.h ./templates/stat.cpp ./templates/template.cpp ./templates/dir.cpp ./templates/user.cpp ./templates/rebus.cpp ./templates/patterncacher.cpp ./templates/upload.cpp ./templates/textextstream.h ./templates/adduser.cpp ./templates/ipban.cpp ./templates/htmltextstream.h ./templates/indexpatterns.h ./templates/templates.cpp ./templates/winix.cpp ./templates/locale.cpp ./templates/misc.h ./templates/patterns.cpp ./templates/passwd.cpp ./templates/last.cpp ./templates/uptime.cpp ./templates/insert.cpp ./templates/changepatterns.cpp ./templates/localefilter.h ./templates/miscspace.h ./templates/ls.cpp ./templates/sys.cpp ./templates/priv.cpp ./templates/textextstream.cpp ./templates/htmltextstream.cpp ./templates/env.cpp ./templates/indexpatterns.cpp ./templates/patterncacher.h ./templates/misc.cpp ./templates/generic.cpp ./templates/currentdate.cpp ./templates/server.cpp ./plugins/group/init.cpp ./plugins/group/groups.h ./plugins/group/groupinfo.cpp ./plugins/group/groupinfo.h ./plugins/group/templates.cpp ./plugins/group/groups.cpp ./plugins/stats/statssession.h ./plugins/stats/bot.h ./plugins/stats/stats.cpp ./plugins/stats/templates.cpp ./plugins/stats/init.cpp ./plugins/stats/stats.h ./plugins/stats/templates.h ./plugins/stats/bot.cpp ./plugins/gallery/galleryinfo.cpp ./plugins/gallery/templates.cpp ./plugins/gallery/gallery.cpp ./plugins/gallery/galleryinfo.h ./plugins/gallery/init.cpp ./plugins/gallery/gallery.h ./plugins/export/init.cpp ./plugins/export/export.h ./plugins/export/exportthread.cpp ./plugins/export/message.h ./plugins/export/edb.cpp ./plugins/export/funexport.cpp ./plugins/export/exportinfo.cpp ./plugins/export/exportthread.h ./plugins/export/edb.h ./plugins/export/funexport.h ./plugins/export/exportinfo.h ./plugins/ticket/funticket.h ./plugins/ticket/init.cpp ./plugins/ticket/ticketinfo.h ./plugins/ticket/showtickets.cpp ./plugins/ticket/createticket.cpp ./plugins/ticket/tdb.cpp ./plugins/ticket/pluginmsg.h ./plugins/ticket/createticket.h ./plugins/ticket/showtickets.h ./plugins/ticket/sessiondata.cpp ./plugins/ticket/tdb.h ./plugins/ticket/sessiondata.h ./plugins/ticket/ticket.h ./plugins/ticket/editticket.cpp ./plugins/ticket/funticket.cpp ./plugins/ticket/templates.cpp ./plugins/ticket/editticket.h ./plugins/ticket/ticketinfo.cpp ./plugins/menu/cache.cpp ./plugins/menu/init.cpp ./plugins/menu/cache.h ./plugins/menu/templates.cpp ./plugins/thread/funthread.cpp ./plugins/thread/threadinfo.cpp ./plugins/thread/funthread.h ./plugins/thread/threadinfo.h ./plugins/thread/createthread.cpp ./plugins/thread/reply.cpp ./plugins/thread/showthreads.cpp ./plugins/thread/templates.cpp ./plugins/thread/createthread.h ./plugins/thread/reply.h ./plugins/thread/showthreads.h ./plugins/thread/init.cpp ./plugins/thread/templates.h ./plugins/thread/tdb.cpp ./plugins/thread/pluginmsg.h ./plugins/thread/thread.h ./plugins/thread/tdb.h ./plugins/mailregister/init.cpp ./plugins/mailregister/mdb.h ./plugins/mailregister/mdb.cpp ./plugins/mailregister/funregistermail.h ./plugins/mailregister/funregistermail.cpp ../ezc/src/funinfo.h ../ezc/src/patternparser.cpp ../ezc/src/generator.h ../ezc/src/functions.h ../ezc/src/pattern.cpp ../ezc/src/item.cpp ../ezc/src/patternparser.h ../ezc/src/pattern.h ../ezc/src/item.h ../ezc/src/ezc.h ../ezc/src/cache.cpp ../ezc/src/cache.h ../ezc/src/blocks.h ../ezc/src/blocks.cpp ../ezc/src/objects.h ../ezc/src/outstreams.h ../tito/src/crypto.cpp ../tito/src/misc.h ../tito/src/base64.cpp ../tito/src/crypto.h ../tito/src/aes.cpp ../tito/src/base64.h ../tito/src/misc.cpp ../tito/src/aes.h ../pikotools/mainparser/sample/sample.cpp ../pikotools/mainparser/mainparser.cpp ../pikotools/mainparser/mainparser.h ../pikotools/space/space.h ../pikotools/space/spaceparser.cpp ../pikotools/space/space.cpp ../pikotools/space/spaceparser.h ../pikotools/space/jsontospaceparser.cpp ../pikotools/space/spacetojson.cpp ../pikotools/space/jsontospaceparser.h ../pikotools/space/spacetojson.h ../pikotools/date/date.h ../pikotools/date/date.cpp ../pikotools/membuffer/membuffer.h ../pikotools/utf8/utf8.cpp ../pikotools/utf8/utf8.h ../pikotools/textstream/textstream.h ../pikotools/textstream/types.h ../pikotools/convert/convert.h ../pikotools/convert/inttostr.h ../pikotools/mainspaceparser/mainspaceparser.cpp ../pikotools/mainspaceparser/mainspaceparser.h \ No newline at end of file diff --git a/functions/functionbase.cpp b/functions/functionbase.cpp index 8bc7530..a2da4fa 100644 --- a/functions/functionbase.cpp +++ b/functions/functionbase.cpp @@ -5,7 +5,7 @@ */ /* - * Copyright (c) 2010-2014, Tomasz Sowa + * Copyright (c) 2010-2016, Tomasz Sowa * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -55,6 +55,11 @@ FunctionBase::FunctionBase() } +FunctionBase::~FunctionBase() +{ +} + + void FunctionBase::SetConfig(Config * pconfig) { diff --git a/functions/functionbase.h b/functions/functionbase.h index 69e71f9..637360e 100644 --- a/functions/functionbase.h +++ b/functions/functionbase.h @@ -5,7 +5,7 @@ */ /* - * Copyright (c) 2010-2014, Tomasz Sowa + * Copyright (c) 2010-2016, Tomasz Sowa * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -60,6 +60,8 @@ class FunctionBase public: FunctionBase(); + virtual ~FunctionBase(); + // user, group, permissions, url (function name) Item fun; diff --git a/plugins/mailregister/Makefile b/plugins/mailregister/Makefile new file mode 100644 index 0000000..aa70c7a --- /dev/null +++ b/plugins/mailregister/Makefile @@ -0,0 +1,29 @@ +include Makefile.o.dep + +name = mailregister.so + + +all: $(name) + + +$(name): $(o) + $(CXX) -shared -Wl,-soname,$(name) -o $(name) $(CXXFLAGS) $(CXXWINIXINCLUDEFLAGS) $(LDFLAGS) *.o + + + +%.o: %.cpp + $(CXX) -c $(CXXFLAGS) $(CXXWINIXINCLUDEFLAGS) $< + + + +depend: + makedepend -Y. $(CXXWINIXINCLUDEFLAGS) -f- *.cpp > Makefile.dep + echo -n "o = " > Makefile.o.dep + ls -1 *.cpp | xargs -I foo echo -n foo " " | sed -E "s/([^\.]*)\.cpp[ ]/\1\.o/g" >> Makefile.o.dep + +clean: + rm -f *.o + rm -f *.so + rm -f $(name) + +include Makefile.dep diff --git a/plugins/mailregister/Makefile.dep b/plugins/mailregister/Makefile.dep new file mode 100644 index 0000000..e7b6410 --- /dev/null +++ b/plugins/mailregister/Makefile.dep @@ -0,0 +1,180 @@ +# DO NOT DELETE + +funregistermail.o: funregistermail.h ../../../winix/functions/functionbase.h +funregistermail.o: ../../../winix/core/item.h +funregistermail.o: ../../../pikotools/space/space.h +funregistermail.o: ../../../pikotools/textstream/types.h +funregistermail.o: ../../../pikotools/date/date.h ../../../winix/db/db.h +funregistermail.o: ../../../winix/db/dbbase.h ../../../winix/db/dbconn.h +funregistermail.o: ../../../winix/db/dbtextstream.h +funregistermail.o: ../../../winix/core/textstream.h +funregistermail.o: ../../../winix/core/misc.h ../../../winix/core/item.h +funregistermail.o: ../../../winix/core/requesttypes.h +funregistermail.o: ../../../pikotools/textstream/textstream.h +funregistermail.o: ../../../pikotools/convert/convert.h +funregistermail.o: ../../../pikotools/convert/inttostr.h +funregistermail.o: ../../../pikotools/membuffer/membuffer.h +funregistermail.o: ../../../pikotools/textstream/types.h +funregistermail.o: ../../../pikotools/utf8/utf8.h +funregistermail.o: ../../../winix/core/winix_const.h +funregistermail.o: ../../../winix/core/error.h +funregistermail.o: ../../../pikotools/space/spaceparser.h +funregistermail.o: ../../../pikotools/space/space.h +funregistermail.o: ../../../winix/db/dbitemquery.h +funregistermail.o: ../../../winix/db/dbitemcolumns.h +funregistermail.o: ../../../winix/core/user.h ../../../winix/core/group.h +funregistermail.o: ../../../winix/core/dircontainer.h +funregistermail.o: ../../../winix/core/ugcontainer.h +funregistermail.o: ../../../winix/core/log.h ../../../winix/core/textstream.h +funregistermail.o: ../../../winix/core/logmanipulators.h +funregistermail.o: ../../../winix/core/slog.h ../../../winix/core/cur.h +funregistermail.o: ../../../winix/core/request.h ../../../winix/core/error.h +funregistermail.o: ../../../winix/core/config.h +funregistermail.o: ../../../winix/core/htmlfilter.h +funregistermail.o: ../../../winix/templates/htmltextstream.h +funregistermail.o: ../../../pikotools/space/spacetojson.h +funregistermail.o: ../../../ezc/src/outstreams.h +funregistermail.o: ../../../winix/core/session.h ../../../winix/core/user.h +funregistermail.o: ../../../winix/core/plugindata.h +funregistermail.o: ../../../winix/core/rebus.h ../../../winix/core/ipban.h +funregistermail.o: ../../../winix/core/mount.h +funregistermail.o: ../../../winix/templates/locale.h +funregistermail.o: ../../../winix/core/request.h ../../../winix/core/config.h +funregistermail.o: ../../../winix/core/system.h ../../../winix/core/job.h +funregistermail.o: ../../../winix/core/basethread.h +funregistermail.o: ../../../winix/core/synchro.h ../../../winix/core/dirs.h +funregistermail.o: ../../../winix/core/dircontainer.h +funregistermail.o: ../../../winix/notify/notify.h +funregistermail.o: ../../../winix/notify/notifypool.h +funregistermail.o: ../../../winix/templates/patterns.h +funregistermail.o: ../../../winix/templates/locale.h +funregistermail.o: ../../../winix/templates/localefilter.h +funregistermail.o: ../../../ezc/src/ezc.h ../../../ezc/src/generator.h +funregistermail.o: ../../../ezc/src/blocks.h ../../../ezc/src/cache.h +funregistermail.o: ../../../ezc/src/functions.h ../../../ezc/src/funinfo.h +funregistermail.o: ../../../ezc/src/objects.h ../../../ezc/src/pattern.h +funregistermail.o: ../../../ezc/src/patternparser.h +funregistermail.o: ../../../winix/notify/notifythread.h +funregistermail.o: ../../../winix/core/basethread.h +funregistermail.o: ../../../winix/notify/templatesnotify.h +funregistermail.o: ../../../winix/core/users.h +funregistermail.o: ../../../winix/core/ugcontainer.h +funregistermail.o: ../../../winix/core/lastcontainer.h +funregistermail.o: ../../../winix/core/mounts.h +funregistermail.o: ../../../winix/core/mountparser.h +funregistermail.o: ../../../winix/core/crypt.h ../../../winix/core/run.h +funregistermail.o: ../../../winix/core/users.h ../../../winix/core/groups.h +funregistermail.o: ../../../winix/core/group.h ../../../winix/core/loadavg.h +funregistermail.o: ../../../winix/core/image.h +funregistermail.o: ../../../winix/core/threadmanager.h +funregistermail.o: ../../../winix/core/timezones.h +funregistermail.o: ../../../winix/core/timezone.h +funregistermail.o: ../../../winix/core/synchro.h +init.o: ../../../winix/core/log.h ../../../winix/core/textstream.h +init.o: ../../../winix/core/logmanipulators.h +init.o: ../../../pikotools/textstream/textstream.h +init.o: ../../../pikotools/space/space.h +init.o: ../../../pikotools/textstream/types.h ../../../pikotools/date/date.h +init.o: ../../../pikotools/convert/convert.h +init.o: ../../../pikotools/convert/inttostr.h +init.o: ../../../pikotools/membuffer/membuffer.h +init.o: ../../../pikotools/textstream/types.h ../../../winix/core/slog.h +init.o: ../../../winix/core/cur.h ../../../winix/core/request.h +init.o: ../../../winix/core/requesttypes.h ../../../winix/core/item.h +init.o: ../../../winix/core/error.h ../../../winix/core/config.h +init.o: ../../../pikotools/space/spaceparser.h +init.o: ../../../pikotools/space/space.h ../../../winix/core/htmlfilter.h +init.o: ../../../winix/templates/htmltextstream.h +init.o: ../../../winix/core/textstream.h ../../../winix/core/misc.h +init.o: ../../../pikotools/utf8/utf8.h ../../../winix/core/winix_const.h +init.o: ../../../pikotools/space/spacetojson.h ../../../ezc/src/outstreams.h +init.o: ../../../winix/core/session.h ../../../winix/core/user.h +init.o: ../../../winix/core/plugindata.h ../../../winix/core/rebus.h +init.o: ../../../winix/core/ipban.h ../../../winix/core/mount.h +init.o: ../../../winix/templates/locale.h ../../../winix/core/plugin.h +init.o: ../../../winix/core/pluginmsg.h ../../../winix/core/log.h +init.o: ../../../winix/core/system.h ../../../winix/core/job.h +init.o: ../../../winix/core/basethread.h ../../../winix/core/synchro.h +init.o: ../../../winix/core/dirs.h ../../../winix/core/dircontainer.h +init.o: ../../../winix/db/db.h ../../../winix/db/dbbase.h +init.o: ../../../winix/db/dbconn.h ../../../winix/db/dbtextstream.h +init.o: ../../../winix/core/error.h ../../../winix/db/dbitemquery.h +init.o: ../../../winix/core/item.h ../../../winix/db/dbitemcolumns.h +init.o: ../../../winix/core/user.h ../../../winix/core/group.h +init.o: ../../../winix/core/dircontainer.h ../../../winix/core/ugcontainer.h +init.o: ../../../winix/notify/notify.h ../../../winix/notify/notifypool.h +init.o: ../../../winix/templates/patterns.h ../../../winix/templates/locale.h +init.o: ../../../winix/templates/localefilter.h ../../../ezc/src/ezc.h +init.o: ../../../ezc/src/generator.h ../../../ezc/src/blocks.h +init.o: ../../../ezc/src/cache.h ../../../ezc/src/functions.h +init.o: ../../../ezc/src/funinfo.h ../../../ezc/src/objects.h +init.o: ../../../ezc/src/pattern.h ../../../ezc/src/patternparser.h +init.o: ../../../winix/notify/notifythread.h ../../../winix/core/basethread.h +init.o: ../../../winix/notify/templatesnotify.h ../../../winix/core/config.h +init.o: ../../../winix/core/users.h ../../../winix/core/ugcontainer.h +init.o: ../../../winix/core/lastcontainer.h ../../../winix/core/mounts.h +init.o: ../../../winix/core/mountparser.h ../../../winix/core/crypt.h +init.o: ../../../winix/core/run.h ../../../winix/core/users.h +init.o: ../../../winix/core/groups.h ../../../winix/core/group.h +init.o: ../../../winix/core/loadavg.h ../../../winix/core/image.h +init.o: ../../../winix/core/threadmanager.h ../../../winix/core/timezones.h +init.o: ../../../winix/core/timezone.h ../../../winix/core/sessionmanager.h +init.o: ../../../winix/core/sessioncontainer.h +init.o: ../../../winix/core/ipbancontainer.h +init.o: ../../../winix/core/sessionidmanager.h ../../../tito/src/base64.h +init.o: ../../../tito/src/aes.h ../../../winix/functions/functions.h +init.o: ../../../winix/functions/functionbase.h ../../../winix/core/request.h +init.o: ../../../winix/core/system.h ../../../winix/core/synchro.h +init.o: ../../../winix/functions/functionparser.h ../../../winix/core/cur.h +init.o: ../../../winix/functions/account.h ../../../winix/functions/adduser.h +init.o: ../../../winix/functions/cat.h ../../../winix/functions/chmod.h +init.o: ../../../winix/functions/privchanger.h +init.o: ../../../winix/functions/chown.h ../../../winix/functions/ckeditor.h +init.o: ../../../winix/functions/cp.h ../../../winix/functions/default.h +init.o: ../../../winix/functions/download.h ../../../winix/functions/emacs.h +init.o: ../../../winix/functions/env.h ../../../winix/functions/imgcrop.h +init.o: ../../../winix/functions/last.h ../../../winix/functions/login.h +init.o: ../../../winix/functions/logout.h ../../../winix/functions/ln.h +init.o: ../../../winix/functions/ls.h ../../../winix/functions/man.h +init.o: ../../../winix/functions/meta.h ../../../winix/functions/mkdir.h +init.o: ../../../winix/functions/mv.h ../../../winix/functions/nicedit.h +init.o: ../../../winix/functions/node.h ../../../winix/functions/passwd.h +init.o: ../../../winix/functions/priv.h ../../../winix/functions/pw.h +init.o: ../../../winix/functions/reload.h ../../../winix/functions/rm.h +init.o: ../../../winix/functions/rmuser.h ../../../winix/functions/sort.h +init.o: ../../../winix/functions/specialdefault.h +init.o: ../../../winix/functions/stat.h ../../../winix/functions/subject.h +init.o: ../../../winix/functions/template.h +init.o: ../../../winix/functions/tinymce.h ../../../winix/functions/uname.h +init.o: ../../../winix/functions/upload.h ../../../winix/functions/uptime.h +init.o: ../../../winix/functions/who.h ../../../winix/functions/vim.h +init.o: ../../../winix/core/htmlfilter.h ../../../winix/templates/templates.h +init.o: ../../../winix/templates/patterncacher.h +init.o: ../../../winix/templates/indexpatterns.h +init.o: ../../../winix/templates/patterns.h +init.o: ../../../winix/templates/changepatterns.h +init.o: ../../../winix/templates/htmltextstream.h +init.o: ../../../winix/core/sessionmanager.h mdb.h ../../../winix/db/dbbase.h +init.o: ../../../winix/core/dirs.h +mdb.o: mdb.h ../../../winix/db/dbbase.h ../../../winix/core/dirs.h +mdb.o: ../../../winix/core/log.h ../../../winix/core/textstream.h +mdb.o: ../../../winix/core/logmanipulators.h +mdb.o: ../../../pikotools/textstream/textstream.h +mdb.o: ../../../pikotools/space/space.h ../../../pikotools/textstream/types.h +mdb.o: ../../../pikotools/date/date.h ../../../pikotools/convert/convert.h +mdb.o: ../../../pikotools/convert/inttostr.h +mdb.o: ../../../pikotools/membuffer/membuffer.h +mdb.o: ../../../pikotools/textstream/types.h ../../../winix/core/slog.h +mdb.o: ../../../winix/core/cur.h ../../../winix/core/request.h +mdb.o: ../../../winix/core/requesttypes.h ../../../winix/core/item.h +mdb.o: ../../../winix/core/error.h ../../../winix/core/config.h +mdb.o: ../../../pikotools/space/spaceparser.h +mdb.o: ../../../pikotools/space/space.h ../../../winix/core/htmlfilter.h +mdb.o: ../../../winix/templates/htmltextstream.h +mdb.o: ../../../winix/core/textstream.h ../../../winix/core/misc.h +mdb.o: ../../../pikotools/utf8/utf8.h ../../../winix/core/winix_const.h +mdb.o: ../../../pikotools/space/spacetojson.h ../../../ezc/src/outstreams.h +mdb.o: ../../../winix/core/session.h ../../../winix/core/user.h +mdb.o: ../../../winix/core/plugindata.h ../../../winix/core/rebus.h +mdb.o: ../../../winix/core/ipban.h ../../../winix/core/mount.h +mdb.o: ../../../winix/templates/locale.h diff --git a/plugins/mailregister/Makefile.o.dep b/plugins/mailregister/Makefile.o.dep new file mode 100644 index 0000000..6ad722a --- /dev/null +++ b/plugins/mailregister/Makefile.o.dep @@ -0,0 +1 @@ +o = funregistermail.o init.o mdb.o diff --git a/plugins/mailregister/funregistermail.cpp b/plugins/mailregister/funregistermail.cpp new file mode 100644 index 0000000..1aaa019 --- /dev/null +++ b/plugins/mailregister/funregistermail.cpp @@ -0,0 +1,78 @@ +/* + * This file is a part of Winix + * and is distributed under the 2-Clause BSD licence. + * Author: Tomasz Sowa + */ + +/* + * Copyright (c) 2016, Tomasz Sowa + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (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 "funregistermail.h" + +namespace Winix +{ + + + + +namespace MailRegister +{ + + +FunRegisterMail::FunRegisterMail() +{ + fun.url = L"register_mail"; +} + + +bool FunRegisterMail::HasAccess() +{ + return true; +} + + + +void FunRegisterMail::MakePost() +{ + +} + + +void FunRegisterMail::MakeGet() +{ +} + + + + + + +} // namespace + +} // namespace Winix + diff --git a/plugins/mailregister/funregistermail.h b/plugins/mailregister/funregistermail.h new file mode 100644 index 0000000..bd96aa7 --- /dev/null +++ b/plugins/mailregister/funregistermail.h @@ -0,0 +1,75 @@ +/* + * This file is a part of Winix + * and is distributed under the 2-Clause BSD licence. + * Author: Tomasz Sowa + */ + +/* + * Copyright (c) 2016, Tomasz Sowa + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * + */ + +#ifndef headerfile_winix_plugins_mailregister_funregistermail +#define headerfile_winix_plugins_mailregister_funregistermail + + +#include "functions/functionbase.h" +#include "db/db.h" + + +namespace Winix +{ + + +namespace MailRegister +{ + + +class FunRegisterMail : public FunctionBase +{ +public: + + FunRegisterMail(); + + bool HasAccess(); + + void MakePost(); + void MakeGet(); + + +private: + + +}; + + + +} // namespace + +} // namespace Winix + +#endif + diff --git a/plugins/mailregister/init.cpp b/plugins/mailregister/init.cpp new file mode 100644 index 0000000..4bcabdb --- /dev/null +++ b/plugins/mailregister/init.cpp @@ -0,0 +1,103 @@ +/* + * This file is a part of Winix + * and is distributed under the 2-Clause BSD licence. + * Author: Tomasz Sowa + */ + +/* + * Copyright (c) 2016, Tomasz Sowa + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (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 "core/log.h" +#include "core/plugin.h" +#include "mdb.h" + + +namespace Winix +{ + + + +extern "C" void Init(PluginInfo &); + + + + +namespace MailRegister +{ + + +const wchar_t plugin_name[] = L"mailregister"; +MDb mdb; + + + +void AddWinixFunctions(PluginInfo & info) +{ +// info.functions->Add(fun_export); +} + + + +void InitPlugin(PluginInfo & info) +{ + + +} + + +void AddEzcFunctions(PluginInfo & info); + +} // namespace + + + + + +void Init(PluginInfo & info) +{ +using namespace MailRegister; + + mdb.SetConn(info.db->GetConn()); + mdb.LogQueries(info.config->log_db_query); + +// plugin.Assign(WINIX_TEMPLATES_CREATEFUNCTIONS, AddEzcFunctions); + plugin.Assign(WINIX_CREATE_FUNCTIONS, AddWinixFunctions); + + plugin.Assign(WINIX_PLUGIN_INIT, InitPlugin); + + + + + info.p1 = (void*)(plugin_name); +} + + + +} // namespace Winix + diff --git a/plugins/mailregister/mdb.cpp b/plugins/mailregister/mdb.cpp new file mode 100644 index 0000000..7ff9b7d --- /dev/null +++ b/plugins/mailregister/mdb.cpp @@ -0,0 +1,61 @@ +/* + * This file is a part of Winix + * and is distributed under the 2-Clause BSD licence. + * Author: Tomasz Sowa + */ + +/* + * Copyright (c) 2016, Tomasz Sowa + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (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 "mdb.h" +#include "core/log.h" + +namespace Winix +{ +namespace Export +{ + + + + + + + + + + + + + + + + + +} +} // namespace Winix + diff --git a/plugins/mailregister/mdb.h b/plugins/mailregister/mdb.h new file mode 100644 index 0000000..10eadda --- /dev/null +++ b/plugins/mailregister/mdb.h @@ -0,0 +1,68 @@ +/* + * This file is a part of Winix + * and is distributed under the 2-Clause BSD licence. + * Author: Tomasz Sowa + */ + +/* + * Copyright (c) 2016, Tomasz Sowa + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * + */ + +#ifndef headerfile_winix_plugins_mailregister_mdb +#define headerfile_winix_plugins_mailregister_mdb + +#include +#include "db/dbbase.h" +#include "core/dirs.h" + +namespace Winix +{ + + +namespace MailRegister +{ + + + +class MDb : public DbBase +{ +public: + + + + +private: + + +}; + + +} + +} // namespace Winix + +#endif