Gazelle/sections/reportsv2/index.php

67 lines
1.8 KiB
PHP
Raw Normal View History

2011-03-28 14:21:28 +00:00
<?
/*
* This is the index page, it is pretty much reponsible only for the switch statement.
*/
enforce_login();
2013-10-10 08:01:46 +00:00
include(SERVER_ROOT.'/sections/reportsv2/array.php');
2011-03-28 14:21:28 +00:00
2013-05-01 08:00:16 +00:00
if (isset($_REQUEST['action'])) {
2013-05-04 08:00:48 +00:00
switch ($_REQUEST['action']) {
2011-03-28 14:21:28 +00:00
case 'report':
2013-10-10 08:01:46 +00:00
include(SERVER_ROOT.'/sections/reportsv2/report.php');
2011-03-28 14:21:28 +00:00
break;
case 'takereport':
2013-10-10 08:01:46 +00:00
include(SERVER_ROOT.'/sections/reportsv2/takereport.php');
2011-03-28 14:21:28 +00:00
break;
case 'takeresolve':
2013-10-10 08:01:46 +00:00
include(SERVER_ROOT.'/sections/reportsv2/takeresolve.php');
2011-03-28 14:21:28 +00:00
break;
case 'take_pm':
2013-10-10 08:01:46 +00:00
include(SERVER_ROOT.'/sections/reportsv2/take_pm.php');
2011-03-28 14:21:28 +00:00
break;
case 'search':
2013-10-10 08:01:46 +00:00
include(SERVER_ROOT.'/sections/reportsv2/search.php');
2011-03-28 14:21:28 +00:00
break;
case 'new':
include(SERVER_ROOT.'/sections/reportsv2/reports.php');
2013-02-22 08:00:24 +00:00
break;
2011-03-28 14:21:28 +00:00
case 'ajax_new_report':
2013-10-10 08:01:46 +00:00
include(SERVER_ROOT.'/sections/reportsv2/ajax_new_report.php');
2011-03-28 14:21:28 +00:00
break;
case 'ajax_report':
2013-10-10 08:01:46 +00:00
include(SERVER_ROOT.'/sections/reportsv2/ajax_report.php');
2011-03-28 14:21:28 +00:00
break;
case 'ajax_change_resolve':
2013-10-10 08:01:46 +00:00
include(SERVER_ROOT.'/sections/reportsv2/ajax_change_resolve.php');
2011-03-28 14:21:28 +00:00
break;
case 'ajax_take_pm':
2013-10-10 08:01:46 +00:00
include(SERVER_ROOT.'/sections/reportsv2/ajax_take_pm.php');
2011-03-28 14:21:28 +00:00
break;
case 'ajax_grab_report':
2013-10-10 08:01:46 +00:00
include(SERVER_ROOT.'/sections/reportsv2/ajax_grab_report.php');
break;
case 'ajax_giveback_report':
include(SERVER_ROOT.'/sections/reportsv2/ajax_giveback_report.php');
2011-03-28 14:21:28 +00:00
break;
case 'ajax_update_comment':
2013-10-10 08:01:46 +00:00
include(SERVER_ROOT.'/sections/reportsv2/ajax_update_comment.php');
2011-03-28 14:21:28 +00:00
break;
case 'ajax_update_resolve':
2013-10-10 08:01:46 +00:00
include(SERVER_ROOT.'/sections/reportsv2/ajax_update_resolve.php');
2011-03-28 14:21:28 +00:00
break;
case 'ajax_create_report':
2013-10-10 08:01:46 +00:00
include(SERVER_ROOT.'/sections/reportsv2/ajax_create_report.php');
2011-03-28 14:21:28 +00:00
break;
}
} else {
2013-05-01 08:00:16 +00:00
if (isset($_GET['view'])) {
2011-03-28 14:21:28 +00:00
include(SERVER_ROOT.'/sections/reportsv2/static.php');
} else {
include(SERVER_ROOT.'/sections/reportsv2/views.php');
}
}
?>