MANTIS BUG TRACKER


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. In order to modify the types of statuses in use for Mantis add the following items to these files:
  2.  
  3. to a new file in root called: custom_constants_inc.php
  4. <?php
  5. define ( 'pending', 60 );
  6. define ( 'vendor', 65 );
  7. define ( 'deferred', 70 );
  8. ?>
  9.  
  10. To a second new file in root called: custom_string_inc.php
  11. <?php
  12. $s_status_enum_string ='10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned, 60:pending, 65:vendor, 70: deferred, 80:resolved,90:closed';
  13. $s_pending_bug_button ="Pending";
  14. $s_pending_bug_title = "Set Issue Pending";
  15. $s_email_notification_title_for_status_bug_pending ="The following issue is Pending.";
  16.  
  17. $s_vendor_bug_button ="Vendor";
  18. $s_vendor_bug_title = "Set Issue for Vendor Resolution";
  19. $s_email_notification_title_for_status_bug_vendor ="The following issue needs to be submitted to the vendor.";
  20.  
  21. $s_deferred_bug_button ="Deferred";
  22. $s_deferred_bug_title = "Set Issue to Deferred";
  23. $s_email_notification_title_for_status_bug_deferred ="The following issue is Deferred.";
  24.  
  25. ?>
  26.  
  27. In config_inc.php in root:
  28. <?php
  29. $g_status_enum_string ='10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned, 60:pending, 65:vendor, 70:deferred, 80:resolved,90:closed'; # Status color additions
  30. $g_status_colors['pending'] = '#ACE7AE';
  31. $g_status_colors['vendor'] = '#ACE7AE';
  32. $g_status_colors['deferred'] = '#ACE7AE';
  33. ?>
  34.  
  35. To upload files into mantis change three files and restart mysql and web server:
  36. in config_inc.php in mantis root add:
  37. $g_max_file_size = 8000000; # 8 MB
  38.  
  39. In my.ini for mysql add:
  40. #Allow for upload size
  41. max_allowed_packet=8M
  42.  
  43. in php.ini add:
  44. ; Maximum size of POST data that PHP will accept.
  45. ; http://php.net/post-max-size
  46. post_max_size = 8M

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.