예제 #1
0
<?php

/**************************************************************************\
	* eGroupWare - FeLaMiMail                                                  *
	* http://www.egroupware.org                                                *
	* http://www.phpgw.de                                                      *
	* http://www.linux-at-work.de                                              *
	* Written by Lars Kneschke [lkneschke@linux-at-work.de]                    *
	* -----------------------------------------------                          *
	*  This program is free software; you can redistribute it and/or modify it *
	*  under the terms of the GNU General Public License as published by the   *
	*  Free Software Foundation; either version 2 of the License, or (at your  *
	*  option) any later version.                                              *
	\**************************************************************************/
/* $Id$ */
// this is to get css inclusion working
$_GET['menuaction'] = 'felamimail.uifelamimail.viewMainScreen';
$GLOBALS['phpgw_info']['flags'] = array('currentapp' => 'felamimail', 'noheader' => True, 'nonavbar' => True, 'include_xajax' => True);
include '../header.inc.php';
try {
    execmethod('felamimail.uifelamimail.viewMainScreen');
} catch (Exception $e) {
    phpgwapi_cache::message_set($e->getMessage(), 'error');
    $GLOBALS['phpgw']->redirect_link('/home.php');
}
예제 #2
0
}
if ($app == 'phpgwapi') {
    $app = 'home';
    $api_requested = True;
}
$GLOBALS['phpgw_info']['flags'] = array('noheader' => True, 'nonavbar' => True, 'currentapp' => $app);
include './header.inc.php';
if ($app == 'home' && !$api_requested) {
    Header('Location: ' . $GLOBALS['phpgw']->link('/home.php'));
}
if ($api_requested) {
    $app = 'phpgwapi';
}
$GLOBALS[$class] = CreateObject(sprintf('%s.%s', $app, $class));
if (is_array($GLOBALS[$class]->public_functions) && $GLOBALS[$class]->public_functions[$method] && !$invalid_data) {
    execmethod($_GET['menuaction']);
    unset($app);
    unset($class);
    unset($method);
    unset($invalid_data);
    unset($api_requested);
} else {
    if (!$app || !$class || !$method) {
        if (@is_object($GLOBALS['phpgw']->log)) {
            $GLOBALS['phpgw']->log->message(array('text' => 'W-BadmenuactionVariable, menuaction missing or corrupt: %1', 'p1' => $menuaction, 'line' => __LINE__, 'file' => __FILE__));
        }
    }
    if (!is_array($GLOBALS[$class]->public_functions) || !${$GLOBALS}[$class]->public_functions[$method] && $method) {
        if (@is_object($GLOBALS['phpgw']->log)) {
            $GLOBALS['phpgw']->log->message(array('text' => 'W-BadmenuactionVariable, attempted to access private method: %1', 'p1' => $method, 'line' => __LINE__, 'file' => __FILE__));
        }
 function f_download()
 {
     /* JSON hack around */
     if ((!isset($this->fileman) || !is_array($this->fileman) || !count($this->fileman)) && (isset($this->file) && strlen($this->file))) {
         $this->fileman = array($this->file);
     }
     foreach ($this->fileman as $file) {
         if ($GLOBALS['phpgw']->vfs->file_exists(array('string' => "{$this->path}/{$file}", 'relatives' => array(RELATIVE_NONE)))) {
             execmethod('filemanager.uifilemanager.view_file', array('path' => $this->path, 'file' => $file));
             $result[] = lang('file downloaded: %1', "{$this->path}/{$file}");
         } else {
             $result[] = lang('file does not exist: %1', "{$this->path}/{$file}");
         }
     }
     return is_array($result) ? $result : True;
 }
예제 #4
0
		*  under the terms of the GNU General Public License as published by the   *
		*  Free Software Foundation; either version 2 of the License, or (at your  *
		*  option) any later version.                                              *
		\**************************************************************************/
$GLOBALS['phpgw_info']['flags'] = array('noheader' => false, 'nonavbar' => false, 'currentapp' => 'expressoMail', 'enable_nextmatchs_class' => true);
require_once __DIR__ . '/../header.inc.php';
require_once __DIR__ . '/../services/class.servicelocator.php';
$template = CreateObject('phpgwapi.Template', PHPGW_APP_TPL);
$alternativeMailService = ServiceLocator::getService('ldap');
$AlternateEmailExpresso = array();
$AlternateEmailExpresso = isset($_SESSION['phpgw_info']['expressomail']) ? $alternativeMailService->getMailAlternateByUidNumber($_SESSION['phpgw_info']['expressomail']['user']['account_id']) : "";
if (is_array($AlternateEmailExpresso)) {
    $template->set_var("user_email_alternative", implode(",", $AlternateEmailExpresso));
}
if (execmethod('emailadmin.ui.countProfiles') == 0) {
    execmethod('emailadmin.ui.addDefaultProfile');
}
$update_version = $GLOBALS['phpgw_info']['apps']['expressoMail']['version'];
$_SESSION['phpgw_info']['expressomail']['user'] = $GLOBALS['phpgw_info']['user'];
//////////////////////////////////////////// Enable/Disable VoIP Service -> Voip Server Config /////////////////////////
$voip_enabled = false;
$voip_groups = array();
$emailVoip = false;
if (isset($GLOBALS['phpgw_info']['server']['voip_groups'])) {
    foreach (explode(",", $GLOBALS['phpgw_info']['server']['voip_groups']) as $i => $voip_group) {
        $a_voip = explode(";", $voip_group);
        $voip_groups[] = $a_voip[1];
    }
    foreach ($GLOBALS['phpgw']->accounts->membership() as $idx => $group) {
        if (array_search($group['account_name'], $voip_groups) !== FALSE) {
            $voip_enabled = true;
예제 #5
0
<?php

/**************************************************************************\
	* EGroupWare - EMailAdmin                                                  *
	* http://www.egroupware.org                                                *
	* Written by Lars Kneschke [lkneschke@egroupware.org]                      *
	* -----------------------------------------------                          *
	*  This program is free software; you can redistribute it and/or modify it *
	*  under the terms of the GNU General Public License as published by the   *
	*  Free Software Foundation; either version 2 of the License, or (at your  *
	*  option) any later version.                                              *
	\**************************************************************************/
/* $Id$ */
$_GET['menuaction'] = 'emailadmin.emailadmin_ui.listProfiles';
$GLOBALS['phpgw_info'] = array('flags' => array('currentapp' => 'emailadmin', 'noheader' => True, 'nonavbar' => True));
include '../header.inc.php';
execmethod('emailadmin.emailadmin_ui.listProfiles');