summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-09-26 19:15:49 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-09-26 19:15:49 +0000
commit3c61688623ecfa6d3d54cfb713a2d94df6b047ac (patch)
tree91cf38eb30df068654e7c5f560639fa080c44996 /usr
parent7ed60b4e8ac4478aaae980771da460c7ace1c251 (diff)
downloadpfsense-3c61688623ecfa6d3d54cfb713a2d94df6b047ac.zip
pfsense-3c61688623ecfa6d3d54cfb713a2d94df6b047ac.tar.gz
Fix interfaces selection widget. Now selections are restored.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/pkg_edit.php15
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);
OpenPOWER on IntegriCloud