rewritten: plugin 'menu'

now we have a cache for the plugin
           (this limits the number of database requests)
added:     to plugin 'menu'
           menu_dir_tab can have a 'current' parameter (first argument)
           (it uses the last path from the previous menu_dir_tab) 
changed:   updated to the new EZC api
added:     new message to plugins: WINIX_DIR_ADDED


git-svn-id: svn://ttmath.org/publicrep/winix/trunk@808 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2012-02-24 12:09:38 +00:00
parent 97c7edafd6
commit a45fb30e0a
11 changed files with 632 additions and 304 deletions

View File

@@ -633,7 +633,12 @@ mkdir.o: ../core/lastcontainer.h ../templates/misc.h
mkdir.o: ../templates/htmltextstream.h ../core/mounts.h ../core/mountparser.h
mkdir.o: ../core/crypt.h ../core/users.h ../core/groups.h ../core/group.h
mkdir.o: ../core/loadavg.h ../core/image.h ../core/basethread.h
mkdir.o: ../core/threadmanager.h ../core/synchro.h
mkdir.o: ../core/threadmanager.h ../core/synchro.h ../core/plugin.h
mkdir.o: ../core/pluginmsg.h ../core/system.h ../core/sessionmanager.h
mkdir.o: ../core/sessioncontainer.h ../functions/functions.h
mkdir.o: ../templates/templates.h ../templates/patterncacher.h
mkdir.o: ../templates/indexpatterns.h ../templates/patterns.h
mkdir.o: ../templates/changepatterns.h ../core/sessionmanager.h
mount.o: mount.h functionbase.h ../core/item.h ../db/db.h ../db/dbbase.h
mount.o: ../db/dbconn.h ../db/dbtextstream.h ../core/textstream.h
mount.o: ../core/misc.h ../core/item.h ../core/requesttypes.h ../core/error.h

View File

@@ -9,6 +9,7 @@
#include "mkdir.h"
#include "functions.h"
#include "core/plugin.h"
@@ -63,11 +64,15 @@ void Mkdir::PostFunMkdir(bool add_to_dir_tab, int privileges)
functions->ReadItem(cur->request->item, Item::dir);
functions->SetUser(cur->request->item);
cur->request->item.privileges = privileges;
Item * pdir;
cur->request->status = system->dirs.AddDirectory(cur->request->item, add_to_dir_tab);
cur->request->status = system->dirs.AddDirectory(cur->request->item, add_to_dir_tab, &pdir);
if( cur->request->status == WINIX_ERR_OK )
{
if( pdir )
plugin.Call(WINIX_DIR_ADDED, pdir);
system->RedirectTo(cur->request->item);
}
else