graphonline/backend/removeGraph.php
2025-01-01 20:18:01 +01:00

22 lines
337 B
PHP

<?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");
}
?>