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

Is it possible for me to display a users IP address on the login page??

Scheduled Pinned Locked Moved Captive Portal
12 Posts 7 Posters 36.2k 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.
  • J
    jeroen234
    last edited by May 22, 2007, 6:10 AM May 22, 2007, 5:37 AM

    upload this page as youre pfsense portal page

    HTML>
    
    

    now it will send you to p.php afther 1 sec

    p.php

    
    echo "
    
    ";
    echo "Welkom youre ipadress = ";
    echo getenv('REMOTE_ADDR');
    echo "
    
    ";
    ?>
    
    ">
    
       ">
    
    | 
    
    ### usernaam
    
     |  |
    | 
    
    ### wachtwoord 
    
     |  |
    |  |  |
    
    
    1 Reply Last reply Reply Quote 0
    • J
      JorgeAldoBR
      last edited by May 23, 2007, 4:01 AM

      Why my code doesnt work ? (I did not try it, but i presume now that it doesnt work)

      1 Reply Last reply Reply Quote 0
      • J
        jeroen234
        last edited by May 24, 2007, 6:26 PM

        ehmm i don't see code from you ??

        1 Reply Last reply Reply Quote 0
        • C
          Cry Havok
          last edited by May 24, 2007, 6:35 PM

          @jeroen234:

          ehmm i don't see code from you ??

          Second post in this thread:

          @JorgeAldoBR:

          put this where you want the ip to appear :

          It wasn't inside a code block though, so not obvious :)

          1 Reply Last reply Reply Quote 0
          • J
            jeroen234
            last edited by May 24, 2007, 6:45 PM

            if you put that in a php page then it will work
            in the example php portal page (3 post in topic) i have include it

            1 Reply Last reply Reply Quote 0
            • J
              JorgeAldoBR
              last edited by May 25, 2007, 8:29 PM

              Thank you.

              1 Reply Last reply Reply Quote 0
              • A
                alexander007
                last edited by Aug 8, 2007, 4:01 PM

                that dont work for me…it keeps reloading...

                index.html

                
                Loading...
                
                

                captiveportal-portal.php

                
                <form method="post" action="<?php echo $_GET[" portal_action"];="" ?="">">
                
                | **Usuario:** |  <label></label>  | **@uprrp.edu** |
                | **Contraseña:** |  <label></label>  |   |
                |   |  <label>" type="hidden"></label>  |   |
                
                            </form>
                
                

                whats wrong?

                1 Reply Last reply Reply Quote 0
                • A
                  alexander007
                  last edited by Aug 10, 2007, 12:28 AM

                  I found the problem ;D

                  1 Reply Last reply Reply Quote 0
                  • G
                    Gertjan
                    last edited by Aug 10, 2007, 9:13 AM

                    @alexander007:

                    I found the problem ;D

                    What was it  ? :D

                    Do we have to supose that somethings is wrong with your posts ?

                    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
                    • D
                      docwho76
                      last edited by Aug 24, 2008, 7:23 PM

                      Since no one seems to bother with documenting this, and I just finished banging my head against this issue where the redirect just keeps reloading itself and not going to the page specified. To fix it you MUST do the quotation marks in the META HTTP-EQUIV line correctly:

                      Bad

                      Good

                      Hope this saves other people torment anguish and wasted time Googling.

                      @Gertjan:

                      @alexander007:

                      I found the problem ;D

                      What was it  ? :D

                      Do we have to supose that somethings is wrong with your posts ?

                      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]]