Manually modifying the CP login page
-
Where exactly is the index.php file stored. I'm working on a school project and have tried to upload a different file through the GUI and it messed up the whole box and had to re-install pfsense. So where can i go and manually configure the login page?
Thanks!
-
its base64 encoded in the config file\array…
-
A manual change would be harder than the standard method for changing the page.
You might share your customized captive portal page as an text attachment then we can help you modify it into a correct captive portal page. I and other people on this forum have done it successfully many times.
-
just sharing mine. Please alter/modify as you wish. index1.html is a page with error message from $PORTAL_MESSSAGE
Upload all files using Captive Portal>file manager including captiveportal-style.css excluding the 2 html file (which you need to add at portal page contents)At least this the only thing i can offer for this great project. Pfsense rocks!
P/S: seems i cannot upload .rar file here. I will host the file temporary from my home.
http://pdrnet.dyndns.org/login/login.rar
-
Where exactly is the index.php file stored. I'm working on a school project and have tried to upload a different file through the GUI and it messed up the whole box and had to re-install pfsense. So where can i go and manually configure the login page?
Thanks!
I believe the files are stored (after being decoded from the XML) in /usr/local/captiveportal/ But you should use the web interface to change them or they will not be stored in the config. I have successfully build several highly customized login pages using the supported method.