/**
  * Show E-Push preferences link in preferences
  *
  * @param string|array $args
  */
 public static function menus($args)
 {
     $appname = 'activesync';
     $location = is_array($args) ? $args['location'] : $args;
     if ($location == 'preferences') {
         $file = array('Preferences' => egw::link('/index.php', 'menuaction=preferences.uisettings.index&appname=' . $appname));
         if ($location == 'preferences') {
             display_section($appname, $file);
         } else {
             display_sidebox($appname, lang('Preferences'), $file);
         }
     }
 }
Ejemplo n.º 2
0
    $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) {