mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-04-04 23:06:07 +00:00
Added auto-save for graphs. Iteraion 1.
This commit is contained in:
21
backend/removeGraph.php
Normal file
21
backend/removeGraph.php
Normal 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");
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user