Enable live demo functionality

This plugin is for the outdated version (v7) of the product.
With the current version (v8), use the plugin available here.

This plugin activates live demo functionality similar to our Live Demo. Login form is prepopulated with a special account data, and by clicking "Sign In" user gets into that account in restricted mode: it is possible to switch between various modes, but mails can only be sent to the same account, and changing account options is locked.

Upon downloading and extracting plugin package, rename its main directory from:

plugin-simple-demo-master

to:

simple-demo

Then you'll need to deploy the plugin so that its index file is available at the following location:

data/plugins/simple-demo/index.php

To enable the plugin, add the following to array defined in data/settings/config.php file:

'plugins.simple-demo' => true, 

Credentials of demo account are supplied in plugin code directly:

const DEMO_LOGIN = 'demo@domain.com';
const DEMO_PASSWORD = '...';

Also, plugin enables special banner displayed on login form, you can change it to whatever you need:

$aResult['LoginDescription'] = 'This is WebMail live demo.';

In case if you might want to enable larger version of language selector used on our live demo, this can be done regardless of whether demo functionality is enabled - set FlagsLangSelect to On in data/settings/settings.xml file.