Update of /cvsroot/phpcms-plugins/admin4phpCMS/modules/filemanager
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16471/modules/filemanager
Modified Files:
class.module_filemanager.php
Log Message:
separated layout-files
Index: class.module_filemanager.php
===================================================================
RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/modules/filemanager/class.module_filemanager.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- class.module_filemanager.php 4 Jun 2004 11:11:57 -0000 1.1
+++ class.module_filemanager.php 5 Jun 2004 12:44:22 -0000 1.2
@@ -30,6 +30,9 @@
/*
* $Log$
+* Revision 1.2 2004/06/05 12:44:22 mjahn
+* separated layout-files
+*
* Revision 1.1 2004/06/04 11:11:57 mjahn
* several changes
*
@@ -62,18 +65,27 @@
$this->action = $actiondata['request']['action'];
}
}
-
+
function process (&$actiondata) {
-
+ $actiondata = array();
+ $this->_callEvent ('USER_GET_STATUS', $actiondata);
+ $this->_USER = $actiondata;
}
-
+
function getMenuMain (&$actiondata) {
+ if (!$this->_USER['isLoggedIn']) {
+ return true;
+ }
$root = $actiondata['_root'];
$actiondata = array ('_type'=>'menu_main_entry', '_root'=>$root, 'name'=>'Dateimanager', 'module'=>'filemanager', '_id'=>'filemanager', '_root'=>'mainmenu', 'id'=>'', 'class'=>'', 'params'=>'');
$this->_callEvent('LAYOUT_ADD_ELEMENT', $actiondata);
}
function getMenuSub (&$actiondata) {
+ if (!$this->_USER['isLoggedIn']) {
+ return true;
+ }
+
if (!$this->display) {
return true;
}
|