Navigation

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

    Building the WebGUI

    webGUI
    6
    7
    4000
    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

              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

                  Products

                  • Platform Overview
                  • TNSR
                  • pfSense
                  • Appliances

                  Services

                  • Training
                  • Professional Services

                  Support

                  • Subscription Plans
                  • Contact Support
                  • Product Lifecycle
                  • Documentation

                  News

                  • Media Coverage
                  • Press
                  • Events

                  Resources

                  • Blog
                  • FAQ
                  • Find a Partner
                  • Resource Library
                  • Security Information

                  Company

                  • About Us
                  • Careers
                  • Partners
                  • Contact Us
                  • Legal
                  Our Mission

                  We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

                  Subscribe to our Newsletter

                  Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

                  © 2021 Rubicon Communications, LLC | Privacy Policy