From 74285e13bd7465106c4eecf451c77dd65adfa7bb Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 29 Mar 2005 02:42:25 +0000 Subject: [PATCH] Be a nice script for ro environments by mounting the flash rw and then ro before and after the save. --- usr/local/www/edit.php | 8 ++++++++ usr/local/www/exec.php | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/usr/local/www/edit.php b/usr/local/www/edit.php index 359ea923c8..daa4443e8b 100755 --- a/usr/local/www/edit.php +++ b/usr/local/www/edit.php @@ -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(); } + + \ No newline at end of file diff --git a/usr/local/www/exec.php b/usr/local/www/exec.php index de21437c64..925cd84a55 100755 --- a/usr/local/www/exec.php +++ b/usr/local/www/exec.php @@ -26,6 +26,8 @@ if (($_POST['submit'] == "Download") && file_exists($_POST['dlPath'])) { require("guiconfig.inc"); +conf_mount_rw(); + ?> @@ -248,3 +250,9 @@ document.forms[0].txtCommand.focus(); + + \ No newline at end of file