diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-07-01 22:39:52 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-07-01 22:39:52 +0000 |
commit | 314a612f82e191befa523a110e8d8b706f504d7b (patch) | |
tree | a37c805272a59ce27bc8eb45ad2380e8ff2955f9 /usr/local/www/wizards | |
parent | 353b7c6f15a96e702b0e3607b1eb97cddb3b299c (diff) | |
download | pfsense-314a612f82e191befa523a110e8d8b706f504d7b.zip pfsense-314a612f82e191befa523a110e8d8b706f504d7b.tar.gz |
* Add port 5223
* Make sure upload and download values are numeric
Diffstat (limited to 'usr/local/www/wizards')
-rw-r--r-- | usr/local/www/wizards/traffic_shaper_wizard.inc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/usr/local/www/wizards/traffic_shaper_wizard.inc b/usr/local/www/wizards/traffic_shaper_wizard.inc index eb54467..16a04d9 100644 --- a/usr/local/www/wizards/traffic_shaper_wizard.inc +++ b/usr/local/www/wizards/traffic_shaper_wizard.inc @@ -42,6 +42,11 @@ function step1_stepsubmitphpaction() { function step2_stepsubmitphpaction() { global $g, $config; + if(!is_numeric($_POST['upload']) or !is_numeric($_POST['download'])) { + $message="Upload and download speeds must be a number only! Values should be Kbits/second."; + header("Location: /wizard.php?xml=traffic_shaper_wizard.xml&stepid=1&message={$message}"); + exit; + } if ($config['ezshaper']['step2']['inside_int'] == $config['ezshaper']['step2']['outside_int']) { $message="Inside and Outside interfaces cannot be the same"; header("Location: /wizard.php?xml=traffic_shaper_wizard.xml&stepid=1&message={$message}"); @@ -807,8 +812,9 @@ function step6_stepsubmitphpaction() { if($_POST['jabber'] != "") { /* jabber */ - $othersplist[] = array('IRC', 'tcp', '5222', '5222', 'both', $_POST['jabber']); - $othersplist[] = array('IRC', 'tcp', '5269', '5269', 'both', $_POST['jabber']); + $othersplist[] = array('IRC', 'tcp', '5222', '5222', 'both', $_POST['jabber1']); + $othersplist[] = array('IRC', 'tcp', '5223', '5223', 'both', $_POST['jabber2']); + $othersplist[] = array('IRC', 'tcp', '5269', '5269', 'both', $_POST['jabber3']); } if($_POST['dns'] != "") { |