mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-02-16 10:40:57 +00:00
Add export graph to svg
This commit is contained in:
19
cgi-bin/saveSvg.php
Normal file
19
cgi-bin/saveSvg.php
Normal 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");
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user