• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Change Quick Host Registration and Inventory output

Scheduled Pinned Locked Moved
Feature Request
2
3
1.8k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F
    falko Moderator
    last edited by Nov 16, 2012, 8:03 AM

    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

    1 Reply Last reply Reply Quote 0
    • C
      chad-bisd Moderator
      last edited by Nov 17, 2012, 2:39 AM

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


      If you would like to make a donation to the Fog project, please do so [U][COLOR=#0000ff][URL='http://sourceforge.net/dona…

      1 Reply Last reply Reply Quote 0
      • F
        falko Moderator
        last edited by Nov 17, 2012, 9:28 AM

        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]

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        1 / 1
        • First post
          3/3
          Last post

        179

        Online

        12.0k

        Users

        17.3k

        Topics

        155.2k

        Posts
        Copyright © 2012-2024 FOG Project