- <?
- /**
- * The index.php.
- * The main entry for a browser request
- *
- * @package util
- * @filesource
- * @see index.php
- * @copyright (c) http://Finn-Rasmussen.com
- * @license http://Finn-Rasmussen.com/license/ myPHP License conditions
- * @author http://Finn-Rasmussen.com
- * @version 1.9
- * @since 21-oct-2005
- */
-
- /**
- * The required files
- */
- require_once($_SERVER['DOCUMENT_ROOT'].'/initialize.php');
-
- require_once(HTML_UTIL_COMPONENT_PATH.'/Format.php');
- require_once(HTML_UTIL_COMPONENT_PATH.'/Request.php');
- require_once(HTML_UTIL_COMPONENT_PATH.'/Server.php');
- require_once(HTML_UTIL_COMPONENT_PATH.'/Decrypt.php');
- require_once(HTML_UTIL_COMPONENT_PATH.'/Encrypt.php');
- require_once(HTML_UTIL_COMPONENT_PATH.'/Referer.php');
- require_once(HTML_UTIL_COMPONENT_PATH.'/Session.php');
-
- print "<h4>Test of Format</h4>";
- Format::display('650',FORMAT_STYLE_MONEY_LONG);
-
- print "<h4>Test of Request</h4>";
- Request::display();
-
- print "<h4>Test of Server</h4>";
- Server::display();
-
- print "<h4>Test of Encrypt</h4>";
- $encryptedText = Encrypt::it('Some text');
- print "<p>encryptedText = $encryptedText</p>";
-
- print "<h4>Test of Decrypt</h4>";
- $decryptedText = Decrypt::it($encryptedText);
- print "<p>decryptedText = $decryptedText</p>";
-
- print "<h4>Test of Referer</h4>";
- Referer::display();
-
- print "<h4>Test of Session</h4>";
- Session::display();
- ?>