* @category Horde * @copyright 2012-2017 Horde LLC * @license http://www.horde.org/licenses/gpl GPL * @package IMP */ require_once __DIR__ . '/lib/Application.php'; $vars = Horde_Variables::getDefaultVariables(); Horde_Registry::appInit('imp', array( 'impmode' => Horde_Registry::VIEW_DYNAMIC, 'timezone' => in_array($vars->page, array('compose')) )); $class = 'IMP_Dynamic_' . Horde_String::ucfirst($vars->page); if (!class_exists($class)) { /* Need to do redirect to ensure that browser URL is updated. */ IMP::getInitialPage()->url->redirect(); } $ob = new $class($vars); $page_output->header(array( 'body_class' => 'horde-ajax', 'title' => $ob->title, 'view' => $registry::VIEW_DYNAMIC )); $ob->render(); $page_output->footer();