mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
new hook_settings
This commit is contained in:
parent
cb59056b85
commit
ffcacccea0
@ -1,163 +1,167 @@
|
|||||||
<?php
|
<?php
|
||||||
/**************************************************************************\
|
/**************************************************************************\
|
||||||
* eGroupWare - Preferences *
|
* eGroupWare - Preferences *
|
||||||
* http://www.eGroupWare.org *
|
* http://www.eGroupWare.org *
|
||||||
* -------------------------------------------- *
|
* -------------------------------------------- *
|
||||||
* This file written by Edo van Bruggen <edovanbruggen@raketnet.nl> *
|
* This file written by Edo van Bruggen <edovanbruggen@raketnet.nl> *
|
||||||
* This program is free software; you can redistribute it and/or modify it *
|
* 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 *
|
* 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 *
|
* Free Software Foundation; either version 2 of the License, or (at your *
|
||||||
* option) any later version. *
|
* option) any later version. *
|
||||||
\**************************************************************************/
|
\**************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|
||||||
$clock_show = array(
|
$clock_show = array(
|
||||||
'yes' => lang('yes'),
|
'yes' => lang('yes'),
|
||||||
'no' => lang('no')
|
'no' => lang('no')
|
||||||
);
|
);
|
||||||
|
|
||||||
$clock_min = array(
|
$clock_min = array(
|
||||||
'minute' => lang('minute'),
|
'minute' => lang('minute'),
|
||||||
'second' => lang('second')
|
'second' => lang('second')
|
||||||
);
|
);
|
||||||
|
|
||||||
$files = Array();
|
$files = Array();
|
||||||
$dir = '../phpgwapi/templates/idots2/images/backgrounds';
|
$dir = 'phpgwapi/templates/idots2/images/backgrounds';
|
||||||
|
|
||||||
$dh = opendir($dir);
|
$dh = opendir($dir);
|
||||||
$files['none'] = "none";
|
$files['none'] = "none";
|
||||||
while(false !== ($filename = readdir($dh)))
|
while(false !== ($filename = readdir($dh)))
|
||||||
{
|
{
|
||||||
if(strlen($filename) > 3)
|
if(strlen($filename) > 3)
|
||||||
{
|
{
|
||||||
$files[$filename] = $filename;
|
$files[$filename] = $filename;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
closedir($dh);
|
closedir($dh);
|
||||||
|
|
||||||
$bckStyle = array(
|
$bckStyle = array(
|
||||||
'centered' => lang('centered'),
|
'centered' => lang('centered'),
|
||||||
'tiled' => lang('tiled'),
|
'tiled' => lang('tiled'),
|
||||||
'stretched' => lang('stretched')
|
'stretched' => lang('stretched')
|
||||||
);
|
);
|
||||||
|
|
||||||
$showLogo = array(
|
$showLogo = array(
|
||||||
'yes' => lang('yes'),
|
'yes' => lang('yes'),
|
||||||
'no' => lang('no')
|
'no' => lang('no')
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$back_icons = array(
|
||||||
|
'yes' => lang('yes'),
|
||||||
|
'no' => lang('no')
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
$GLOBALS['settings'] = array(
|
||||||
|
'prefssection' => array(
|
||||||
|
'type' => 'section',
|
||||||
|
'title' => 'Preferences for the idots2 template set template set',
|
||||||
|
'xmlrpc' => False,
|
||||||
|
'admin' => False
|
||||||
|
),
|
||||||
|
'clock_show' => array(
|
||||||
|
'type' => 'select',
|
||||||
|
'label' => 'Show clock?',
|
||||||
|
'name' => 'clock_show',
|
||||||
|
'values' => $clock_show,
|
||||||
|
'help' => '',
|
||||||
|
'xmlrpc' => False,
|
||||||
|
'admin' => False
|
||||||
|
),
|
||||||
|
'clock_min' => array(
|
||||||
|
'type' => 'select',
|
||||||
|
'label' => 'Update the clock per minute or per second',
|
||||||
|
'name' => 'clock_min',
|
||||||
|
'help' => 'If the clock is enabled would you like it to update it every second or every minute?',
|
||||||
|
'values' => $clock_min,
|
||||||
|
'xmlrpc' => False,
|
||||||
|
'admin' => False
|
||||||
|
),
|
||||||
|
'files' => array(
|
||||||
|
'type' => 'select',
|
||||||
|
'label' => 'Choose a background image.',
|
||||||
|
'name' => 'files',
|
||||||
|
'help' => 'If there are some images in the background folder you can choose the one you would like to see.',
|
||||||
|
'values' => $files,
|
||||||
|
'xmlrpc' => False,
|
||||||
|
'admin' => False
|
||||||
|
),
|
||||||
|
'blkStyle' => array(
|
||||||
|
'type' => 'select',
|
||||||
|
'label' => 'Choose a background style.',
|
||||||
|
'name' => 'blkStyle',
|
||||||
|
'values' => $bckStyle,
|
||||||
|
'help' => 'What style would you like the image to have?',
|
||||||
|
'xmlrpc' => False,
|
||||||
|
'admin' => False
|
||||||
|
),
|
||||||
|
'bgcolor' => array(
|
||||||
|
'type' => 'input',
|
||||||
|
'label' => 'Choose a background color',
|
||||||
|
'name' => 'bgcolor',
|
||||||
|
'help' => 'What color should all the blank space on the desktop have',
|
||||||
|
'default' => '#ffffff',
|
||||||
|
'size'=>'7',
|
||||||
|
'xmlrpc' => False,
|
||||||
|
'admin' => False
|
||||||
|
),
|
||||||
|
'showLogo' => array(
|
||||||
|
'type' => 'select',
|
||||||
|
'label' => 'Show logo\'s on the desktop.',
|
||||||
|
'name' => 'showLogo',
|
||||||
|
'help' => 'Show the logo\'s of eGroupware and x-desktop on the desktop.',
|
||||||
|
'values' => $showLogo,
|
||||||
|
'xmlrpc' => False,
|
||||||
|
'admin' => False
|
||||||
|
),
|
||||||
|
'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,
|
||||||
|
'admin' => False
|
||||||
|
),
|
||||||
|
'bgcolor_icons' => array(
|
||||||
|
'type' => 'input',
|
||||||
|
'label' => 'Choose a background color for the icons',
|
||||||
|
'name' => 'bgcolor_icons',
|
||||||
|
'default'=> '#ffffff',
|
||||||
|
'size'=>'15',
|
||||||
|
),
|
||||||
|
'back_icons' => array(
|
||||||
|
'type' => 'select',
|
||||||
|
'label'=> 'Transparant bg for the icons?',
|
||||||
|
'name'=> 'back_icons',
|
||||||
|
'values'=> $back_icons,
|
||||||
|
),
|
||||||
|
'textcolor_icons' => array(
|
||||||
|
'type' => 'input',
|
||||||
|
'label'=>'Choose a text color for the icons',
|
||||||
|
'name'=>'textcolor_icons',
|
||||||
|
'default'=>'#FFFFFF',
|
||||||
|
'size'=>'15'
|
||||||
|
),
|
||||||
|
'show_generation_time' => array(
|
||||||
|
'type' => 'check',
|
||||||
|
'label'=>'Show page generation time?',
|
||||||
|
'name'=>'show_generation_time',
|
||||||
|
'help'=>'Would you like to display the page generation time at the bottom of every window?'
|
||||||
|
),
|
||||||
|
'scrWidth' => array(
|
||||||
|
'type' => 'input',
|
||||||
|
'label'=>'Default width for the windows',
|
||||||
|
'name'=>'scrWidth',
|
||||||
|
'help'=>'Select the default width for the application windows',
|
||||||
|
),
|
||||||
|
'scrHeight' => array(
|
||||||
|
'type' => 'input',
|
||||||
|
'label'=>'Default height for the windows',
|
||||||
|
'name'=>'scrHeight',
|
||||||
|
'help'=>'Select the default height for the application windows',
|
||||||
|
)
|
||||||
|
|
||||||
|
);
|
||||||
|
|
||||||
$back_icons = array(
|
|
||||||
'yes' => lang('yes'),
|
|
||||||
'no' => lang('no')
|
|
||||||
);
|
|
||||||
|
|
||||||
$GLOBALS['settings'] = array(
|
|
||||||
'templ' => array(
|
|
||||||
'type' => 'section',
|
|
||||||
'Preferences for the idots2 template set'
|
|
||||||
),
|
|
||||||
'clock_show' => array(
|
|
||||||
'type' => 'select',
|
|
||||||
'Show clock?',
|
|
||||||
'clock_show',
|
|
||||||
$clock_show,
|
|
||||||
'Would you like to display a clock on the right corner in the taskbar?'
|
|
||||||
),
|
|
||||||
'clock_min' => array(
|
|
||||||
'type' => 'select',
|
|
||||||
'Update the clock per minute or per second',
|
|
||||||
'clock_min',
|
|
||||||
$clock_min,
|
|
||||||
'If the clock is enabled would you like it to update it every second or every minute?'
|
|
||||||
),
|
|
||||||
'files' => array(
|
|
||||||
'type' => 'select',
|
|
||||||
'Choose a background image.',
|
|
||||||
'files',
|
|
||||||
$files,
|
|
||||||
'If there are some images in the background folder you can choose the one you would like to see.'
|
|
||||||
),
|
|
||||||
'bckStyle' => array(
|
|
||||||
'type' => 'select',
|
|
||||||
'Choose a background style.',
|
|
||||||
'bckStyle',
|
|
||||||
$bckStyle,
|
|
||||||
'What style would you like the image to have?'
|
|
||||||
),
|
|
||||||
'bgcolor' => array(
|
|
||||||
'type' => 'input',
|
|
||||||
'Choose a background color',
|
|
||||||
'bgcolor',
|
|
||||||
'What color should all the blank space on the desktop have',
|
|
||||||
'#FFFFFF',
|
|
||||||
7,
|
|
||||||
7,
|
|
||||||
'',
|
|
||||||
false
|
|
||||||
),
|
|
||||||
'showLogo' => array(
|
|
||||||
'type' => 'select',
|
|
||||||
'Show logo\'s on the desktop.',
|
|
||||||
'showLogo',
|
|
||||||
$showLogo,
|
|
||||||
'Show the logo\'s of eGroupware and x-desktop on the desktop.'
|
|
||||||
),
|
|
||||||
'bgcolor_icons' => array(
|
|
||||||
'type' => 'input',
|
|
||||||
'Choose a background color for the icons',
|
|
||||||
'bgcolor_icons',
|
|
||||||
'',
|
|
||||||
'#FFFFFF',
|
|
||||||
7,
|
|
||||||
7,
|
|
||||||
'',
|
|
||||||
false
|
|
||||||
),
|
|
||||||
'back_icons' => array(
|
|
||||||
'type' => 'select',
|
|
||||||
'Transparant bg for the icons?',
|
|
||||||
'back_icons',
|
|
||||||
$back_icons,
|
|
||||||
''
|
|
||||||
),
|
|
||||||
'textcolor_icons' => array(
|
|
||||||
'type' => 'input',
|
|
||||||
'Choose a text color for the icons',
|
|
||||||
'textcolor_icons',
|
|
||||||
'',
|
|
||||||
'#FFFFFF',
|
|
||||||
7,
|
|
||||||
7,
|
|
||||||
'',
|
|
||||||
false
|
|
||||||
),
|
|
||||||
'show_generation_time' => array(
|
|
||||||
'type' => 'check',
|
|
||||||
'Show page generation time?',
|
|
||||||
'show_generation_time',
|
|
||||||
'Would you like to display the page generation time at the bottom of every window?'
|
|
||||||
),
|
|
||||||
'scrWidth' => array(
|
|
||||||
'type' => 'input',
|
|
||||||
'Default width for the windows',
|
|
||||||
'scrWidth',
|
|
||||||
'Select the default width for the application windows',
|
|
||||||
'',
|
|
||||||
'',
|
|
||||||
'',
|
|
||||||
'',
|
|
||||||
false
|
|
||||||
),
|
|
||||||
'scrHeight' => array(
|
|
||||||
'type' => 'input',
|
|
||||||
'Default height for the windows',
|
|
||||||
'scrHeight',
|
|
||||||
'Select the default height for the application windows',
|
|
||||||
'',
|
|
||||||
'',
|
|
||||||
'',
|
|
||||||
'',
|
|
||||||
false
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
Loading…
Reference in New Issue
Block a user