* * - Jonas Goes * * sponsored by Thyamad - http://www.thyamad.com * * ------------------------------------------------------------------------- * * 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. * \***************************************************************************/ $GLOBALS['phpgw_info'] = array(); $GLOBALS['phpgw_info']['flags'] = array( 'currentapp' => 'contactcenter', 'noheader' => true, //'nonavbar' => true ); include('../header.inc.php'); $_SESSION['phpgw_info']['user']['preferences']['contactcenter']['telephone_number'] = $GLOBALS['phpgw_info']['user']['telephonenumber']; //Enable/Disable VoIP Service -> Voip Server Config $_SESSION['phpgw_info']['user']['preferences']['contactcenter']['voip_enabled'] = false; $voip_groups = array(); if($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){ $_SESSION['phpgw_info']['user']['preferences']['contactcenter']['voip_enabled'] = true; break; } } } $obj = CreateObject('contactcenter.ui_data'); $obj->index(); $GLOBALS['phpgw']->common->phpgw_footer(); ?>