yeah, no problem. it took me a while to figure it out, so if this helps save someone some headaches, I'm more than happy, to help.
This is what the logout html looks like with my modifications. The html is generated by index.php located in /usr/local/captiveportal/
I had to include some javascript in order to get it to do what i wanted. It's not as simple as just pasting the code in. as I said, it's generated from index.php. (i'm not a scriptor, so I dont really know what I"m talking about) what you bacially have to do is include the changes, in index.php where it writes the html for the logout popup.
anyway, I'll include an attachment that has the modified index.php
otherwise here is what the html for the logout button looks like with the modifications. I basically had to write a javascript using
onbeforeunload to get it to do what I want.
<html><head><title>Logout</title></head>
<script language="JavaScript">
var needToConfirm = true;
function confirmExit(){
myform.submit();
}
</script>
<body bgcolor="#435370"><div align="center" style="color: #ffffff; font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size: 11px;"><b>Click the button below to disconnect</b><p></p><form name="myform" form method="POST" action="http://192.168.11.1:8000/"><input name="logout_id" type="hidden" value="cee42bef22196ad1"></div></body></html>
<div align="center"><input type="Submit" value="Logout" onclick="needToConfirm = false;" ><body onbeforeunload = confirmExit()>
</form>
</DIV></BODY>
</HTML>
honestly, I dont even know if this is good coding, but it works.
I'll attach a file. called "index.php"
what you want to do, is replace the file at /usr/local/captiveportal/index.php with the one you modify, or the one I sent you.
basically go to the hidden exec page on your monowall router. http://(your ip address of your mono)/exec.php
not sure if your familiar with it or not. but you can download files from your setup, and then upload to a temp directory. then run the command.
mv tmp/index.php var/local/captiveportal/ this will move the uploaded file(from the tmp dir.) to the right directory and replace the existing index.php with the modified one.
Keep in mind, this is only temporary. once you reboot the machine, the changes are lost. I know its a bummer. but it's great for testing. if you screw up, your changes revert back to original. and if you have to use it this way, you can always just go through the few steps it takes to get it applied again.
In order to make it stick, these changes have to be applied to the disk image you use to install . which admittedly I have not yet ventured into. it looks like alot of work. I'll do it eventually.
ps. forum will not let me upload a php file. so I changed the extention to html, just switch it back to use it.