A new, object-oriented, better vesion of μForum
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.2 KiB

  1. <?php
  2. /**
  3. * @package uForum2
  4. * @file inc/constants.php
  5. * @copyright 2007-2015 (c) PioDer
  6. * @link http://www.pioder.pl/
  7. * @license see LICENSE.txt
  8. **/
  9. //tables
  10. define('BANLIST_TABLE',DB_PREFIX.'banlist');
  11. define('CATS_TABLE',DB_PREFIX.'categories');
  12. define('CONFIG_TABLE',DB_PREFIX.'config');
  13. define('FORUMS_TABLE',DB_PREFIX.'forums');
  14. define('POSTS_TABLE',DB_PREFIX.'posts');
  15. define('SESSIONS_TABLE',DB_PREFIX.'sessions');
  16. define('USERS_TABLE',DB_PREFIX.'users');
  17. define('USERS_INFO_TABLE',DB_PREFIX.'users_information');
  18. define('TOPICS_TABLE',DB_PREFIX.'topics');
  19. //views
  20. define('FORUMS_VIEW', DB_PREFIX.'view_forums');
  21. define('TOPICS_VIEW', DB_PREFIX.'view_topics');
  22. define('POSTS_VIEW', DB_PREFIX.'view_posts');
  23. define('LOGGED_USERS_VIEW', DB_PREFIX.'view_logged_users');
  24. define('USERS_PC_VIEW', DB_PREFIX.'view_users_post_count');
  25. define('TOPICS_PC_VIEW', DB_PREFIX.'view_topics_post_count');
  26. define('COOKIE_NAME', 'uf2_auth');
  27. define('RANK_USER', 0);
  28. define('RANK_MOD', 1);
  29. define('RANK_ADMIN', 2);
  30. define('POSTING_REPLY', 'reply');
  31. define('POSTING_QUOTE', 'quote');
  32. define('POSTING_EDIT', 'edit');
  33. define('POSTING_NEWTOPIC', 'new_topic');
  34. define('POSTING_EDITTOPIC', 'edit_topic');
  35. $allowed_avatars = array('image/jpeg', 'image/gif', 'image/png');
  36. ?>