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

    Normal logout page instead of pop-up - where is the pop-up code ?

    Scheduled Pinned Locked Moved Captive Portal
    2 Posts 2 Posters 2.6k 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.
    • M
      mark_orion
      last edited by

      I would like to use a logout page, but not as a popup as popups often get blocked or do not work. I cannot find any pop-up code in the popup itself. Can somebody direct me where the pop-up code sits so I can comment it out in order to have an ordinary logout page.
      thanks in advance, Mark

      1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan
        last edited by

        Hi !

        Here it is: /etc/inc/captiveportal.inc - lines 299->332.
        As you can see in the code, the info stored in $config['captiveportal']['page']['errtext'] will be used as the logout windows.
        If not defined, a hard coded popup windows will be used.

        Your page can be defind by filling in " $config['captiveportal']['page']['errtext'] ", this can be done by supplying a file with the code on the Services => Captive portal page, you will find "Logout page contents" at the bottom.

        Btw: sending code for a (default) popup logout window or opening another browser tab (another page) will often treated equally.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

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