img = 'pass'; } else { img = 'reject'; } toggle_on('btn_'+buttonid, './themes/<?php echo $g['theme']; ?> /images/icons/icon_'+img+'.gif'); } } </script> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr><td class="tabnavtbl"> <?php haproxy_display_top_tabs_active($haproxy_tab_array['haproxy'], "frontend"); ?> </td></tr> <tr> <td> <div id="mainarea"> <table class="tabcont sortable" width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="5%" class="listhdrr">On</td> <td width="5%" class="listhdrr">Primary</td> <td width="20%" class="listhdrr">Advanced</td> <td width="20%" class="listhdrr">Name</td> <td width="30%" class="listhdrr">Description</td> <td width="20%" class="listhdrr">Address</td> <td width="5%" class="listhdrr">Type</td> <td width="10%" class="listhdrr">Backend</td>
print_input_errors($input_errors); } if ($savemsg) { print_info_box($savemsg); } if (file_exists($d_haproxyconfdirty_path)) { print_info_box_np("The haproxy configuration has been changed.<br/>You must apply the changes in order for them to take effect."); ?> <br/> <?php } ?> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr><td class="tabnavtbl"> <?php haproxy_display_top_tabs_active($haproxy_tab_array['haproxy'], "files"); ?> </td></tr> <tr> <td> <div id="mainarea"> <table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td> Files can be used for errorfiles, that can return custom error pages in case haproxy reports a error (like no available backend). The content needs to be less than the buffer size which is typically 8kb. There are 2 possible variables to use inside the template: Put these variables in the content of the errorfile templates and they will be replaced by the actual errorcode / message. (include the curly braces around the text)<br/> <b>{errorcode}</b> this represents the errorcode<br/> <b>{errormsg}</b> this represents the human readable error<br/>
print_input_errors($input_errors); } if ($savemsg) { print_info_box($savemsg); } if (file_exists($d_haproxyconfdirty_path)) { print_info_box_np("The haproxy configuration has been changed.<br/>You must apply the changes in order for them to take effect."); ?> <br/> <?php } ?> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr><td class="tabnavtbl"> <?php haproxy_display_top_tabs_active($haproxy_tab_array['haproxy'], "settings"); ?> </td></tr> <tr> <td> <div id="mainarea"> <table class="tabcont" width="100%" border="0" cellpadding="6" cellspacing="0"> <tr> <td colspan="2" valign="top" class="listtopic">General settings</td> </tr> <tr> <td width="22%" valign="top" class="vncell"> </td> <td width="78%" class="vtable"> <input name="enable" type="checkbox" value="yes" <?php if ($pconfig['enable']) { echo "checked";
print_input_errors($input_errors); } if ($savemsg) { print_info_box($savemsg); } if (file_exists($d_haproxyconfdirty_path)) { print_info_box_np("The haproxy configuration has been changed.<br/>You must apply the changes in order for them to take effect."); ?> <br/> <?php } ?> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr><td class="tabnavtbl"> <?php haproxy_display_top_tabs_active($haproxy_tab_array['haproxy'], "backend"); ?> </td></tr> <tr> <td> <div id="mainarea"> <table class="tabcont sortable" width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="5%" class="listhdrr">Advanced</td> <td width="25%" class="listhdrr">Name</td> <td width="10%" class="listhdrr">Servers</td> <td width="10%" class="listhdrr">Check</td> <td width="30%" class="listhdrr">Frontend</td> <td width="10%" class="list"></td> </tr> <?php
} if ($savemsg) { print_info_box($savemsg); } if (file_exists($d_haproxyconfdirty_path)) { print_info_box_np("The haproxy configuration has been changed.<br/>You must apply the changes in order for them to take effect."); ?> <br/> <?php } ?> </form> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr><td class="tabnavtbl"> <?php haproxy_display_top_tabs_active($haproxy_tab_array['haproxy'], "templates"); ?> </td></tr> <tr> <td> <div id="mainarea"> <table class="tabcont" width="100%" height="100%" cellspacing="0"> <tr> <td colspan="2" valign="top" class="listtopic">Templates</td> </tr> <tr> <td colspan="2">This page contains some templates that can be added into the haproxy configuration to possible ways to configure haproxy using this the webgui from this package.</td> </tr> <tr> <td> </td> </tr>