$props['str_name'] = $_POST['str_name']; $the_kill = new hf_kill(); $the_kill->create($props); } } } if (isset($_GET['action'])) { if ($_GET['action'] == 'delete-hf') { $props = array(); $props['id_user'] = $u->id_user; $props['id'] = $qn; $delete_hf = new hf_id_user(); $delete_hf->get_from_hashrange($u->id_user, $qn); if ($delete_hf->id != "undefined") { $delete_hf->build(); $delete_hf->delete(true); $_GET['v'] = "hf-list"; $qn = ""; if (isset($_GET['s'])) { unset($_GET['s']); } if (isset($_GET['q'])) { unset($_GET['q']); } if (isset($_GET['tags'])) { unset($_GET['tags']); } } } } if (isset($_GET['action'])) {
if (isset($_POST['import-behavior-' . form_field_name($import_hf->name)])) { if ($_POST['import-behavior-' . form_field_name($import_hf->name)] != "error" && $_POST['import-behavior-' . form_field_name($import_hf->name)] != "skip") { //echo "<pre>"; //echo "BEFORE:"; //print_r($import_hf); $import_hf->give_ids(); //echo "<pre>"; //print_r($import_hf); //ob_start(); $imported[] = $import_hf->name; if ($_POST['import-behavior-' . form_field_name($import_hf->original_name)] == "replace") { $delete_old_hf = new hf_id_user(); $delete_old_hf->get_from_hashrange($u->id_user, $import_hf->id); $delete_old_hf->build(); if ($delete_old_hf->id != "undefined") { $delete_old_hf->delete(true); } } $import_hf->name = $_POST['update-name-' . form_field_name($import_hf->original_name)]; //echo "<pre>"; //echo "DURING:"; //print_r($import_hf); $import_hf->rcreate($import_hf->member_value_array()); $import_hf->refresh_assignments(false); $import_hf->build(); $import_hf->refresh_assignments(true); //echo "<pre>"; //echo "AFTER:"; //print_r($import_hf); if ($_POST['update-inheritors-' . form_field_name($import_hf->original_name)] == "yes" && $_POST['import-behavior-' . form_field_name($import_hf->original_name)] == "new") { $update_inherits = array();