diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-01-04 22:58:51 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-01-04 22:58:51 +0000 |
commit | facd08f9fe572cc05aa6f066b6b19d0868809d6b (patch) | |
tree | 46c74685a65a30b02017f848999fe10240aea1ac /usr/local/www/pkg_edit.php | |
parent | ae92b9c8fd66e2da1f7dd6fd33d7c81a3019fffb (diff) | |
download | pfsense-facd08f9fe572cc05aa6f066b6b19d0868809d6b.zip pfsense-facd08f9fe572cc05aa6f066b6b19d0868809d6b.tar.gz |
Add a number of directives allowing fields to be tied together similar to wizard.php
Diffstat (limited to 'usr/local/www/pkg_edit.php')
-rwxr-xr-x | usr/local/www/pkg_edit.php | 36 |
1 files changed, 24 insertions, 12 deletions
diff --git a/usr/local/www/pkg_edit.php b/usr/local/www/pkg_edit.php index 75ca5be..7b76a6b 100755 --- a/usr/local/www/pkg_edit.php +++ b/usr/local/www/pkg_edit.php @@ -71,6 +71,10 @@ if ($_POST) { eval($pkg['custom_delete_php_command']); } write_config(); + // resync the configuration file code if defined. + if($pkg['custom_php_resync_config_command'] <> "") { + eval($pkg['custom_php_resync_config_command']); + } } else { if($pkg['custom_add_php_command']) { if($pkg['donotsave'] <> "") { @@ -143,10 +147,16 @@ include("fbegin.inc"); write_config(); + // late running code if($pkg['custom_add_php_command_late'] <> "") { eval($pkg['custom_add_php_command_late']); } + // resync the configuration file code if defined. + if($pkg['custom_php_resync_config_command'] <> "") { + eval($pkg['custom_php_resync_config_command']); + } + header("Location: pkg.php?xml=" . $xml); exit; } @@ -180,19 +190,23 @@ $config = $config_tmp; <br> <table width="100%" border="0" cellpadding="6" cellspacing="0"> - <tr> <?php $cols = 0; $savevalue = "Save"; if($pkg['savetext'] <> "") $savevalue = $pkg['savetext']; foreach ($pkg['fields']['field'] as $pkga) { ?> - </tr> - <tr valign="top"> - <td width="22%" class="vncellreq"> - <?= $pkga['fielddescr'] ?> - </td> - <td class="vtable"> + + <?php if(!$pkga['combinefieldsend']) echo "<tr valign=\"top\">"; ?> + <?php + if(!$pkga['dontdisplayname']) { + echo "<td width=\"22%\" class=\"vncellreq\">"; + echo $pkga['fielddescr']; + echo "</td>"; + } + + if(!$pkga['dontcombinecells']) + echo "<td class=\"vtable\">"; if($pkga['type'] == "input") { if($pkga['size']) $size = " size='" . $pkga['size'] . "' "; @@ -305,18 +319,16 @@ $config = $config_tmp; totalrows = <?php echo $rowcounter; ?>; loaded = <?php echo $rowcounter; ?>; typesel_change(); - //--> </script> <?php } - if($pkga['typehint']) echo " " . $pkga['typehint']; - ?> - </td> - </tr> + ?> + <?php + if(!$pkga['combinefieldsbegin']) echo "</td></tr>"; $i++; } ?> |