$new_props['int_retry_count'] = $the_rt; $the_hf->update($new_props); } } } if (isset($_GET['action'])) { if ($_GET['action'] == 'delete-hf-terminate-name') { if (isset($_POST['str_name'])) { $props = array(); $props['id_hf'] = $_POST['id_hf']; $props['id'] = $_POST['id']; $props['str_name'] = $_POST['str_name']; $the_kill = new hf_kill(); $the_kill->get_from_hashrange($props['id_hf'], $props['id']); if ($the_kill->id != 'undefined') { $the_kill->delete(); } } } } if (isset($_GET['action'])) { if ($_GET['action'] == 'add-hf-terminate-name') { if (isset($_POST['str_name'])) { $props = array(); $props['id_hf'] = $qn; $props['id'] = sha1(time() . $_POST['str_name'] . rand(2, 20)); $props['str_name'] = $_POST['str_name']; $the_kill = new hf_kill(); $the_kill->create($props); } }