graphonline/cgi-bin/saveGraph.php
2017-04-15 01:34:36 +03:00

15 lines
290 B
PHP
Executable File

<?
include ("saveGraphHelpers.php");
$graph = file_get_contents("php://input");
$name = $_GET["name"];
if (isValidName($name))
{
$file = fopen(getXMLFileName($name), "w");
fprintf($file, "%s", gzcompress($graph, -1));
fclose($file);
echo ("OK");
}
?>