Change Quick Host Registration and Inventory output


  • Moderator

    Can this be put into the FOG 0.33 Code, It’s to change (when registering a pc that already exists)
    it from saying Host Exists to the actual hostname registered in FOG.

    [URL=‘http://fogproject.org/forum/threads/change-full-host-registration-quickimage.3266/#post-9538’]Taken from this thread[/URL]

    [quote=“Lee Rowlett, post: 9534, member: 28”]change auto.register.php line 77 (dependant on version you’ve got but it’s around there)
    from:
    [B]$sql = “select count() as cnt from hosts where hostMAC = ‘" . $mac . "’";[/B]
    to:
    [B]$sql = "select hostName, count(
    ) as cnt from hosts where hostMAC = '” . $mac . “’”;[/B]
    and then change output on line 264 (again might be diff line - version)
    from:
    [B]echo (“Exists”);[/B]
    to:
    [B]echo “”.
    (“This Machine is already registed as”).": " . $ar[“hostName”] . “”;[/B]

    i haven’t tested this but can’t see why it wouldn’t work :)[/quote]

    Thanks


  • Moderator

    I haven’t look at the 0.33 code in a while so I wasn’t sure. Hence the post

    You are referring to the edit of [I]man.hostexists.php [/I]that is made. this is to edit [I][SIZE=12px]auto.register.php ii[/SIZE][/I][SIZE=12px]n a similar fashion for when the boot menu option of Quick Host Registration and Inventory is used on a pc that is already in the database.[/SIZE]


  • Moderator

    I think Blackout already included that in the codebase. I commented that on another thread where you posted the code.


Log in to reply
 

396
Online

38937
Users

10696
Topics

101490
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.