2003-11-04 15:11:04 +01:00
< ? php
2007-01-05 15:06:34 +01:00
/************************************************************************** \
* eGroupWare - Preferences *
* http :// www . 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 . *
\ **************************************************************************/
2003-11-04 15:11:04 +01:00
2007-01-05 15:06:34 +01:00
/* $Id$ */
2003-11-19 21:44:54 +01:00
2013-01-18 00:24:23 +01:00
$user_apps = array ();
foreach (( array ) $GLOBALS [ 'egw_info' ][ 'user' ][ 'apps' ] as $app => $data )
{
if ( $GLOBALS [ 'egw_info' ][ 'apps' ][ $app ][ 'status' ] != 2 && $app )
{
$user_apps [ $app ] = $GLOBALS [ 'egw_info' ][ 'apps' ][ $app ][ 'title' ] ? $GLOBALS [ 'egw_info' ][ 'apps' ][ $app ][ 'title' ] : lang ( $app );
}
}
2007-01-09 23:44:30 +01:00
$top_menu = array (
'topmenu' => lang ( 'Show as Topmenu' ),
'sidebox' => lang ( 'Show in sidebox' )
);
2007-01-05 15:06:34 +01:00
$yes_no = array (
'yes' => lang ( 'yes' ),
'no' => lang ( 'no' )
);
$click_or_onmouseover = array (
'click' => lang ( 'Click' ),
'onmouseover' => lang ( 'On Mouse Over' )
);
2003-12-15 01:05:28 +01:00
2007-01-05 15:06:34 +01:00
$GLOBALS [ 'settings' ] = array (
'prefssection' => array (
'type' => 'section' ,
2010-06-09 13:03:02 +02:00
'title' => lang ( 'Preferences for the %1 template set' , 'Idots' ),
'no_lang' => true ,
'xmlrpc' => False ,
2009-10-19 19:04:11 +02:00
'admin' => False ,
2007-01-05 15:06:34 +01:00
),
2013-01-18 00:24:23 +01:00
'default_app' => array (
'type' => 'select' ,
'label' => 'Default application' ,
'name' => 'default_app' ,
'values' => $user_apps ,
'help' => " The default application will be started when you enter eGroupWare or click on the homepage icon.<br>You can also have more than one application showing up on the homepage, if you don't choose a specific application here (has to be configured in the preferences of each application). " ,
'xmlrpc' => False ,
'admin' => False ,
'default' => '' ,
),
2007-01-09 23:44:30 +01:00
'show_general_menu' => array (
2007-01-05 15:06:34 +01:00
'type' => 'select' ,
2007-01-09 23:44:30 +01:00
'label' => 'How to show the general eGroupWare menu ?' ,
'name' => 'show_general_menu' ,
'values' => $top_menu ,
'help' => 'Where and how will the egroupware links like preferences, about and logout be displayed.' ,
2007-01-05 15:06:34 +01:00
'xmlrpc' => False ,
2009-10-19 19:04:11 +02:00
'admin' => False ,
'forced' => 'topmenu' ,
2007-01-05 15:06:34 +01:00
),
'start_and_logout_icons' => array (
'type' => 'select' ,
'label' => 'Show home and logout button in main application bar?' ,
'name' => 'start_and_logout_icons' ,
'values' => $yes_no ,
'help' => 'When you say yes the home and logout buttons are presented as applications in the main top applcation bar.' ,
'xmlrpc' => False ,
2009-10-19 19:04:11 +02:00
'admin' => False ,
'forced' => 'yes' ,
2007-01-05 15:06:34 +01:00
),
'max_icons' => array (
'type' => 'input' ,
'label' => 'Max number of icons in navbar' ,
'name' => 'max_icons' ,
'help' => 'How many icons should be shown in the navbar (top of the page). Additional icons go into a kind of pulldown menu, callable by the icon on the far right side of the navbar.' ,
'size' => 3 ,
'xmlrpc' => False ,
2009-10-19 19:04:11 +02:00
'admin' => False ,
'forced' => 12 ,
2007-01-05 15:06:34 +01:00
),
'auto_hide_sidebox' => array (
'type' => 'check' ,
'label' => 'Autohide Sidebox menu\'s' ,
'name' => 'auto_hide_sidebox' ,
'help' => 'Automatically hide the Sidebox menu\'s?' ,
'xmlrpc' => False ,
2009-10-19 19:04:11 +02:00
'admin' => False ,
'default' => true ,
2007-01-05 15:06:34 +01:00
),
'click_or_onmouseover' => array (
'type' => 'select' ,
'label' => 'Click or Mouse Over to show menus' ,
'name' => 'click_or_onmouseover' ,
'values' => $click_or_onmouseover ,
'help' => 'Click or Mouse Over to show menus?' ,
'xmlrpc' => False ,
2009-10-19 19:04:11 +02:00
'admin' => False ,
'forced' => 'click' ,
2007-01-05 15:06:34 +01:00
),
'disable_slider_effects' => array (
'type' => 'check' ,
'label' => 'Disable slider effects' ,
'name' => 'disable_slider_effects' ,
'help' => 'Disable the animated slider effects when showing or hiding menus in the page? Opera and Konqueror users will probably must want this.' ,
'xmlrpc' => False ,
2009-10-19 19:04:11 +02:00
'admin' => False ,
'forced' => false ,
2007-01-05 15:06:34 +01:00
),
'disable_pngfix' => array (
'type' => 'check' ,
'label' => 'Disable Internet Explorer png-image-bugfix' ,
'name' => 'disable_pngfix' ,
'help' => 'Disable the execution a bugfixscript for Internet Explorer 5.5 and higher to show transparency in PNG-images?' ,
'xmlrpc' => False ,
2009-10-19 19:04:11 +02:00
'admin' => False ,
'forced' => false ,
2007-01-05 15:06:34 +01:00
),
'show_generation_time' => array (
'type' => 'check' ,
'label' => 'Show page generation time' ,
'name' => 'show_generation_time' ,
'help' => 'Show page generation time on the bottom of the page?' ,
'xmlrpc' => False ,
2009-10-19 19:04:11 +02:00
'admin' => False ,
'forced' => false ,
2007-01-05 15:06:34 +01:00
)
);