forumconfig.inc.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * @todo move the tool constants to the appropriate place
  5. * @todo make config settings out of $forum_setting
  6. *
  7. * @author Patrick Cool <patrick.cool@UGent.be>, Ghent University
  8. * @version february 2006, dokeos 1.8
  9. */
  10. /*
  11. Database Variables
  12. */
  13. $table_categories = Database::get_course_table(TABLE_FORUM_CATEGORY);
  14. $table_forums = Database::get_course_table(TABLE_FORUM);
  15. $table_threads = Database::get_course_table(TABLE_FORUM_THREAD);
  16. $table_posts = Database::get_course_table(TABLE_FORUM_POST);
  17. $table_mailcue = Database::get_course_table(TABLE_FORUM_MAIL_QUEUE);
  18. $table_threads_qualify = Database::get_course_table(
  19. TABLE_FORUM_THREAD_QUALIFY
  20. );
  21. $table_threads_qualify_historical = Database::get_course_table(
  22. TABLE_FORUM_THREAD_QUALIFY_LOG
  23. );
  24. $forum_table_attachment = Database::get_course_table(TABLE_FORUM_ATTACHMENT);
  25. $table_item_property = Database::get_course_table(TABLE_ITEM_PROPERTY);
  26. $table_users = Database::get_main_table(TABLE_MAIN_USER);
  27. /*
  28. Some configuration settings
  29. (these can go to the dokeos config settings afterwards)
  30. */
  31. // if this setting is true then an I-frame will be displayed when replying
  32. $forum_setting['show_thread_iframe_on_reply'] = true;
  33. // if this setting is true then students and teachers can check a checkbox so
  34. // that they receive a mail when somebody replies to the thread
  35. $forum_setting['allow_post_notification'] = true;
  36. // when this setting is true then the course admin can post threads that
  37. // are important. These posts remain on top all the time (until made unsticky)
  38. // these special posts are indicated with a special icon also
  39. $forum_setting['allow_sticky'] = true;
  40. // when this setting is true there will be a column that displays the
  41. // latest post (date and poster) of the given forum.
  42. // This requires quite some sql statements that might slow down the page with the fora.
  43. // note: I'm currently investigating how it would be possible to increase
  44. // the performance of this part.
  45. $forum_setting['show_last_post'] = false;