config['EMPTY_OUTLINE']); $sane = $driver->applyXSLT('sanitize-document.xsl', $data, array( 'key' => $key )); // Attempt to store the sanitized document. if (FALSE !== $driver->store->put($key, $sane)) { header("Location: ".$driver->config['BASE_URL'].'/outlines'.$key); return; } else { return $driver->show403(); } } else if ('delete' == $_REQUEST['mode']) { $key = $_POST['key']; $driver->store->delete($key); header("Location: ".$driver->config['BASE_URL']); } else { header("HTTP/1.1 400 Bad Request", 400); header("Content-Type: text/plain"); echo "Unrecognized action."; } ?>