ispmgr 5 business: event handler
Hello,
I am trying to write event handler that will be executed after new user is added. I can not get it working, seems that handler is not registered. Content of /usr/local/mgr5/etc/xml/ispmgr_mod_useradd.xml Code:
<?xml version="1.0" encoding="UTF-8"?> Code:
#!/usr/bin/php-cgi BTW: I used such an approach in version 4 of ispsystem products and there was no problem. Thanks, -Maciej |
Hello,
If you use Business version, you need to name xml file as ispmgrnode_mod_... Please try to rename file and restart a control panel. |
Hello,
Thank you for the answer. However I renamed the file to ispmgrnode_mod_useradd.xml and it still does not work. The handler is not executed. Thanks, -Maciej |
I have plugin works with next xml file:
# cat /usr/local/mgr5/etc/xml/ispmgr_mod_useradd.xml <?xml version="1.0" encoding="UTF-8"?> <mgrdata> <handler name="uh-useradd.php" type="cgi"> <event name="user.add.finish" after="yes" /> </handler> </mgrdata> OR # cat /usr/local/mgr5/etc/xml/ispmgrnode_mod_useradd.xml <?xml version="1.0" encoding="UTF-8"?> <mgrdata> <handler name="uh-useradd.php" type="cgi"> <event name="user.edit" after="yes" /> </handler> </mgrdata> If you want to have plugin for ispmgrnode you need to add this file on a all nodes. |
Seems the event format has changed from:
Code:
<event after="yes">user.add.finish</event> Code:
<event name="user.add.finish" after="yes" /> |
I was glad to help you )
|
All times are GMT +2. The time now is 06:31 AM. |
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.