* * * On Debian GNU/Linux systems, the complete text of the GNU General * Public License can be found in `/usr/share/common-licenses/GPL-2'. * * Otherwise you can read it here: http://www.gnu.org/licenses/gpl-2.0.txt * */ require_once 'av_init.php'; Session::logcheck("configuration-menu", "CorrelationDirectives"); $login = Session::get_session_user(); $db = new ossim_db(); $conn = $db->connect(); $action = POST('action'); $data = POST('data'); ossim_valid($action, OSS_DIGIT, 'illegal:' . _('Action')); if (ossim_error() === TRUE) { die(ossim_error()); } if ($action != '' && isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') { switch ($action) { case 1: $response = Directive_editor::restart_directives(); break; default: $response['error'] = true; $response['msg'] = 'Wrong Option Chosen'; } echo json_encode($response); } $db->close($conn);