mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
seperate load and save message. dont use ! for load messages.
This commit is contained in:
parent
fbeb6d02c0
commit
7c35be3e2a
@ -35,7 +35,7 @@ if (($_POST['submit'] == "Load") && file_exists($_POST['savetopath'])) {
|
||||
$content = fread($fd, filesize($_POST['savetopath']));
|
||||
fclose($fd);
|
||||
$edit_area="";
|
||||
$savemsg = "Loaded text from " . $_POST['savetopath'];
|
||||
$loadmsg = "Loaded text from " . $_POST['savetopath'];
|
||||
} else if (($_POST['submit'] == "Save")) {
|
||||
conf_mount_rw();
|
||||
$content = ereg_replace("\r","",$_POST['content']) ;
|
||||
@ -140,6 +140,7 @@ function sf() { document.forms[0].savetopath.focus(); }
|
||||
<body onLoad="sf();">
|
||||
<p><span class="pgtitle"><?=$Title ?></span>
|
||||
<?php if ($savemsg) print_info_box($savemsg); ?>
|
||||
<?php if ($loadmsg) echo "{$loadmsg}"; ?>
|
||||
<form action="edit.php" method="POST">
|
||||
<table>
|
||||
<tr>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user