[ '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)), ], ]; }