***/ if (isset($_REQUEST["customer_id"])) { $customer_id = $parse->id($_REQUEST["customer_id"]); $error->check(); } if (isset($_REQUEST["customer_name"])) { $customer_name = $parse->id($_REQUEST["customer_name"]); $error->check(); } if (isset($_REQUEST["customer_password"])) { $customer_password = $parse->password($_REQUEST["customer_password"]); $error->check(); } if (isset($_REQUEST["consumer_group"])) { $consumer_group = $parse->select($_REQUEST["consumer_group"], $array_consumer_group); $error->check(); } if (isset($_REQUEST["max_gbytes"])) { $max_gbytes = $parse->max_gbytes($_REQUEST["max_gbytes"]); $error->check(); } if (isset($_REQUEST["compression"])) { $compression = $parse->select($_REQUEST["compression"], $array_compression); $error->check(); } if (isset($_REQUEST["disk_path"])) { $disk_path = $parse->disk_path($_REQUEST["disk_path"]); $error->check(); } if (isset($_REQUEST["ss_protection_mode"])) {
// Sanitize if (isset($_REQUEST["confirmed"])) { $confirmed = TRUE; } else { $confirmed = FALSE; } if (isset($_REQUEST["customer_id"])) { $customer_id = $parse->id($_REQUEST["customer_id"]); err_chk($customer_id, $parse->err_msg); } if (isset($_REQUEST["customer_password"])) { $customer_password = $parse->password($_REQUEST["customer_password"]); err_chk($customer_password, $parse->err_msg); } if (isset($_REQUEST["consumer_group"])) { $consumer_group = $parse->select($_REQUEST["consumer_group"], $array_consumer_group); err_chk($consumer_group, $parse->err_msg); } if (isset($_REQUEST["disk_type"])) { $array_flipped_disk_type = array_flip($array_disk_type); $disk_type = $parse->select($_REQUEST["disk_type"], $array_flipped_disk_type); err_chk($disk_type, $parse->err_msg); } switch ($op) { case 'initialize': if ($confirmed == TRUE) { $role = new Role(); $resource = new Resource();