Add export graph to svg

This commit is contained in:
Oleg Sh
2022-07-02 13:42:20 +02:00
parent 9ea83bf875
commit 59b01bec36
20 changed files with 1348 additions and 9 deletions

19
cgi-bin/saveSvg.php Normal file
View File

@@ -0,0 +1,19 @@
<?php
include ("../core/config/main.php");
include ("saveGraphHelpers.php");
$name = $_GET["name"];
if (isValidName($name))
{
$imageFilename = getSvgFileName($name);
$svgData = $_POST['svgdata'];
file_put_contents($imageFilename, $svgData);
chmod($imageFilename, 0644);
echo ("OK");
}
?>