config.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /* Tables names constants */
  4. define('PLUGIN_NAME', 'ticket');
  5. define('TABLE_SUPPORT_ASSIGNED_LOG', 'tck_assigned_log');
  6. define('TABLE_SUPPORT_CATEGORY', 'tck_category');
  7. define('TABLE_SUPPORT_MESSAGE', 'tck_message');
  8. define('TABLE_SUPPORT_PRIORITY', 'tck_priority');
  9. define('TABLE_SUPPORT_PROJECT', 'tck_project');
  10. define('TABLE_SUPPORT_STATUS', 'tck_status');
  11. define('TABLE_SUPPORT_TICKET', 'tck_ticket');
  12. define('TABLE_SUPPORT_MESSAGE_ATTACHMENTS', 'tck_message_attachments');
  13. /* Ticket status constants */
  14. define('NEWTCK', 'NAT'); // New ticket unassigned responsible
  15. define('PENDING', 'PND'); // User waiting answer
  16. define('UNCONFIRMED', 'XCF'); // Waiting for user response
  17. define('CLOSE', 'CLS'); // Close ticket
  18. define('REENVIADO', 'REE'); // @todo delete option. This is a location of USIL
  19. /* Ticket priority constants */
  20. define('NORMAL', 'NRM');
  21. define('HIGH', 'ALT');
  22. define('LOW', 'LOW');
  23. /* Ticket source constants */
  24. define('SRC_EMAIL', 'MAI');
  25. define('SRC_PHONE', 'TEL');
  26. define('SRC_PRESC', 'PRE');
  27. /* Ticket category constants */
  28. define('CAT_DOCU', 'DOC');
  29. define('CAT_FORO', 'FOR');
  30. define('CAT_ANNU', 'ANN');
  31. //require_once __DIR__.'/../../main/inc/global.inc.php';
  32. require_once api_get_path(LIBRARY_PATH).'plugin.class.php';
  33. require_once api_get_path(LIBRARY_PATH).'course.lib.php';
  34. //require_once api_get_path(LIBRARY_PATH).'mail.lib.inc.php';
  35. include_once api_get_path(LIBRARY_PATH).'export.lib.inc.php';
  36. require_once api_get_path(PLUGIN_PATH).PLUGIN_NAME.'/lib/ticket.class.php';
  37. require_once api_get_path(PLUGIN_PATH).PLUGIN_NAME.'/lib/ticket_plugin.class.php';
  38. require_once api_get_path(PLUGIN_PATH).PLUGIN_NAME.'/s/ticket.class.php';