Building the WebGUI
-
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!
-
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");
-
Please dont take this the wrong way but don't you have all the sample code you need between pfSense and m0n0wall alone?!
-
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?
-
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
-
Actually, it's fsckign easy, just look at the existing source.
-
/www