Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- header("Content-type: text/plain");
- require_once('../../commons/base.inc.php');
- require_once("./CustomBootMenu.php");
- if ($_REQUEST['mac0'] && !$_REQUEST['mac1'] && !$_REQUEST['mac2'])
- $_REQUEST['mac'] = $_REQUEST['mac0'];
- else if ($_REQUEST['mac0'] && $_REQUEST['mac1'] && !$_REQUEST['mac2'])
- $_REQUEST['mac'] = $_REQUEST['mac0'].'|'.$_REQUEST['mac1'];
- else if ($_REQUEST['mac0'] && !$_REQUEST['mac1'] && $_REQUEST['mac2'])
- $_REQUEST['mac'] = $_REQUEST['mac0'].'|'.$_REQUEST['mac2'];
- else if ($_REQUEST['mac0'] && $_REQUEST['mac1'] && $_REQUEST['mac2'])
- $_REQUEST['mac'] = $_REQUEST['mac0'].'|'.$_REQUEST['mac1'].'|'.$_REQUEST['mac2'];
- $MACs = HostManager::parseMacList($_REQUEST['mac']);
- $Host = $FOGCore->getClass('HostManager')->getHostByMacAddresses($MACs);
- new CustomBootMenu($Host);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement