// EASY CLASS LOADING function __autoload($class_name) { if (file_exists(dirname(__FILE__) . '/classes/' . $class_name . '.php')) { require_once dirname(__FILE__) . '/classes/' . $class_name . '.php'; } else { throw new Exception('Could not autoload ' . $class_name . '. File does not exist or is not accessible!'); } } // SETUP TypeShow::setRoot(dirname(__FILE__) . '/../'); TypeShow::setDataPath('resources/' . TS_DATASET . '/'); TypeShow::setFontsDB('fonts.json'); TypeShow::setThemesDB('themes.json'); TypeShow::setSettings('settings.json'); TypeShow::setRenderer(new TypeShowRendererDefault()); if (isset($_REQUEST['s'])) { TypeShow::setText($_REQUEST['s']); } if (isset($_REQUEST['font'])) { TypeShow::setFont($_REQUEST['font']); } if (isset($_REQUEST['style'])) { TypeShow::setStyle($_REQUEST['style']); } if (isset($_REQUEST['theme'])) { TypeShow::setTheme($_REQUEST['theme']); } // RUN TypeShow::run(); // DONE.