mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-02-16 02:30:51 +00:00
first commit
This commit is contained in:
14
cgi-bin/saveGraph.php
Executable file
14
cgi-bin/saveGraph.php
Executable file
@@ -0,0 +1,14 @@
|
||||
<?
|
||||
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");
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user