mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
Fix banner
This commit is contained in:
parent
b8eabd7697
commit
3435e4c38b
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
/**************************************************************************\
|
/**************************************************************************\
|
||||||
* phpGroupWare - Preferences *
|
* eGroupWare - Preferences *
|
||||||
* http://www.phpgroupware.org *
|
* http://www.egroupware.org *
|
||||||
* Written by RalfBecker@outdoor-training.de to emulate the old preferences *
|
* Written by RalfBecker@outdoor-training.de to emulate the old preferences *
|
||||||
* -------------------------------------------- *
|
* -------------------------------------------- *
|
||||||
* 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 *
|
||||||
@ -20,93 +20,110 @@
|
|||||||
'enable_nextmatchs_class' => True,
|
'enable_nextmatchs_class' => True,
|
||||||
);
|
);
|
||||||
include('../header.inc.php');
|
include('../header.inc.php');
|
||||||
|
|
||||||
function create_section($title)
|
function create_section($title)
|
||||||
{
|
{
|
||||||
$GLOBALS['settings'][] = array(
|
$GLOBALS['settings'][] = array(
|
||||||
'admin' => true, // admin is controlled by the old-format hook_settings file itself
|
'admin' => True, // admin is controlled by the old-format hook_settings file itself
|
||||||
'xmlrpc' => true, // make everything availible via xmlrpc
|
'xmlrpc' => True, // make everything availible via xmlrpc
|
||||||
'title' => $title,
|
'title' => $title,
|
||||||
'type' => 'section',
|
'type' => 'section',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function create_input_box($label,$name,$help='',$default='',$size='',$maxsize='',$type='',$run_lang=True)
|
function create_input_box($label,$name,$help='',$default='',$size='',$maxsize='',$type='',$run_lang=True)
|
||||||
{
|
{
|
||||||
$GLOBALS['settings'][$name] = array(
|
$GLOBALS['settings'][$name] = array(
|
||||||
'admin' => true, // admin is controlled by the old-format hook_settings file itself
|
'admin' => True, // admin is controlled by the old-format hook_settings file itself
|
||||||
'xmlrpc' => true, // make everything availible via xmlrpc
|
'xmlrpc' => True, // make everything availible via xmlrpc
|
||||||
'type' => 'input',
|
'type' => 'input',
|
||||||
);
|
);
|
||||||
foreach(array('label','name','help','default','size','maxsize','type','run_lang','rows','cols','values','subst_help') as $var)
|
foreach(array('label','name','help','default','size','maxsize','type','run_lang','rows','cols','values','subst_help') as $var)
|
||||||
{
|
{
|
||||||
if (isset($$var)) $GLOBALS['settings'][$name][$var] = $$var;
|
if(isset($$var))
|
||||||
|
{
|
||||||
|
$GLOBALS['settings'][$name][$var] = $$var;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function create_password_box($label,$name,$help='',$size='',$maxsize='',$run_lang=True)
|
function create_password_box($label,$name,$help='',$size='',$maxsize='',$run_lang=True)
|
||||||
{
|
{
|
||||||
$GLOBALS['settings'][$name] = array(
|
$GLOBALS['settings'][$name] = array(
|
||||||
'admin' => true, // admin is controlled by the old-format hook_settings file itself
|
'admin' => True, // admin is controlled by the old-format hook_settings file itself
|
||||||
'xmlrpc' => true, // make everything availible via xmlrpc
|
'xmlrpc' => True, // make everything availible via xmlrpc
|
||||||
'type' => 'password',
|
'type' => 'password',
|
||||||
);
|
);
|
||||||
foreach(array('label','name','help','default','size','maxsize','type','run_lang','rows','cols','values','subst_help') as $var)
|
foreach(array('label','name','help','default','size','maxsize','type','run_lang','rows','cols','values','subst_help') as $var)
|
||||||
{
|
{
|
||||||
if (isset($$var)) $GLOBALS['settings'][$name][$var] = $$var;
|
if(isset($$var))
|
||||||
|
{
|
||||||
|
$GLOBALS['settings'][$name][$var] = $$var;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function create_text_area($label,$name,$rows,$cols,$help='',$default='',$run_lang=True)
|
function create_text_area($label,$name,$rows,$cols,$help='',$default='',$run_lang=True)
|
||||||
{
|
{
|
||||||
$GLOBALS['settings'][$name] = array(
|
$GLOBALS['settings'][$name] = array(
|
||||||
'admin' => true, // admin is controlled by the old-format hook_settings file itself
|
'admin' => True, // admin is controlled by the old-format hook_settings file itself
|
||||||
'xmlrpc' => true, // make everything availible via xmlrpc
|
'xmlrpc' => True, // make everything availible via xmlrpc
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
);
|
);
|
||||||
foreach(array('label','name','help','default','size','maxsize','type','run_lang','rows','cols','values','subst_help') as $var)
|
foreach(array('label','name','help','default','size','maxsize','type','run_lang','rows','cols','values','subst_help') as $var)
|
||||||
{
|
{
|
||||||
if (isset($$var)) $GLOBALS['settings'][$name][$var] = $$var;
|
if(isset($$var))
|
||||||
|
{
|
||||||
|
$GLOBALS['settings'][$name][$var] = $$var;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function create_select_box($label,$name,$values,$help='',$default='',$run_lang=True)
|
function create_select_box($label,$name,$values,$help='',$default='',$run_lang=True)
|
||||||
{
|
{
|
||||||
$GLOBALS['settings'][$name] = array(
|
$GLOBALS['settings'][$name] = array(
|
||||||
'admin' => true, // admin is controlled by the old-format hook_settings file itself
|
'admin' => True, // admin is controlled by the old-format hook_settings file itself
|
||||||
'xmlrpc' => true, // make everything availible via xmlrpc
|
'xmlrpc' => True, // make everything availible via xmlrpc
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
);
|
);
|
||||||
foreach(array('label','name','help','default','size','maxsize','type','run_lang','rows','cols','values','subst_help') as $var)
|
foreach(array('label','name','help','default','size','maxsize','type','run_lang','rows','cols','values','subst_help') as $var)
|
||||||
{
|
{
|
||||||
if (isset($$var)) $GLOBALS['settings'][$name][$var] = $$var;
|
if(isset($$var))
|
||||||
|
{
|
||||||
|
$GLOBALS['settings'][$name][$var] = $$var;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function create_check_box($label,$name,$help='',$default='',$run_lang=True)
|
function create_check_box($label,$name,$help='',$default='',$run_lang=True)
|
||||||
{
|
{
|
||||||
$GLOBALS['settings'][$name] = array(
|
$GLOBALS['settings'][$name] = array(
|
||||||
'admin' => true, // admin is controlled by the old-format hook_settings file itself
|
'admin' => True, // admin is controlled by the old-format hook_settings file itself
|
||||||
'xmlrpc' => true, // make everything availible via xmlrpc
|
'xmlrpc' => True, // make everything availible via xmlrpc
|
||||||
'type' => 'check',
|
'type' => 'check',
|
||||||
);
|
);
|
||||||
foreach(array('label','name','help','default','size','maxsize','type','run_lang','rows','cols','values','subst_help') as $var)
|
foreach(array('label','name','help','default','size','maxsize','type','run_lang','rows','cols','values','subst_help') as $var)
|
||||||
{
|
{
|
||||||
if (isset($$var)) $GLOBALS['settings'][$name][$var] = $$var;
|
if(isset($$var))
|
||||||
|
{
|
||||||
|
$GLOBALS['settings'][$name][$var] = $$var;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function create_notify($label,$name,$rows,$cols,$help='',$default='',$values='',$subst_help=True,$run_lang=True)
|
function create_notify($label,$name,$rows,$cols,$help='',$default='',$values='',$subst_help=True,$run_lang=True)
|
||||||
{
|
{
|
||||||
$GLOBALS['settings'][$name] = array(
|
$GLOBALS['settings'][$name] = array(
|
||||||
'admin' => true, // admin is controlled by the old-format hook_settings file itself
|
'admin' => True, // admin is controlled by the old-format hook_settings file itself
|
||||||
'xmlrpc' => true, // make everything availible via xmlrpc
|
'xmlrpc' => True, // make everything availible via xmlrpc
|
||||||
'type' => 'notify',
|
'type' => 'notify',
|
||||||
);
|
);
|
||||||
foreach(array('label','name','help','default','size','maxsize','type','run_lang','rows','cols','values','subst_help') as $var)
|
foreach(array('label','name','help','default','size','maxsize','type','run_lang','rows','cols','values','subst_help') as $var)
|
||||||
{
|
{
|
||||||
if (isset($$var)) $GLOBALS['settings'][$name][$var] = $$var;
|
if(isset($$var))
|
||||||
|
{
|
||||||
|
$GLOBALS['settings'][$name][$var] = $$var;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ExecMethod('preferences.uisettings.index');
|
ExecMethod('preferences.uisettings.index');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user