0)) { $new['password'] = password_hash($_POST["pass"], PASSWORD_BCRYPT); } if (isset($_POST["api_key"]) and (strlen(trim($_POST["api_key"])) > 20)) { $new['api_key'] = $_POST["api_key"]; } $new['rights'] = $_POST["f_acl"] * 1; update_record($db_link, "Customers", "id='$id'", $new); unset($_POST["pass"]); header("Location: " . $_SERVER["REQUEST_URI"]); exit; } unset($_POST); print_control_submenu($page_url); require_once ($_SERVER['DOCUMENT_ROOT']."/inc/header.php"); $customer=get_record($db_link,'Customers',"id=".$id); ?>