[ Index ] |
|
Code source de Horde 3.1.3 |
1 <?php 2 /** 3 * $Horde: horde/config/prefs.php.dist,v 1.85.2.7 2006/06/22 18:47:55 chuck Exp $ 4 * 5 * Preferences Information 6 * ======================= 7 * Changes you make to the prefs.php file(s) will not be reflected until the 8 * user logs out and logs in again. 9 * 10 * If you change these preferences in a production system, you will 11 * need to delete any horde_prefs in your preferences database. 12 * 13 * prefGroups array 14 * ---------------- 15 * $prefGroups are for display purposes when you press the options button. 16 * The options choice will appear when you set your preferences driver 17 * in the horde/config/conf.php file. 18 * 19 * $prefGroups array definition: 20 * column: What column head this group will go under 21 * label: Label for the group of settings 22 * desc: Description that will show under label 23 * members: List of preferences supported by this group 24 * 25 * _prefs array 26 * ------------ 27 * The $_prefs array's are listed in the same order as listed in the 28 * members element of $prefGroups. 29 * 30 * value: This entry will either hold a number or a text value based on the 31 * preference type: 32 * implicit: See Preference type 33 * text: Text value 34 * number: Number value 35 * checkbox: Value should be 0 for unchecked, 1 for checked 36 * select: Value associated with that selection list 37 * 38 * locked: Allow preference to be changed from UI 39 * true: Do not show this preference in the UI 40 * false: Show this preference in the UI and allow changing 41 * 42 * shared: Share with other horde apps 43 * true: Share this pref with other Horde apps 44 * false: Keep this pref local to the current app 45 * 46 * type: Preference type 47 * special: Provides a UI widget 48 * select: Provides a selection list in the UI 49 * checkbox: Provides a checkbox 50 * implicit: Provides storage for 'special' types 51 * password: Provides a textbox for password entry. 52 * enum: Use static list of elements...similar to 'select' 53 * 54 * enum: Static list of elements. 55 * 56 * escaped: For an enum or a select, are the keys and values already html-escaped? 57 * Defaults to false if not present. 58 * 59 * hook: Call a hook function for the value of this preference 60 * true: Will call the function _prefs_hook_<prefname> 61 * to fill in the value of this preference. 62 * See hooks.php for more details. 63 * false: Normal behaviour - no hook is called. 64 */ 65 66 $prefGroups['identities'] = array( 67 'column' => _("Your Information"), 68 'label' => _("Personal Information"), 69 'desc' => _("Change the name and address that people see when they read and reply to your emails."), 70 'members' => array('default_identity', 'identityselect', 'deleteidentity', 71 'id', 'fullname', 'from_addr') 72 ); 73 74 $auth = &Auth::singleton($GLOBALS['conf']['auth']['driver']); 75 if (is_a($auth, 'Auth') && $auth->hasCapability('update')) { 76 $prefGroups['forgotpass'] = array( 77 'column' => _("Your Information"), 78 'label' => _("Account Password"), 79 'desc' => _("Set options to allow you to reset your password if you ever forget it."), 80 'members' => array('security_question', 'security_answer', 'alternate_email') 81 ); 82 } 83 84 $prefGroups['language'] = array( 85 'column' => _("Your Information"), 86 'label' => _("Locale and Time"), 87 'desc' => _("Set your preferred language, timezone and date options."), 88 'members' => array('language', 'timezone', 'twentyFour', 'date_format') 89 ); 90 91 $prefGroups['categories'] = array( 92 'column' => _("Your Information"), 93 'label' => _("Categories and Labels"), 94 'desc' => _("Manage the list of categories you have to label items with, and colors associated with those categories."), 95 'members' => array('categorymanagement') 96 ); 97 98 $prefGroups['display'] = array( 99 'column' => _("Other Information"), 100 'label' => _("Display Options"), 101 'desc' => _("Set your startup application, color scheme, page refreshing, and other display options."), 102 'members' => array('initial_application', 'show_last_login', 'theme', 103 'summary_refresh_time', 'show_sidebar', 'sidebar_width', 104 'moz_sidebar', 'menu_view', 'menu_refresh_time', 105 'widget_accesskey', 'alpha_filter') 106 ); 107 108 $prefGroups['logintasks'] = array( 109 'column' => _("Other Information"), 110 'label' => _("Login Tasks"), 111 'desc' => sprintf(_("Customize tasks to run upon logon to %s."), $GLOBALS['registry']->get('name')), 112 'members' => array('do_maintenance', 'confirm_maintenance') 113 ); 114 115 $prefGroups['remote'] = array( 116 'column' => _("Other Information"), 117 'label' => _("Remote Servers"), 118 'desc' => _("Set up remote servers that you want to access from your portal."), 119 'url' => 'services/portal/rpcsum.php' 120 ); 121 122 // For alternate IMSP authentication. 123 if (!empty($GLOBALS['conf']['imsp']['enabled'])) { 124 $prefGroups['imspauth'] = array( 125 'column' => _("Other Information"), 126 'label' => _("Alternate IMSP Login"), 127 'desc' => _("Use if name/password is different for IMSP server."), 128 'members' => array('imsp_auth_user', 'imsp_auth_pass') 129 ); 130 } 131 132 // Determine functionality of richtext editor 133 $prefGroups['richtext'] = array( 134 'column' => _("Other Information"), 135 'label' => _("Rich Text Editor Options"), 136 'desc' => _("Which plugins to enable for the Rich Text editor."), 137 'members' => array('contextmenu', 'tableoperations', 'listtype'), 138 ); 139 if ($registry->hasInterface('images')) { 140 $prefGroups['richtext']['members'][] = 'anselimage'; 141 } 142 143 // Personal Information preferences 144 145 // default identity 146 // Set locked to true if you don't want the users to have multiple identities. 147 $_prefs['default_identity'] = array( 148 'value' => 0, 149 'locked' => false, 150 'shared' => true, 151 'type' => 'enum', 152 'enum' => (isset($identity) && is_object($identity)) ? $identity->getAll('id') : array(), 153 'desc' => _("Your default identity:") 154 ); 155 156 // identities array 157 // Don't change anything here. 158 $_prefs['identities'] = array( 159 'value' => 'a:0:{}', 160 'locked' => false, 161 'shared' => true, 162 'type' => 'implicit' 163 ); 164 165 // identity selection widget 166 $_prefs['identityselect'] = array( 167 'shared' => true, 168 'type' => 'special' 169 ); 170 171 // delete button 172 $_prefs['deleteidentity'] = array( 173 'type' => 'special', 174 'shared' => true 175 ); 176 177 // identity name 178 // If you lock this preference, you must specify a value or a hook for it in 179 // horde/config/hooks.php. 180 $_prefs['id'] = array( 181 'value' => '', 182 'locked' => false, 183 'shared' => true, 184 'type' => 'text', 185 'desc' => _("Identity's name:") 186 ); 187 188 // user full name for From: line 189 // If you lock this preference, you must specify a value or a hook for it in 190 // horde/config/hooks.php. 191 $_prefs['fullname'] = array( 192 'value' => '', 193 'locked' => false, 194 'shared' => true, 195 'type' => 'text', 196 'desc' => _("Your full name:") 197 ); 198 199 // user preferred email address for From: line 200 // If you lock this preference, you must specify a value or a hook for it in 201 // horde/config/hooks.php. 202 $_prefs['from_addr'] = array( 203 'value' => '', 204 'locked' => false, 205 'shared' => true, 206 'type' => 'text', 207 'desc' => _("Your From: address:") 208 ); 209 210 // user security question 211 $_prefs['security_question'] = array( 212 'value' => '', 213 'locked' => false, 214 'shared' => true, 215 'type' => 'text', 216 '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?':") 217 ); 218 219 // user security answer 220 $_prefs['security_answer'] = array( 221 'value' => '', 222 'locked' => false, 223 'shared' => true, 224 'type' => 'text', 225 'desc' => _("Insert the required answer to the security question:") 226 ); 227 228 // user alternate email 229 $_prefs['alternate_email'] = array( 230 'value' => '', 231 'locked' => false, 232 'shared' => true, 233 'type' => 'text', 234 'desc' => _("Insert an email address to which you can receive the new password:") 235 ); 236 237 // user language 238 $_prefs['language'] = array( 239 'value' => '', 240 'locked' => false, 241 'shared' => true, 242 'type' => 'select', 243 'escaped' => true, 244 'desc' => _("Select your preferred language:") 245 ); 246 247 // user time zone 248 $_prefs['timezone'] = array( 249 'value' => '', 250 'locked' => false, 251 'shared' => true, 252 'type' => 'select', 253 'desc' => _("Your current time zone:") 254 ); 255 256 // time format 257 $_prefs['twentyFour'] = array( 258 'value' => false, 259 'locked' => false, 260 'shared' => true, 261 'type' => 'checkbox', 262 'desc' => _("Display 24-hour times?") 263 ); 264 265 // date format 266 $_prefs['date_format'] = array( 267 'value' => '%x', 268 'locked' => false, 269 'shared' => true, 270 'type' => 'enum', 271 'enum' => array( 272 '%x' => strftime('%x'), 273 '%Y-%m-%d' => strftime('%Y-%m-%d'), 274 '%d/%m/%Y' => strftime('%d/%m/%Y'), 275 '%A %B %d, %Y' => strftime('%A %B %d, %Y'), 276 '%A, %d. %B %Y' => strftime('%A, %d. %B %Y'), 277 '%A, %d %B %Y' => strftime('%A, %d %B %Y'), 278 '%a, %b %e, %Y' => strftime('%a, %b %e, %Y'), 279 '%a, %b %e, %y' => strftime('%a, %b %e, %y'), 280 '%a, %b %e' => strftime('%a, %b %e'), 281 '%a, %e %b %Y' => strftime('%a, %e %b %Y'), 282 '%a, %e %b %y' => strftime('%a, %e %b %y'), 283 '%a %d %b %Y' => strftime ('%a %d %b %Y'), 284 '%a %x' => strftime ('%a %x'), 285 '%a %Y-%m-%d' => strftime ('%a %Y-%m-%d'), 286 '%e %b %Y' => strftime('%e %b %Y'), 287 '%e. %b %Y' => strftime('%e. %b %Y'), 288 '%e. %m %Y' => strftime('%e %m %Y'), 289 '%e. %m.' => strftime('%e. %m.'), 290 '%e. %B' => strftime('%e. %B'), 291 '%e. %B %Y' => strftime('%e. %B %Y'), 292 '%e. %B %y' => strftime('%e. %B %y'), 293 '%B %e, %Y' => strftime('%B %e, %Y'), 294 ), 295 'desc' => _("Choose how to display dates:")); 296 297 // UI theme 298 $_prefs['theme'] = array( 299 'value' => 'bluewhite', 300 'locked' => false, 301 'shared' => true, 302 'type' => 'select', 303 'desc' => _("Select your color scheme.") 304 ); 305 306 // categories 307 $_prefs['categories'] = array( 308 'value' => '', 309 'locked' => false, 310 'shared' => true, 311 'type' => 'implicit' 312 ); 313 314 // category colors 315 $_prefs['category_colors'] = array( 316 'value' => '', 317 'locked' => false, 318 'shared' => true, 319 'type' => 'implicit' 320 ); 321 322 // UI for category management. 323 $_prefs['categorymanagement'] = array( 324 'type' => 'special' 325 ); 326 327 $_prefs['summary_refresh_time'] = array( 328 'value' => 300, 329 'locked' => false, 330 'shared' => false, 331 'type' => 'enum', 332 'enum' => array(0 => _("Never"), 333 30 => _("Every 30 seconds"), 334 60 => _("Every minute"), 335 300 => _("Every 5 minutes"), 336 900 => _("Every 15 minutes"), 337 1800 => _("Every half hour")), 338 'desc' => _("Refresh Portal View:") 339 ); 340 341 $_prefs['show_sidebar'] = array( 342 'value' => true, 343 'locked' => false, 344 'shared' => true, 345 'type' => 'checkbox', 346 'desc' => sprintf(_("Show the %s Menu on the left?"), $GLOBALS['registry']->get('name', 'horde')) 347 ); 348 349 $_prefs['sidebar_width'] = array( 350 'value' => 150, 351 'locked' => false, 352 'shared' => false, 353 'type' => 'number', 354 'desc' => sprintf(_("Width of the %s menu on the left (takes effect on next log-in):"), $GLOBALS['registry']->get('name', 'horde')) 355 ); 356 357 $_prefs['moz_sidebar'] = array( 358 'type' => 'link', 359 'xurl' => sprintf('javascript:if (window.sidebar && window.sidebar.addPanel) window.sidebar.addPanel(\'%s\', \'%s\', \'%s\'); else alert(\'%s\');', 360 $GLOBALS['registry']->get('name', 'horde'), 361 Util::addParameter(Horde::url($GLOBALS['registry']->get('webroot', 'horde') . '/services/portal/sidebar.php', true, -1), 'mozbar', '1'), 362 Horde::url($GLOBALS['registry']->get('webroot', 'horde') . '/prefs.php', true, -1), 363 addslashes(_("Couldn't find the Mozilla Sidebar. Make sure the sidebar is open."))), 364 'desc' => sprintf(_("Add the %s Menu as a Mozilla Sidebar"), $GLOBALS['registry']->get('name', 'horde')) 365 ); 366 367 $_prefs['menu_view'] = array( 368 'value' => 'both', 369 'locked' => false, 370 'shared' => true, 371 'type' => 'enum', 372 'enum' => array('text' => _("Text Only"), 373 'icon' => _("Icons Only"), 374 'both' => _("Icons with text")), 375 'desc' => _("Menu mode:") 376 ); 377 378 $_prefs['menu_refresh_time'] = array( 379 'value' => 300, 380 'locked' => false, 381 'shared' => true, 382 'type' => 'enum', 383 'enum' => array(0 => _("Never"), 384 30 => _("Every 30 seconds"), 385 60 => _("Every minute"), 386 120 => _("Every 2 minutes"), 387 300 => _("Every 5 minutes")), 388 'desc' => _("Refresh Dynamic Menu Elements:") 389 ); 390 391 392 // Login/Maintenance Tasks preferences 393 394 // To disable maintenance entirely, set 'value' = false and 395 // 'locked' = true for all of these. To just turn it off by default, 396 // set 'value' false for do_maintenance. 397 // perform maintenance operations? 398 $_prefs['do_maintenance'] = array( 399 'value' => true, 400 'locked' => false, 401 'shared' => true, 402 'type' => 'checkbox', 403 'desc' => _("Perform maintenance operations on login?"), 404 'help' => 'prefs-do_maintenance'); 405 406 // last time maintenance was run. 407 // value is a UNIX timestamp of the last time maintenance ran for the user. 408 $_prefs['last_maintenance'] = array( 409 'value' => 0, 410 'locked' => false, 411 'shared' => true, 412 'type' => 'implicit' 413 ); 414 415 // confirm when doing maintenance operations? If false, they will 416 // be performed with no input from/check with the user. 417 $_prefs['confirm_maintenance'] = array( 418 'value' => true, 419 'locked' => false, 420 'shared' => true, 421 'type' => 'checkbox', 422 'desc' => _("Ask for confirmation before doing maintenance operations?"), 423 'help' => 'prefs-confirm_maintenance'); 424 425 // End Login/Maintenance preferences 426 427 428 // what application should we go to after login? 429 $_prefs['initial_application'] = array( 430 'value' => 'horde', 431 'locked' => false, 432 'shared' => true, 433 'type' => 'select', 434 'desc' => sprintf(_("What application should %s display after login?"), $GLOBALS['registry']->get('name')) 435 ); 436 437 // should we create access keys? 438 $_prefs['widget_accesskey'] = array( 439 'value' => true, 440 'locked' => false, 441 'shared' => true, 442 'type' => 'checkbox', 443 'desc' => _("Should access keys be defined for most links?") 444 ); 445 446 // should we not use the alpha image loader for IE? 447 $_prefs['alpha_filter'] = array( 448 'value' => false, 449 'locked' => true, 450 'shared' => true, 451 'type' => 'checkbox', 452 'desc' => _("If you don't see any icons using Internet Explorer, you may need to check this box to turn off PNG transparency.") 453 ); 454 455 // the layout of the portal page. 456 $_prefs['portal_layout'] = array( 457 'value' => 'a:0:{}', 458 'locked' => false, 459 'shared' => false, 460 'type' => 'implicit' 461 ); 462 463 // the remote servers. 464 $_prefs['remote_summaries'] = array( 465 'value' => 'a:0:{}', 466 'locked' => false, 467 'shared' => false, 468 'type' => 'implicit' 469 ); 470 471 // last login time of user 472 // value is a serialized array of the UNIX timestamp of the last 473 // login, and the host that the last login was from. 474 $_prefs['last_login'] = array( 475 'value' => 'a:0:{}', 476 'locked' => false, 477 'shared' => true, 478 'type' => 'implicit' 479 ); 480 481 // show the last login time of user 482 $_prefs['show_last_login'] = array( 483 'value' => true, 484 'locked' => false, 485 'shared' => true, 486 'type' => 'checkbox', 487 'desc' => _("Show last login time when logging in?") 488 ); 489 490 if (!empty($GLOBALS['conf']['imsp']['enabled'])) { 491 $_prefs['imsp_auth_user'] = array( 492 'value' => '', 493 'locked' => false, 494 'shared' => false, 495 'type' => 'text', 496 'desc' => _("Alternate IMSP Username") 497 ); 498 499 $_prefs['imsp_auth_pass'] = array( 500 'value' => '', 501 'locked' => false, 502 'shared' => false, 503 'type' => 'password', 504 'desc' => _("Alternate IMSP Password") 505 ); 506 } 507 508 // Rich Text Editor preferences. 509 510 $_prefs['contextmenu'] = array( 511 'value' => true, 512 'locked' => false, 513 'shared' => true, 514 'type' => 'checkbox', 515 'desc' => _("Enable right click context menu?") 516 ); 517 518 $_prefs['tableoperations'] = array( 519 'value' => false, 520 'locked' => false, 521 'shared' => true, 522 'type' => 'checkbox', 523 'desc' => _("Show table operations menu bar?") 524 ); 525 526 $_prefs['listtype'] = array( 527 'value' => true, 528 'locked' => false, 529 'shared' => true, 530 'type' => 'checkbox', 531 'desc' => _("Allow setting of ordered list type?") 532 ); 533 534 if ($registry->hasInterface('images')) { 535 $_prefs['anselimage'] = array( 536 'value' => true, 537 'locked' => false, 538 'shared' => true, 539 'type' => 'checkbox', 540 'desc' => _("Enable insertion of images from Photo Galleries in text?") 541 ); 542 } 543 544 // End Rich Text Editor preferences.
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 18:01:28 2007 | par Balluche grâce à PHPXref 0.7 |