diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-03-29 02:42:25 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-03-29 02:42:25 +0000 |
commit | 74285e13bd7465106c4eecf451c77dd65adfa7bb (patch) | |
tree | 9a75a32150063a9e32a898f4e02e1b9fdf9c136b /usr/local/www/edit.php | |
parent | fbe94068a84cb0c9f5ab1f63b5768fcc37df6f74 (diff) | |
download | pfsense-74285e13bd7465106c4eecf451c77dd65adfa7bb.zip pfsense-74285e13bd7465106c4eecf451c77dd65adfa7bb.tar.gz |
Be a nice script for ro environments by mounting the flash rw and then ro before and after the save.
Diffstat (limited to 'usr/local/www/edit.php')
-rwxr-xr-x | usr/local/www/edit.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/usr/local/www/edit.php b/usr/local/www/edit.php index 359ea92..daa4443 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(); } <script language="Javascript"> sf(); </script> + +<?php + +conf_mount_ro(); + +?>
\ No newline at end of file |