Changeset 333 for branches/stable/cgi-bin/snCalc.cgi
- Timestamp:
- 04/13/06 17:37:40 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/cgi-bin/snCalc.cgi
r4 r333 16 16 print $start; 17 17 18 if($webvar{input} =~ m/(\ /\d\d)/)18 if($webvar{input} =~ m/(\d\d)/) 19 19 { 20 $input = $1;20 $input = 1*$1; 21 21 } 22 22 else 23 23 { 24 $input = '/29';24 $input = 29; 25 25 } 26 26 27 if (substr($input, 1, 2) > 32 || substr($input, 1, 2)< 24)27 if ($input > 32 || $input < 24) 28 28 { 29 printAndExit(" '$input' is an invalid netmask.");29 printAndExit("Don't know what to do with '$input' as a masklength."); 30 30 } 31 31 else 32 { $input = substr($input, 1, 2);32 { 33 33 my $ltinput = $input -1; 34 34 my $gtinput = $input +1; 35 36 35 print qq( <div class="center"> 37 36 <table align="center" cellspacing="3" cellpadding="3"><tr>
Note:
See TracChangeset
for help on using the changeset viewer.