config_sample.php 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?php
  2. /**
  3. * SquirrelMail NewMail plugin
  4. *
  5. * Sample configuration file
  6. * @copyright &copy; 2005-2007 The SquirrelMail Project Team
  7. * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  8. * @version $Id$
  9. * @package plugins
  10. * @subpackage newmail
  11. */
  12. /**
  13. * Custom formatting for both new mail popup window title
  14. * bar and changed main SquirrelMail window title bar
  15. *
  16. * If you change these, they will ONLY show up in the
  17. * language you use here unless you add it to your
  18. * SquirrelMail translation files!
  19. *
  20. * Use ###USERNAME### in these strings if you want to insert
  21. * the username in the title.
  22. *
  23. * Use ###ORG_TITLE### in these strings if you want to insert
  24. * the $org_title setting from the main SquirrelMail config
  25. * in the title.
  26. *
  27. * Use %s in these strings if you want to insert the number
  28. * of new messages in the title.
  29. *
  30. * Leave blank to use default title bar strings
  31. *
  32. * $newmail_title_bar_singular = '###USERNAME### - %s New Message';
  33. * $newmail_title_bar_plural = '###USERNAME### - %s New Messages';
  34. * $newmail_popup_title_bar_singular = '###ORG_TITLE### - New Mail';
  35. * $newmail_popup_title_bar_plural = '###ORG_TITLE### - New Mail';
  36. *
  37. */
  38. global $newmail_title_bar_singular, $newmail_title_bar_plural,
  39. $newmail_popup_title_bar_singular, $newmail_popup_title_bar_plural;
  40. $newmail_title_bar_singular = '';
  41. $newmail_title_bar_plural = '';
  42. $newmail_popup_title_bar_singular = '';
  43. $newmail_popup_title_bar_plural = '';
  44. /**
  45. * Set $newmail_allowsound to false if you don't want sound files available
  46. * @global boolean $newmail_allowsound
  47. */
  48. global $newmail_allowsound;
  49. $newmail_allowsound = true;
  50. /**
  51. * Set $newmail_uploadsounds to false if you don't want to allow uploading
  52. * of custom sound files.
  53. * @global boolean $newmail_uploadsounds
  54. */
  55. global $newmail_uploadsounds;
  56. $newmail_uploadsounds = false;
  57. /**
  58. * controls insertion of embed tags
  59. * @global boolean $newmail_mediacompat_mode
  60. */
  61. global $newmail_mediacompat_mode;
  62. $newmail_mediacompat_mode=false;
  63. /**
  64. * List of available multimedia files.
  65. *
  66. * For example.
  67. * $newmail_mmedia['notify']['types'] = array(SM_NEWMAIL_FILETYPE_SWF,SM_NEWMAIL_FILETYPE_MP3,SM_NEWMAIL_FILETYPE_WAV);
  68. * $newmail_mmedia['notify']['args'] = array('width'=>0,'height'=>0);
  69. *
  70. * These two entries say that media/ directory contains notify.swf, notify.mp3 and notify.wav files
  71. * Object elements for these files should use zero width and height attributes
  72. * @global array $newmail_mmedia
  73. */
  74. global $newmail_mmedia;
  75. $newmail_mmedia['notify']['types'] = array(SM_NEWMAIL_FILETYPE_SWF,SM_NEWMAIL_FILETYPE_MP3,SM_NEWMAIL_FILETYPE_WAV);
  76. $newmail_mmedia['notify']['args'] = array('width'=>0,'height'=>0);
  77. $newmail_mmedia['got_a_message']['types'] = array(SM_NEWMAIL_FILETYPE_SWF,SM_NEWMAIL_FILETYPE_MP3,SM_NEWMAIL_FILETYPE_WAV);
  78. $newmail_mmedia['got_a_message']['args'] = array('width'=>0,'height'=>0);
  79. $newmail_mmedia['monty_message']['types'] = array(SM_NEWMAIL_FILETYPE_SWF,SM_NEWMAIL_FILETYPE_MP3,SM_NEWMAIL_FILETYPE_WAV);
  80. $newmail_mmedia['monty_message']['args'] = array('width'=>0,'height'=>0);
  81. $newmail_mmedia['austin_mail']['types'] = array(SM_NEWMAIL_FILETYPE_SWF,SM_NEWMAIL_FILETYPE_MP3,SM_NEWMAIL_FILETYPE_WAV);
  82. $newmail_mmedia['austin_mail']['args'] = array('width'=>0,'height'=>0);