mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-10-21 15:57:09 +00:00
Added auto-save for graphs. Iteraion 1.
This commit is contained in:
1 parent
20b8377651
commit
7aa6eb8ed1
14 files changed
+400
-37
No files matched your search
@@ -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