From 9f0a441fe4ee4e94bbfcc8e4638fccc30d43ad56 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Wed, 27 Jun 2018 23:19:11 -0400 Subject: [PATCH] [testdrive] Add addon config - Update mentions of .htconfig.php --- testdrive/README.md | 19 +++++++++---------- testdrive/config/testdrive.ini.php | 12 ++++++++++++ testdrive/testdrive.php | 7 +++++++ 3 files changed, 28 insertions(+), 10 deletions(-) create mode 100644 testdrive/config/testdrive.ini.php diff --git a/testdrive/README.md b/testdrive/README.md index edc63ed5..a880cc86 100644 --- a/testdrive/README.md +++ b/testdrive/README.md @@ -3,21 +3,20 @@ TestDrive Testdrive is a Friendica addon which implements automatic account expiration so that a site may be used as a public -test bed. +test bed. -When an account is created on the site, it is given a hard expiration date of +When an account is created on the site, it is given a hard expiration date of + [testdrive] + expiredays = 30 -$a->config['testdrive']['expiredays'] = 30; - -Set this in your .htconfig.php file to allow a 30 day test drive period. By default no expiration period is defined -in case the addon is activated accidentally. +Set this in your config/local.ini.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. +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. - \ No newline at end of file +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. diff --git a/testdrive/config/testdrive.ini.php b/testdrive/config/testdrive.ini.php new file mode 100644 index 00000000..253a21d8 --- /dev/null +++ b/testdrive/config/testdrive.ini.php @@ -0,0 +1,12 @@ +loadConfigFile(__DIR__. '/config/testdrive.ini.php'); +} + function testdrive_globaldir_update($a,&$b) { $b['url'] = ''; }