Be a nice script for ro environments by mounting the flash rw and then ro before and after the save.

This commit is contained in:
Scott Ullrich 2005-03-29 02:42:25 +00:00
parent fbe94068a8
commit 74285e13bd
2 changed files with 16 additions and 0 deletions

View File

@ -30,6 +30,8 @@
require("guiconfig.inc");
conf_mount_rw();
if (($_POST['submit'] == "Load") && file_exists($_POST['savetopath'])) {
$fd = fopen($_POST['savetopath'], "r");
$content = fread($fd, filesize($_POST['savetopath']));
@ -166,3 +168,9 @@ function sf() { document.forms[0].savetopath.focus(); }
<script language="Javascript">
sf();
</script>
<?php
conf_mount_ro();
?>

View File

@ -26,6 +26,8 @@ if (($_POST['submit'] == "Download") && file_exists($_POST['dlPath'])) {
require("guiconfig.inc");
conf_mount_rw();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
@ -248,3 +250,9 @@ document.forms[0].txtCommand.focus();
</script>
</body>
</html>
<?php
conf_mount_ro();
?>