friendica-addons/testdrive
Philipp Holzer 5c6108b3cc
Dynamic config loading
- Move settings, defaults and dbstructure to directory 'static'
- Dynamic loading of config files (after the static loading)
- Filter out '-sample.config.php' and '-sample.ini.php' files
- Remove unnecessary ConfigFileManager
- Move ConfigFileLoader to Utils
- Add tests for multi-loading for INI, config and sample-filtering
2019-07-16 21:44:54 +02:00
..
config
lang
README.md
testdrive.php Dynamic config loading 2019-07-16 21:44:54 +02:00

TestDrive

Testdrive is a Friendica addon which implements automatic account expiration so that a site may be used as a public test bed.

When an account is created on the site, it is given a hard expiration date of

'testdrive' => [
	'expiredays' => 30,
],

Set this in your config/addon.config.php file to allow a 30 day test drive period. By default no expiration period is defined in case the addon is activated accidentally.

There is no opportunity to extend an expired account using this addon. Expiration is final. Other addons may be created which charge for service and extend the expiration as long as a balance is maintained. This addon is purely for creating a limited use test site.

An email warning will be sent out approximately five days before the expiration occurs. Once it occurs logins and many system functions are disabled. Five days later the account is removed completely.