Update of /cvsroot/phpcms-plugins/admin4phpCMS/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24990/include
Modified Files:
class.eventhandler.php class.actionhandler.php
class.module.php
Log Message:
changed some things
Index: class.module.php
===================================================================
RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/include/class.module.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- class.module.php 4 Jun 2004 11:32:07 -0000 1.5
+++ class.module.php 24 Jul 2004 08:58:24 -0000 1.6
@@ -27,6 +27,9 @@
**/
/*
* $Log$
+* Revision 1.6 2004/07/24 08:58:24 mjahn
+* changed some things
+*
* Revision 1.5 2004/06/04 11:32:07 mjahn
* several changes
*
@@ -51,6 +54,7 @@
function __construct (&$eventhandler) {
$this->_event =& $eventhandler;
+ $this->docroot = realpath ($_SERVER['DOCUMENT_ROOT']);
}
function _registerEvent ($eventname, $eventaction) {
Index: class.actionhandler.php
===================================================================
RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/include/class.actionhandler.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- class.actionhandler.php 4 Jun 2004 11:32:07 -0000 1.5
+++ class.actionhandler.php 24 Jul 2004 08:58:24 -0000 1.6
@@ -30,6 +30,9 @@
/*
* $Log$
+* Revision 1.6 2004/07/24 08:58:24 mjahn
+* changed some things
+*
* Revision 1.5 2004/06/04 11:32:07 mjahn
* several changes
*
@@ -103,9 +106,12 @@
if (!isset($this->_actions[$actionname])) {
return false;
}
-
+
reset ($this->_actions[$actionname]);
foreach ($this->_actions[$actionname] as $actionclass => $actionmethod ) {
+ if (DEBUG) {
+ echo '<p>Action: '.$actionclass.'::'.$actionmethod.'</p>';
+ }
$object =& $this->__getInstance($actionclass);
$object->{$actionmethod}($actiondata);
}
Index: class.eventhandler.php
===================================================================
RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/include/class.eventhandler.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- class.eventhandler.php 18 Jun 2004 15:16:59 -0000 1.6
+++ class.eventhandler.php 24 Jul 2004 08:58:24 -0000 1.7
@@ -30,6 +30,9 @@
/*
* $Log$
+* Revision 1.7 2004/07/24 08:58:24 mjahn
+* changed some things
+*
* Revision 1.6 2004/06/18 15:16:59 mjahn
* module filemanager and editor included
*
@@ -102,7 +105,9 @@
}
$action = $this->_events[$eventname];
- //echo '<p>Event: '.$eventname.'-> '.$action.'</p>';
+ if (DEBUG) {
+ echo '<p>Event: '.$eventname.'-> '.$action.'</p>';
+ }
return $this->_actionHandler->action($action, $actiondata);
}
|