constants.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. /**
  3. * constants.php
  4. *
  5. * Copyright (c) 1999-2003 The SquirrelMail Project Team
  6. * Licensed under the GNU GPL. For full terms see the file COPYING.
  7. *
  8. * Loads constants used by the rest of the Squirrelmail source.
  9. * This file is include by src/login.php, src/redirect.php and
  10. * src/load_prefs.php.
  11. *
  12. * $Id$
  13. */
  14. require_once(SM_PATH . 'functions/plugin.php'); /* Required for the hook */
  15. /**************************************************************/
  16. /* Set values for constants used by Squirrelmail preferences. */
  17. /**************************************************************/
  18. /* Define basic, general purpose preference constants. */
  19. define('SMPREF_NO', 0);
  20. define('SMPREF_OFF', 0);
  21. define('SMPREF_YES', 1);
  22. define('SMPREF_ON', 1);
  23. define('SMPREF_NONE', 'none');
  24. /* Define constants for location based preferences. */
  25. define('SMPREF_LOC_TOP', 'top');
  26. define('SMPREF_LOC_BETWEEN', 'between');
  27. define('SMPREF_LOC_BOTTOM', 'bottom');
  28. define('SMPREF_LOC_LEFT', '');
  29. define('SMPREF_LOC_RIGHT', 'right');
  30. /* Define preferences for folder settings. */
  31. define('SMPREF_UNSEEN_NONE', 1);
  32. define('SMPREF_UNSEEN_INBOX', 2);
  33. define('SMPREF_UNSEEN_ALL', 3);
  34. define('SMPREF_UNSEEN_SPECIAL', 4); // Only special folders
  35. define('SMPREF_UNSEEN_NORMAL', 5); // Only normal folders
  36. define('SMPREF_UNSEEN_ONLY', 1);
  37. define('SMPREF_UNSEEN_TOTAL', 2);
  38. /* Define constants for time/date display preferences. */
  39. define('SMPREF_TIME_24HR', 1);
  40. define('SMPREF_TIME_12HR', 2);
  41. /* Define constants for javascript preferences. */
  42. define('SMPREF_JS_OFF', 0);
  43. define('SMPREF_JS_ON', 1);
  44. define('SMPREF_JS_AUTODETECT', 2);
  45. do_hook('loading_constants');
  46. ?>