} session_start(); include_once 'ressources/class.templates.inc'; include_once 'ressources/class.users.menus.inc'; include_once 'ressources/class.dhcpd.inc'; include_once 'ressources/class.tcpip.inc'; include_once dirname(__FILE__) . '/ressources/class.computers.inc'; $users = new usersMenus(); if (!GetRights()) { $tpl = new templates(); echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');"; die; exit; } if (isset($_GET["now-search"])) { hosts_list(); exit; } if (isset($_POST["host-delete"])) { hosts_delete(); exit; } if (isset($_POST["host-add"])) { host_add(); exit; } if (isset($_GET["modify-dhcpd-settings-js"])) { host_edit_js(); exit; } if (isset($_GET["modify-dhcpd-settings-popup"])) {
function hosts_index() { hosts_list(); }