diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-09-26 19:15:49 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-09-26 19:15:49 +0000 |
commit | 3c61688623ecfa6d3d54cfb713a2d94df6b047ac (patch) | |
tree | 91cf38eb30df068654e7c5f560639fa080c44996 /usr/local/www/pkg_edit.php | |
parent | 7ed60b4e8ac4478aaae980771da460c7ace1c251 (diff) | |
download | pfsense-3c61688623ecfa6d3d54cfb713a2d94df6b047ac.zip pfsense-3c61688623ecfa6d3d54cfb713a2d94df6b047ac.tar.gz |
Fix interfaces selection widget. Now selections are restored.
Diffstat (limited to 'usr/local/www/pkg_edit.php')
-rwxr-xr-x | usr/local/www/pkg_edit.php | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/usr/local/www/pkg_edit.php b/usr/local/www/pkg_edit.php index dba89fc..bca151d 100755 --- a/usr/local/www/pkg_edit.php +++ b/usr/local/www/pkg_edit.php @@ -31,7 +31,7 @@ require_once("guiconfig.inc"); require_once("pkg-utils.inc"); /* dummy stubs needed by some code that was MFC'd */ -function gettext($text) { return $text; } +function gettext($text) { return $text; } function pfSenseHeader($location) { header("Location: $location"); } function gentitle_pkg($pgname) { @@ -232,7 +232,7 @@ if ($pkg['custom_php_after_head_command']) <script language="JavaScript"> <!-- function enablechange() { -<?php +<?php foreach ($pkg['fields']['field'] as $field) { if (isset($field['enablefields']) or isset($field['checkenablefields'])) { print("\tif (document.iform.elements[\"{$field['fieldname']}\"].checked == false) {\n"); @@ -312,13 +312,13 @@ if ($pkg['tabs'] <> "") { $savevalue = gettext("Save"); if($pkg['savetext'] <> "") $savevalue = $pkg['savetext']; foreach ($pkg['fields']['field'] as $pkga) { ?> - + <?php if(!$pkga['combinefieldsend']) echo "<tr valign=\"top\">"; ?> <?php - + $size = ""; - + if(!$pkga['dontdisplayname']) { unset($req); if (isset($pkga['required'])) @@ -410,7 +410,8 @@ if ($pkg['tabs'] <> "") { if (!empty($additional_ifaces)) $ifaces = array_merge($ifaces, explode(',', $additional_ifaces)); - $values = explode(',', $value); + /* value is already an array, no need to explode it */ + $values = $value; foreach($ifaces as $ifname => $iface) { if (isset($iface['descr'])) $ifdescr = $iface['descr']; @@ -611,7 +612,7 @@ function fixup_string($string) { $urlport = ":" . $port; else $urlport = ""; - + if($config['system']['webguiproto'] == "https") $https = "s"; $myurl = "http" . $https . "://" . getenv("HTTP_HOST") . $urlport; $newstring = str_replace("\$myurl", $myurl, $string); |