Advertisement
Guest User

boot.php for FOG 1.2.0

a guest
Aug 18th, 2014
432
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.80 KB | None | 0 0
  1. <?php
  2. header("Content-type: text/plain");
  3. require_once('../../commons/base.inc.php');
  4. require_once("./CustomBootMenu.php");
  5. if ($_REQUEST['mac0'] && !$_REQUEST['mac1'] && !$_REQUEST['mac2'])
  6.     $_REQUEST['mac'] = $_REQUEST['mac0'];
  7. else if ($_REQUEST['mac0'] && $_REQUEST['mac1'] && !$_REQUEST['mac2'])
  8.     $_REQUEST['mac'] = $_REQUEST['mac0'].'|'.$_REQUEST['mac1'];
  9. else if ($_REQUEST['mac0'] && !$_REQUEST['mac1'] && $_REQUEST['mac2'])
  10.     $_REQUEST['mac'] = $_REQUEST['mac0'].'|'.$_REQUEST['mac2'];
  11. else if ($_REQUEST['mac0'] && $_REQUEST['mac1'] && $_REQUEST['mac2'])
  12.     $_REQUEST['mac'] = $_REQUEST['mac0'].'|'.$_REQUEST['mac1'].'|'.$_REQUEST['mac2'];
  13. $MACs = HostManager::parseMacList($_REQUEST['mac']);
  14. $Host = $FOGCore->getClass('HostManager')->getHostByMacAddresses($MACs);
  15. new CustomBootMenu($Host);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement