summaryrefslogtreecommitdiffstats
path: root/usr/local/www/pkg_edit.php
Commit message (Collapse)AuthorAgeFilesLines
* Encode hostname before printing; remove some related dead code.jim-p2015-12-211-5/+0
|
* Reset the value of a package field before this test in case it has no ↵jim-p2015-09-241-0/+1
| | | | default. Fixes #5199
* pkg_edit.php - fix issue where default value was not being populated for ↵doktornotor2015-09-191-3/+6
| | | | | | | newly added fields Backport from PR #1906 / PR #1787 for RELENG_2_2. Check if the actual $fieldname element is present in the $a_pkg[$id] array before trying to assign its value. Do same with default_value. Fixes issue where default value was not being populated for newly added fields.
* Update pkg_edit.phpPhil Davis2015-05-221-10/+23
| | | | | | | a) When we are doing combined fields and usecolspan2 is in effect, then usecolspan2 is also a signal that we want to spread the combined fields horizontally in a single row. In that case we want the combined fields to all be in a single "tr" tag enclosing them all. That was already working in that way. b) But if usecolspan2 is NOT in effect, then we want the combined fields to still run "together" but vertically under each other. In this case we want each field to be in its own "tr" tag. This change makes (b) happen. If combinedfields is not set, then each of the "if" tests here still follows the same path it did previously, so there should be no effect on the HTML output for any ordinary package fields.
* More combinedfields and usecolspan2 fixesPhil Davis2015-05-201-4/+12
| | | | | | | Actually the "tr" tag needs to be a single tag-pair that encloses all of the set of fields with combinedfields specified - combinedfields=begin is where the "tr" tag starts and combinedfields=end is where the "tr" tag ends, enclosing a whole set of combined fields. That allows usecolspan2 to work. In the previous change I had made it enclose every field in its own "tr" tag-pair That caused usecolspan2 to be ineffective at spreading the combined fields across the display. Also colspan needs to be initialised each time around the loop - it was getting applied to all fields further down the page after the first one it was used in. This is the version for 2.2.*
* Fix tr use for combinedfields in pkg xmlPhil Davis2015-05-201-5/+8
|
* Fix aliases popup width when fields are hidden when page is loaded. It ↵Renato Botelho2015-02-021-1/+1
| | | | should fix #4238
* Remove duplicate copyrightPhil Davis2015-01-011-1/+0
| | | | Noticed these had the copyright twice
* Welcome 2015Renato Botelho2014-12-311-2/+2
|
* Change copyright statement to reflect realityJim Thompson2014-11-101-0/+1
|
* modify copyright statement to reflect realityJim Thompson2014-11-101-0/+1
|
* Remove almost all calls to history.back() and make Cancel button back to ↵Renato Botelho2014-09-121-1/+1
| | | | HTTP_REFERER, there are a couple of places I didn't touch on this commit because it requires more work
* We need to allow subdirectories under /usr/local/pkg, here is the proper fixRenato Botelho2014-06-181-7/+5
|
* Avoid directory traversal when reading package xml files, also check if file ↵Renato Botelho2014-06-171-1/+6
| | | | exists before try to read it
* Replace Header() calls by lowercaseRenato Botelho2014-06-131-1/+1
|
* Update "pkg_edit.,php"Colin Fleming2014-06-051-2/+7
| | | | | | | | | | "custom_php_after_head_command", if the PHP code also contains JavaScript ("squid_auth.xml" for example) then this will cause HTML errors, as you are not supposed to have anything between the closing HEAD tag and the opening BODY tag. Add the CLOSEHEAD PHP variable, move the include HEAD.INC into the PHP IF statement and manually close the HEAD tab, else just include HEAD.INC
* Tidy up Ampersand XHTMLColin Fleming2014-05-271-1/+1
| | | | Deprecate Ampersand in Anchor tags
* fixes Bug #3569Marcello Coutinho2014-04-071-1/+4
| | | | | | | | On packages that uses row_helper when user clicks on add or delete button, the page scrolls to top. It seems something with ajax http://stackoverflow.com/questions/1061580/jquery-click-on-anchor-element-forces-scroll-to-top A simple return false after jquery action fixes the unwanted scroll.
* replaced uppercase html tags with lowercaseayvis2014-03-191-1/+1
| | | | js files saved as UTF-8 / LF language="JavaScript" deprecated, replaced with type="text/javascript"
* xhtml Complianceayvis2014-03-141-12/+12
| | | replaced <br>, <br/> and </br> with <br />
* Update "pkg_edit.php" XHTMLColin Fleming2013-09-261-2/+2
| | | | Update HTML Boolean operator
* Set network interfaces description as interface name.ccesario2013-09-251-1/+3
|
* Remove call-time pass by reference for do_input_validation, helps ticket #2565Renato Botelho2013-09-121-1/+1
|
* Fix #3127Renato Botelho2013-09-061-6/+6
| | | | | | | By default htmlspecialchars does not consider single quotes, what can be a problem when value attribute is set using it. Replace value attribute set to use double quotes on places where it's obviously recieving a result of htmlspecialchars() call.
* Fix #3113, fix multiple english spell errors s/seperet/separat/Renato Botelho2013-07-281-4/+4
|
* Update "pkg_edit.php"Colin Fleming2013-05-021-1/+1
| | | | | Move closing TR tag outside, otherwise the 'foreach' statement will produce a duplicate closing TR tag.
* Update "pkg_edit.php"Colin Fleming2013-04-221-1/+2
| | | | Add missing closing B tag Add missing closing TD tag
* Tidy up "pkg_edit.php" XHTMLColin Fleming2013-04-161-5/+5
| | | | | Remove duplicate $size variable Add summary statement to TABLE tags
* Tidy up "pkg_edit.php" XHTMLColin Fleming2013-04-151-27/+27
| | | | | | | | Close INPUT tags Update HTML boolean operators Add missing start TR tag Remove "name" statement from OPTION tag, invalid in XHTML Remove duplicate "id" statement in SELECT tag
* Update pkg_edit.phpColin Fleming2013-04-141-2/+2
| | | | Correct CDATA sections in SCRIPT tag Correct ALT statement in IMG tag
* Update pkg_edit.phpColin Fleming2013-04-141-1/+1
| | | Correct CDATA section in SCRIPT tag
* Tidy up "pkg_edit.php" XHTMLColin Fleming2013-04-141-25/+31
| | | | | | | Close BR and IMG tags and add ALT statement to IMG tags Change ONCLICK to lower case Move "fbegin.inc" PHP statement before the SCRIPTS Add CDATA sections to SCRIPT tags
* Add onchange tag to checkbox tooLuiz Gustavo Costa (gugabsd)2013-02-241-1/+2
|
* Fix PHP errors relating to using string offset as an arrayPhil Lavin2013-02-051-2/+2
|
* add input autocomplete array aliasesbruno2012-12-061-1/+44
|
* More encoding...jim-p2012-10-311-7/+7
|
* pkg_edit - add show_disable_value option to select_source xml optionCharlie Root2012-07-061-3/+10
|
* If a package has donotsave, still process its input validation. Properly ↵jim-p2012-06-281-79/+82
| | | | handle preoutput in the case of input errors also.
* fix select_source optionMarcello Coutinho2012-06-071-26/+27
|
* include more features to interfaces_selection Marcello Coutinho2012-06-011-29/+50
| | | | | | | | <showips> <showvirtualips> <showlistenall> <hideinterfaceregex> New features will show only with these new options on xml file
* new pkg_edit.php code with revised functions, no 0-99 loop on row_helper, ↵Marcello Coutinho2012-05-311-578/+547
| | | | | | | movable rows, tootip with domtt. new field types button, info as well combinefileds working and colspan2 on nodisplaname option. jquery code improved too. tested on squid, dansguardian, sshdcond , filer , pfblocker package.
* Fix tag order.bcyrill2012-04-121-1/+1
|
* Removed flawed HTML.bcyrill2012-04-111-4/+0
|
* Added interface_selection to choose a interface in tinydns failover selectionwhizkidzz2012-04-061-2/+26
| | | | Changed the $text so that no "option value" is preselected when adding a newrow with addrowto function.
* Added rowsize[] for use in row_helper_dynamic.jswhizkidzz2012-04-061-3/+4
|
* Added empty option line so not to write to config.xml if not filled inwhizkidzz2012-04-061-1/+5
|
* Fix missing description in rowhelper.Marcello Coutinho2011-10-271-0/+1
|
* Fix use post here, since the other var isn't defined as it was before my ↵jim-p2011-07-061-1/+1
| | | | commit yesterday.
* Fix handling of interface selectors in packages.jim-p2011-07-051-5/+6
|
* Revert "Correct displaying any availble default value."Warren Baker2011-06-221-1/+1
| | | | This reverts commit 01c170c4612a4afdbaa2d6e9bf98552dddc1cde3.
OpenPOWER on IntegriCloud