[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/inc/ -> defines.php (source)

   1  <?php
   2  /**
   3   * Set up globally available constants
   4   */
   5  
   6  /**
   7   * Auth Levels
   8   * @file inc/auth.php
   9   */
  10  define('AUTH_NONE', 0);
  11  define('AUTH_READ', 1);
  12  define('AUTH_EDIT', 2);
  13  define('AUTH_CREATE', 4);
  14  define('AUTH_UPLOAD', 8);
  15  define('AUTH_DELETE', 16);
  16  define('AUTH_ADMIN', 255);
  17  
  18  /**
  19   * Message types
  20   * @see msg()
  21   */
  22  define('MSG_PUBLIC', 0);
  23  define('MSG_USERS_ONLY', 1);
  24  define('MSG_MANAGERS_ONLY', 2);
  25  define('MSG_ADMINS_ONLY', 4);
  26  
  27  /**
  28   * Lexer constants
  29   * @see \dokuwiki\Parsing\Lexer\Lexer
  30   */
  31  define('DOKU_LEXER_ENTER', 1);
  32  define('DOKU_LEXER_MATCHED', 2);
  33  define('DOKU_LEXER_UNMATCHED', 3);
  34  define('DOKU_LEXER_EXIT', 4);
  35  define('DOKU_LEXER_SPECIAL', 5);
  36  
  37  /**
  38   * Constants for known core changelog line types.
  39   * @file inc/changelog.php
  40   */
  41  define('DOKU_CHANGE_TYPE_CREATE', 'C');
  42  define('DOKU_CHANGE_TYPE_EDIT', 'E');
  43  define('DOKU_CHANGE_TYPE_MINOR_EDIT', 'e');
  44  define('DOKU_CHANGE_TYPE_DELETE', 'D');
  45  define('DOKU_CHANGE_TYPE_REVERT', 'R');
  46  
  47  /**
  48   * Changelog filter constants
  49   * @file inc/changelog.php
  50   */
  51  define('RECENTS_SKIP_DELETED', 2);
  52  define('RECENTS_SKIP_MINORS', 4);
  53  define('RECENTS_SKIP_SUBSPACES', 8);
  54  define('RECENTS_MEDIA_CHANGES', 16);
  55  define('RECENTS_MEDIA_PAGES_MIXED', 32);
  56  define('RECENTS_ONLY_CREATION', 64);
  57  
  58  /**
  59   * Media error types
  60   * @file inc/media.php
  61   */
  62  define('DOKU_MEDIA_DELETED', 1);
  63  define('DOKU_MEDIA_NOT_AUTH', 2);
  64  define('DOKU_MEDIA_INUSE', 4);
  65  define('DOKU_MEDIA_EMPTY_NS', 8);