include('common_user_inc.htm');
if ($_SERVER[REQUEST_METHOD] == "POST")
{
$operationInProgress = true;
$status = new ReturnStatus();
$modeChanges = $_POST['modeChanges'];
foreach (explode(":", $modeChanges) as $theDrive)
{
list($guid, $state) = explode(",", $theDrive);
//echo "Requested $guid to state $state
";
change_drive_mode($user, $guid, $state == "Online");
}
print $status->out();
return;
}
?>