From 3b9841b9ad6c6edfc20cc83220b4ccda8bd917d9 Mon Sep 17 00:00:00 2001 From: jim-p Date: Mon, 20 Sep 2010 08:31:52 -0400 Subject: Some cosmetic changes to OpenBGP. Submitted-By: garga on IRC --- config/openbgpd/openbgpd_raw.php | 26 ++++++++++++++++++-------- config/openbgpd/openbgpd_status.php | 13 +++++++++++-- 2 files changed, 29 insertions(+), 10 deletions(-) (limited to 'config/openbgpd') diff --git a/config/openbgpd/openbgpd_raw.php b/config/openbgpd/openbgpd_raw.php index 2e0a4a09..506a4475 100644 --- a/config/openbgpd/openbgpd_raw.php +++ b/config/openbgpd/openbgpd_raw.php @@ -31,6 +31,8 @@ require("guiconfig.inc"); require("openbgpd.inc"); +global $config; + if (isset($_POST['openbgpd_raw'])) { openbgpd_put_raw_config($_POST['openbgpd_raw']); write_config(); @@ -39,13 +41,22 @@ if (isset($_POST['openbgpd_raw'])) { $openbgpd_raw = openbgpd_get_raw_config(); -$pgtitle = "OpenBGPD: raw config"; +if ($config['version'] >= 6) + $pgtitle = array("OpenBGPD", "Raw config"); +else + $pgtitle = "OpenBGPD: Raw config"; + include("head.inc"); ?> -

+ +' . $pgtitle . '

'; +?> +
@@ -60,30 +71,29 @@ include("head.inc"); display_top_tabs($tab_array); ?> -
+ - + - + - + +
You can edit the raw bgpd.conf here.
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.
- -
diff --git a/config/openbgpd/openbgpd_status.php b/config/openbgpd/openbgpd_status.php index 2dce434d..b493236f 100644 --- a/config/openbgpd/openbgpd_status.php +++ b/config/openbgpd/openbgpd_status.php @@ -30,7 +30,11 @@ require("guiconfig.inc"); -$pgtitle = "OpenBGPD: Status"; +if ($config['version'] >= 6) + $pgtitle = array("OpenBGPD", "Status"); +else + $pgtitle = "OpenBGPD: Status"; + include("head.inc"); function doCmdT($title, $command) { @@ -110,7 +114,12 @@ function execCmds() { ?> -

+ +' . $pgtitle . '

'; +?> +
-- cgit v1.2.3