User Tools

Site Tools


plugins:demo

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
plugins:demo [2014/02/23 09:34]
nuxwin [Protection against deletion and password modification (Demo users)]
plugins:demo [2014/02/23 09:35]
nuxwin [Disabled actions]
Line 37: Line 37:
 ====Disabled actions==== ====Disabled actions====
  
-The plugin allows to disable some actions such as **addFtp**, **EditFtp**,​ **DeleteFtp**. The action names are same as event names dispatched in i-MSCP code. Only the **onBefore*** actions are supported since the others are not really relevant in the demo plugin context. You can see all integrated events by reading the [[https://​github.com/​i-MSCP/​imscp/​blob/​master/​gui/​library/​iMSCP/​Events.php|iMSCP_Events]] class.+The plugin allows to disable some actions such as **addFtp**, **EditFtp**,​ **DeleteFtp**. The action names are same as event names dispatched in i-MSCP code. Only the **onBefore** actions are supported since the others are not really relevant in the demo plugin context. You can see all integrated events by reading the [[https://​github.com/​i-MSCP/​imscp/​blob/​master/​gui/​library/​iMSCP/​Events.php|iMSCP_Events]] class.
  
 To disable one or more actions, you must add a new section like below in the plugin configuration file: To disable one or more actions, you must add a new section like below in the plugin configuration file:
Line 59: Line 59:
 A configuration file for the demo plugin can be: A configuration file for the demo plugin can be:
  
-// Configuration file sample for the demo plugin +  ​// Configuration file sample for the demo plugin 
 +  
   return array(   return array(
   // List of user accounts that will be available via select box on login page. If an user account is protected, it   // List of user accounts that will be available via select box on login page. If an user account is protected, it
/var/www/virtual/i-mscp.net/wiki/htdocs/data/pages/plugins/demo.txt · Last modified: 2014/02/23 09:44 by nuxwin