예제 #1
0
                $props['id_constraint_type'] = $_POST['id_constraint_type'];
                $props['str_constraint_text'] = $_POST['expression'];
                $new_hfp_vcs = new hfp_vcs();
                $new_hfp_vcs->create($props);
            }
        }
    }
}
// delete hf parameter constraint
if (isset($_GET['action'])) {
    if ($_GET['action'] == "delete-hf-parameter-constraint") {
        if (isset($_POST['id_constraint'])) {
            $delete_hfp_vc = new hfp_vcs();
            $delete_hfp_vc->get_from_hashrange($_POST['id_hfp'], $_POST['id_constraint']);
            if ($delete_hfp_vc->id_hf_parameter != 'undefined') {
                $delete_hfp_vc->delete();
            }
        }
    }
}
// main page - add a hf
if (isset($_GET['action'])) {
    if ($_GET['action'] == 'delete-user-server') {
        if (isset($_POST['name'])) {
            $this_user_server = new user_server();
            $this_user_server->get_from_hashrange($u->id_user, $_POST['name']);
            if ($this_user_server->id_user != "undefined") {
                $this_user_server->delete();
            }
        }
    }