BioTorrents.de’s version of Gazelle
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.

index.php 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?php
  2. #declare(strict_types=1);
  3. /*
  4. * This is the index page, it is pretty much reponsible only for the switch statement.
  5. */
  6. enforce_login();
  7. include(SERVER_ROOT.'/sections/reportsv2/array.php');
  8. if (isset($_REQUEST['action'])) {
  9. switch ($_REQUEST['action']) {
  10. case 'report':
  11. include(SERVER_ROOT.'/sections/reportsv2/report.php');
  12. break;
  13. case 'takereport':
  14. include(SERVER_ROOT.'/sections/reportsv2/takereport.php');
  15. break;
  16. case 'takeresolve':
  17. include(SERVER_ROOT.'/sections/reportsv2/takeresolve.php');
  18. break;
  19. case 'take_pm':
  20. include(SERVER_ROOT.'/sections/reportsv2/take_pm.php');
  21. break;
  22. case 'search':
  23. include(SERVER_ROOT.'/sections/reportsv2/search.php');
  24. break;
  25. case 'new':
  26. include(SERVER_ROOT.'/sections/reportsv2/reports.php');
  27. break;
  28. case 'ajax_new_report':
  29. include(SERVER_ROOT.'/sections/reportsv2/ajax_new_report.php');
  30. break;
  31. case 'ajax_report':
  32. include(SERVER_ROOT.'/sections/reportsv2/ajax_report.php');
  33. break;
  34. case 'ajax_change_resolve':
  35. include(SERVER_ROOT.'/sections/reportsv2/ajax_change_resolve.php');
  36. break;
  37. case 'ajax_take_pm':
  38. include(SERVER_ROOT.'/sections/reportsv2/ajax_take_pm.php');
  39. break;
  40. case 'ajax_grab_report':
  41. include(SERVER_ROOT.'/sections/reportsv2/ajax_grab_report.php');
  42. break;
  43. case 'ajax_giveback_report':
  44. include(SERVER_ROOT.'/sections/reportsv2/ajax_giveback_report.php');
  45. break;
  46. case 'ajax_update_comment':
  47. include(SERVER_ROOT.'/sections/reportsv2/ajax_update_comment.php');
  48. break;
  49. case 'ajax_update_resolve':
  50. include(SERVER_ROOT.'/sections/reportsv2/ajax_update_resolve.php');
  51. break;
  52. case 'ajax_create_report':
  53. include(SERVER_ROOT.'/sections/reportsv2/ajax_create_report.php');
  54. break;
  55. }
  56. } else {
  57. if (isset($_GET['view'])) {
  58. include(SERVER_ROOT.'/sections/reportsv2/static.php');
  59. } else {
  60. include(SERVER_ROOT.'/sections/reportsv2/views.php');
  61. }
  62. }
  63. ?>