/framework/Kolab_FreeBusy/www/Horde/Kolab/FreeBusy/config.php

https://github.com/finger2000/horde · PHP · 116 lines · 29 code · 19 blank · 68 comment · 0 complexity · 2f8905ef5f4552083cf9d4db858e107d MD5 · raw file

  1. <?php
  2. /**
  3. * This file provides configuration settings for both the freebusy.php
  4. * and the pfb.php scripts.
  5. *
  6. * Copyright 2008-2011 Horde LLC (http://www.horde.org/)
  7. *
  8. * @author Steffen Hansen <steffen@klaralvdalens-datakonsult.se>
  9. * @author Gunnar Wrobel <p@rdus.de>
  10. * @author Thomas Arendsen Hein <thomas@intevation.de>
  11. * @package Kolab_FreeBusy
  12. */
  13. $conf = array();
  14. /* Horde::Log configuration */
  15. $conf['log']['enabled'] = true;
  16. $conf['log']['priority'] = PEAR_LOG_DEBUG; // Leave this on DEBUG for now. We just restructured the package...
  17. $conf['log']['type'] = 'file';
  18. $conf['log']['name'] = '/kolab/var/kolab-freebusy/log/freebusy.log';
  19. $conf['log']['ident'] = 'Kolab Free/Busy';
  20. $conf['log']['params']['append'] = true;
  21. /* PHP error logging */
  22. ini_set('error_log', '/kolab/var/kolab-freebusy/log/php-error.log');
  23. /* Horde::Kolab::LDAP configuration */
  24. $conf['kolab']['ldap']['server'] = 'example.com';
  25. $conf['kolab']['ldap']['basedn'] = 'dc=example,dc=com';
  26. $conf['kolab']['ldap']['phpdn'] = 'cn=nobody,cn=internal,dc=example,dc=com';
  27. $conf['kolab']['ldap']['phppw'] = 'xyz';
  28. /* Horde::Kolab::IMAP configuration */
  29. $conf['kolab']['imap']['server'] = 'example.com';
  30. $conf['kolab']['imap']['port'] = 143;
  31. $conf['kolab']['imap']['protocol'] = 'notls/readonly';
  32. /* Horde::Auth configuration */
  33. $conf['auth']['params']['login_block'] = 0;
  34. $conf['auth']['checkbrowser'] = false;
  35. $conf['auth']['checkip'] = false;
  36. /* Kolab::Freebusy configuration */
  37. /* Should we redirect using a Location header, if the user is not local? If this
  38. * is false we silently download the file ourselves and output it so that it
  39. * looks as though the free/busy information is coming from us.
  40. */
  41. $conf['fb']['redirect'] = false;
  42. /* What is the address of the current server where the calendar data is stored?
  43. * This is also used as the LDAP server address where user objects reside.
  44. */
  45. $conf['kolab']['freebusy']['server'] = 'https://example.com/freebusy';
  46. /* What is our default mail domain? This is used if any users do not have
  47. * '@domain' specified after their username as part of their email address.
  48. */
  49. $conf['fb']['email_domain'] = 'example.com';
  50. /* Location of the cache files */
  51. $conf['fb']['cache_dir'] = '/kolab/var/kolab-freebusy/cache';
  52. /* What db type to use for the freebusy caches */
  53. $conf['fb']['dbformat'] = 'db4';
  54. /* Should we send a Content-Type header, indicating what the mime type of the
  55. * resulting VFB file is?
  56. */
  57. $conf['fb']['send_content_type'] = false;
  58. /* Should we send a Content-Length header, indicating how large the resulting
  59. * VFB file is?
  60. */
  61. $conf['fb']['send_content_length'] = false;
  62. /* Should we send a Content-Disposition header, indicating what the name of the
  63. * resulting VFB file should be?
  64. */
  65. $conf['fb']['send_content_disposition'] = false;
  66. /* Should we use ACLs or does everybody get full rights? DO NOT set
  67. * this to false if you don't know what you are doing. Your free/busy
  68. * service should not be visible to any outside networks when
  69. * disabling the use of ACL settings.
  70. */
  71. $conf['fb']['use_acls'] = true;
  72. /* Are there remote servers on which users have additional (shared)
  73. * folders? In that case free/busy information should also be fetched
  74. * from these servers.
  75. *
  76. * Add them like this:
  77. *
  78. * array('remote1.example.com', 'remote2.example.com')
  79. */
  80. $conf['fb']['remote_servers'] = array();
  81. //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  82. //
  83. // If you modify this file, please do not forget to also modify the
  84. // template in kolabd!
  85. //
  86. //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  87. // DEBUGGING
  88. // =========
  89. //
  90. // Activate this to see the log messages on the screen
  91. // $conf['log']['type'] = 'display';
  92. //
  93. // Activate this to see the php messages on the screen
  94. // ini_set('display_errors', 1);
  95. //
  96. // Both settings will disrupt header delivery (which should not cause a
  97. // problem).