$method = 'startupInterface';
}
if ($app == 'phpgwapi') {
    $app = 'home';
    $api_requested = True;
}
$GLOBALS['egw_info'] = array('flags' => array('noheader' => True, 'nonavbar' => True, 'currentapp' => $app));
include './header.inc.php';
// user changed timezone
if (isset($_GET['tz'])) {
    egw_time::setUserPrefs($_GET['tz']);
    // throws exception, if tz is invalid
    $GLOBALS['egw']->preferences->add('common', 'tz', $_GET['tz']);
    $GLOBALS['egw']->preferences->save_repository();
    if ($referer = common::get_referer()) {
        egw::redirect_link($referer);
    }
}
// 	Check if we are using windows or normal webpage
$windowed = false;
$tpl_info = EGW_SERVER_ROOT . '/phpgwapi/templates/' . basename($GLOBALS['egw_info']['user']['preferences']['common']['template_set']) . '/setup/setup.inc.php';
if (@file_exists($tpl_info)) {
    include_once $tpl_info;
    //	   if(isset($template_info))
    //	   {
    if ($GLOBALS['egw_info']['template'][$GLOBALS['egw_info']['user']['preferences']['common']['template_set']]['windowed']) {
        $windowed = true;
    }
    //	   }
}
if ($app == 'home' && !$api_requested && !$windowed) {