aboutsummaryrefslogtreecommitdiffstats
path: root/packages/openbgpd/openbgpd.inc
diff options
context:
space:
mode:
Diffstat (limited to 'packages/openbgpd/openbgpd.inc')
-rw-r--r--packages/openbgpd/openbgpd.inc32
1 files changed, 32 insertions, 0 deletions
diff --git a/packages/openbgpd/openbgpd.inc b/packages/openbgpd/openbgpd.inc
index ab98487d..8d45d966 100644
--- a/packages/openbgpd/openbgpd.inc
+++ b/packages/openbgpd/openbgpd.inc
@@ -133,6 +133,38 @@ function deinstall_openbgpd() {
exec("rm /usr/local/etc/rc.d/bgpd.sh");
}
+function grey_out_value_boxes() {
+ echo <<<EOF
+ <script language="javascript">
+ function grey_out_value_boxes() {
+ var x = 0;
+ for(x=0; x<99; x++) {
+ if( \$('paramaters' + x) ) {
+ var fieldvalue = $('paramaters' + x).options[$('paramaters' + x).selectedIndex].text;
+ var length = fieldvalue.length;
+ length = length -2;
+ var last_two = fieldvalue.substring(length);
+ if( \$('parmvalue' + x) ) {
+ if(last_two != ' X') {
+ \$('parmvalue' + x).value = '';
+ \$('parmvalue' + x).disabled = true;
+ } else {
+ \$('parmvalue' + x).disabled = false;
+ }
+ }
+ }
+ }
+ }
+
+
+ var timerID = setTimeout("grey_out_value_boxes()", 1000);
+ </script>
+
+
+EOF;
+
+}
+
function is_openbgpd_running() {
$status = `ps awux | grep bgpd | grep "parent" | wc -l | awk '{ print \$1 }'`;
if(intval($status) > 0)