SysMgr.autoCleanUp ()
function determines if it's time to start automatic cleanup

Sourcecode in SysMgr/cleanupFunctions.js:
1:   function autoCleanUp() {
2:      if (root.sys_enableAutoCleanup) {
3:         var startAtHour = root.sys_startAtHour;
4:         var nextCleanup = new Date();
5:         nextCleanup.setDate(nextCleanup.getDate() + 1);
6:         nextCleanup.setHours((!isNaN(startAtHour) ? startAtHour : 0), 0, 0, 0);
7:         // check if it's time to run autocleanup
8:         if (!app.data.nextCleanup) {
9:            app.data.nextCleanup = nextCleanup;
10:           this.add (new SysLog("system", null, "next cleanup scheduled for " + app.data.nextCleanup.format("EEEE, dd.MM.yyyy HH:mm"), null));
11:        } else if (new Date() >= app.data.nextCleanup) {
12:           this.syslogs.add (new SysLog("system", null, "starting automatic cleanup ...", null));
13:           app.data.nextCleanup = nextCleanup;
14:           // now start the auto-cleanup-functions
15:           this.cleanupAccesslog();
16:           this.blockPrivateSites();
17:           // this.deleteInactiveSites();
18:           this.add (new SysLog("system", null, "next cleanup scheduled for " + app.data.nextCleanup.format("EEEE, dd.MM.yyyy HH:mm"), null));
19:        }
20:     }
21:  }