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

    Captiveportal.html -> .php

    Scheduled Pinned Locked Moved Captive Portal
    6 Posts 4 Posters 4.3k 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.
    • D
      Dici
      last edited by

      Hello!
      How i can modify captiveportal.html (auth page) to captiveportal.php ? I need include some text from internet, but include (php) dont work in html doc.

      Captiveportal.html is located in /var/etc, but where is config file, which defines that captiveportal.html is auth page?

      1 Reply Last reply Reply Quote 0
      • H
        hoba
        last edited by

        That is hardcoded. Upload your php page as captiveportal element and as html-page just a immediate metaredirect to the php page.

        1 Reply Last reply Reply Quote 0
        • J
          jeroen234
          last edited by

          you captiveportal.html will look somting like this:

          
          <title>Captive portal php redirect</title>
                CONTENT="5; URL="captiveportal.php">
          
          
          1 Reply Last reply Reply Quote 0
          • A
            alexus
            last edited by

            I want to make php suported by defult… but before I mess it up, do you know why PHP is not supported (natively) as of now?

            1 Reply Last reply Reply Quote 0
            • H
              hoba
              last edited by

              m0n0 doesn't support php on the captive portal and as we ported over their captive portal 1:1 you have to do it with that redirect. We don't want to change too much on the captive portal code to stay syncable with their implementation.

              1 Reply Last reply Reply Quote 0
              • A
                alexus
                last edited by

                yea i know syncing is hard…
                so then I'll speak to Jonathan to find out if we can change to native php support in mono

                PS: Why it takes 16sec to bring up the CP page comparing to 3 sec in mono?

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