Source for file constants.php

Documentation is available at constants.php

  1. <?php
  2. /**
  3. * constants.php
  4. *
  5. * Loads constants used by the rest of the SquirrelMail source.
  6. * This file is include by src/login.php, src/redirect.php and
  7. * src/load_prefs.php.
  8. *
  9. * @copyright 1999-2020 The SquirrelMail Project Team
  10. * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  11. * @version $Id: constants.php 14840 2020年01月07日 07:42:38Z pdontthink $
  12. * @package squirrelmail
  13. * @since 1.2.0
  14. */
  15. /** Need to enable plugin functions for a hook */
  16. require_once(SM_PATH . 'functions/plugin.php'); /* Required for the hook */
  17. /**************************************************************/
  18. /* Set values for constants used by Squirrelmail preferences. */
  19. /**************************************************************/
  20. /* Define basic, general purpose preference constants. */
  21. define ('SMPREF_NO', 0);
  22. define ('SMPREF_OFF', 0);
  23. define ('SMPREF_YES', 1);
  24. define ('SMPREF_ON', 1);
  25. define ('SMPREF_NONE', 'none');
  26. /* Define constants for location based preferences. */
  27. define ('SMPREF_LOC_TOP', 'top');
  28. define ('SMPREF_LOC_BETWEEN', 'between');
  29. define ('SMPREF_LOC_BOTTOM', 'bottom');
  30. define ('SMPREF_LOC_LEFT', '');
  31. define ('SMPREF_LOC_RIGHT', 'right');
  32. /* Define preferences for folder settings. */
  33. define ('SMPREF_UNSEEN_NONE', 1);
  34. define ('SMPREF_UNSEEN_INBOX', 2);
  35. define ('SMPREF_UNSEEN_ALL', 3);
  36. define ('SMPREF_UNSEEN_SPECIAL', 4); // Only special folders
  37. define ('SMPREF_UNSEEN_NORMAL', 5); // Only normal folders
  38. define ('SMPREF_UNSEEN_ONLY', 1);
  39. define ('SMPREF_UNSEEN_TOTAL', 2);
  40. /* Define constants for time/date display preferences. */
  41. define ('SMPREF_TIME_24HR', 1);
  42. define ('SMPREF_TIME_12HR', 2);
  43. /* Define constants for javascript preferences. */
  44. define ('SMPREF_JS_OFF', 0);
  45. define ('SMPREF_JS_ON', 1);
  46. define ('SMPREF_JS_AUTODETECT', 2);
  47. /* Define constants for address book functionalities. */
  48. define ('SM_ABOOK_FIELD_NICKNAME', 0);
  49. define ('SM_ABOOK_FIELD_FIRSTNAME', 1);
  50. define ('SM_ABOOK_FIELD_LASTNAME', 2);
  51. define ('SM_ABOOK_FIELD_EMAIL', 3);
  52. define ('SM_ABOOK_FIELD_LABEL', 4);
  53. /* Define constants for script libraries. */
  54. define ('SM_SCRIPT_LIB_REMOTE_REQUEST', 'remote_request.js');
  55. define ('SM_SCRIPT_LIB_RELOAD_PAGE', 'reload_page.js');
  56. define ('SM_SCRIPT_LIB_COMMON', 'common.js');
  57. do_hook ('loading_constants');

Documentation generated on 2020年1月13日 04:24:23 +0100 by phpDocumentor 1.4.3

AltStyle によって変換されたページ (->オリジナル) /