Make sure we setup arrays before populating

This commit is contained in:
Scott Ullrich 2005-06-06 23:00:28 +00:00
parent fc4c39f599
commit 8073385d30

View File

@ -425,7 +425,7 @@
<type>checkbox</type>
<typehint>Prioritize Peer-to-Peer traffic</typehint>
<description>This will lower the priority of P2P traffic below all other traffic.</description>
<enablefields>Aimster,BitTorrent,BuddyShare,CuteMX,DCplusplus,dcc,DirectConnect,DirectFileExpress,EDonkey2000,FastTrack,Gnutella,grouper,hotComm,HotlineConnect,iMest,Napster,OpenNap,Scour,SongSpy,WinMX</enablefields>
<enablefields>Aimster,BitTorrent,BuddyShare,CuteMX,DCplusplus,dcc,DirectConnect,DirectFileExpress,EDonkey2000,FastTrack,Gnutella,grouper,hotComm,HotlineConnect,iMesh,Napster,OpenNap,Scour,SongSpy,WinMX</enablefields>
</field>
<field>
<name>Next</name>
@ -545,6 +545,8 @@
/* XXX - billm - needs to actually honor what the user selects still */
if ( $_POST['enable'] ) {
$p2plist = array();
/* To add p2p clients, push Descr,Protocol,Start,End,src/dest/both onto p2plist */
if($_POST['Aimster'] != "")
$p2plist[] = array('Aimster','tcp','7668','7668','both');
@ -927,6 +929,8 @@
$queue['attachtoqueue'] = "qLANRoot";
$config['shaper']['queue'][] = $queue;
$othersplist = array();
if($_POST['MSRDP'] != "") {
/* MSRDP */
$othersplist[] = array('MSRDP','tcp','3389','3389','both');