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

Modify logout popup

Scheduled Pinned Locked Moved Captive Portal
7 Posts 3 Posters 9.1k 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
    morgan14
    last edited by Mar 26, 2008, 2:53 PM

    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 Mar 26, 2008, 3:44 PM

      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 Mar 26, 2008, 3:58 PM

        where do i put this file after ?

        1 Reply Last reply Reply Quote 0
        • H
          hoba
          last edited by Mar 26, 2008, 4:03 PM

          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 Mar 26, 2008, 7:16 PM

            thank you

            1 Reply Last reply Reply Quote 0
            • G
              gsp
              last edited by Apr 11, 2008, 7:48 AM

              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 Apr 11, 2008, 5:41 PM

                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.
                  [[user:consent.lead]]
                  [[user:consent.not_received]]