From abd61689f1c375dc7ff4b6fd486c923ba7ac0f07 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Sat, 26 May 2012 22:25:12 +0100 Subject: [PATCH] Better handling of changed files Insetad of notifying user that file they're attempting to save, now they can revert This means the file they're trying to save is reverted to the server file Changes they have made are copied into a new file User can optionally cancel to avoid this --- lib/file-control.php | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/lib/file-control.php b/lib/file-control.php index a79dca4..6d4186c 100644 --- a/lib/file-control.php +++ b/lib/file-control.php @@ -157,7 +157,31 @@ if ($_GET['action']=="save") { } echo ''; } else { - echo ""; + $loadedFile = file_get_contents($saveFile); + echo '","",$loadedFile).''; + echo ''; + ?> + + top.ICEcoder.serverMessage();top.ICEcoder.serverQueue("del",0);action="nothing";'; } } else {