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 [2013/04/27 05:13]
nuxwin [II. Plugin activation]
plugins:demo [2014/02/01 18:44]
nuxwin
Line 2: Line 2:
  
 ====== Version Info ====== ====== Version Info ======
-^Plugin Version|0.0.7|+^Plugin Version|1.0.0|
 ^Author|Laurent Declercq <​[email protected]>​| ^Author|Laurent Declercq <​[email protected]>​|
 ^License|GPLv2| ^License|GPLv2|
-^i-MSCP target versions|>​= 1.0.2.1+^i-MSCP target versions|>​= ​1.1.0| 
-^Last Update|2012-02-16|+^Last Update|2014-02-01|
  
 ======Introduction====== ======Introduction======
Line 70: Line 70:
 <code php> <code php>
 <?php <?php
 +// 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 + // will be imposible to remove it. Also, its password will be protected against modification.
- will be imposible to remove it. Also, its password will be protected against modification. +
- */+
  '​user_accounts'​ => array(  '​user_accounts'​ => array(
  array(  array(
Line 80: Line 80:
  '​username'​ => '​admin1',​  '​username'​ => '​admin1',​
  '​password'​ => '​admin1',​  '​password'​ => '​admin1',​
 + '​protected'​ => true
 + ),
 + array(
 + '​label'​ => '​Administrator 2',
 + '​username'​ => '​admin2',​
 + '​password'​ => '​admin2',​
 + '​protected'​ => true
 + ),
 + array(
 + '​label'​ => '​Administrator 3',
 + '​username'​ => '​admin3',​
 + '​password'​ => '​admin3',​
  '​protected'​ => true  '​protected'​ => true
  ),  ),
Line 86: Line 98:
  '​username'​ => '​reseller1',​  '​username'​ => '​reseller1',​
  '​password'​ => '​reseller1',​  '​password'​ => '​reseller1',​
 + '​protected'​ => true
 + ),
 + array(
 + '​label'​ => '​Reseller 2',
 + '​username'​ => '​reseller2',​
 + '​password'​ => '​reseller2',​
 + '​protected'​ => true
 + ),
 + array(
 + '​label'​ => '​Reseller 3',
 + '​username'​ => '​reseller3',​
 + '​password'​ => '​reseller3',​
 + '​protected'​ => true
 + ),
 + array(
 + '​label'​ => '​Customer 1',
 + '​username'​ => '​domain1.tld',​
 + '​password'​ => '​domain1',​
 + '​protected'​ => true
 + ),
 + array(
 + '​label'​ => '​Customer 2',
 + '​username'​ => '​domain2.tld',​
 + '​password'​ => '​domain2',​
 + '​protected'​ => true
 + ),
 + array(
 + '​label'​ => '​Customer 3',
 + '​username'​ => '​domain3.tld',​
 + '​password'​ => '​domain3',​
  '​protected'​ => true  '​protected'​ => true
  )  )
  ),  ),
  
- /+ /List of actions that must be totally disabled. Each action must be prefixed by '​onBefore'​ 
- List of actions that must be totally disabled. Each action must be prefixed by '​onBefore'​ + /
- */+ // Important consideration:​ 
 + // Even if you add the '​onBeforeDeactivatePlugin'​ in the list below, you'll still able to deactivate this plugin. 
 + // The only way to protect this plugin against deactivation is to protect it using the plugin protection feature.
  '​disabled_actions'​ => array(  '​disabled_actions'​ => array(
 + '​onBeforeEditAdminGeneralSettings',​
 + '​onBeforeAddUser',​
 + '​onBeforeEditUser',​
 + '​onBeforeDeleteUser',​
 + '​onBeforeDeleteCustomer',​
  '​onBeforeAddFtp',​  '​onBeforeAddFtp',​
  '​onBeforeEditFtp',​  '​onBeforeEditFtp',​
Line 101: Line 150:
  '​onBeforeDeleteSqlUser',​  '​onBeforeDeleteSqlUser',​
  '​onBeforeAddSqlDb',​  '​onBeforeAddSqlDb',​
- '​onBeforeDeleteSqlDb'​+ '​onBeforeDeleteSqlDb', 
 + '​onBeforeUpdatePluginList',​ 
 + '​onBeforeInstallPlugin',​ 
 + '​onBeforeUninstallPlugin',​ 
 + '​onBeforeEnablePlugin',​ 
 + '​onBeforeDisablePlugin',​ 
 + '​onBeforeUpdatePlugin',​ 
 + '​onBeforeDeletePlugin',​ 
 + '​onBeforeProtectPlugin',​ 
 + '​onBeforeAddDomain',​ 
 + '​onBeforeEditDomain',​ 
 + '​onBeforeAddSubdomain',​ 
 + '​onBeforeEditSubdomain',​ 
 + '​onBeforeDeleteSubdomain',​ 
 + '​onBeforeAddDomainAlias',​ 
 + '​onBeforeEditDomainAlias',​ 
 + '​onBeforeDeleteDomainAlias',​ 
 + '​onBeforeAddMail',​ 
 + '​onBeforeEditMail',​ 
 + '​onBeforeDeleteMail',​ 
 + '​onBeforeAddExternalMailServer',​ 
 + '​onBeforeChangeDomainStatus'
  )  )
 ); );
/var/www/virtual/i-mscp.net/wiki/htdocs/data/pages/plugins/demo.txt · Last modified: 2014/02/23 09:44 by nuxwin