]> git.mxchange.org Git - friendica-addons.git/blob - public_server/README.md
Merge pull request #553 from annando/osm-cache
[friendica-addons.git] / public_server / README.md
1 Public Server
2 =============
3
4
5 Public Server is a Friendica addon which implements automatic account & post expiration so that a site may be used as a public
6 test bed with reduced data retention. 
7
8 This is a modified version of the testdrive addon, DO NOT ACTIVATE AT THE SAME TIME AS THE TESTDRIVE ADDON.
9
10     //When an account is created on the site, it is given a hard expiration date of 
11     $a->config['public_server']['expiredays'] = 30;
12     //Set the default days for posts to expire here
13     $a->config['public_server']['expireposts'] = 30;
14     //Remove users who have never logged in after nologin days
15     $a->config['public_server']['nologin'] = 30;
16     //Remove users who last logged in over flagusers days ago
17     $a->config['public_server']['flagusers'] = 146;
18     //For users who last logged in over flagposts days ago set post expiry days to flagpostsexpire
19     $a->config['public_server']['flagposts'] = 90;
20     $a->config['public_server']['flagpostsexpire'] = 146;
21
22 Set these in your .htconfig.php file. By default nothing is defined in case the addon is activated accidentally. 
23 They can be ommitted or set to 0 to disable each option.
24 The default values are those used by friendica.eu, change these as desired.
25
26 The expiration date is updated when the user logs in.
27
28 An email warning will be sent out approximately five days before the expiration occurs. Five days later the account is removed completely. 
29