Esempio n. 1
0
    exit;
}
if (isset($_GET["gayteway_enable"])) {
    echo gateway_enable();
    exit;
}
if (isset($_GET["EnableArticaAsGateway"])) {
    gateway_save();
    exit;
}
if (isset($_GET["popup-network-masks"])) {
    popup_networks_masks();
    exit;
}
if (isset($_GET["show-script"])) {
    dhcp_scripts();
    exit;
}
if (isset($_POST["RestartDHCPService"])) {
    RestartDHCPService();
    exit;
}
if (isset($_POST["OnlySetGateway"])) {
    OnlySetGateway_save();
    exit;
}
function GetRights()
{
    $users = new usersMenus();
    if ($users->AsSystemAdministrator) {
        return true;
Esempio n. 2
0
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;}
if(isset($_GET["gayteway_enable"])){echo gateway_enable();exit;}
if(isset($_GET["EnableArticaAsGateway"])){gateway_save();exit;}
if(isset($_GET["popup-network-masks"])){popup_networks_masks();exit;}
if(isset($_GET["show-script"])){dhcp_scripts();exit;}



function index_script(){
	$tpl=new templates();
	$page=CurrentPageName();
	$title=$tpl->_ENGINE_parse_body('{APP_ARTICA_GAYTEWAY}');
	$html="
		YahooWin0(550,'$page?index_popup=yes','$title');
	
	
	";
	
	echo $html;
}