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

    Modify logout popup

    Captive Portal
    3
    7
    9.1k
    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
      morgan14
      last edited by

      Hi, I just need to know the directory where the popup file is stocked !

      I would like to modify the background color adapt to me captive portal .

      Thanks

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

        It's hardcoded in http://cvs.pfsense.org/cgi-bin/cvsweb.cgi/pfSense/usr/local/captiveportal/index.php?rev=1.38;content-type=text%2Fplain (search for "LogoutWin").

        
        LogoutWin = window.open('', 'Logout', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=256,height=64');
        if (LogoutWin) {
            LogoutWin.document.write('');
            LogoutWin.document.write('<title>Logout</title>') ;
            LogoutWin.document.write('');
            LogoutWin.document.write('') ;
            LogoutWin.document.write('**Click the button below to disconnect**
        
        ');
            LogoutWin.document.write('
        
        <form method="POST" action="{$logouturl}">');
            LogoutWin.document.write('');
            LogoutWin.document.write('');
            LogoutWin.document.write('</form>
        
        ');
            LogoutWin.document.write('');
            LogoutWin.document.write('');
            LogoutWin.document.close();
        }
        
        1 Reply Last reply Reply Quote 0
        • M
          morgan14
          last edited by

          where do i put this file after ?

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

            You can simply edit if from the webgui at diagnostics>edit file. Open /usr/local/captiveportal/index.php and save it after modifying it.

            1 Reply Last reply Reply Quote 0
            • M
              morgan14
              last edited by

              thank you

              1 Reply Last reply Reply Quote 0
              • G
                gsp
                last edited by

                is there any way that someone puts in this window i.e. the remaining time if i use radius with user credits option? (some kind of clock which reads the value from somewhere…)

                Thanks

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

                  Possible? Sure, you can modify the logout window even more than just changing the color. Add additional functionality to it, it's all php.

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