Revision: 2767
http://ipcop.svn.sourceforge.net/ipcop/?rev=2767&view=rev
Author: owes
Date: 2009-05-02 14:17:57 +0000 (Sat, 02 May 2009)
Log Message:
-----------
Also show dynamic start and end addresses when adding a fixed lease.
Modified Paths:
--------------
ipcop/trunk/html/cgi-bin/dhcp.cgi
Modified: ipcop/trunk/html/cgi-bin/dhcp.cgi
===================================================================
--- ipcop/trunk/html/cgi-bin/dhcp.cgi 2009-05-02 09:02:35 UTC (rev 2766)
+++ ipcop/trunk/html/cgi-bin/dhcp.cgi 2009-05-02 14:17:57 UTC (rev 2767)
@@ -57,8 +57,8 @@
my %checked = ();
my $debug = 0;
-my $disable_main = 0;
-my $disable_fixed = 1;
+my $disable_main = 0; # 1 = only show (non-editable) some vital
information in the main box
+my $disable_fixed = 1; # 1 = only show fixed leases, 0 = fields to
add fixed lease become usable
# get IPCop settings
&General::readhash('/var/ipcop/ethernet/settings', \%netsettings);
@@ -429,17 +429,17 @@
<td width='25%' class='base'>$Lang::tr{'enabled'}:<input type='checkbox'
name='ENABLED_${interface}_${counter}' $checked{'ENABLED'}{'on'} $disable_text
/></td>
<td width='25%' class='base'>$Lang::tr{'ip
address'}/$Lang::tr{'netmask'}:</td>
<td width='25%'
class='base'><b>$netsettings{"${interface}_${counter}_ADDRESS"}/$netsettings{"${interface}_${counter}_NETMASK"}</b></td>
+</tr><tr>
+ <td width='25%' class='base'>$Lang::tr{'start address'}: <img
src='/blob.gif' alt='*' /></td>
+ <td width='25%'><input type='text'
name='START_ADDR_${interface}_${counter}'
value='$dhcpsettings{"START_ADDR_${interface}_${counter}"}' $disable_text
/></td>
+ <td width='25%' class='base'>$Lang::tr{'end address'}: <img
src='/blob.gif' alt='*' /></td>
+ <td width='25%'><input type='text' name='END_ADDR_${interface}_${counter}'
value='$dhcpsettings{"END_ADDR_${interface}_${counter}"}' $disable_text /></td>
</tr>
END
;
if ($disable_main == 0) {
print <<END
<tr>
- <td width='25%' class='base'>$Lang::tr{'start address'}: <img
src='/blob.gif' alt='*' /></td>
- <td width='25%'><input type='text'
name='START_ADDR_${interface}_${counter}'
value='$dhcpsettings{"START_ADDR_${interface}_${counter}"}' /></td>
- <td width='25%' class='base'>$Lang::tr{'end address'}: <img
src='/blob.gif' alt='*' /></td>
- <td width='25%'><input type='text' name='END_ADDR_${interface}_${counter}'
value='$dhcpsettings{"END_ADDR_${interface}_${counter}"}' /></td>
-</tr><tr>
<td class='base'>$Lang::tr{'default lease time'}:</td>
<td><input type='text' name='DEFAULT_LEASE_TIME_${interface}_${counter}'
value='$dhcpsettings{"DEFAULT_LEASE_TIME_${interface}_${counter}"}' size='5'
/></td>
<td class='base'>$Lang::tr{'domain name suffix'}: <img
src='/blob.gif' alt='*' /></td>
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Ipcop-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ipcop-svn