PHP:
/*
* DirectAdmin.php: The base class.
* Example.php: The subclass.
* index.php: The main script.
* index.xsl: The stylesheet.
*/
The base class (DirectAdmin.php) provides an API for the subclass (Example.php) to retrieve data from DirectAdmin's API.
The subclass (Example.php) contains a set of methods/functions that wraps DirectAdmin's commands and parses the output from DirectAdmin's API.
The main script (index.php) formats the data returned to XML, HTML, etc.
The stylesheet (index.xsl) can be linked to a XML document to output text/html/xhtml.
DirectAdmin.php has been updated. - 2006-01-05
Attachments
Last edited: