1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774
|
<?php
/**
* Preferences Information
* =======================
* Changes you make to the prefs.php file(s) will not be reflected until the
* user logs out and logs in again.
*
* If you change these preferences in a production system, you will
* need to delete these preference entries in your backend; entries in the
* backend have priority over the default entry.
*
* IMPORTANT: DO NOT EDIT THIS FILE!
* Local overrides MUST be placed in prefs.local.php or prefs.d/.
* If the 'vhosts' setting has been enabled in Horde's configuration, you can
* use prefs-servername.php.
*
* Example configuration file that locks a preference, sets a different default
* value for another, and enables a preference hook for a third one:
*
* <code>
* <?php
* $_prefs['theme']['locked'] = true;
* $_prefs['initial_application']['value'] = 'imp';
* $_prefs['from_addr']['hook'] = true;
* </code>
*
* $prefGroups
* ===========
* $prefGroups defines the preferences page in which a preference value will
* appear in.
*
* Format:
* -------
* - column: (string) Which column head this group will go under.
* - desc: (string) Description shown under label.
* - label: (string) Label for the group of settings.
* - members: (array) List of displayable preferences contained in this
* group.
* - suppress: (boolean|function) If true, this group is not displayed.
* - type: (string) The prefGroup type.
* VALUES:
* - identities: An identities screen. The identities screen will always
* show all the identities prefs from the base Horde app,
* along with the identity switching widget.
* Additionally, applications can define additional
* identity information in their prefs.php file that will
* be displayed after the Horde-wide settings.
* - [empty]: The default preferences screen.
* DEFAULT: The default preferences screen.
*
* $_prefs
* =======
* $_prefs defines the preferences used within an application. Each
* preference is contained within a separate array entry, with the key being
* the name of the preference.
*
* The following are OPTIONAL values for each entry:
*
* - advanced: (boolean) Mark pref as advanced. Will only be displayed if
* user switches to advanced preferences mode.
* VALUES:
* - true: Advanced preference; hidden in basic preferences mode.
* - false: Basic preference; shown regardless of preferences mode.
* DEFAULT: false
*
* - help: (string) The help file identifier for this preference.
* VALUES:
* If present, a help icon will be displayed next to the preference.
* Clicking on this icon will open the entry in the help viewer in
* a popup window.
* DEFAULT: No help icon is displayed
*
* - hook: (boolean) If true, the prefs_init hook will be run for this entry.
* VALUES:
* - true
* - false
* DEFAULT: false
*
* - locked: (boolean) Allow preference to be changed from the preferences
* screen?
* VALUES:
* - true: Do not show this preference in the UI and don't allow
* changing by any mechanism.
* - false: Show this preference in the UI and allow changing.
* DEFAULT: false
*
* - on_change: (function) A method to call when this prefs value is changed
* in the UI.
* VALUES:
* Function
* DEFAULT: None
*
* - on_init: (function) A method to call when initializing the value for
* display on the UI page. Is passed one argument: the
* Horde_Core_Prefs_Ui object.
* VALUES:
* Function
* DEFAULT: None
*
* - requires: (array) A list of preferences that need to be set (i.e.
* non-empty value) for this preference to be displayed.
* VALUES:
* Array of preference names
* DEFAULT: None
*
* - requires_nolock: (array) A list of preferences that need to be unlocked
* for this preference to be displayed.
* VALUES:
* Array of preference names
* DEFAULT: None
*
* - suppress: (boolean|function) If true, suppresses display of the
* preference in the UI.
* VALUES:
* - true
* - false
* DEFAULT: false
*
*
* The UI display for a preference is controlled by the 'type' key. This key
* controls how the preference is displayed on the preferences screen. If this
* key is not present, the preference is treated as type 'implicit'. The
* following is the list of types, with a description of further keys used
* for each type.
*
* 'checkbox'
* ----------
* Provides a checkbox (yes/no) entry.
*
* ADDITIONAL KEYS:
* - desc: (string) The description text to use on the preferences page.
* - value: (integer) 0 (or false) for unchecked, 1 (or true) for checked.
*
* 'enum'
* ------
* Provides an enumeration (a/k/a selection) list in the UI.
*
* ADDITIONAL KEYS:
* - desc: (string) The description text to use on the preferences page.
* - escaped: (boolean) If true, values in 'enum' are already escaped.
* DEFAULT: false
* - enum: (array) [REQUIRED] The enumeration list. Keys will be used as the
* the preference value; values are the text that will be displayed
* in the selection list.
* - value: (mixed) The value of the preference. Will be used to
* auto-select the entry in the selection list.
*
* 'implicit'
* ----------
* Preference used in an application but never directly shown to the viewer
* via the preferences screen.
*
* ADDITIONAL KEYS:
* - value: (mixed) The value of the preference. Will be used to
* auto-select the entry in the selection list.
*
* 'multienum'
* -----------
* Provides an enumeration list in the UI that allows for multiple entries
* to be selected.
*
* ADDITIONAL KEYS:
* - desc: (string) The description text to use on the preferences page.
* - escaped: (boolean) If true, values in 'enum' are already escaped.
* DEFAULT: false
* - enum: (array) [REQUIRED] The enumeration list. Keys will be used as the
* the preference value; values are the text that will be displayed
* in the selection list.
* - value: (string) A serialized value containing the key(s) selected. All
* keys will be auto-selected in the selection area.
*
* 'number'
* --------
* Provides a small textbox to enter a natural number. Values entered for this
* preference are automatically converted to a number value.
*
* ADDITIONAL KEYS:
* - desc: (string) The description text to use on the preferences page.
* - value: (integer) The preference value.
* - zero: (boolean) By default, a number must be non-zero. If this is
* true, zeros will be accepted as valid input.
*
* 'password'
* ----------
* Provides a textbox for password entry (input characters will not be
* displayed to the screen).
*
* ADDITIONAL KEYS:
* - desc: (string) The description text to use on the preferences page.
* - value: (string) The preference value.
*
* 'text'
* ------
* Provides a single-line textbox.
*
* ADDITIONAL KEYS:
* - desc: (string) The description text to use on the preferences page.
* - value: (string) The preference value.
*
* 'textarea'
* ----------
* Provides a multi-line textbox.
*
* ADDITIONAL KEYS:
* - desc: (string) The description text to use on the preferences page.
* - value: (string) The preference value. Lines should be separated
* with the "\n" character.
*
*
* These types are for UI-purposes only and will not be stored in the
* preference backend.
*
* 'container'
* -----------
* Used to indicate a list of preferences that MUST appear on the same page
* for UI purposes.
*
* 'link'
* ------
* Provides a clickable link.
*
* ADDITIONAL KEYS:
* - desc: (string) The link text.
* - img: (string) An image file to display before the link.
* DEFAULT: no image displayed
* - url: (string) The URL to link to (unescaped). Only specify one of
* 'url' or 'xurl'.
* - xurl: (string) The URL to link to (escaped). Only specify one of 'url'
* or 'xurl'.
*
* 'prefslink'
* -----------
* Create a link to another preferences page.
*
* ADDITIONAL KEYS:
* - app: (string) The application to link to.
* DEFAULT: current application.
* - desc: (string) The link text.
* - group: (string) The preferences group to link to.
* - img: (string) An image file to display before the link.
* DEFAULT: no image displayed
*
* 'rawhtml'
* ---------
* Outputs a raw HTML string to the page.
*
* ADDITIONAL KEYS:
* - value: (string) The raw (already escaped) HTML to output to the page.
*
* 'special'
* ---------
* Used as placeholder to indicate that the application will provide both the
* UI display code and the subsequent preferences storage.
*
* This type REQUIRES a 'handler' parameter, which is the classname of an
* object that implements Horde_Core_Prefs_Ui_Special.
*/
// *** Personal Information (Identities) Preferences ***
$prefGroups['identities'] = array(
'column' => _("Your Information"),
'label' => _("Personal Information"),
'desc' => _("Change your personal information."),
'members' => array('id', 'fullname', 'from_addr', 'location'),
'type' => 'identities'
);
// If you lock this preference, you must specify a value or a hook for it in
// horde/config/hooks.php.
$_prefs['id'] = array(
'value' => '',
'type' => 'text',
'desc' => _("Identity's name:")
);
// If you lock this preference, you must specify a value or a hook for it in
// horde/config/hooks.php.
$_prefs['fullname'] = array(
'value' => '',
'type' => 'text',
'desc' => _("Your full name:")
);
// If you lock this preference, you must specify a value or a hook for it in
// horde/config/hooks.php.
$_prefs['from_addr'] = array(
'value' => '',
'type' => 'text',
'desc' => _("The default e-mail address to use with this identity:")
);
$_prefs['location'] = array(
'value' => '',
'type' => 'text',
'desc' => _("Default location to use for location-aware features.")
);
// Set locked to true if you don't want the users to have multiple identities.
$_prefs['default_identity'] = array(
'value' => 0
);
// Identities are built automatically from the default values of all
// preferences from all applications that make up an identity. This only works
// if no identities exist yet, or when creating new identities manually. If you
// provide a default value for the complete identities list, it has to include
// all preferences from all applications.
$_prefs['identities'] = array(
// default value = serialize(array())
'value' => 'a:0:{}'
);
$_prefs['confirm_email'] = array(
// default value = serialize(array())
'value' => 'a:0:{}'
);
// *** Authentication Preferences ***
$prefGroups['forgotpass'] = array(
'column' => _("Your Information"),
'label' => _("Account Password"),
'desc' => _("Set preferences to allow you to reset your password if you ever forget it."),
'members' => array(
'security_question', 'security_answer', 'alternate_email'
),
'suppress' => function() {
try {
$GLOBALS['injector']->getInstance('Horde_Core_Factory_Auth')->create()->hasCapability('update');
return false;
} catch (Horde_Exception $e) {}
return true;
}
);
$_prefs['security_question'] = array(
'value' => '',
'type' => 'text',
'desc' => _("Enter a security question which you will be asked if you need to reset your password, e.g. 'what is the name of your pet?':")
);
$_prefs['security_answer'] = array(
'value' => '',
'type' => 'text',
'desc' => _("Insert the required answer to the security question:")
);
$_prefs['alternate_email'] = array(
'value' => '',
'type' => 'text',
'desc' => _("Insert an email address to which you can receive the new password:")
);
// *** Locale/Time Preferences ***
$prefGroups['language'] = array(
'column' => _("Your Information"),
'label' => _("Locale and Time"),
'desc' => _("Set your preferred language, timezone and date preferences."),
'members' => array(
'language', 'sending_charset', 'timezone', 'twentyFour', 'date_format',
'date_format_mini', 'time_format', 'first_week_day'
)
);
$_prefs['language'] = array(
'value' => '',
'type' => 'enum',
'enum' => array(),
'escaped' => true,
'desc' => _("Select your preferred language:"),
'on_init' => function($ui) {
$enum = $GLOBALS['registry']->nlsconfig->languages;
array_unshift($enum, _("Default"));
$ui->prefs['language']['enum'] = $enum;
},
'on_change' => function() {
global $prefs, $registry;
$registry->setLanguageEnvironment($prefs->getValue('language'));
foreach ($registry->listApps() as $app) {
if ($registry->isAuthenticated(array('app' => $app, 'notransparent' => true))) {
$registry->callAppMethod($app, 'changeLanguage');
}
}
}
);
$_prefs['sending_charset'] = array(
'value' => 'UTF-8',
'advanced' => true,
// Sending charset is locked by default.
'locked' => true,
'type' => 'enum',
'enum' => array_merge(
array('' => _("Default")),
$GLOBALS['registry']->nlsconfig->encodings_sort
),
'desc' => _("Default charset for sending e-mail messages:")
);
$_prefs['timezone'] = array(
'value' => '',
'type' => 'enum',
'enum' => array(),
'desc' => _("Your current time zone:"),
'on_init' => function($ui) {
$enum = Horde_Nls::getTimezones();
array_unshift($enum, _("Default"));
$ui->prefs['timezone']['enum'] = $enum;
},
);
$_prefs['twentyFour'] = array(
'value' => false,
'type' => 'checkbox',
'desc' => _("Display 24-hour times?")
);
$_prefs['date_format'] = array(
'value' => '%x',
'type' => 'enum',
'enum' => array(
'%x' => strftime('%x'),
'%Y-%m-%d' => strftime('%Y-%m-%d'),
'%d/%m/%Y' => strftime('%d/%m/%Y'),
'%A, %B %d, %Y' => strftime('%A, %B %d, %Y'),
'%A, %d. %B %Y' => strftime('%A, %d. %B %Y'),
'%A, %d %B %Y' => strftime('%A, %d %B %Y'),
'%a, %b %e, %Y' => strftime('%a, %b %e, %Y'),
'%a, %b %e, %y' => strftime('%a, %b %e, %y'),
'%a, %b %e' => strftime('%a, %b %e'),
'%a, %e %b %Y' => strftime('%a, %e %b %Y'),
'%a, %e %b %y' => strftime('%a, %e %b %y'),
'%a %d %b %Y' => strftime('%a %d %b %Y'),
'%a %x' => strftime('%a %x'),
'%a %Y-%m-%d' => strftime('%a %Y-%m-%d'),
'%e %b %Y' => strftime('%e %b %Y'),
'%e. %b %Y' => strftime('%e. %b %Y'),
'%e. %m %Y' => strftime('%e %m %Y'),
'%e. %m.' => strftime('%e. %m.'),
'%e. %B' => strftime('%e. %B'),
'%e. %B %Y' => strftime('%e. %B %Y'),
'%e. %B %y' => strftime('%e. %B %y'),
'%B %e, %Y' => strftime('%B %e, %Y'),
),
'desc' => _("Choose how to display dates (full format):"),
);
$_prefs['date_format_mini'] = array(
'value' => '%x',
'type' => 'enum',
'enum' => array(
'%x' => strftime('%x'),
'%Y-%m-%d' => strftime('%Y-%m-%d'),
'%d/%m/%Y' => strftime('%d/%m/%Y'),
'%a, %b %e, %Y' => strftime('%a, %b %e, %Y'),
'%a, %b %e, %y' => strftime('%a, %b %e, %y'),
'%a, %b %e' => strftime('%a, %b %e'),
'%a, %e %b %Y' => strftime('%a, %e %b %Y'),
'%a, %e %b %y' => strftime('%a, %e %b %y'),
'%a %d %b %Y' => strftime('%a %d %b %Y'),
'%a %x' => strftime('%a %x'),
'%a %Y-%m-%d' => strftime('%a %Y-%m-%d'),
'%e %b %Y' => strftime('%e %b %Y'),
'%e. %b %Y' => strftime('%e. %b %Y'),
'%e. %m %Y' => strftime('%e %m %Y'),
'%e. %m.' => strftime('%e. %m.'),
'%b %e, %Y' => strftime('%b %e, %Y'),
),
'desc' => _("Choose how to display dates (abbreviated format):"),
);
$_prefs['time_format'] = array(
'value' => '%X',
'type' => 'enum',
'enum' => array(
'%X' => strftime('%X') . ' (' . _("Default") . ')',
'%H:%M:%S' => strftime('%H:%M:%S') . ' (' . _("24-hour format") . ')',
'%l:%M:%S %p' => strftime('%l:%M:%S %p'),
'%R' => strftime('%R') . ' (' . _("24-hour format") . ')',
'%l:%M %p' => strftime('%l:%M %p'),
),
'desc' => _("Choose how to display times:")
);
$_prefs['first_week_day'] = array(
'value' => '0',
'type' => 'enum',
'enum' => array(
'0' => _("Sunday"),
'1' => _("Monday")
),
'desc' => _("Which day would you like to be displayed as the first day of the week?")
);
// *** Categories/Labels Preferences ***
$prefGroups['categories'] = array(
'column' => _("Your Information"),
'label' => _("Categories and Labels"),
'desc' => _("Manage the list of categories you have to label items with, and colors associated with those categories."),
'members' => array('categorymanagement')
);
// UI for category management.
$_prefs['categorymanagement'] = array(
'type' => 'special',
'handler' => 'Horde_Prefs_Special_Category'
);
$_prefs['categories'] = array(
'value' => ''
);
$_prefs['category_colors'] = array(
'value' => ''
);
// *** Display Preferences ***
$prefGroups['display'] = array(
'column' => _("Other Information"),
'label' => _("Display Preferences"),
'desc' => _("Set your startup application, color scheme, page refreshing, and other display preferences."),
'members' => array(
'initial_application', 'show_last_login', 'theme',
'summary_refresh_time', 'sidebar_width',
'menu_refresh_time', 'widget_accesskey'
)
);
$_prefs['initial_application'] = array(
'value' => 'horde',
'type' => 'enum',
'enum' => array(),
'desc' => sprintf(_("What application should %s display after login?"), $GLOBALS['registry']->get('name')),
'on_init' => function($ui) {
$enum = array();
$perms = $GLOBALS['injector']->getInstance('Horde_Perms');
foreach ($GLOBALS['registry']->listApps(array('active')) as $a) {
if (file_exists($GLOBALS['registry']->get('fileroot', $a)) &&
(($perms->exists($a) && ($perms->hasPermission($a, $GLOBALS['registry']->getAuth(), Horde_Perms::READ) || $GLOBALS['registry']->isAdmin())) ||
!$perms->exists($a))) {
$enum[$a] = $GLOBALS['registry']->get('name', $a);
}
}
asort($enum);
$ui->prefs['initial_application']['enum'] = $enum;
},
);
$_prefs['show_last_login'] = array(
'value' => true,
'advanced' => true,
'type' => 'checkbox',
'desc' => _("Show last login time when logging in?")
);
// Last login time of user
$_prefs['last_login'] = array(
// value is a serialized array of the UNIX timestamp of the last login,
// and the host that the last login was from.
// value = serialize(array())
'value' => 'a:0:{}'
);
$_prefs['theme'] = array(
'value' => 'default',
'type' => 'enum',
'enum' => Horde_Themes::themeList(),
'desc' => _("Select your color scheme.")
);
$_prefs['summary_refresh_time'] = array(
'value' => 300,
'type' => 'enum',
'enum' => array(
0 => _("Never"),
30 => _("Every 30 seconds"),
60 => _("Every minute"),
300 => _("Every 5 minutes"),
900 => _("Every 15 minutes"),
1800 => _("Every half hour")
),
'desc' => _("Refresh Portal View:")
);
$_prefs['sidebar_width'] = array(
'value' => 210,
'type' => 'number',
'desc' => sprintf(_("Width of the %s menu on the left:"), $GLOBALS['registry']->get('name', 'horde'))
);
$_prefs['menu_refresh_time'] = array(
'value' => 300,
'type' => 'enum',
'enum' => array(
0 => _("Never"),
30 => _("Every 30 seconds"),
60 => _("Every minute"),
120 => _("Every 2 minutes"),
300 => _("Every 5 minutes")
),
'desc' => _("Refresh Dynamic Menu Elements:")
);
$_prefs['widget_accesskey'] = array(
'value' => true,
'advanced' => true,
'type' => 'checkbox',
'desc' => _("Should access keys be defined for most links?")
);
// The layout of the portal page.
$_prefs['portal_layout'] = array(
// value = serialize(array())
'value' => 'a:0:{}'
);
// *** Facebook Integration Preferences ***
$prefGroups['facebook'] = array(
'column' => _("Other Information"),
'label' => _("Facebook Integration"),
'desc' => _("Set up integration with your Facebook account."),
'members' => array('facebookmanagement'),
'suppress' => function() {
return (empty($GLOBALS['conf']['facebook']['enabled']) ||
empty($GLOBALS['conf']['facebook']['id']) ||
empty($GLOBALS['conf']['facebook']['secret']));
}
);
$_prefs['facebookmanagement'] = array(
'type' => 'special',
'handler' => 'Horde_Prefs_Special_Facebook'
);
$_prefs['facebook'] = array(
// value = serialize(array())
'value' => 'a:0:{}'
);
// *** Twitter Intergration Preferences ***
$prefGroups['twitter'] = array(
'column' => _("Other Information"),
'label' => _("Twitter Integration"),
'desc' => _("Set up integration with your Twitter account."),
'members' => array('twittermanagement'),
'suppress' => function() {
return (empty($GLOBALS['conf']['twitter']['enabled']) ||
empty($GLOBALS['conf']['twitter']['key']) ||
empty($GLOBALS['conf']['twitter']['secret']));
}
);
$_prefs['twittermanagement'] = array(
'type' => 'special',
'handler' => 'Horde_Prefs_Special_Twitter'
);
$_prefs['twitter'] = array(
// value = serialize(array())
'value' => 'a:0:{}'
);
// *** IMSP Intergration Preferences ***
$prefGroups['imspauth'] = array(
'column' => _("Other Information"),
'label' => _("Alternate IMSP Login"),
'desc' => _("Use if name/password is different for IMSP server."),
'members' => array('imsp_auth_user', 'imsp_auth_pass'),
'suppress' => function() {
return empty($GLOBALS['conf']['imsp']['enabled']);
}
);
$_prefs['imsp_auth_user'] = array(
'value' => '',
'type' => 'text',
'desc' => _("Alternate IMSP Username")
);
$_prefs['imsp_auth_pass'] = array(
'value' => '',
'type' => 'password',
'desc' => _("Alternate IMSP Password")
);
// *** SyncML Preferences ***
$prefGroups['syncml'] = array(
'column' => _("Other Information"),
'label' => _("SyncML"),
'desc' => _("Configuration for syncing with PDAs, Smartphones and Outlook."),
'members' => array('syncmlmanagement'),
'suppress' => function() {
return !class_exists('Horde_SyncMl_Backend');
}
);
$_prefs['syncmlmanagement'] = array(
'type' => 'special',
'handler' => 'Horde_Prefs_Special_Syncml'
);
// *** ActiveSync Preferences ***
$prefGroups['activesync'] = array(
'column' => _("Other Information"),
'label' => _("ActiveSync"),
'desc' => _("Manage your ActiveSync devices."),
'members' => array('activesync_replyposition', 'activesyncmanagement'),
'suppress' => function() {
return empty($GLOBALS['conf']['activesync']['enabled']);
}
);
$_prefs['activesyncmanagement'] = array(
'type' => 'special',
'handler' => 'Horde_Prefs_Special_Activesync'
);
$_prefs['activesync_replyposition'] = array(
'type' => 'enum',
'desc' => _("Position of reply text when replying to email on your device. Note that some devices will always send the citation string at the end of the reply text."),
'enum' => array('bottom' => _("Bottom"), 'top' => _("Top")),
'value' => 'bottom',
'suppress' => function() {
return empty($GLOBALS['conf']['activesync']['emailsync']);
}
);
// Handled by the special.
// 'horde' = The horde configured default identity.
// integer - The identity identifier.
$_prefs['activesync_identity'] = array(
'value' => 'horde'
);
// *** Internal Preferences ***
// Last time login tasks were run.
$_prefs['last_logintasks'] = array(
// value = serialize(array())
'value' => 'a:0:{}'
);
// Track login upgrade tasks.
$_prefs['upgrade_tasks'] = array(
// value = serialize(array())
'value' => 'a:0:{}'
);
|