==================================================================
Snippet-title: moon_phase v1.1
Creator: Graham Keellings
E-mail: pivot@keellings.com
Website: http://www.keellings.com/software/pivot.php
Creation date: 26 Oct 2005, munich, Germany
==================================================================
Content of zipped file:
-----------------------
snippet_moon_phase.php
readme_moon_phase.txt (this file)
Usage:
------
1) unpack this package in your extensions/snippets/ folder.
2) place a [[moon_phase]] tag, with the appropriate parameter, in any of your template files, whereever you want the output to appear.
3) rebuild the FrontPage(s).
Description:
------------
* Returns various information about the current phase of the moon,
* as specified by the parameter.
*
Parameters:
-----------
* @param string format - the snippet can output various different moon data:
* 0 (default) a 100 x 100 .GIF file (with a black
* background) image of the current phase, pulled
* from a U.S navy site
* 1 The phase name. e.g Third Quarter Moon
* 2 The percentage of lunar illumination. e.g 41.5%
* 3 The days until the next full moon. e.g 21.35
* 4 The days until the next new moon. e.g 6.6
* 5 The days until the next first quarter moon. e.g 14
* 6 The days until the next last quarter moon. e.g 28.7
* 7 The position (phase) within the moon's cycle. e.g 0.277157294323
*
* @access public
* @return string The generated HTML, as described above.
* History:
*
* v 1.1 2006/02/17 Sentosa Island, Singapore
* - don't show test output when on a non- "Live Page"
* - change all output '
' to '
' for W3C validator compliance
* - added version control
*
* v 1.0 2005/10/26 Munich, Germany
* initial version
*