An action file provides at least one function matching its own filename. A file called action/laugh.php should therefore declare a function called action_laugh_dist().
Operation of the function
In general, the main function is divided into 2 sections: verification of authorisations, then execution of the requested process.
