</tr> </table> </td> </tr><?php } } ?> <tfoot> <tr> <td class="list" colspan="8"></td> <td class="list"> <table border="0" cellspacing="0" cellpadding="1"> <tr> <td valign="middle"><a href="haproxy_listeners_edit.php"> <?php echo haproxyicon("add", gettext("add new frontend")); ?> </a></td> </tr> </table> </td> </tr> </tfoot> </table> </div> </table> </form> <?php include "fend.inc"; ?> </body>
</td> </tr> <?php $i++; } ?> <tfoot> <tr> <td class="list" colspan="5"></td> <td class="list"> <table border="0" cellspacing="0" cellpadding="1"> <tr> <td valign="middle"> <a href="haproxy_pool_edit.php"> <?php echo haproxyicon("add", gettext("add new backend")); ?> </a></td> </tr> </table> </td> </tr> </tfoot> </table> </div> </table> </form> <?php include "fend.inc"; ?> </body>
$a_config['haproxy_widget_timer'] = 5000; $a_config['haproxy_widget_showfrontends'] = 'no'; $a_config['haproxy_widget_showclients'] = 'yes'; $a_config['haproxy_widget_showclienttraffic'] = 'no'; } $refresh_rate = $a_config['haproxy_widget_timer']; $show_frontends = $a_config['haproxy_widget_showfrontends'] == 'yes'; $show_clients = $a_config['haproxy_widget_showclients'] == 'yes'; $show_clients_traffic = $a_config['haproxy_widget_showclienttraffic'] == 'yes'; $out = haproxyicon("down", ""); $in = haproxyicon("up", ""); $running = haproxyicon("enabled", ""); $stopped = haproxyicon("disabled", ""); $log = haproxyicon("resolvedns", ""); $start = haproxyicon("start", "Enable this backend/server"); $stop = haproxyicon("stop", "Disable this backend/server"); $clients = array(); $clientstraffic = array(); $statistics = haproxy_get_statistics(); $frontends = $statistics['frontends']; $backends = $statistics['backends']; $servers = $statistics['servers']; if ($show_clients == "YES") { $clients = haproxy_get_clients($show_clients_traffic == "YES"); } if (!$getupdatestatus) { ?> <div id="haproxy_content"> <?php } echo "<table style=\"padding-top:0px; padding-bottom:0px; padding-left:0px; padding-right:0px\" width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";