AutoTask

Description

Figures out which task to run and actually runs it if necessary

Syntax

mixed AutoTask ()



Return value

Expected type: Mixed
Description:

Possible types
Allowed values Description
Boolean Returns true if $_GET['scheduled'] is set
Void Dies with a blank GIF image if $_GET['scheduled'] isn't set (see code for specifics)


Notes

  • Figures out which task should be run next
  • Calls ReduceMailQueue if $_GET['scheduled'] is set and is 'mailq'
  • Skips the next instance of the current task if it's more than halfway towards the time the task is next scheduled to be run
Advertisement: