diff --git a/lib/file-control.php b/lib/file-control.php
index 00f26c3..e67022f 100644
--- a/lib/file-control.php
+++ b/lib/file-control.php
@@ -1,6 +1,7 @@
@@ -9,9 +10,6 @@ $t = $text['file-control'];
');
+ exit;
+ }
+ // Get our file contents and close the FTP connection
+ $loadedFile = toUTF8noBOM(ftpGetContents($ftpConn, $root.$fileLoc."/".$fileName, $ftpMode));
+ ftp_close($ftpConn);
+ // Get local file
+ } else {
$loadedFile = toUTF8noBOM(file_get_contents($file,false,$context),true);
+ }
echo '
// Finally, switch mode in case we have saved, renamed file etc
top.ICEcoder.switchMode();