コード例 #1
0
}

// Check if Undo Retention has been configured.
$flag_snapshot_retention_dirty = FALSE;
$result = $snapshot->fetch_retention($conn_db);
if ($result != SNAPSHOT_RETENTION) {
    $flag_snapshot_retention_dirty = TRUE;
}


/***
 *** Sanitize
 ***/

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"])) {
コード例 #2
0
ファイル: index.php プロジェクト: nkjm/Oracle-Database-Cloud
// Check if Plan has been enabled.
$result = $resource->status_resource_plan($conn_db, RESOURCE_PLAN);
if ($result == 'DISABLED') {
    $op = 'initialize';
    $flag_resource_plan_disabled = TRUE;
}

// 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);
}