SYSTEM WARNING: 'date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in '/usr/share/mantis/www/core.php' line 264

0000364: [outgoingfw.cgi] Function toggleType not found - MantisBT
MantisBT - Endian Firewall
View Issue Details
0000364Endian FirewallGUIpublic2007-12-06 09:202007-12-06 10:44
hpalpha 
 
normalminoralways
closedduplicate 
2.2-beta1 
2.2-beta1 
0000364: [outgoingfw.cgi] Function toggleType not found
Hi,

when you want add outgoing firewall rule into the version 2.2 beta 1, the
select field dst and src not working (function toggleType unknow)

I propose this patch, (very quick patch, but it's working fine !!!)

into /home/httpd/cgi-bin/outgoingfw.cgi
add this line into the html part add this :

<script language="javascript" type="text/javascript">
//<![CDATA[
function swapVisibile(id,visible) {
el = document.getElementById(id);
if(el!=null) {
if(visible==true) { el.style.display = 'block'} else {
el.style.display = 'none'}
}
}

function toggleType(id) {
t = document.getElementById(id+'_type').value;
swapVisibile(id+'_any_t',t=='any');
swapVisibile(id+'_dev_t',t=='dev');
swapVisibile(id+'_ip_t',t=='ip');
swapVisibile(id+'_mac_t',t=='mac');
swapVisibile(id+'_any_v',t=='any');
swapVisibile(id+'_dev_v',t=='dev');
swapVisibile(id+'_ip_v',t=='ip');
swapVisibile(id+'_mac_v',t=='mac');

}
//]]>
</script>

and search :
<select name="dst_type"
add this : id="dst_type"

<select name="src_type"
add : id="src_type"
No tags attached.
duplicate of 0000284closed peter-endian missing file for firewall .. 
Issue History
2007-12-06 09:20hpalphaNew Issue
2007-12-06 10:43peter-endianRelationship addedduplicate of 0000284
2007-12-06 10:44peter-endianStatusnew => closed
2007-12-06 10:44peter-endianResolutionopen => duplicate
2007-12-06 10:44peter-endianFixed in Version => 2.2

There are no notes attached to this issue.