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

    Building the WebGUI

    webGUI
    6
    7
    4.6k
    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.
    • A
      alexus
      last edited by

      hey, I just was wondering how to write my own webgui, so if you have some time can you give me like advice or sapmle code?

      I know that we can send the console commands with PHP that is easy…. aslo we can save the setings in XML file (dont know how though) and the hardest part for me is to get the responses of the command line?

      Thanks!

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

        simple way to get them is to divert the output of the command line to a file and then read that file

        exec("ifconfig > output.txt");

        1 Reply Last reply Reply Quote 0
        • S
          sullrich
          last edited by

          Please dont take this the wrong way but don't you have all the sample code you need between pfSense and m0n0wall alone?!

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

            well i can view the source code, but that is complete and working product, I willl spend yeras to find out how it works… So, i would apreciate if you could show me something like how to det up and IP or something like that?

            1 Reply Last reply Reply Quote 0
            • B
              billm
              last edited by

              @alexus:

              well i can view the source code, but that is complete and working product, I willl spend yeras to find out how it works… So, i would apreciate if you could show me something like how to det up and IP or something like that?

              Uhhh, figure out how to do it from the shell first.  There's plenty of places online (like ohhh, the MAN page) that you can get this information.

              –Bill

              pfSense core developer
              blog - http://www.ucsecurity.com/
              twitter - billmarquette

              1 Reply Last reply Reply Quote 0
              • F
                fernandotcl
                last edited by

                Actually, it's fsckign easy, just look at the existing source.

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

                  /www

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