You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

45 lines
1.6 KiB

<?php
// (c) Copyright by authors of the Tiki Wiki CMS Groupware Project
//
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$
function prefs_webcron_list()
{
return [
'webcron_enabled' => [
'name' => tra('Enabled'),
'description' => tra('Cron jobs can be triggered from a URL or with JavaScript. A token is required to run the cron job manually.'),
'help' => 'Cron#Web_Cron',
'type' => 'flag',
'default' => 'n',
],
'webcron_type' => [
'name' => tra('How to trigger Web Cron'),
'type' => 'list',
'options' => [
'url' => tra('Calling the Web Cron URL'),
'js' => tra('Adding JavaScript that calls Web Cron'),
'both' => tra('URL and JavaScript'),
],
'default' => 'both',
],
'webcron_run_interval' => [
'name' => tra('Run interval'),
'description' => tra('The amount of time of each run'),
'type' => 'text',
'size' => 5,
'filter' => 'digits',
'units' => tra('seconds'),
'default' => 60,
],
'webcron_token' => [
'name' => tra('Token'),
'description' => tra('The token to use when running the cron manually'),
'type' => 'text',
'default' => md5(phpseclib\Crypt\Random::string(100)),
],
];
}