summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-07-02 06:02:31 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-07-02 06:02:31 +0000
commitbd19c08a62269a7581b26a8a4a25d97ea3ba017f (patch)
treea35eefd4826978ba693e912059ea284f53b3adca /usr
parentda7ae7ef9bf0d4c908c97459ccd720ca73383fa0 (diff)
downloadpfsense-bd19c08a62269a7581b26a8a4a25d97ea3ba017f.zip
pfsense-bd19c08a62269a7581b26a8a4a25d97ea3ba017f.tar.gz
Soup up edit.php by adding a syntax highlighter.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/edit.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/local/www/edit.php b/usr/local/www/edit.php
index 1f188a9..0edf12a 100755
--- a/usr/local/www/edit.php
+++ b/usr/local/www/edit.php
@@ -58,7 +58,8 @@ if (($_POST['submit'] == "Load") && file_exists($_POST['savetopath'])) {
}
if($_POST['highlight'] <> "") {
- if($_POST['highlight'] == "enabled") {
+ if($_POST['highlight'] == "yes" or
+ $_POST['highlight'] == "enabled") {
$highlight = "yes";
} else {
$highlight = "no";
@@ -148,8 +149,8 @@ function sf() { document.forms[0].savetopath.focus(); }
<td>
<center>
Save/Load from path: <input size="42" id="savetopath" name="savetopath" value="<?php echo $_POST['savetopath']; ?>">
+ <hr noshade>
<?php if($_POST['highlight'] == "no"): ?>
- <hr noshade>
Rows: <input size="3" name="rows" value="<? echo $rows; ?>">
Cols: <input size="3" name="cols" value="<? echo $cols; ?>">
<?php endif ?>
OpenPOWER on IntegriCloud