From 94a77286714191bcb38020c6427d712affec95f1 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 30 Apr 2005 20:02:57 +0000 Subject: Sync with m0n0wall --- usr/local/www/interfaces_assign.php | 38 +++++++++++++------------------------ 1 file changed, 13 insertions(+), 25 deletions(-) (limited to 'usr/local') diff --git a/usr/local/www/interfaces_assign.php b/usr/local/www/interfaces_assign.php index 39b2857..e518dda 100755 --- a/usr/local/www/interfaces_assign.php +++ b/usr/local/www/interfaces_assign.php @@ -1,12 +1,11 @@ #!/usr/local/bin/php . + Copyright (C) 2003-2005 Manuel Kasper . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -31,6 +30,7 @@ POSSIBILITY OF SUCH DAMAGE. */ +$pgtitle = array("Interfaces", "Assign network ports"); require("guiconfig.inc"); /* @@ -95,7 +95,7 @@ if ($_POST) { $config['interfaces'][$ifname]['if'] = $ifport; /* check for wireless interfaces, set or clear ['wireless'] */ - if (preg_match("/^(wi|awi|an)/", $ifport)) { + if (preg_match($g['wireless_regex'], $ifport)) { if (!is_array($config['interfaces'][$ifname]['wireless'])) $config['interfaces'][$ifname]['wireless'] = array(); } else { @@ -164,7 +164,7 @@ if ($_GET['act'] == "add") { } if (!$portused) { $config['interfaces'][$newifname]['if'] = $portname; - if (preg_match("/^(wi|awi|an)/", $portname)) + if (preg_match($g['wireless_regex'], $portname)) $config['interfaces'][$newifname]['wireless'] = array(); break; } @@ -177,22 +177,12 @@ if ($_GET['act'] == "add") { } ?> - - - -<?=gentitle("Interfaces: Assign network ports");?> - - - - - -

Interfaces: Assign network ports

-
+
  • Interface assignments
  • VLANs
  • @@ -250,17 +240,15 @@ if ($_GET['act'] == "add") {
- -

Warning:
-
After you click "Save", you must reboot the firewall to make the changes take effect. You may also have to do one or more of the following steps before you can access your firewall again:

-
    -
  • change the IP address of your computer
  • -
  • renew its DHCP lease
  • -
  • access the webGUI with the new IP address
  • -
+

+

Warning:
+
After you click "Save", you must reboot the firewall to make the changes take effect. You may also have to do one or more of the following steps before you can access your firewall again:

+
    +
  • change the IP address of your computer
  • +
  • renew its DHCP lease
  • +
  • access the webGUI with the new IP address
  • +
- - -- cgit v1.1