Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Variables available to Captive Portal HTML/PHP

    Scheduled Pinned Locked Moved Captive Portal
    3 Posts 2 Posters 2.9k Views
    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.
    • L
      Lectrician
      last edited by

      IS there a list of variables available for use in the captive portal HTML / PHP custom page?

      I would like to have the users local IP address and MAC address available to me.  Is this possible at all?

      Thanks.

      1 Reply Last reply Reply Quote 0
      • E
        eri--
        last edited by

        $CLIENT_MAC$ and $CLIENT_IP$

        The list of vars can be looked at portal_reply_page() on CP source.

        1 Reply Last reply Reply Quote 0
        • L
          Lectrician
          last edited by

          Perfect.  Thanks alot.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.