Ejemplo n.º 1
0
$flag_resource_plan_required = FALSE;
$result = $resource->exist_resource_plan($conn_db, RESOURCE_PLAN);
if ($result == FALSE) {
    $flag_resource_plan_required = TRUE;
}

// Check if Plan has been enabled.
$flag_resource_plan_disabled = FALSE;
$result = $resource->status_resource_plan($conn_db, RESOURCE_PLAN);
if ($result == 'DISABLED') {
    $flag_resource_plan_disabled = TRUE;
}

// 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"]);