From 55eddd7accf2c5f9b0f52b22a010c4c4b7c130d1 Mon Sep 17 00:00:00 2001 From: Bill Marquette Date: Fri, 6 Feb 2009 19:18:00 -0600 Subject: mv packages to config dir to match web layout --- config/openbgpd/openbgpd.inc | 219 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 219 insertions(+) create mode 100644 config/openbgpd/openbgpd.inc (limited to 'config/openbgpd/openbgpd.inc') diff --git a/config/openbgpd/openbgpd.inc b/config/openbgpd/openbgpd.inc new file mode 100644 index 00000000..8e64c683 --- /dev/null +++ b/config/openbgpd/openbgpd.inc @@ -0,0 +1,219 @@ + + 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); + var without_last_two = fieldvalue.substring(0,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()", 1200); + + } + grey_out_value_boxes(); + + + +EOF; + +} + +function is_openbgpd_running() { + $status = `ps awux | grep bgpd | grep "parent" | wc -l | awk '{ print \$1 }'`; + if(intval($status) > 0) + return true; + else + return false; +} + +?> \ No newline at end of file -- cgit v1.2.3