Server Consolidation and Disaster Recovery
What is the best way to achieve server consolidation, workload protection and disaster recovery for your organization? Get the best real-world solutions to everyday challenges.
In this webcast You'll learn how to:
- Plan your server consolidation with PlateSpin Recon
- Perform migrations with PlateSpin Migrate
- Back up, recover and restore workloads with PlateSpin Protect and PlateSpin Forge
Our data center management products allow you to manage services and workloads across their full lifecycle, unlocking performance, availability and consistency across physical, virtual and cloud environments.
Manage server consolidation and disaster recovery for your organization. Find out more in this webcast.
Server Consolidation and Disaster Recovery in the TrenchesA webcast
";
//print_r($request_url); // http://intratest.provo.novell.com/form_builder/index.php/forms/display_form/rac
// https://intratest.attachmategroup.com/form_builder/index.php/forms/display_form/rac
$json_response = '';
if (empty($_GET['hide_demandbase'])) {
$current_ip = $_SERVER['REMOTE_ADDR'];
$headers = apache_request_headers();
if(isset($headers["X-Forwarded-For"])) {
$x_forwarded_for_arr = explode(',', $headers["X-Forwarded-For"]);
$current_ip = trim($x_forwarded_for_arr[0]);
}
$ip_data_apc_key = "demandbase_data_$current_ip";
//apc_delete($ip_data_apc_key);
if (defined('PHP_MAJOR_VERSION') && PHP_MAJOR_VERSION >= 7) {
if (apcu_exists($ip_data_apc_key)) {
$json_response = apcu_fetch($ip_data_apc_key);
} else {
require_once($_SERVER['DOCUMENT_ROOT'].'/common/util/classes/demandbase_helper.php');
$demandbase_helper = new demandbase_helper();
$json_response = $demandbase_helper->get_ip_based_data($current_ip);
apcu_store($ip_data_apc_key, $json_response, 604800); // store 1 week
}
}
else {
if (apc_exists($ip_data_apc_key)) {
$json_response = apc_fetch($ip_data_apc_key);
} else {
require_once($_SERVER['DOCUMENT_ROOT'].'/common/util/classes/demandbase_helper.php');
$demandbase_helper = new demandbase_helper();
$json_response = $demandbase_helper->get_ip_based_data($current_ip);
apc_store($ip_data_apc_key, $json_response, 604800); // store 1 week
}
}
}
$cookies = "";
foreach($_COOKIE as $cookie => $val){
$cookies .= $cookie."=".$val."; ";
}
// print_r($request_url);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $request_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_COOKIE, $cookies);
$data = array();
if (!empty($_POST)) {
$data = $_POST;
}
if (!empty($json_response)) {
$data['demandbase_data'] = json_decode($json_response, true);
}
$post_data = array(
'data' => $data,
);
curl_setopt($ch, CURLOPT_POST, count($data));
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_data));
$result = curl_exec($ch);
if ($result === false) {
// echo "curl error"; // DREW TODO - remove this echo
// echo curl_error($ch);
} else {
// echo "no error";
}
curl_close($ch);
// header ("content-type: text/html");
echo $result;
}