exit; } if (isset($_GET["index_dhcp"])) { dhcp_index_js(); exit; } if (isset($_GET["script"])) { index_script(); exit; } if (isset($_GET["index_popup"])) { index_page(); exit; } if (isset($_GET["dhcp-tab"])) { dhcp_switch(); exit; } if (isset($_GET["dhcp-status"])) { dhcp_status(); exit; } if (isset($_GET["index_dhcp_popup"])) { dhcp_tabs(); exit; } if (isset($_GET["dhcp-enable-js"])) { dhcp_enable_js(); exit; } if (isset($_GET["dhcp_enable_popup"])) {
<?php session_start(); include_once('ressources/class.templates.inc'); include_once('ressources/class.users.menus.inc'); include_once('ressources/class.dhcpd.inc'); $users=new usersMenus(); if(!$users->AsSystemAdministrator){ $tpl=new templates(); echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');"; die();exit(); } if(isset($_GET["script"])){index_script();exit;} if(isset($_GET["index_popup"])){index_page();exit;} if(isset($_GET["dhcp-tab"])){dhcp_switch();exit;} if(isset($_GET["dhcp-status"])){dhcp_status();exit;} if(isset($_GET["index_dhcp"])){dhcp_index_js();exit;} if(isset($_GET["index_dhcp_popup"])){dhcp_tabs();exit;} if(isset($_GET["dhcp_enable_popup"])){dhcp_enable();exit;} if(isset($_GET["dhcp_form"])){echo dhcp_form();exit;} if(isset($_GET["dhcp-list"])){echo dhcp_computers_scripts();exit;} if(isset($_GET["dhcp-pxe"])){echo dhcp_pxe_form();exit;} if(isset($_GET["pxe_enable"])){echo dhcp_pxe_save();exit;} if(isset($_GET["SaveDHCPSettings"])){dhcp_save();exit;} if(isset($_GET["EnableDHCPServer"])){dhcp_enable_save();exit;} if(isset($_GET["AsGatewayForm"])){echo gateway_page();exit;}