summaryrefslogtreecommitdiff
path: root/nocc/conf.php
blob: 084e16ee333efd4bd4c6e1f7889d644561e98a62 (plain)
  1. <?php
  2. /*
  3.  * $Header: /var/local/cvs/local-COMMON/nocc/conf.php,v 1.1 2001-11-27 15:04:27 jonas Exp $
  4. *
  5. * Copyright 2001 Nicolas Chalanset <nicocha@free.fr>
  6. * Copyright 2001 Olivier Cahagne <cahagn_o@epita.fr>
  7. *
  8. * See the enclosed file COPYING for license information (GPL). If you
  9. * did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
  10. */
  11. // ################### This is the main configuration for NOCC ########## //
  12. // ==> Required parameters
  13. // Default smtp server and smtp_port (default is 25)
  14. // If a domain has no smtp server, this one will be used
  15. // If no smtp server is provided, Nocc will default to the mail() function,
  16. // and try to use Sendmail or any other MTA (Postfix)
  17. $default_smtp_server = 'localhost';
  18. $default_smtp_port = 25;
  19. // List of domains people can log in
  20. // You can have as many domains as you need
  21. // $domains[0]->domain = 'sourceforge.net';
  22. // domain name e.g 'sourceforge.net'. This field is used when sending message
  23. //
  24. // $domains[0]->in = 'mail.sourceforge.net:110/pop3';
  25. // imap or pop3 server name + port + protocol (only if not imap)
  26. // [server_name]:[port number]/[protocol]
  27. // ex for an imap server : mail.sourceforge.net:143
  28. // ex for an ssl imap server : mail.sourceforge.net:993/ssl
  29. // ex for an ssl imap server with a self-signed certificate : mail.sourceforge.net:993/ssl/novalidate-cert
  30. // ex for a pop3 server : mail.sourceforge.net:110/pop3
  31. // ex for an ssl pop3 server : mail.sourceforge.net:995/pop3/ssl
  32. // ex for an ssl pop3 server with a self-signed certificate : mail.sourceforge.net:995/pop3/ssl/novalidate-cert
  33. // protocol can only be pop3
  34. //
  35. // $domains[0]->smtp = 'smtp.isp.com';
  36. // Optional: smtp server name or IP address
  37. // Leave empty to send mail via sendmail
  38. //
  39. // $domains[0]->smtp_port = 25;
  40. // Port number to connect to smtp server (usually 25)
  41. $domains[0]->domain = 'jones.dk';
  42. $domains[0]->in = 'mail.jones.dk';
  43. $domains[0]->smtp = '';
  44. $domains[0]->smtp_port = 25;
  45. $domains[1]->domain = 'homebase.dk';
  46. $domains[1]->in = 'mail.homebase.dk';
  47. $domains[2]->domain = '107b.dk';
  48. $domains[2]->in = '107b.dk';
  49. $domains[1]->domain = 'a-host.dk';
  50. $domains[1]->in = 'mail2.a-host.dk';
  51. $domains[2]->domain = 'macvaerk.com';
  52. $domains[2]->in = 'mail.macvaerk.com';
  53. // Default tmp directory (where to store temporary uploaded files)
  54. // This should be something like '/tmp' on Unix System
  55. // And 'c:\\temp' on Win32 (note that we must escape "\")
  56. $tmpdir = '/tmp';
  57. // Preferences data directory
  58. // IMPORTANT: This directory must exist and be writable by the user
  59. // the webserver is running as (e.g. 'apache', or 'nobody'). For
  60. // Apache, see the User directive in the httpd.conf file.
  61. // See README for more about this.
  62. // This should be something like 'profiles/' on Unix System
  63. // or 'prefs\\' on Win32 (note that we must escape "\")
  64. // If left empty, preferences will be disabled.
  65. $prefs_dir = '';
  66. // Default folder to go first
  67. $default_folder = 'INBOX';
  68. // ===> End of required parameters
  69. // The following parameters can be changed but it's not necessary to
  70. // get a working version of nocc
  71. // if browser has no preferred language, we use the default language
  72. // This is only needed for browsers that don't send any preferred
  73. // language such as W3 Amaya
  74. $default_lang = 'en';
  75. // How many messages to display in the inbox (devel only)
  76. $max_msg_num = 1;
  77. // let user see the header of a message
  78. $use_verbose = true;
  79. // the user can logout or not (if nocc is used within your website
  80. // enter 'false' here else leave 'true')
  81. $enable_logout = true;
  82. // Whether or not to display attachment part number
  83. $display_part_no = true;
  84. // Whether or not to display the Message/RFC822 into the attachments
  85. // (the attachments of that part are still available even if false is set
  86. $display_rfc822 = true;
  87. // If you don't want to display images (GIF, JPEG and PNG) sent as attachements
  88. // set it to 'false'
  89. $display_img_attach = true;
  90. // If you don't want to display text/plain attachments set it to 'false'
  91. $display_text_attach = true;
  92. // By default the messages are sorted by date
  93. $default_sort = '1';
  94. // By default the most recent is in top ('1' --> sorting top to bottom,
  95. // '0' --> bottom to top)
  96. $default_sortdir = '1';
  97. // For old UCB POP server, change this setting to 1 to enable
  98. // new mail detection. Recommended: leave it to 0 for any other POP or
  99. // IMAP server.
  100. // See FAQ for more details.
  101. $have_ucb_pop_server = false;
  102. // If you wanna make your own theme and force people to use that one,
  103. // set $use_theme to false and fill in the $default_theme to the theme name
  104. // you want to use
  105. // Theme handling: allows users to choose a theme on the login page
  106. $use_theme = true;
  107. // Default theme
  108. $default_theme = 'standard';
  109. // Error reporting
  110. // Display error but no notice
  111. $debug_level = E_ALL & ~E_NOTICE;
  112. // Display delete button as icon (true) or as an HTML button (false)
  113. $delete_button_icon = true;
  114. // Base URL where NOCC is hosted (only needed for Xitami servers, see #463390)
  115. $base_uri = '';
  116. // ################### Messages Signature ################### //
  117. // This message is added to every message, the user cannot delete it
  118. // Be careful if you modify this, do not forget to write '\r\n' to switch
  119. // to the next line !
  120. $ad = "___________________________________\r\nNOCC, http://nocc.sourceforge.net";
  121. /*
  122. ################### End of Configuration ####################
  123. *********************************************************************
  124. ################### Do not modify below this line ###################
  125. */
  126. $nocc_version = '0.9.5';
  127. $nocc_name = 'NOCC';
  128. session_register('domainnum', 'user', 'passwd', 'server', 'servtype', 'port', 'theme');
  129. if (isset($domainnum))
  130. {
  131. $domain = $domains[$domainnum]->domain;
  132. $servr = $domains[$domainnum]->in;
  133. $smtp_server = $domains[$domainnum]->smtp;
  134. $smtp_port = $domains[$domainnum]->smtp_port;
  135. }
  136. if (empty($smtp_server))
  137. $smtp_server = $default_smtp_server;
  138. if (empty($smtp_port))
  139. $smtp_port = $default_smtp_port;
  140. if (empty($servr) && !empty($server) && !empty($servtype) && !empty($port))
  141. {
  142. $servtype = strtolower($servtype);
  143. if ($servtype != 'imap')
  144. $servr = $server.'/'.$servtype.':'.$port;
  145. else
  146. $servr = $server.':'.$port;
  147. $domain = $server;
  148. }
  149. if (!isset($folder))
  150. $folder = $default_folder;
  151. if (!isset($sort))
  152. $sort = $default_sort;
  153. if (!isset($sortdir))
  154. $sortdir = $default_sortdir;
  155. if ($use_theme == true)
  156. {
  157. if (!isset($theme))
  158. $theme = $default_theme;
  159. }
  160. else
  161. $theme = $default_theme;
  162. $php_session = ini_get('session.name');
  163. $action = isset($action) ? $action : '';
  164. error_reporting($debug_level);
  165. // Prevent mangling of uploaded attachments
  166. set_magic_quotes_runtime(0);
  167. require_once ('./conf_lang.php');
  168. require ('./themes/'.$theme.'/colors.php');
  169. ?>