diff options
author | jim-p <jimp@pfsense.org> | 2010-09-20 08:31:52 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-09-20 08:31:52 -0400 |
commit | 3b9841b9ad6c6edfc20cc83220b4ccda8bd917d9 (patch) | |
tree | 23280c6b03a4a99e8d8f1f116eb53a18e27bcc95 /config/openbgpd | |
parent | 673ff16fe9995f7a7bfc717e6a5e6c6bf984eae0 (diff) | |
download | pfsense-packages-3b9841b9ad6c6edfc20cc83220b4ccda8bd917d9.tar.gz pfsense-packages-3b9841b9ad6c6edfc20cc83220b4ccda8bd917d9.tar.bz2 pfsense-packages-3b9841b9ad6c6edfc20cc83220b4ccda8bd917d9.zip |
Some cosmetic changes to OpenBGP. Submitted-By: garga on IRC
Diffstat (limited to 'config/openbgpd')
-rw-r--r-- | config/openbgpd/openbgpd_raw.php | 26 | ||||
-rw-r--r-- | config/openbgpd/openbgpd_status.php | 13 |
2 files changed, 29 insertions, 10 deletions
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"); ?> <body link="#0000CC" vlink="#0000CC" alink="#0000CC"> <?php include("fbegin.inc"); ?> -<p class="pgtitle"><?=$pgtitle?></font></p> + +<?php + if ($config['version'] < 6) + echo '<p class="pgtitle">' . $pgtitle . '</font></p>'; +?> + <?php if ($savemsg) print_info_box($savemsg); ?> <div id="mainlevel"> @@ -60,30 +71,29 @@ include("head.inc"); display_top_tabs($tab_array); ?> </table> -<form action="openbgpd_raw.php" method="post" name="iform" id="iform"> <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> <tr> <td class="tabcont" > <textarea name="openbgpd_raw" rows="40" cols="80"><? echo $openbgpd_raw; ?></textarea> </td> </tr> - <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> + </tr> + </form> </table> -</form> - </div> <?php include("fend.inc"); ?> 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() { ?> <body link="#0000CC" vlink="#0000CC" alink="#0000CC"> <?php include("fbegin.inc"); ?> -<p class="pgtitle"><?=$pgtitle?></font></p> + +<?php + if ($config['version'] < 6) + echo '<p class="pgtitle">' . $pgtitle . '</font></p>'; +?> + <?php if ($savemsg) print_info_box($savemsg); ?> <div id="mainlevel"> |