aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/openbgpd/openbgpd_raw.php58
1 files changed, 20 insertions, 38 deletions
diff --git a/config/openbgpd/openbgpd_raw.php b/config/openbgpd/openbgpd_raw.php
index ac6826b3..72a961a3 100644
--- a/config/openbgpd/openbgpd_raw.php
+++ b/config/openbgpd/openbgpd_raw.php
@@ -1,9 +1,9 @@
<?php
-/* $Id$ */
/*
openbgpd_raw.php
- part of pfSense (https://www.pfsense.org/)
- Copyright (C) 2009 Aarno Aukia (aarnoaukia@gmail.com)
+ part of pfSense (https://www.pfSense.org/)
+ Copyright (C) 2009 Aarno Aukia (aarnoaukia@gmail.com)
+ Copyright (C) 2015 ESF, LLC
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -27,36 +27,26 @@
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
-
require("guiconfig.inc");
require("openbgpd.inc");
global $config;
if (isset($_POST['openbgpd_raw'])) {
- openbgpd_put_raw_config($_POST['openbgpd_raw']);
- write_config();
- openbgpd_install_conf();
+ openbgpd_put_raw_config($_POST['openbgpd_raw']);
+ write_config();
+ openbgpd_install_conf();
}
$openbgpd_raw = openbgpd_get_raw_config();
-if ($config['version'] >= 6)
- $pgtitle = array("OpenBGPD", "Raw config");
-else
- $pgtitle = "OpenBGPD: Raw config";
-
+$pgtitle = array("OpenBGPD", "Raw config");
include("head.inc");
?>
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
<?php include("fbegin.inc"); ?>
-<?php
- if ($config['version'] < 6)
- echo '<p class="pgtitle">' . $pgtitle . '</font></p>';
-?>
-
<?php if ($savemsg) print_info_box($savemsg); ?>
<div id="mainlevel">
@@ -71,29 +61,21 @@ include("head.inc");
display_top_tabs($tab_array);
?>
</table>
-
<table width="100%" border="0" cellpadding="0" cellspacing="0">
- <form action="openbgpd_raw.php" method="post" name="iform" id="iform">
- <tr>
- <td class="tabcont" >
- You can edit the raw bgpd.conf here.<br>
- Note: Once you click "Save" below, the assistant (in the "Settings", "Neighbors" and "Groups" tabs above) will be overridden with whatever you type here. To get back the assisted config save this form below once with an empty input field.
- </td>
- </tr>
- <tr>
- <td class="tabcont" >
- <textarea name="openbgpd_raw" rows="40" cols="80"><? echo $openbgpd_raw; ?></textarea>
- </td>
- </tr>
- <tr>
- <td>
- <input name="Submit" type="submit" class="formbtn" value="Save"> <input class="formbtn" type="button" value="Cancel" on
- click="history.back()">
- </td>
- </tr>
- </form>
+ <form action="openbgpd_raw.php" method="post" name="iform" id="iform">
+ <tr><td class="tabcont" >
+ You can edit the raw bgpd.conf here.<br />
+ Note: Once you click "Save" below, the assistant (in the "Settings", "Neighbors" and "Groups" tabs above) will be overridden with whatever you type here.<br />
+ To get back the assisted config, save this form below once with an empty input field.
+ </td></tr>
+ <tr><td class="tabcont" >
+ <textarea name="openbgpd_raw" rows="40" cols="80"><? echo $openbgpd_raw; ?></textarea>
+ </td></tr>
+ <tr><td>
+ <input name="Submit" type="submit" class="formbtn" value="Save" /><input class="formbtn" type="button" value="Cancel" onclick="history.back()" />
+ </td></tr>
+ </form>
</table>
-
</div>
<?php include("fend.inc"); ?>