コード例 #1
0
    $inf = 0;
}
if (!$sup) {
    $sup = $ROWS;
}
if (empty($show_options) || ($show_options < 1 || $show_options > 4)) {
    $show_options = 1;
}
if (empty($refresh_time) || $refresh_time != 30 && $refresh_time != 60 && $refresh_time != 180 && $refresh_time != 600) {
    $refresh_time = 60;
}
if (GET('take') != "") {
    if (!ossim_valid(GET('take'), OSS_ALPHA, OSS_SPACE, OSS_PUNC, OSS_SQL, 'illegal:' . _("take"))) {
        exit;
    }
    AlarmGroups::take_group($conn, GET('take'), $_SESSION["_user"]);
}
if (GET('release') != "") {
    if (!ossim_valid(GET('release'), OSS_ALPHA, OSS_SPACE, OSS_PUNC, OSS_SQL, 'illegal:' . _("release"))) {
        exit;
    }
    AlarmGroups::release_group($conn, GET('release'));
}
if ($new_descr != "" && $group != "") {
    if (!ossim_valid($new_descr, OSS_ALPHA, OSS_SPACE, OSS_PUNC, OSS_SQL, 'illegal:' . _("descr"))) {
        exit;
    }
    if (!ossim_valid($group, OSS_ALPHA, OSS_SPACE, OSS_PUNC, OSS_SQL, 'illegal:' . _("group"))) {
        exit;
    }
    AlarmGroups::change_descr($conn, $new_descr, $group);