2 //--------------------------------------------------------------------
3 if ( !defined('UTF8') ) {
4 define('UTF8',realpath(dirname(__FILE__).'/../'));
7 if ( !defined('UTF8DATA') ) {
8 define('UTF8DATA',dirname(__FILE__).'/data');
13 if ( !isset($_GET['engine']) ) {
14 $_GET['engine'] = 'auto';
18 * Testing against a particular "engine"
20 switch ( $_GET['engine'] ) {
22 if ( !function_exists('mb_strtolower') ) {
23 trigger_error("mbstring extension not detected on your system!", E_USER_ERROR );
25 mb_internal_encoding('UTF-8');
26 require_once UTF8 . '/mbstring/core.php';
29 require_once UTF8 . '/utils/unicode.php';
30 require_once UTF8 . '/native/core.php';
34 require_once UTF8 . '/utf8.php';