* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, * MA 02110-1301 USA * * * 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 * */ ob_implicit_flush(); require_once 'av_init.php'; Session::logcheck("analysis-menu", "ControlPanelAlarms"); /****************/ $plugin_id = GET('plugin_id'); $plugin_sid = GET('plugin_sid'); ossim_valid($plugin_id, OSS_DIGIT, 'illegal:' . _("Plugin ID")); ossim_valid($plugin_sid, OSS_DIGIT, 'illegal:' . _("Plugin SID")); if (ossim_error()) { die(ossim_error()); } /* connect to db */ $db = new ossim_db(TRUE); $conn = $db->connect(); $trend = Alarm::get_alarm_trend($conn, $plugin_id, $plugin_sid, 7); ksort($trend); echo json_encode($trend); $db->close($conn); ?>