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 Both sides next revision
plugins:demo [2014/02/23 09:30]
nuxwin [Disabled actions]
plugins:demo [2014/02/23 09:32]
nuxwin [Configuration file sample]
Line 59: Line 59:
 A configuration file for the demo plugin can be: A configuration file for the demo plugin can be:
  
-<code php> 
-<?php 
 // 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 
- // 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( 
- '​label'​ => '​Administrator 1', +   '​label'​ => '​Administrator 1', 
- '​username'​ => '​admin1',​ +   '​username'​ => '​admin1',​ 
- '​password'​ => '​admin1',​ +   '​password'​ => '​admin1',​ 
- '​protected'​ => true +   '​protected'​ => true 
- ), +   ), 
- array( +   array( 
- '​label'​ => '​Administrator 2', +   '​label'​ => '​Administrator 2', 
- '​username'​ => '​admin2',​ +   '​username'​ => '​admin2',​ 
- '​password'​ => '​admin2',​ +   '​password'​ => '​admin2',​ 
- '​protected'​ => true +   '​protected'​ => true 
- ), +   ), 
- array( +   array( 
- '​label'​ => '​Administrator 3', +   '​label'​ => '​Administrator 3', 
- '​username'​ => '​admin3',​ +   '​username'​ => '​admin3',​ 
- '​password'​ => '​admin3',​ +   '​password'​ => '​admin3',​ 
- '​protected'​ => true +   '​protected'​ => true 
- ), +   ), 
- array( +   array( 
- '​label'​ => '​Reseller 1', +   '​label'​ => '​Reseller 1', 
- '​username'​ => '​reseller1',​ +   '​username'​ => '​reseller1',​ 
- '​password'​ => '​reseller1',​ +   '​password'​ => '​reseller1',​ 
- '​protected'​ => true +   '​protected'​ => true 
- ), +   ), 
- array( +   array( 
- '​label'​ => '​Reseller 2', +   '​label'​ => '​Reseller 2', 
- '​username'​ => '​reseller2',​ +   '​username'​ => '​reseller2',​ 
- '​password'​ => '​reseller2',​ +   '​password'​ => '​reseller2',​ 
- '​protected'​ => true +   '​protected'​ => true 
- ), +   ), 
- array( +   array( 
- '​label'​ => '​Reseller 3', +   '​label'​ => '​Reseller 3', 
- '​username'​ => '​reseller3',​ +   '​username'​ => '​reseller3',​ 
- '​password'​ => '​reseller3',​ +   '​password'​ => '​reseller3',​ 
- '​protected'​ => true +   '​protected'​ => true 
- ), +   ), 
- array( +   array( 
- '​label'​ => '​Customer 1', +   '​label'​ => '​Customer 1', 
- '​username'​ => '​domain1.tld',​ +   '​username'​ => '​domain1.tld',​ 
- '​password'​ => '​domain1',​ +   '​password'​ => '​domain1',​ 
- '​protected'​ => true +   '​protected'​ => true 
- ), +   ), 
- array( +   array( 
- '​label'​ => '​Customer 2', +   '​label'​ => '​Customer 2', 
- '​username'​ => '​domain2.tld',​ +   '​username'​ => '​domain2.tld',​ 
- '​password'​ => '​domain2',​ +   '​password'​ => '​domain2',​ 
- '​protected'​ => true +   '​protected'​ => true 
- ), +   ), 
- array( +   array( 
- '​label'​ => '​Customer 3', +   '​label'​ => '​Customer 3', 
- '​username'​ => '​domain3.tld',​ +   '​username'​ => '​domain3.tld',​ 
- '​password'​ => '​domain3',​ +   '​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:​ +   // Important consideration:​ 
- // Even if you add the '​onBeforeDeactivatePlugin'​ in the list below, you'll still able to deactivate this plugin. +   // 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. +   // 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',​ +   '​onBeforeEditAdminGeneralSettings',​ 
- '​onBeforeAddUser',​ +   '​onBeforeAddUser',​ 
- '​onBeforeEditUser',​ +   '​onBeforeEditUser',​ 
- '​onBeforeDeleteUser',​ +   '​onBeforeDeleteUser',​ 
- '​onBeforeDeleteCustomer',​ +   '​onBeforeDeleteCustomer',​ 
- '​onBeforeAddFtp',​ +   '​onBeforeAddFtp',​ 
- '​onBeforeEditFtp',​ +   '​onBeforeEditFtp',​ 
- '​onBeforeDeleteFtp',​ +   '​onBeforeDeleteFtp',​ 
- '​onBeforeAddSqlUser',​ +   '​onBeforeAddSqlUser',​ 
- '​onBeforeEditSqlUser',​ +   '​onBeforeEditSqlUser',​ 
- '​onBeforeDeleteSqlUser',​ +   '​onBeforeDeleteSqlUser',​ 
- '​onBeforeAddSqlDb',​ +   '​onBeforeAddSqlDb',​ 
- '​onBeforeDeleteSqlDb',​ +   '​onBeforeDeleteSqlDb',​ 
- '​onBeforeUpdatePluginList',​ +   '​onBeforeUpdatePluginList',​ 
- '​onBeforeInstallPlugin',​ +   '​onBeforeInstallPlugin',​ 
- '​onBeforeUninstallPlugin',​ +   '​onBeforeUninstallPlugin',​ 
- '​onBeforeEnablePlugin',​ +   '​onBeforeEnablePlugin',​ 
- '​onBeforeDisablePlugin',​ +   '​onBeforeDisablePlugin',​ 
- '​onBeforeUpdatePlugin',​ +   '​onBeforeUpdatePlugin',​ 
- '​onBeforeDeletePlugin',​ +   '​onBeforeDeletePlugin',​ 
- '​onBeforeProtectPlugin',​ +   '​onBeforeProtectPlugin',​ 
- '​onBeforeAddDomain',​ +   '​onBeforeAddDomain',​ 
- '​onBeforeEditDomain',​ +   '​onBeforeEditDomain',​ 
- '​onBeforeAddSubdomain',​ +   '​onBeforeAddSubdomain',​ 
- '​onBeforeEditSubdomain',​ +   '​onBeforeEditSubdomain',​ 
- '​onBeforeDeleteSubdomain',​ +   '​onBeforeDeleteSubdomain',​ 
- '​onBeforeAddDomainAlias',​ +   '​onBeforeAddDomainAlias',​ 
- '​onBeforeEditDomainAlias',​ +   '​onBeforeEditDomainAlias',​ 
- '​onBeforeDeleteDomainAlias',​ +   '​onBeforeDeleteDomainAlias',​ 
- '​onBeforeAddMail',​ +   '​onBeforeAddMail',​ 
- '​onBeforeEditMail',​ +   '​onBeforeEditMail',​ 
- '​onBeforeDeleteMail',​ +   '​onBeforeDeleteMail',​ 
- '​onBeforeAddExternalMailServer',​ +   '​onBeforeAddExternalMailServer',​ 
- '​onBeforeChangeDomainStatus'​ +   '​onBeforeChangeDomainStatus'​ 
-+  
-); +  );
-</​code>​+
  
 This file live in the [[https://​github.com/​i-MSCP/​imscp/​tree/​master/​gui/​plugins/​Demo|gui/​plugins/​Demo]] directory and is named [[https://​github.com/​i-MSCP/​imscp/​blob/​master/​gui/​plugins/​Demo/​config.php|config.php]]. This file live in the [[https://​github.com/​i-MSCP/​imscp/​tree/​master/​gui/​plugins/​Demo|gui/​plugins/​Demo]] directory and is named [[https://​github.com/​i-MSCP/​imscp/​blob/​master/​gui/​plugins/​Demo/​config.php|config.php]].
/var/www/virtual/i-mscp.net/wiki/htdocs/data/pages/plugins/demo.txt · Last modified: 2014/02/23 09:44 by nuxwin