Added auto-save for graphs. Iteraion 1.

This commit is contained in:
Oleg Sh
2025-01-01 20:18:01 +01:00
parent 20b8377651
commit 7aa6eb8ed1
14 changed files with 400 additions and 37 deletions

21
backend/removeGraph.php Normal file
View File

@@ -0,0 +1,21 @@
<?php
include ("../core/config/main.php");
include ("saveGraphHelpers.php");
$name = $_GET["name"];
if (isValidName($name) && isAutoSave($name))
{
$xmlFileName = getXMLFileName($name);
if (file_exists($xmlFileName))
{
unlink($xmlFileName);
}
echo ("OK");
}
else
{
echo ("Error");
}
?>