Prototype SysMgr
ACTIONS | FUNCTIONS | MACROS | SKINS | TEMPLATES | TYPE.PROPERTIES

Actions
logs_action
action for displaying system logs
main_action
main action
setup_action
setup action
sites_action
site maintenance action
status_action
system status
users_action
user maintenance action
 
Functions
autoCleanUp()
function determines if it's time to start automatic cleanup
blockPrivateSites()
function blocks private sites that are offline for too long if enabled and configured properly in app.properties
cleanupAccesslog()
function deletes all accesslog-records older than 48 hours and with story-id = null
constructor()
constructor-function
deleteInactiveSites()
function disposes sites that are inactive for too long FUNCTION DISABLED!
evalSystemSetup(param, admin)
function checks if the system parameters are correct
onRequest()
function is called at each request and checks if user is logged in and is sysadmin
renderManagerView(item)
additional check that is done for each item in the system manager lists
searchSites(show, sort, order, keywords)
function manipulates the sites-collection
searchSyslog(show, order, keywords)
function manipulates the syslogs-collection
searchUsers(show, sort, order, keywords)
function manipulates the users-collection
updateSite(param, admin)
function stores updated site-preferences
updateUser(param, admin)
function stores updated user
 
Macros
SysMgr.dropdown
macro renders a dropdown-box
SysMgr.moduleSetup
macro checks if there are any modules present and if they need to be included in the system setup page
 
Skins
blockwarnmail.skin
param.contact, param.daysleft, param.privatetime, param.site, param.url
deletewarnmail.skin
param.daysleft, param.inactivity, param.site, param.url
list.skin
response.list, response.pagenavigation
setup.skin
response.action
sitesearchform.skin
response.action
status.skin
param.activeThreads, param.cacheUsage, param.errors, param.freeMemory, param.freeThreads, param.maxThreads, param.requests, param.sessions, param.totalMemory, param.upSince, param.usedMemory, param.xmlrpc
syslogsearchform.skin
response.action
usersearchform.skin
response.action
 


type.properties
##
## collections
##
sites                = collection(Site)
sites.accessname     = SITE_ALIAS
sites.order          = SITE_CREATETIME desc

privateSites         = collection(Site)
privateSites.order   = SITE_LASTOFFLINE asc
privateSites.filter  = SITE_ISONLINE = 0 and SITE_ISBLOCKED = 0

users                = collection(User)
users.accessname     = USER_NAME

sysadmins            = collection(User)
sysadmins.accessname = USER_NAME
sysadmins.filter     = USER_ISSYSADMIN = 1

syslogs              = collection(SysLog)
syslogs.order        = SYSLOG_CREATETIME desc, SYSLOG_ID desc
syslogs.maxSize      = 500