added: TextStream a class similar to std::ostringstream
but with a Clear() method
the dynamic allocated buffer can be easily reused
added: DbTextStream a special version of a stream
used to create a database string query
everything is escaped by default
added: DbBase a base class with some basic methods for communicating
with the database
added: DbConn a class for managing connection to the database
changed: some refactoring in Db class
git-svn-id: svn://ttmath.org/publicrep/winix/trunk@655 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -5,33 +5,36 @@ init.o: ../../core/log.h ../../core/request.h ../../core/requesttypes.h
|
||||
init.o: ../../core/session.h ../../core/item.h ../../core/error.h
|
||||
init.o: ../../core/log.h ../../core/user.h ../../core/plugindata.h
|
||||
init.o: ../../core/rebus.h ../../core/config.h ../../core/confparser.h
|
||||
init.o: ../../core/htmlfilter.h ../../core/config.h ../../core/db.h
|
||||
init.o: ../../core/group.h ../../core/thread.h ../../core/dircontainer.h
|
||||
init.o: ../../core/htmlfilter.h ../../core/config.h ../../db/db.h
|
||||
init.o: ../../db/dbbase.h ../../db/dbconn.h ../../db/dbtextstream.h
|
||||
init.o: ../../core/textstream.h ../../db/dbitemquery.h ../../core/item.h
|
||||
init.o: ../../db/dbitemcolumns.h ../../core/user.h ../../core/group.h
|
||||
init.o: ../../core/thread.h ../../core/error.h ../../core/dircontainer.h
|
||||
init.o: ../../core/ugcontainer.h ../../core/ticket.h bot.h stats.h
|
||||
init.o: templates.h ../../core/plugin.h ../../core/pluginmsg.h
|
||||
init.o: ../../core/request.h ../../core/system.h ../../core/dirs.h
|
||||
init.o: ../../core/db.h ../../core/mounts.h ../../core/mount.h
|
||||
init.o: ../../core/mountparser.h ../../core/users.h
|
||||
init.o: ../../core/lastcontainer.h ../../core/groups.h ../../core/loadavg.h
|
||||
init.o: ../../core/sessionmanager.h ../../core/sessioncontainer.h
|
||||
init.o: ../../functions/functions.h ../../functions/functionbase.h
|
||||
init.o: ../../core/item.h ../../core/system.h ../../core/notify.h
|
||||
init.o: ../../templatesnotify/templatesnotify.h ../../../ezc/src/ezc.h
|
||||
init.o: ../../core/mount.h ../../core/locale.h ../../templates/misc.h
|
||||
init.o: ../../templates/localefilter.h ../../core/locale.h
|
||||
init.o: ../../functions/functionparser.h ../../functions/adduser.h
|
||||
init.o: ../../functions/cat.h ../../functions/chmod.h
|
||||
init.o: ../../functions/privchanger.h ../../functions/chown.h
|
||||
init.o: ../../functions/ckeditor.h ../../functions/cp.h
|
||||
init.o: ../../functions/createthread.h ../../functions/createticket.h
|
||||
init.o: ../../functions/default.h ../../functions/download.h
|
||||
init.o: ../../functions/editticket.h ../../functions/emacs.h
|
||||
init.o: ../../functions/last.h ../../functions/login.h
|
||||
init.o: ../../functions/logout.h ../../functions/ls.h ../../functions/mkdir.h
|
||||
init.o: ../../functions/mv.h ../../functions/node.h ../../functions/priv.h
|
||||
init.o: ../../functions/reload.h ../../functions/rm.h ../../functions/run.h
|
||||
init.o: ../../functions/subject.h ../../functions/funthread.h
|
||||
init.o: ../../core/thread.h ../../functions/funticket.h ../../core/ticket.h
|
||||
init.o: ../../core/dircontainer.h ../../core/mounts.h ../../core/mount.h
|
||||
init.o: ../../core/mountparser.h ../../core/users.h ../../core/ugcontainer.h
|
||||
init.o: ../../core/lastcontainer.h ../../core/groups.h ../../core/group.h
|
||||
init.o: ../../core/loadavg.h ../../core/sessionmanager.h
|
||||
init.o: ../../core/sessioncontainer.h ../../functions/functions.h
|
||||
init.o: ../../functions/functionbase.h ../../core/system.h
|
||||
init.o: ../../core/notify.h ../../templatesnotify/templatesnotify.h
|
||||
init.o: ../../../ezc/src/ezc.h ../../core/mount.h ../../core/locale.h
|
||||
init.o: ../../templates/misc.h ../../templates/localefilter.h
|
||||
init.o: ../../core/locale.h ../../functions/functionparser.h
|
||||
init.o: ../../functions/adduser.h ../../functions/cat.h
|
||||
init.o: ../../functions/chmod.h ../../functions/privchanger.h
|
||||
init.o: ../../functions/chown.h ../../functions/ckeditor.h
|
||||
init.o: ../../functions/cp.h ../../functions/createthread.h
|
||||
init.o: ../../functions/createticket.h ../../functions/default.h
|
||||
init.o: ../../functions/download.h ../../functions/editticket.h
|
||||
init.o: ../../functions/emacs.h ../../functions/last.h
|
||||
init.o: ../../functions/login.h ../../functions/logout.h ../../functions/ls.h
|
||||
init.o: ../../functions/mkdir.h ../../functions/mv.h ../../functions/node.h
|
||||
init.o: ../../functions/priv.h ../../functions/reload.h ../../functions/rm.h
|
||||
init.o: ../../functions/run.h ../../functions/subject.h
|
||||
init.o: ../../functions/funthread.h ../../functions/funticket.h
|
||||
init.o: ../../functions/template.h ../../functions/tinymce.h
|
||||
init.o: ../../functions/uname.h ../../functions/upload.h
|
||||
init.o: ../../functions/uptime.h ../../functions/who.h
|
||||
@@ -46,16 +49,19 @@ templates.o: templates.h ../../core/plugin.h ../../core/pluginmsg.h
|
||||
templates.o: ../../core/log.h ../../core/plugindata.h ../../core/config.h
|
||||
templates.o: ../../core/confparser.h ../../core/htmlfilter.h
|
||||
templates.o: ../../core/request.h ../../core/system.h ../../core/dirs.h
|
||||
templates.o: ../../core/item.h ../../core/dircontainer.h ../../core/db.h
|
||||
templates.o: ../../core/mounts.h ../../core/mount.h ../../core/error.h
|
||||
templates.o: ../../core/mountparser.h ../../core/users.h ../../core/user.h
|
||||
templates.o: ../../core/ugcontainer.h ../../core/lastcontainer.h
|
||||
templates.o: ../../core/groups.h ../../core/group.h ../../core/rebus.h
|
||||
templates.o: ../../core/loadavg.h ../../core/sessionmanager.h
|
||||
templates.o: ../../core/sessioncontainer.h ../../core/session.h
|
||||
templates.o: ../../functions/functions.h ../../functions/functionbase.h
|
||||
templates.o: ../../core/item.h ../../core/db.h ../../core/thread.h
|
||||
templates.o: ../../core/ticket.h ../../core/request.h
|
||||
templates.o: ../../core/item.h ../../core/dircontainer.h ../../db/db.h
|
||||
templates.o: ../../db/dbbase.h ../../db/dbconn.h ../../db/dbtextstream.h
|
||||
templates.o: ../../core/textstream.h ../../db/dbitemquery.h ../../core/item.h
|
||||
templates.o: ../../db/dbitemcolumns.h ../../core/user.h ../../core/group.h
|
||||
templates.o: ../../core/thread.h ../../core/error.h ../../core/dircontainer.h
|
||||
templates.o: ../../core/ugcontainer.h ../../core/ticket.h ../../core/mounts.h
|
||||
templates.o: ../../core/mount.h ../../core/error.h ../../core/mountparser.h
|
||||
templates.o: ../../core/users.h ../../core/user.h ../../core/ugcontainer.h
|
||||
templates.o: ../../core/lastcontainer.h ../../core/groups.h
|
||||
templates.o: ../../core/group.h ../../core/rebus.h ../../core/loadavg.h
|
||||
templates.o: ../../core/sessionmanager.h ../../core/sessioncontainer.h
|
||||
templates.o: ../../core/session.h ../../functions/functions.h
|
||||
templates.o: ../../functions/functionbase.h ../../core/request.h
|
||||
templates.o: ../../core/requesttypes.h ../../core/config.h
|
||||
templates.o: ../../core/system.h ../../core/notify.h
|
||||
templates.o: ../../templatesnotify/templatesnotify.h ../../../ezc/src/ezc.h
|
||||
@@ -74,8 +80,7 @@ templates.o: ../../functions/mkdir.h ../../functions/mv.h
|
||||
templates.o: ../../functions/node.h ../../functions/priv.h
|
||||
templates.o: ../../functions/reload.h ../../functions/rm.h
|
||||
templates.o: ../../functions/run.h ../../functions/subject.h
|
||||
templates.o: ../../functions/funthread.h ../../core/thread.h
|
||||
templates.o: ../../functions/funticket.h ../../core/ticket.h
|
||||
templates.o: ../../functions/funthread.h ../../functions/funticket.h
|
||||
templates.o: ../../functions/template.h ../../functions/tinymce.h
|
||||
templates.o: ../../functions/uname.h ../../functions/upload.h
|
||||
templates.o: ../../functions/uptime.h ../../functions/who.h
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include "core/log.h"
|
||||
#include "core/request.h"
|
||||
#include "core/config.h"
|
||||
#include "core/db.h"
|
||||
#include "db/db.h"
|
||||
|
||||
#include "bot.h"
|
||||
#include "stats.h"
|
||||
@@ -148,7 +148,7 @@ void RemoveFile(PluginInfo & info)
|
||||
|
||||
void RemoveDir(PluginInfo & info)
|
||||
{
|
||||
Db::ItemQuery query;
|
||||
DbItemQuery query;
|
||||
std::vector<long> items;
|
||||
size_t i;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user