graphonline/cgi-bin/saveGraph.php
2019-05-25 14:26:24 +02:00

17 lines
335 B
PHP
Executable File

<?php
include ("../core/config/main.php");
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");
}
?>