示例#1
0
    exit;
}
if ($_GET["mode"] == "selection") {
    selection_js();
    exit;
}
if (isset($_GET["networkslist"])) {
    networkslist(0);
    exit;
}
if (isset($_GET["ComputersAllowDHCPLeases"])) {
    ComputersAllowDHCPLeasesSave();
    exit;
}
if (isset($_GET["ComputersAllowNmap"])) {
    ComputersAllowNmapSave();
    exit;
}
if (isset($_GET["EnableArpDaemon"])) {
    EnableArpDaemonSave();
    exit;
}
if (isset($_GET["browse-computers"])) {
    index();
    exit;
}
if (isset($_GET["browse-computer-list"])) {
    computer_list();
    exit;
}
if (isset($_GET["network-js"])) {
示例#2
0
if(posix_getuid()<>0){
	$users=new usersMenus();
	if((!$users->AsSambaAdministrator) OR (!$users->AsSystemAdministrator)){
		$tpl=new templates();
		$error=$tpl->javascript_parse_text("{ERROR_NO_PRIVS}");
		echo "alert('$error')";
		die();
	}
}


if($_GET["mode"]=="selection"){selection_js();exit;}

if(isset($_GET["ComputersAllowDHCPLeases"])){ComputersAllowDHCPLeasesSave();exit;}
if(isset($_GET["ComputersAllowNmap"])){ComputersAllowNmapSave();exit;}

if(isset($_GET["browse-computers"])){index();exit;}

if(isset($_GET["browse-networks"])){networks();exit;}
if(isset($_GET["browse-networks-add"])){networks_add();exit;}

if(isset($_GET["network-scanner-execute"])){network_scanner_execute();exit;}
if(isset($_GET["computer-refresh"])){echo computer_list();exit;}
if(isset($_GET["calc-cdir-ip"])){echo network_calc();exit;}
if(isset($_GET["calc-cdir-ip-add"])){echo networks_add_save();exit;}
if(isset($_GET["NetworkDelete"])){networks_del();exit;}
if(isset($_GET["DeleteAllcomputers"])){computers_delete();exit;}
if(isset($_GET["Status"])){Status();exit;}
if(isset($_GET["view-scan-logs"])){events();exit;}
if(isset($_GET["NetWorksDisable"])){networks_disable();exit;}